diff --git a/CODEOWNERS b/CODEOWNERS index b3a89aecb5c1bf1907db23aabcb7d61adecc8ab3..abde348a4d10568535df2c66a8a8fcda79190092 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -415,7 +415,7 @@ zh-cn/application-dev/reference/apis/js-apis-resource-manager.md @Buda-Liu @ning zh-cn/application-dev/reference/apis/js-apis-router.md @huaweimaxuchu @HelloCrease @niulihua @tomatodevboy zh-cn/application-dev/reference/apis/js-apis-rpc.md @xuepianpian @RayShih @zhaopeng_gitee @vagrant_world zh-cn/application-dev/reference/apis/js-apis-runninglock.md @aqxyjay @zengyawen @aqxyjay @alien0208 -zh-cn/application-dev/reference/apis/js-apis-screen-lock.md @feng-aiwen @ningningW @wangzhangjun @murphy1984 + zh-cn/application-dev/reference/apis/js-apis-screen.md @zhangqiang183 @ge-yafang @zhouyaoying @zxg-gitee zh-cn/application-dev/reference/apis/js-apis-screenshot.md @zhangqiang183 @ge-yafang @zhouyaoying @zxg-gitee zh-cn/application-dev/reference/apis/js-apis-securityLabel.md @panqinxu @zengyawen @bubble_mao @jinhaihw @@ -531,6 +531,7 @@ zh-cn/application-dev/reference/apis/js-apis-distributedBundle.md @shuaytao @Ray zh-cn/application-dev/reference/apis/js-apis-distributedKVStore.md @feng-aiwen @ge-yafang @gong-a-shi @logic42 zh-cn/application-dev/reference/apis/js-apis-enterprise-accountManager.md @liuzuming @ningningW @yangqing3 zh-cn/application-dev/reference/apis/js-apis-enterprise-adminManager.md @liuzuming @ningningW @yangqing3 +zh-cn/application-dev/reference/apis/js-apis-enterprise-bundleManager.md @liuzuming @ningningW @yangqing3 zh-cn/application-dev/reference/apis/js-apis-enterprise-dateTimeManager.md @liuzuming @ningningW @yangqing3 zh-cn/application-dev/reference/apis/js-apis-enterprise-deviceControl.md @liuzuming @ningningW @yangqing3 zh-cn/application-dev/reference/apis/js-apis-enterprise-deviceInfo.md @liuzuming @ningningW @yangqing3 diff --git a/en/application-dev/application-models/common-event-overview.md b/en/application-dev/application-models/common-event-overview.md index d54fcf4786f0e22077cda0e6aae2d211bb2d0e90..e8be9abaa3015a5512c47af55d2f364be0de79ad 100644 --- a/en/application-dev/application-models/common-event-overview.md +++ b/en/application-dev/application-models/common-event-overview.md @@ -15,14 +15,15 @@ Common events are classified into system common events and custom common events. Common events are also classified into unordered, ordered, and sticky common events. -- Unordered common events: common events that CES forwards based on the subscription sequence, regardless of whether subscribers receive the events. +- Unordered common events: common events that CES forwards regardless of whether subscribers receive the events and when they subscribe to the events. -- Ordered common events: common events that CES forwards based on the subscriber priority. CES forwards common events to the subscriber with lower priority only after receiving a reply from the previous subscriber with higher priority. +- Ordered common events: common events that CES forwards based on the subscriber priority. CES forwards common events to the subscriber with lower priority only after receiving a reply from the previous subscriber with higher priority. Subscribers with the same priority receive common events in a random order. -- Sticky common events: common events that can be sent to a subscriber before they initiate a subscription. Only system applications and system services can send sticky common events, and they must request the **ohos.permission.COMMONEVENT_STICKY** permission. For details about the configuration, see [Permission Application Guide](../security/accesstoken-guidelines.md#declaring-permissions-in-the-configuration-file). +- Sticky common events: common events that can be sent to a subscriber before or after they initiate a subscription. Only system applications and system services can send sticky common events, which remain in the system after being sent. The sends must first request the **ohos.permission.COMMONEVENT_STICKY** permission. For details about the configuration, see [Permission Application Guide](../security/accesstoken-guidelines.md#declaring-permissions-in-the-configuration-file). Each application can subscribe to common events as required. After your application subscribes to a common event, the system sends it to your application every time the event is published. Such an event may be published by the system, other applications, or your own application. **Figure 1** Common events + ![common-event](figures/common-event.png) \ No newline at end of file diff --git a/en/application-dev/application-models/figures/common-event.png b/en/application-dev/application-models/figures/common-event.png index 24b51ff8718ae504ba69c1e12656d4daad797a62..fe2591d12d5f2c570d7be942d33ec330a6eb6c98 100644 Binary files a/en/application-dev/application-models/figures/common-event.png and b/en/application-dev/application-models/figures/common-event.png differ diff --git a/en/application-dev/connectivity/http-request.md b/en/application-dev/connectivity/http-request.md index a266e285245c932534873440fc777fd86ccd480d..6204682cde551e1d9a952d8e19716cf342ce2d3d 100644 --- a/en/application-dev/connectivity/http-request.md +++ b/en/application-dev/connectivity/http-request.md @@ -89,8 +89,3 @@ httpRequest.request( } ); ``` - -## Samples -The following sample is provided to help you better understand how to develop the HTTP data request feature: -- [`HTTP`: Data Request (ArkTS) (API9)](https://gitee.com/openharmony/applications_app_samples/tree/master/code/BasicFeature/Connectivity/Http) -- [HTTP Communication (ArkTS) (API9)](https://gitee.com/openharmony/codelabs/tree/master/NetworkManagement/SmartChatEtsOH) diff --git a/en/application-dev/connectivity/ipc-rpc-development-guideline.md b/en/application-dev/connectivity/ipc-rpc-development-guideline.md index 5512d7a016754c94174fe269d5ed58424a218fb6..89bff0d4a168c74309f6bc711a3725fd4c9aad1b 100644 --- a/en/application-dev/connectivity/ipc-rpc-development-guideline.md +++ b/en/application-dev/connectivity/ipc-rpc-development-guideline.md @@ -1,4 +1,4 @@ -# IPC & RPC Development Guidelines +# IPC & RPC Development ## When to Use diff --git a/en/application-dev/connectivity/net-sharing.md b/en/application-dev/connectivity/net-sharing.md index d81e8f59ecfb538ececb78afc83941d52f330eda..d5bc9cf2f8817723f0f23d666c45997a6735f706 100644 --- a/en/application-dev/connectivity/net-sharing.md +++ b/en/application-dev/connectivity/net-sharing.md @@ -63,7 +63,7 @@ For the complete list of APIs and example code, see [Network Sharing](../referen }); // Call startSharing to start network sharing of the specified type. - sharing.startSharing(SharingIfaceType.SHARING_WIFI, (error) => { + sharing.startSharing(sharing.SharingIfaceType.SHARING_WIFI, (error) => { console.log(JSON.stringify(error)); }); ``` @@ -88,7 +88,7 @@ For the complete list of APIs and example code, see [Network Sharing](../referen }); // Call stopSharing to stop network sharing of the specified type. - sharing.stopSharing(SharingIfaceType.SHARING_WIFI, (error) => { + sharing.stopSharing(sharing.SharingIfaceType.SHARING_WIFI, (error) => { console.log(JSON.stringify(error)); }); ``` @@ -107,7 +107,7 @@ For the complete list of APIs and example code, see [Network Sharing](../referen import sharing from '@ohos.net.sharing' // Call startSharing to start network sharing of the specified type. - sharing.startSharing(SharingIfaceType.SHARING_WIFI, (error) => { + sharing.startSharing(sharing.SharingIfaceType.SHARING_WIFI, (error) => { console.log(JSON.stringify(error)); }); @@ -118,7 +118,7 @@ For the complete list of APIs and example code, see [Network Sharing](../referen }); // Call stopSharing to stop network sharing of the specified type and clear the data volume of network sharing. - sharing.stopSharing(SharingIfaceType.SHARING_WIFI, (error) => { + sharing.stopSharing(sharing.SharingIfaceType.SHARING_WIFI, (error) => { console.log(JSON.stringify(error)); }); diff --git a/en/application-dev/connectivity/socket-connection.md b/en/application-dev/connectivity/socket-connection.md index b0c6fcd63d49a6cf9b77662d8340cadc8f82735d..5cae73b2a5c84f280aea80e299605ee80ac2553a 100644 --- a/en/application-dev/connectivity/socket-connection.md +++ b/en/application-dev/connectivity/socket-connection.md @@ -319,10 +319,3 @@ TLS Socket connection process on the client: tlsTwoWay.off('close'); }); ``` - -## Samples - -The following samples are provided to help you better understand how to develop Socket connection features: -- [`Socket`: Socket Connection (ArkTS) (API9)](https://gitee.com/openharmony/applications_app_samples/tree/master/Network/Socket) -- [UDP Socket (ArkTS) (API9)](https://gitee.com/openharmony/codelabs/tree/master/NetworkManagement/UdpDemoOH) -- [TCP Socket (ArkTS) (API9)](https://gitee.com/openharmony/codelabs/tree/master/NetworkManagement/TcpSocketDemo) diff --git a/en/application-dev/device/usb-guidelines.md b/en/application-dev/device/usb-guidelines.md index c4f5131536a1f0b55ae973bdf7cdf04d2b8f0980..68c8c3de013e75d56854bf0cf0e3a71aca9eb261 100644 --- a/en/application-dev/device/usb-guidelines.md +++ b/en/application-dev/device/usb-guidelines.md @@ -130,8 +130,6 @@ You can set a USB device as the USB host to connect to other USB devices for dat usb.bulkTransfer(pipe, inEndpoint, dataUint8Array, 15000).then(dataLength => { if (dataLength >= 0) { console.info("usb readData result Length : " + dataLength); - let resultStr = this.ab2str(dataUint8Array); // Convert uint8 data into a string. - console.info("usb readData buffer : " + resultStr); } else { console.info("usb readData failed : " + dataLength); } diff --git a/en/application-dev/dfx/apprecovery-guidelines.md b/en/application-dev/dfx/apprecovery-guidelines.md index 67176a77ff4cacda15de76a3390275f59f3a6aa4..cf31f6ae4c18f0de1e850cad5cb34be2122bc0d0 100644 --- a/en/application-dev/dfx/apprecovery-guidelines.md +++ b/en/application-dev/dfx/apprecovery-guidelines.md @@ -1,62 +1,80 @@ -# Development of Application Recovery +# Application Recovery Development ## When to Use -During application running, some unexpected behaviors are inevitable. For example, unprocessed exceptions and errors are thrown, and the call or running constraints of the framework are violated. +During application running, some unexpected behaviors are inevitable. For example, unprocessed exceptions and errors are thrown, and the call or running constraints of the recovery framework are violated. -By default, the processes will exit as exception handling. However, if user data is generated during application use, process exits may interrupt user operations and cause data loss. -In this way, application recovery APIs may help you save temporary data, restart an application after it exits, and restore its status and data, which deliver a better user experience. +Process exit is treated as the default exception handling method. However, if user data is generated during application use, process exit may interrupt user operations and cause data loss. +Application recovery helps to restore the application state and save temporary data upon next startup in the case of an abnormal process exit, thus providing more consistent user experience. The application state includes two parts, namely, the page stack of the and the data saved in **onSaveState**. -Currently, the APIs support only the development of an application that adopts the stage model, single process, and single ability. +In API version 9, application recovery is supported only for a single ability of the application developed using the stage model. Application state saving and automatic restart are performed when a JsError occurs. + +In API version 10, application recovery is also supported for multiple abilities of the application developed using the stage model. Application state storage and restore are performed when an AppFreeze occurs. If an application is killed in control mode, the application state will be restored upon next startup. ## Available APIs -The application recovery APIs are provided by the **appRecovery** module, which can be imported via **import**. For details, please refer to [Development Example](#development-example). This document describes behaviors of APIs in API version 9, and the content will update with changes. +The application recovery APIs are provided by the **appRecovery** module, which can be imported via **import**. For details, see [Development Example](#development-example). ### Available APIs -| API | Description | -| ------------------------------------------------------------ | ------------------------------------------------------------ | -| enableAppRecovery(restart?: RestartFlag, saveOccasion?: SaveOccasionFlag, saveMode?: SaveModeFlag) : void; | Enables the application recovery function. | -| saveAppState(): boolean; | Saves the ability status of an application. | -| restartApp(): void; | Restarts the current process. If there is saved ability status, it will be passed to the **want** parameter's **wantParam** attribute of the **onCreate** lifecycle callback of the ability.| +| API | Description | +| ------------------------------------------------------------ | ---------------------------------------------------- | +| enableAppRecovery(restart?: RestartFlag, saveOccasion?: SaveOccasionFlag, saveMode?: SaveModeFlag) : void;9+ | Enables application recovery. After this API is called, the first ability that is displayed when the application is started from the initiator can be restored.| +| saveAppState(): boolean;9+ | Saves the state of the ability that supports recovery in the current application.| +| restartApp(): void;9+ | Restarts the current process and starts the ability specified by **setRestartWant**. If no ability is specified, a foreground ability that supports recovery is restarted.| +| saveAppState(context?: UIAbilityContext): boolean;10+ | Saves the ability state specified by **Context**.| +| setRestartWant(want: Want): void;10+ | Sets the abilities to restart when **restartApp** is actively called and **RestartFlag** is not **NO_RESTART**. The abilities must be under the same bundle name and must be a **UiAbility**.| + +No error will be thrown if the preceding APIs are used in the troubleshooting scenario. The following are some notes on API usage: + +**enableAppRecovery**: This API should be called during application initialization. For example, you can call this API in **onCreate** of **AbilityStage**. For details, see [Parameter Description](../reference/apis/js-apis-app-ability-appRecovery.md). + +**saveAppState**: After this API is called, the recovery framework invokes **onSaveState** for all abilities that support recovery in the current process. If you choose to save data in **onSaveState**, the related data and ability page stack are persistently stored in the local cache of the application. To save data of the specified ability, you need to specify the context corresponding to that ability. + +**setRestartWant**: This API specifies the ability to be restarted by **appRecovery**. -The APIs are used for troubleshooting and do not return any exception. Therefore, you need to be familiar with when they are used. +**restartApp**: After this API is called, the recovery framework kills the current process and restarts the ability specified by **setRestartWant**, with **APP_RECOVERY** set as the startup cause. In API version 9 and scenarios where an ability is not specified by **setRestartWant**, the last foreground ability that supports recovery is started. If the no foreground ability supports recovery, the application crashes. If a saved state is available for the restarted ability, the saved state is passed as the **wantParam** attribute in the **want** parameter of the ability's **onCreate** callback. -**enableAppRecovery**: This API should be called during application initialization. For example, you can call this API in **onCreate** of **AbilityStage**. For details, please refer to the [parameter description](../reference/apis/js-apis-app-ability-appRecovery.md). +### Application State Management +Since API version 10, application recovery is not limited to automatic restart in the case of an exception. Therefore, you need to understand when the application will load the saved state. +If the last exit of an application is not initiated by a user and a saved state is available for recovery, the startup reason is set to **APP_RECOVERY** when the application is started by the user next time, and the recovery state of the application is cleared. +The application recovery status flag is set when **saveAppState** is actively or passively called. The flag is cleared when the application exits normally or the saved state is consumed. (A normal exit is usually triggered by pressing the back key or clearing recent tasks.) -**saveAppState**: After this API is called, the framework calls back **onSaveState** of the ability. If data saving is agreed to in this method, relevant data and the page stack of the ability are persisted to the local cache of the application. +![Application recovery status management](./figures/application_recovery_status_management.png) -**restartApp**: After this API is called, the framework kills the current application process and restarts the ability in the foreground, with **APP_RECOVERY** specified as the startup cause. +### Application State Saving and Restore +API version 10 or later supports saving of the application state when an application is suspended. If a JsError occurs, **onSaveState** is called in the main thread. If an AppFreeze occurs, however, the main thread may be suspended, and therefore **onSaveState** is called in a non-main thread. The following figure shows the main service flow. -### Framework Fault Management Process +![Application recovery from the freezing state](./figures/application_recovery_from_freezing.png) +When the application is suspended, the callback is not executed in the JS thread. Therefore, you are advised not to use the imported dynamic Native library or access the **thread_local** object created by the main thread in the code of the **onSaveState** callback. + +### Framework Fault Management Fault management is an important way for applications to deliver a better user experience. The application framework offers three methods for application fault management: fault listening, fault rectification, and fault query. -- Fault listening refers to the process of registering [ErrorObserver](../reference/apis/js-apis-application-errorManager.md#errorobserver) via [errorManager](../reference/apis/js-apis-application-errorManager.md), listening for fault occurrence, and notifying the fault listener. +- Fault listening refers to the process of registering an [ErrorObserver](../reference/apis/js-apis-inner-application-errorObserver.md) via [errorManager](../reference/apis/js-apis-app-ability-errorManager.md), listening for faults, and notifying the listener of the faults. -- Fault rectification refers to [appRecovery](../reference/apis/js-apis-app-ability-appRecovery.md) and restarts an application to restore its status previous to a fault. +- Fault rectification refers to the process of restoring the application state and data through [appRecovery](../reference/apis/js-apis-app-ability-appRecovery.md). -- Fault query indicates that [faultLogger](../reference/apis/js-apis-faultLogger.md) obtains the fault information using its query API. +- Fault query is the process of calling APIs of [faultLogger](../reference/apis/js-apis-faultLogger.md) to obtain the fault information. -The figure below does not illustrate the time when [faultLogger](../reference/apis/js-apis-faultLogger.md) is called. You can refer to [LastExitReason](../reference/apis/js-apis-app-ability-abilityConstant.md#abilityconstantlastexitreason) passed during application initialization to determine whether to call [faultLogger](../reference/apis/js-apis-faultLogger.md) to query the information about the last fault. +The figure below does not illustrate the time when [faultLogger](../reference/apis/js-apis-faultLogger.md) is called. You can refer to the [LastExitReason](../reference/apis/js-apis-app-ability-abilityConstant.md#abilityconstantlastexitreason) passed during application initialization to determine whether to call [faultLogger](../reference/apis/js-apis-faultLogger.md) to query information about the previous fault. ![Fault rectification process](./figures/fault_rectification.png) +It is recommended that you call [errorManager](../reference/apis/js-apis-app-ability-errorManager.md) to handle the exception. After the processing is complete, you can call the **saveAppState** API and restart the application. +If you do not register [ErrorObserver](../reference/apis/js-apis-inner-application-errorObserver.md) or enable application recovery, the application process will exit according to the default processing logic of the system. Users can restart the application from the home screen. +If you have enabled application recovery, the recovery framework first checks whether application state saving is supported and whether the application state saving is enabled. If so, the recovery framework invokes [onSaveState](../reference/apis/js-apis-app-ability-uiAbility.md#uiabilityonsavestate) of the [Ability](../reference/apis/js-apis-app-ability-uiAbility.md). Finally, the application is restarted. -It is recommended that you call [errorManager](../reference/apis/js-apis-application-errorManager.md) to process the exception. After the processing is complete, you can call the status saving API and restart the application. -If you do not register [ErrorObserver](../reference/apis/js-apis-application-errorManager.md#errorobserver) or enable application recovery, the application process will exit according to the default processing logic of the system. Users can restart the application from the home screen. -If you have enabled application recovery, the framework first checks whether a fault allows for ability status saving and whether you have configured ability status saving. If so, [onSaveState](../reference/apis/js-apis-application-ability.md#abilityonsavestate) of [Ability](../reference/apis/js-apis-application-ability.md#ability) is called back. Finally, the application is restarted. - -### Scenarios Supported by Application Fault Management APIs +### Supported Application Recovery Scenarios Common fault types include JavaScript application crash, application freezing, and C++ application crash. Generally, an application is closed when a crash occurs. Application freezing occurs when the application does not respond. The fault type can be ignored for the upper layer of an application. The recovery framework implements fault management in different scenarios based on the fault type. -| Fault | Fault Listening| Status Saving| Automatic Restart| Log Query| -| ------------------------------------------------------------ | -------- | -------- | -------- | -------- | -| [JS_CRASH](../reference/apis/js-apis-faultLogger.md#faulttype) | Supported | Supported | Supported | Supported | -| [APP_FREEZE](../reference/apis/js-apis-faultLogger.md#faulttype) | Not supported | Not supported | Supported | Supported | -| [CPP_CRASH](../reference/apis/js-apis-faultLogger.md#faulttype) | Not supported | Not supported | Not supported | Supported | +| Fault | Fault Listening | State Saving| Automatic Restart| Log Query| +| ----------|--------- |--------- |--------- |--------- | +| [JS_CRASH](../reference/apis/js-apis-faultLogger.md#faulttype) | Supported|Supported|Supported|Supported| +| [APP_FREEZE](../reference/apis/js-apis-faultLogger.md#faulttype) | Not supported|Supported|Supported|Supported| +| [CPP_CRASH](../reference/apis/js-apis-faultLogger.md#faulttype) | Not supported|Not supported|Not supported|Supported| -**Status Saving** in the table header means status saving when a fault occurs. To protect user data as much as possible in the application freezing fault, you can adopt either the periodic or automatic way, and the latter will save user data when an ability is switched to the background. +**State Saving** in the table header means saving of the application state when a fault occurs. To protect user data as much as possible when an AppFreeze occurs, you can adopt either the periodic or automatic way, and the latter will save user data when an ability is switched to the background. @@ -78,11 +96,23 @@ export default class MyAbilityStage extends AbilityStage { appRecovery.SaveModeFlag.SAVE_WITH_FILE); } } +``` +### Enabling Application Recovery for the Specified Abilities +Generally, the ability configuration list is named **module.json5**. +```json +{ + "abilities": [ + { + "name": "EntryAbility", + "recoverable": true, + }] +} + ``` ### Saving and Restoring Data -After enabling **appRecovery**, you can use this function by either actively or passively saving the status and restoring data in the ability. +After enabling **appRecovery**, you can use this function by either actively or passively saving the application state and restoring data in the ability. The following is an example of **EntryAbility**: #### Importing the Service Package @@ -93,9 +123,9 @@ import appRecovery from '@ohos.app.ability.appRecovery'; import AbilityConstant from '@ohos.app.ability.AbilityConstant'; ``` -#### Actively Saving Status and Restoring Data +#### Actively Saving the Application State and Restoring Data -- Define and register the [ErrorObserver](../reference/apis/js-apis-application-errorManager.md#errorobserver) callback. +- Define and register the [ErrorObserver](../reference/apis/js-apis-inner-application-errorObserver.md) callback. ```ts var registerId = -1; @@ -108,7 +138,7 @@ import AbilityConstant from '@ohos.app.ability.AbilityConstant'; } onWindowStageCreate(windowStage) { - // Main window is created. Set a main page for this ability. + // Main window is created, set main page for this ability console.log("[Demo] EntryAbility onWindowStageCreate") globalThis.registerObserver = (() => { @@ -125,7 +155,7 @@ After the callback triggers **appRecovery.saveAppState()**, **onSaveState(state, ```ts onSaveState(state, wantParams) { - // Save application data. + // Ability has called to save app data console.log("[Demo] EntryAbility onSaveState") wantParams["myData"] = "my1234567"; return AbilityConstant.onSaveResult.ALL_AGREE; @@ -134,7 +164,7 @@ After the callback triggers **appRecovery.saveAppState()**, **onSaveState(state, - Restore data. -After the callback triggers **appRecovery.restartApp()**, the application is restarted. After the restart, **onCreate(want, launchParam)** of **EntryAbility** is called, and the saved data is in **parameters** of **want**. +After the callback triggers **appRecovery.restartApp()**, the application is restarted. After the restart, **onCreate(want, launchParam)** of **EntryAbility** is called, and the saved data is stored in **parameters** of **want**. ```ts storage: LocalStorage @@ -150,11 +180,11 @@ onCreate(want, launchParam) { } ``` -- Deregister **ErrorObserver callback**. +- Unregister the **ErrorObserver** callback. ```ts onWindowStageDestroy() { - // Main window is destroyed to release UI resources. + // Main window is destroyed, release UI related resources console.log("[Demo] EntryAbility onWindowStageDestroy") globalThis.unRegisterObserver = (() => { @@ -165,9 +195,9 @@ onWindowStageDestroy() { } ``` -#### Passively Saving Status and Restoring Data +#### Passively Saving the Application State and Restoring Data -This is triggered by the recovery framework. You do not need to register **ErrorObserver callback**. You only need to implement **onSaveState** of the ability for status saving and **onCreate** of the ability for data restoration. +This is triggered by the recovery framework. You do not need to register an **ErrorObserver** callback. You only need to implement **onSaveState** for application state saving and **onCreate** for data restore. ```ts export default class EntryAbility extends Ability { @@ -184,7 +214,7 @@ export default class EntryAbility extends Ability { } onSaveState(state, wantParams) { - // Save application data. + // Ability has called to save app data console.log("[Demo] EntryAbility onSaveState") wantParams["myData"] = "my1234567"; return AbilityConstant.onSaveResult.ALL_AGREE; diff --git a/en/application-dev/dfx/figures/application_recovery_from_freezing.png b/en/application-dev/dfx/figures/application_recovery_from_freezing.png new file mode 100644 index 0000000000000000000000000000000000000000..968b4cefc5e898209cdae117c7f9f667bc9fbd64 Binary files /dev/null and b/en/application-dev/dfx/figures/application_recovery_from_freezing.png differ diff --git a/en/application-dev/dfx/figures/application_recovery_status_management.png b/en/application-dev/dfx/figures/application_recovery_status_management.png new file mode 100644 index 0000000000000000000000000000000000000000..762504c1d1027be87233e589988be2091640191b Binary files /dev/null and b/en/application-dev/dfx/figures/application_recovery_status_management.png differ diff --git a/en/application-dev/dfx/figures/fault_rectification.png b/en/application-dev/dfx/figures/fault_rectification.png index 67aa40592f7bcad23e216222e898c1f1327a4efb..a178b2691616d406d2668806ffcd4f89c8ca82a3 100644 Binary files a/en/application-dev/dfx/figures/fault_rectification.png and b/en/application-dev/dfx/figures/fault_rectification.png differ diff --git a/en/application-dev/dfx/hiappevent-guidelines.md b/en/application-dev/dfx/hiappevent-guidelines.md index 9991e10c731d9130a7c1f52154e18ac19bce336d..640b9185ee236dbe0fb5dfe3808b14322a401a23 100644 --- a/en/application-dev/dfx/hiappevent-guidelines.md +++ b/en/application-dev/dfx/hiappevent-guidelines.md @@ -45,7 +45,7 @@ The following table provides only a brief description of related APIs. For detai The following example illustrates how to log and subscribe to button click events of users. -1. Create an eTS application project. In the displayed **Project** window, choose **entry** > **src** > **main** > **ets** > **entryability** > **EntryAbility.ts**, and double-click **EntryAbility.ts**. Then, add an event watcher to subscribe to button click events. The complete sample code is as follows: +1. Create an ArkTS application project. In the displayed **Project** window, choose **entry** > **src** > **main** > **ets** > **entryability** > **EntryAbility.ts**, and double-click **EntryAbility.ts**. Then, add an event watcher to subscribe to button click events. The complete sample code is as follows: ```js import hilog from '@ohos.hilog'; diff --git a/en/application-dev/faqs/faqs-device-management.md b/en/application-dev/faqs/faqs-device-management.md index dd836eb11abfbee3979f5a604eb5aa734d0d9112..ea71edd6c9940437e197be35e60a6638c73ae88d 100644 --- a/en/application-dev/faqs/faqs-device-management.md +++ b/en/application-dev/faqs/faqs-device-management.md @@ -2,23 +2,21 @@ ## How do I obtain the DPI of a device? -Applicable to: OpenHarmony SDK 3.2.2.5, stage model of API version 9 - -Import the **\@ohos.display** module and call the **getDefaultDisplay** API. +Applicable to: OpenHarmony 3.2 Beta5, stage model of API version 9 -Example: +Import the **@ohos.display** module and call the **getDefaultDisplaySync** API. +**Example** ``` import display from '@ohos.display'; -display.getDefaultDisplay((err, data) => { - if (err.code) { - console.error('Test Failed to obtain the default display object. Code: ' + JSON.stringify(err)); - return; - } - console.info('Test Succeeded in obtaining the default display object. Data:' + JSON.stringify(data)); - console.info('Test densityDPI:' + JSON.stringify(data.densityDPI)); -}); +let displayClass = null; +try { + displayClass = display.getDefaultDisplaySync(); + console.info('Test densityDPI:' + JSON.stringify(data.densityDPI)); +} catch (exception) { + console.error('Failed to obtain the default display object. Code: ' + JSON.stringify(exception)); +} ``` ## How do I obtain the type of the device where the application is running? diff --git a/en/application-dev/internationalization/intl-guidelines.md b/en/application-dev/internationalization/intl-guidelines.md index 7274514385795ec42b6e81924e34e71070a71ebf..fcac5325292b27f349f6c3dcadb627dca2dd0c03 100644 --- a/en/application-dev/internationalization/intl-guidelines.md +++ b/en/application-dev/internationalization/intl-guidelines.md @@ -2,7 +2,7 @@ The **intl** module provides basic i18n capabilities, such as time and date formatting, number formatting, and string sorting, through the standard i18n APIs defined in ECMA 402. For more details about APIs and their usage, see [intl](../reference/apis/js-apis-intl.md). -The [I18N](i18n-guidelines.md) module provides enhanced I18N capabilities through supplementary interfaces that are not defined in ECMA 402. It works with the Intl module to provide a complete suite of I18N capabilities. +The [i18n](../reference/apis/js-apis-i18n.md) module provides enhanced I18N capabilities through supplementary interfaces that are not defined in ECMA 402. It works with the Intl module to provide a complete suite of I18N capabilities. ## Setting Locale Information @@ -111,7 +111,7 @@ The [I18N](i18n-guidelines.md) module provides enhanced I18N capabilities throug let dateTimeFormat = new Intl.DateTimeFormat(); ``` - Alternatively, use your own locale and formatting parameters to create a **DateTimeFormat** object. Formatting parameters are optional. For a full list of formatting parameters, see [DateTimeOptions](../reference/apis/js-apis-intl.md#datetimeoptions). + Alternatively, use your own locale and formatting parameters to create a **DateTimeFormat** object. Formatting parameters are optional. For a full list of formatting parameters, see [DateTimeOptions](../reference/apis/js-apis-intl.md#datetimeoptions9). ```js let options = {dateStyle: "full", timeStyle: "full"}; @@ -150,7 +150,7 @@ The [I18N](i18n-guidelines.md) module provides enhanced I18N capabilities throug let resolvedOptions = dateTimeFormat.resolvedOptions(); // resolvedOptions = {"locale": "zh-CN", "calendar": "gregorian", "dateStyle":"full", "timeStyle":"full", "timeZone": "CST"} ``` -## Number Formatting +## Formatting Numbers [NumberFormat](../reference/apis/js-apis-intl.md#numberformat) provides APIs to implement the number formatting specific to a locale. @@ -181,7 +181,7 @@ The [I18N](i18n-guidelines.md) module provides enhanced I18N capabilities throug let numberFormat = new Intl.NumberFormat(); ``` - Alternatively, use your own locale and formatting parameters to create a **NumberFormat** object. Formatting parameters are optional. For a full list of formatting parameters, see [NumberOptions](../reference/apis/js-apis-intl.md#numberoptions). + Alternatively, use your own locale and formatting parameters to create a **NumberFormat** object. Formatting parameters are optional. For a full list of formatting parameters, see [NumberOptions](../reference/apis/js-apis-intl.md#numberoptions9). ```js let options = {compactDisplay: "short", notation: "compact"}; @@ -209,7 +209,7 @@ The [I18N](i18n-guidelines.md) module provides enhanced I18N capabilities throug let resolvedOptions = numberFormat.resolvedOptions(); // resolvedOptions = {"locale": "zh-CN", "compactDisplay": "short", "notation": "compact", "numberingSystem": "Latn"} ``` -## String Sorting +## Sorting Strings Users in different regions have different requirements for string sorting. [Collator](../reference/apis/js-apis-intl.md#collator8) provides APIs to sort character strings specific to a locale. @@ -317,7 +317,7 @@ According to grammars in certain languages, the singular or plural form of a nou let categoryResult = pluralRules.select(number); // categoryResult = "other" ``` -## Formatting Relative Time +## Formatting the Relative Time [RelativeTimeFormat](../reference/apis/js-apis-intl.md#relativetimeformat8) provides APIs to format the relative time for a specific locale. @@ -385,9 +385,3 @@ According to grammars in certain languages, the singular or plural form of a nou 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"} ``` - -## Samples - -The following sample is provided to help you better understand how to develop internationalization capabilities: - --[`International`: Internationalization (ArkTS) (API9) (Full SDK)] (https://gitee.com/openharmony/applications_app_samples/tree/master/code/SystemFeature/Internationalnation/International) diff --git a/en/application-dev/quick-start/arkts-rendering-control.md b/en/application-dev/quick-start/arkts-rendering-control.md index c59ee04dccef3411c25326851c446dcdd3f7164f..13904097ef69fc988fe3b1ed8d5a98714c38c2aa 100644 --- a/en/application-dev/quick-start/arkts-rendering-control.md +++ b/en/application-dev/quick-start/arkts-rendering-control.md @@ -256,7 +256,7 @@ struct MyComponent { this.data.pushData('/path/image' + this.data.totalCount() + '.png') }) }, item => item) - } + }.height('100%').width('100%') } } ``` diff --git a/en/application-dev/quick-start/cross-app-hsp.md b/en/application-dev/quick-start/cross-app-hsp.md index 15345c966babd31b925d29160325eaf66e5b1140..db971e348908dbc6f6ca87f5d84d162b6bac0997 100644 --- a/en/application-dev/quick-start/cross-app-hsp.md +++ b/en/application-dev/quick-start/cross-app-hsp.md @@ -7,7 +7,7 @@ The host application of an inter-application HSP is a special form of applicatio 1. The code of an inter-application HSP runs in the application process. When invoking the code, implement an exception capture and fault tolerance mechanism to avoid stability issues caused by malfunctioning of the inter-application HSP. 2. An application can depend on multiple inter-application HSP files at the same time. 3. The inter-application HSP may slow down the startup of the application that depends on it. To avoid significant increase in the startup delay, limit the number of inter-application HSP dependencies within 16. -4. Third-party developers can only use the system-provided inter-application HSP files. +4. Privilege verification is conducted during inter-application HSP installation. To develop an inter-application HSP, you must configure the **allowAppShareLibrary** application privilege. For details, see [Application Privilege Configuration Guide](../../device-dev/subsystems/subsys-app-privilege-config-guide.md). ## Inter-Application HSP Usage An inter-application HSP works by combining the following parts: @@ -23,7 +23,7 @@ src ├── main | └── module.json5 ├── index.d.ets -└── package.json +└── oh-package.json5 ``` Below is an example of the **index.d.ets** file content: ```ts @@ -40,7 +40,7 @@ export declare function foo2(): string; export declare function nativeHello(): string; ``` -In the example, **UIComponent** is an ArkUI component, **hello()**, **foo1()**, and **foo2()** are TS methods, and **nativeHello()** is an native method. Specific implementation is as follows: +In the example, **UIComponent** is an ArkUI component, **hello()**, **foo1()**, and **foo2()** are TS methods, and **nativeHello()** is a native method. Specific implementation is as follows: #### ArkUI Components The following is an implementation example of ArkUI components in the HSP: ```ts @@ -117,7 +117,7 @@ extern "C" __attribute__((constructor)) void RegisterLibaModule(void) { } ``` ### Using the Capabilities Exported from the HAR -To start with, [configure dependency](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-development-npm-package-0000001222578434#section89674298391) on the HAR. The dependency information will then be generated in the **module.json** file of the corresponding module, as shown in the following: +To start with, [configure dependency](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-development-npm-package-0000001222578434#section89674298391) on the HAR. The dependency information will then be generated in the **module.json5** file of the corresponding module, as shown in the following: ```json "dependencies": [ { diff --git a/en/application-dev/quick-start/full-sdk-switch-guide.md b/en/application-dev/quick-start/full-sdk-switch-guide.md index 87289c7776cb3dc33b73abc25cb3ef2da06e6eca..c5b0788516215c4ccd7a53fd0482afa4221b9644 100644 --- a/en/application-dev/quick-start/full-sdk-switch-guide.md +++ b/en/application-dev/quick-start/full-sdk-switch-guide.md @@ -16,7 +16,7 @@ Manually download the system-specific full SDK package from the mirror. For deta ## Checking the Local SDK Location -In this example, an eTS project is used. For a JS project, replace **ets** with **js**. +In this example, an ArkTS project is used. For a JS project, replace **ets** with **js**. In DevEco Studio, choose **Tools** > **OpenHarmony SDK Manager** to check the location of the local SDK. diff --git a/en/application-dev/quick-start/har-package.md b/en/application-dev/quick-start/har-package.md index 71cc22a71f970d6fe9e7d3638b36da0e16b9d8de..63b5fcfd10437ac2140a17bcc1daf690e780c791 100644 --- a/en/application-dev/quick-start/har-package.md +++ b/en/application-dev/quick-start/har-package.md @@ -30,7 +30,7 @@ When obfuscation is enabled, DevEco Studio compiles, obfuscates, and compresses - The HAR of the stage model cannot reference content in the **AppScope** folder. This is because the content in the **AppScope** folder is not packaged into the HAR during compilation and building. ## Exporting ArkUI Components, APIs, and Resources of the HAR -The **index.ets** file acts as the entry of the HAR export declaration file and is where the HAR exports APIs. This file is automatically generated by DevEco Studio by default. You can specify another file as the entry declaration file in the **main** field in the **package.json** file of the module. The code snippet is as follows: +The **index.ets** file acts as the entry of the HAR export declaration file and is where the HAR exports APIs. This file is automatically generated by DevEco Studio by default. You can specify another file as the entry declaration file in the **main** field in the **oh-package.json5** file of the module. The code snippet is as follows: ```json { "main": "index.ets" diff --git a/en/application-dev/quick-start/in-app-hsp.md b/en/application-dev/quick-start/in-app-hsp.md index 05380e9c6f3f3e631c56955128318d394a97f774..cdd06b5dfb59a2c9609a7f327c95bae710943d3d 100644 --- a/en/application-dev/quick-start/in-app-hsp.md +++ b/en/application-dev/quick-start/in-app-hsp.md @@ -15,7 +15,7 @@ library │ │ └── index.ets │ ├── resources │ └── module.json5 -└── package.json +└── oh-package.json5 ``` In the **module.json5** file, set **type** to **shared** for the HSP. ```json @@ -24,7 +24,7 @@ In the **module.json5** file, set **type** to **shared** for the HSP. } ``` -The HSP provides capabilities for external systems by exporting APIs in the entry file. Specify the entry file in **main** in the **package.json** file. For example: +The HSP provides capabilities for external systems by exporting APIs in the entry file. Specify the entry file in **main** in the **oh-package.json5** file. For example: ```json { "main": "./src/main/ets/index.ets" @@ -103,9 +103,9 @@ export { nativeMulti } from './utils/nativeTest' ``` ## Using the In-Application HSP -To use APIs in the HSP, first configure the dependency on the HSP in the **package.json** file of the module that needs to call the APIs (called the invoking module). If the HSP and the invoking module are in the same project, the APIs can be referenced locally. The sample code is as follows: +To use APIs in the HSP, first configure the dependency on the HSP in the **oh-package.json5** file of the module that needs to call the APIs (called the invoking module). If the HSP and the invoking module are in the same project, the APIs can be referenced locally. The sample code is as follows: ```json -// entry/src/main/module.json5 +// entry/oh-package.json5 "dependencies": { "library": "file:../library" } diff --git a/en/application-dev/quick-start/start-with-ets-fa.md b/en/application-dev/quick-start/start-with-ets-fa.md index 23709abc5c2ba7e9b14ef9f396e9731a9f94e136..c806eebac3e5f266cd0ba6859ef7eb75727af243 100644 --- a/en/application-dev/quick-start/start-with-ets-fa.md +++ b/en/application-dev/quick-start/start-with-ets-fa.md @@ -20,7 +20,7 @@ > **NOTE** > - > If you are using DevEco Studio V3.0 Beta3 or later, you can use the [low-code development](https://developer.harmonyos.com/en/docs/documentation/doc-guides/ohos-low-code-development-0000001218440652) mode apart from the traditional coding approach. + > If you are using DevEco Studio V3.0 Beta3 or later, you can use the low-code development mode apart from the traditional coding approach. > > On the low-code development pages, you can design your application UI in an efficient, intuitive manner, with a wide array of UI editing features. > @@ -34,7 +34,7 @@ ![en-us_image_0000001384652328](figures/en-us_image_0000001384652328.png) - **entry**: OpenHarmony project module, which can be built into an OpenHarmony Ability Package ([HAP](../../glossary.md#hap)). - - **src > main > ets**: a collection of eTS source code. + - **src > main > ets**: a collection of ArkTS source code. - **src > main > ets > MainAbility**: entry to your application/service. - **src > main > ets > MainAbility > pages**: pages contained in **MainAbility**. - **src > main > ets > MainAbility > pages > index.ets**: the first page in the **pages** list, also referred to as the entry to the application. diff --git a/en/application-dev/quick-start/start-with-ets-stage.md b/en/application-dev/quick-start/start-with-ets-stage.md index d9527e8fe83bf0173e688296c5cab2e8aff651b8..eece0ad295ee138ccf353345a78fc1eca7cf3715 100644 --- a/en/application-dev/quick-start/start-with-ets-stage.md +++ b/en/application-dev/quick-start/start-with-ets-stage.md @@ -20,7 +20,7 @@ > **NOTE** > - > You can use the [low-code development](https://developer.harmonyos.com/en/docs/documentation/doc-guides/ohos-low-code-development-0000001218440652) mode apart from the traditional coding approach. + > You can use the low-code development mode apart from the traditional coding approach. > > On the low-code development pages, you can design your application UI in an efficient, intuitive manner, with a wide array of UI editing features. > @@ -34,7 +34,7 @@ ![en-us_image_0000001364054489](figures/en-us_image_0000001364054489.png) - **entry**: OpenHarmony project module, which can be built into an OpenHarmony Ability Package ([HAP](../../glossary.md#hap)). - - **src > main > ets**: a collection of eTS source code. + - **src > main > ets**: a collection of ArkTS source code. - **src > main > ets > entryability**: entry to your application/service. - **src > main > ets > pages**: pages included in your application/service. - **src > main > resources**: a collection of resource files used by your application/service, such as graphics, multimedia, character strings, and layout files. For details about resource files, see [Resource Categories and Access](resource-categories-and-access.md#resource-categories). diff --git a/en/application-dev/quick-start/start-with-js-fa.md b/en/application-dev/quick-start/start-with-js-fa.md index 7e1123d97f8af188bbb97849551cd6a499042a9f..15af85cd0dfadab9573d38e3d95e3671448550de 100644 --- a/en/application-dev/quick-start/start-with-js-fa.md +++ b/en/application-dev/quick-start/start-with-js-fa.md @@ -18,7 +18,7 @@ > **NOTE** > - > If you are using DevEco Studio V2.2 Beta1 or later, you can use the [low-code development](https://developer.harmonyos.com/en/docs/documentation/doc-guides/ohos-low-code-development-0000001218440652) mode apart from the traditional coding approach. + > If you are using DevEco Studio V2.2 Beta1 or later, you can use the low-code development mode apart from the traditional coding approach. > > On the low-code development pages, you can design your application UI in an efficient, intuitive manner, with a wide array of UI editing features. > diff --git a/en/application-dev/reference/apis/Readme-EN.md b/en/application-dev/reference/apis/Readme-EN.md index 8b73384ec9064e0b7adb64c29529c909489edd74..1e54b4855892e964dd3445764e0b5abc39c66d3b 100644 --- a/en/application-dev/reference/apis/Readme-EN.md +++ b/en/application-dev/reference/apis/Readme-EN.md @@ -230,8 +230,6 @@ - [@ohos.data.preferences (Preferences)](js-apis-data-preferences.md) - [@ohos.data.relationalStore (RDB Store)](js-apis-data-relationalStore.md) - [@ohos.data.ValuesBucket (Value Bucket)](js-apis-data-valuesBucket.md) - - data/rdb - - [resultSet (Result Set)](js-apis-data-resultset.md) - File Management - [@ohos.file.environment (Directory Environment Capability)](js-apis-file-environment.md) @@ -240,7 +238,7 @@ - [@ohos.file.fileUri (File URI)](js-apis-file-fileUri.md) - [@ohos.file.fs (File Management)](js-apis-file-fs.md) - [@ohos.file.hash (File Hash Processing)](js-apis-file-hash.md) - - [@ohos.file.picker (Picker)](js-apis-file-picker.md) + - [@ohos.file.picker (File Picker)](js-apis-file-picker.md) - [@ohos.file.securityLabel (Data Label)](js-apis-file-securityLabel.md) - [@ohos.file.statvfs (File System Space Statistics)](js-apis-file-statvfs.md) - [@ohos.file.storageStatistics (Application Storage Statistics)](js-apis-file-storage-statistics.md) @@ -268,7 +266,7 @@ - [@ohos.request (Upload and Download)](js-apis-request.md) - Connectivity - - [@ohos.bluetooth (Bluetooth)](js-apis-bluetooth.md) + - [@ohos.bluetoothManager (Bluetooth)(js-apis-bluetoothManager.md) - [@ohos.connectedTag (Active Tags)](js-apis-connectedTag.md) - [@ohos.nfc.cardEmulation (Standard NFC Card Emulation)](js-apis-cardEmulation.md) - [@ohos.nfc.controller (Standard NFC)](js-apis-nfcController.md) @@ -392,6 +390,7 @@ - APIs No Longer Maintained - [@ohos.backgroundTaskManager (Background Task Management)](js-apis-backgroundTaskManager.md) + - [@ohos.bluetooth (Bluetooth)](js-apis-bluetooth.md) - [@ohos.bundle (Bundle)](js-apis-Bundle.md) - [@ohos.bundle.innerBundleManager (innerBundleManager)](js-apis-Bundle-InnerBundleManager.md) - [@ohos.bundleState (Device Usage Statistics)](js-apis-deviceUsageStatistics.md) @@ -446,3 +445,5 @@ - [PermissionDef](js-apis-bundle-PermissionDef.md) - [remoteAbilityInfo](js-apis-bundle-remoteAbilityInfo.md) - [shortcutInfo](js-apis-bundle-ShortcutInfo.md) + - data/rdb + - [resultSet (Result Set)](js-apis-data-resultset.md) \ No newline at end of file diff --git a/en/application-dev/reference/apis/js-apis-abilityAccessCtrl.md b/en/application-dev/reference/apis/js-apis-abilityAccessCtrl.md index 874518b0e5ca7692fd902f26bcf49b07719eefc5..d4b34e125d2d723f1825aca53a801b1a729c5b9b 100644 --- a/en/application-dev/reference/apis/js-apis-abilityAccessCtrl.md +++ b/en/application-dev/reference/apis/js-apis-abilityAccessCtrl.md @@ -64,7 +64,7 @@ For details about the error codes, see [Application Access Control Error Codes]( | ID| Error Message| | -------- | -------- | -| 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256. | +| 12100001 | The parameter is invalid. The tokenID is 0, or the permissionName is greater than 256 bytes. | **Example** @@ -111,7 +111,7 @@ For details about the error codes, see [Application Access Control Error Codes]( | ID| Error Message| | -------- | -------- | -| 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256. | +| 12100001 | The parameter is invalid. The tokenID is 0, or the permissionName is greater than 256 bytes. | **Example** @@ -154,7 +154,7 @@ For details about the error codes, see [Application Access Control Error Codes]( | ID| Error Message| | -------- | -------- | -| 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256, or the flags value is invalid. | +| 12100001 | The parameter is invalid. The tokenID is 0, the permissionName is greater than 256 bytes, or the flags value is invalid. | | 12100002 | The specified tokenID does not exist. | | 12100003 | The specified permission does not exist. | | 12100006 | The application specified by the tokenID is not allowed to be granted with the specified permission. Either the application is a sandbox or the tokenID is from a remote device. | @@ -206,7 +206,7 @@ For details about the error codes, see [Application Access Control Error Codes]( | ID| Error Message| | -------- | -------- | -| 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256, or the flags value is invalid. | +| 12100001 | The parameter is invalid. The tokenID is 0, the permissionName is greater than 256 bytes, or the flags value is invalid. | | 12100002 | TokenId does not exist. | | 12100003 | Permission does not exist. | | 12100006 | The application specified by the tokenID is not allowed to be granted with the specified permission. Either the application is a sandbox or the tokenID is from a remote device. | @@ -265,7 +265,7 @@ For details about the error codes, see [Application Access Control Error Codes]( | ID| Error Message| | -------- | -------- | -| 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256, or the flags value is invalid. | +| 12100001 | The parameter is invalid. The tokenID is 0, the permissionName is greater than 256 bytes, or the flags value is invalid. | | 12100002 | The specified tokenID does not exist. | | 12100003 | The specified permission does not exist. | | 12100006 | The application specified by the tokenID is not allowed to be revoked with the specified permission. Either the application is a sandbox or the tokenID is from a remote device. | @@ -317,7 +317,7 @@ For details about the error codes, see [Application Access Control Error Codes]( | ID| Error Message| | -------- | -------- | -| 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256, or the flags value is invalid. | +| 12100001 | The parameter is invalid. The tokenID is 0, the permissionName is greater than 256 bytes, or the flags value is invalid. | | 12100002 | TokenId does not exist. | | 12100003 | Permission does not exist. | | 12100006 | The application specified by the tokenID is not allowed to be revoked with the specified permission. Either the application is a sandbox or the tokenID is from a remote device. | @@ -375,7 +375,7 @@ For details about the error codes, see [Application Access Control Error Codes]( | ID| Error Message| | -------- | -------- | -| 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256. | +| 12100001 | The parameter is invalid. The tokenID is 0, or the permissionName is greater than 256 bytes. | | 12100002 | The specified tokenID does not exist. | | 12100003 | The specified permission does not exist. | | 12100006 | The operation is not allowed. Either the application is a sandbox or the tokenID is from a remote device. | @@ -452,7 +452,7 @@ For details about the error codes, see [Application Access Control Error Codes]( | ID| Error Message| | -------- | -------- | -| 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256. | +| 12100001 | The parameter is invalid. The tokenID is 0, or the permissionName is greater than 256 bytes. | | 12100004 | The interface is called repeatedly with the same input. | | 12100005 | The registration time has exceeded the limitation. | | 12100007 | Service is abnormal. | diff --git a/en/application-dev/reference/apis/js-apis-app-form-formInfo.md b/en/application-dev/reference/apis/js-apis-app-form-formInfo.md index 09a6ae02c63c18073836925ad9b6399e48fdd67d..ab73d920af1c1b76825049c63b5560d8e82390ac 100644 --- a/en/application-dev/reference/apis/js-apis-app-form-formInfo.md +++ b/en/application-dev/reference/apis/js-apis-app-form-formInfo.md @@ -47,7 +47,7 @@ Enumerates the widget types. | Name | Value | Description | | ----------- | ---- | ------------ | | JS | 1 | JS widget. | -| eTS | 2 | eTS widget.| +| eTS | 2 | ArkTS widget.| ## ColorMode diff --git a/en/application-dev/reference/apis/js-apis-appAccount.md b/en/application-dev/reference/apis/js-apis-appAccount.md index 5b2b923deeb737e90cd173b822e65a35b00e741a..8c8b4c4c6e4bf167b513a2956e3a5df8c282fa22 100644 --- a/en/application-dev/reference/apis/js-apis-appAccount.md +++ b/en/application-dev/reference/apis/js-apis-appAccount.md @@ -148,7 +148,6 @@ Creates an app account with custom data. This API uses a promise to return the r | 12300002 | Invalid name or options. | | 12300004 | Account already exists. | | 12300007 | The number of accounts reaches the upper limit. | -| 12400003 | The number of custom data reaches the upper limit. | **Example** @@ -248,7 +247,7 @@ Creates an app account implicitly based on the specified account owner and optio | ID| Error Message| | ------- | ------- | | 12300001 | System service exception. | -| 12300002 | Invalid name or options. | +| 12300002 | Invalid owner or options. | | 12300007 | The number of accounts reaches the upper limit. | | 12300010 | Account service busy. | | 12300113 | Authenticator service not found. | @@ -481,7 +480,6 @@ Checks whether an app can access the data of an account. This API uses an asynch | 12300001 | System service exception. | | 12300002 | Invalid name or bundleName. | | 12300003 | Account not found. | -| 12400001 | Application not found. | **Example** @@ -527,7 +525,6 @@ Checks whether an app can access the data of an account. This API uses a promise | 12300001 | System service exception. | | 12300002 | Invalid name or bundleName. | | 12300003 | Account not found. | -| 12400001 | Application not found. | **Example** @@ -903,7 +900,7 @@ Sets custom data for an app account. This API uses an asynchronous callback to r | ID| Error Message| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or key or value. | +| 12300002 | Invalid name, key, or value. | | 12300003 | Account not found. | | 12400003 | The number of custom data reaches the upper limit. | @@ -950,7 +947,7 @@ Sets custom data for an app account. This API uses a promise to return the resul | ID| Error Message| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or key or value. | +| 12300002 | Invalid name, key, or value. | | 12300003 | Account not found. | | 12400003 | The number of custom data reaches the upper limit. | @@ -1267,7 +1264,6 @@ Subscribes to account information changes of apps. | ------- | ------- | | 12300001 | System service exception. | | 12300002 | Invalid type or owners. | -| 12300011 | Callback has been registered. | | 12400001 | Application not found. | **Example** @@ -1304,7 +1300,6 @@ Unsubscribes from account information changes. | ------- | -------| | 12300001 | System service exception. | | 12300002 | Invalid type. | -| 12300012 | Callback has not been registered. | **Example** @@ -1347,7 +1342,7 @@ Authenticates an app account. This API uses an asynchronous callback to return t | ID| Error Message| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or owner or authType. | +| 12300002 | Invalid name, owner, or authType. | | 12300003 | Account not found. | | 12300010 | Account service busy. | | 12300113 | Authenticator service not found. | @@ -1410,8 +1405,8 @@ Authenticates an app account with customized options. This API uses an asynchron | ID| Error Message| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or owner or authType. | -| 12300003 | Account not exist. | +| 12300002 | Invalid name, owner, authType, or options. | +| 12300003 | Account not found. | | 12300010 | Account service busy. | | 12300113 | Authenticator service not found. | | 12300114 | Authenticator service exception. | @@ -1522,7 +1517,7 @@ Obtains the authorization token of the specified authentication type for an app | ID| Error Message| | ------- | ------- | | 12300001 | System service exception. | -| 12300002 | Invalid name or owner or authType. | +| 12300002 | Invalid name, owner, or authType. | | 12300003 | Account not found. | | 12300107 | AuthType not found. | @@ -1562,7 +1557,7 @@ Sets an authorization token of the specific authentication type for an app accou | ID| Error Message| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or authType or token. | +| 12300002 | Invalid name, authType, or token. | | 12300003 | Account not found. | | 12400004 | The number of token reaches the upper limit. | @@ -1609,7 +1604,7 @@ Sets an authorization token of the specific authentication type for an app accou | ID| Error Message| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or authType or token. | +| 12300002 | Invalid name, authType, or token. | | 12300003 | Account not found. | | 12400004 | The number of token reaches the upper limit. | @@ -1650,7 +1645,7 @@ Deletes the authorization token of the specified authentication type for an app | ID| Error Message| | ------- | ------- | | 12300001 | System service exception. | -| 12300002 | Invalid name or owner or authType or token. | +| 12300002 | Invalid name, owner, authType, or token. | | 12300003 | Account not found. | | 12300107 | AuthType not found. | @@ -1698,7 +1693,7 @@ Deletes the authorization token of the specified authentication type for an app | ID| Error Message| | ------- | ------- | | 12300001 | System service exception. | -| 12300002 | Invalid name or owner or authType or token. | +| 12300002 | Invalid name, owner, authType, or token. | | 12300003 | Account not found. | | 12300107 | AuthType not found. | @@ -1739,7 +1734,7 @@ Sets the visibility of an authorization token to an app. This API uses an asynch | ID| Error Message| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or authType or bundleName. | +| 12300002 | Invalid name, authType, or bundleName. | | 12300003 | Account not found. | | 12300107 | AuthType not found. | | 12400001 | Application not found. | @@ -1789,7 +1784,7 @@ Sets the visibility of an authorization token to an app. This API uses a promise | ID| Error Message| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or authType or bundleName. | +| 12300002 | Invalid name, authType, or bundleName. | | 12300003 | Account not found. | | 12300107 | AuthType not found. | | 12400001 | Application not found. | @@ -1831,10 +1826,9 @@ Checks the visibility of an authorization token of the specified authentication | ID| Error Message| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or authType or bundleName. | +| 12300002 | Invalid name, authType, or bundleName. | | 12300003 | Account not found. | | 12300107 | AuthType not found. | -| 12400001 | Application not found. | **Example** @@ -1879,10 +1873,9 @@ Checks the visibility of an authorization token of the specified authentication | ID| Error Message| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or authType or bundleName. | +| 12300002 | Invalid name, authType, or bundleName. | | 12300003 | Account not found. | | 12300107 | AuthType not found. | -| 12400001 | Application not found. | **Example** @@ -2281,7 +2274,7 @@ Checks whether an app account has specific labels. This API uses an asynchronous | ID| Error Message| | ------- | ------- | | 12300001 | System service exception. | -| 12300002 | Invalid name or owner or labels. | +| 12300002 | Invalid name, owner, or labels. | | 12300003 | Account not found. | | 12300010 | Account service busy. | | 12300113 | Authenticator service not found. | @@ -2331,7 +2324,7 @@ Checks whether an app account has specific labels. This API uses a promise to re | ID| Error Message| | ------- | ------- | | 12300001 | System service exception. | -| 12300002 | Invalid name or owner or labels. | +| 12300002 | Invalid name, owner, or labels. | | 12300003 | Account not found. | | 12300010 | Account service busy. | | 12300113 | Authenticator service not found. | @@ -2594,7 +2587,7 @@ Verifies the user credential. This API uses an asynchronous callback to return t | ID| Error Message| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or owner or options. | +| 12300002 | Invalid name, owner, or options. | | 12300003 | Account not found. | | 12300010 | Account service busy. | | 12300113 | Authenticator service not found. | diff --git a/en/application-dev/reference/apis/js-apis-bluetooth.md b/en/application-dev/reference/apis/js-apis-bluetooth.md index b1528f9e2fa160f1616ba9a86370d4a6d721546b..f22961f16809055e3ab560afb78750e42030aec3 100644 --- a/en/application-dev/reference/apis/js-apis-bluetooth.md +++ b/en/application-dev/reference/apis/js-apis-bluetooth.md @@ -4,7 +4,8 @@ The **Bluetooth** module provides classic Bluetooth capabilities and Bluetooth L > **NOTE** > -> The initial APIs of this module are supported since API version 7. 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 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> - The APIs provided by this module are no longer maintained since API version 9. You are advised to use [bluetoothManager](js-apis-bluetoothManager.md). @@ -15,12 +16,15 @@ import bluetooth from '@ohos.bluetooth'; ``` -## bluetooth.enableBluetooth8+ +## bluetooth.enableBluetooth8+(deprecated) enableBluetooth(): boolean Enables Bluetooth. +> **NOTE** +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.enableBluetooth](js-apis-bluetoothManager.md#bluetoothmanagerenablebluetooth). + **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -38,12 +42,15 @@ let enable = bluetooth.enableBluetooth(); ``` -## bluetooth.disableBluetooth8+ +## bluetooth.disableBluetooth8+(deprecated) disableBluetooth(): boolean Disables Bluetooth. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.disableBluetooth](js-apis-bluetoothManager.md#bluetoothmanagerdisablebluetooth). + **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -61,12 +68,15 @@ let disable = bluetooth.disableBluetooth(); ``` -## bluetooth.getLocalName8+ +## bluetooth.getLocalName8+(deprecated) getLocalName(): string Obtains the name of the local Bluetooth device. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.getLocalName](js-apis-bluetoothManager.md#bluetoothmanagergetlocalname). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -84,12 +94,15 @@ let localName = bluetooth.getLocalName(); ``` -## bluetooth.getState +## bluetooth.getState(deprecated) getState(): BluetoothState Obtains the Bluetooth state. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.getState](js-apis-bluetoothManager.md#bluetoothmanagergetstate). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -107,11 +120,14 @@ let state = bluetooth.getState(); ``` -## bluetooth.getBtConnectionState +## bluetooth.getBtConnectionState(deprecated) getBtConnectionState(): ProfileConnectionState -Obtains the profile connection state of this Bluetooth device. +Obtains the local profile connection state. + +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.getBtConnectionState](js-apis-bluetoothManager.md#bluetoothmanagergetbtconnectionstate). **Required permissions**: ohos.permission.USE_BLUETOOTH @@ -130,12 +146,15 @@ let connectionState = bluetooth.getBtConnectionState(); ``` -## bluetooth.setLocalName8+ +## bluetooth.setLocalName8+(deprecated) setLocalName(name: string): boolean Sets the name of the local Bluetooth device. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.setLocalName](js-apis-bluetoothManager.md#bluetoothmanagersetlocalname). + **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -159,12 +178,15 @@ let ret = bluetooth.setLocalName('device_name'); ``` -## bluetooth.pairDevice +## bluetooth.pairDevice(deprecated) pairDevice(deviceId: string): boolean Initiates Bluetooth pairing. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.pairDevice](js-apis-bluetoothManager.md#bluetoothmanagerpairdevice). + **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -189,11 +211,14 @@ let result = bluetooth.pairDevice("XX:XX:XX:XX:XX:XX"); ``` -## bluetooth.getProfileConnState8+ +## bluetooth.getProfileConnState8+(deprecated) getProfileConnState(profileId: ProfileId): ProfileConnectionState -Obtains the connection state of a profile. +Obtains the connection status of a specified profile. + +> **NOTE** +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.getProfileConnectionState](js-apis-bluetoothManager.md#bluetoothmanagergetprofileconnectionstate). **Required permissions**: ohos.permission.USE_BLUETOOTH @@ -218,12 +243,15 @@ let result = bluetooth.getProfileConnState(bluetooth.ProfileId.PROFILE_A2DP_SOUR ``` -## bluetooth.cancelPairedDevice8+ +## bluetooth.cancelPairedDevice8+(deprecated) cancelPairedDevice(deviceId: string): boolean Cancels a paired remote device. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.cancelPairedDevice](js-apis-bluetoothManager.md#bluetoothmanagercancelpaireddevice). + **System API**: This is a system API. **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH @@ -249,12 +277,15 @@ let result = bluetooth.cancelPairedDevice("XX:XX:XX:XX:XX:XX"); ``` -## bluetooth.getRemoteDeviceName8+ +## bluetooth.getRemoteDeviceName8+(deprecated) getRemoteDeviceName(deviceId: string): string Obtains the name of the remote Bluetooth device. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.getRemoteDeviceName](js-apis-bluetoothManager.md#bluetoothmanagergetremotedevicename). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -278,12 +309,15 @@ let remoteDeviceName = bluetooth.getRemoteDeviceName("XX:XX:XX:XX:XX:XX"); ``` -## bluetooth.getRemoteDeviceClass8+ +## bluetooth.getRemoteDeviceClass8+(deprecated) getRemoteDeviceClass(deviceId: string): DeviceClass Obtains the class of the remote Bluetooth device. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.getRemoteDeviceClass](js-apis-bluetoothManager.md#bluetoothmanagergetremotedeviceclass). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -307,12 +341,15 @@ let remoteDeviceClass = bluetooth.getRemoteDeviceClass("XX:XX:XX:XX:XX:XX"); ``` -## bluetooth.getPairedDevices8+ +## bluetooth.getPairedDevices8+(deprecated) getPairedDevices(): Array<string> Obtains the paired devices. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.getPairedDevices](js-apis-bluetoothManager.md#bluetoothmanagergetpaireddevices). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -330,12 +367,15 @@ let devices = bluetooth.getPairedDevices(); ``` -## bluetooth.setBluetoothScanMode8+ +## bluetooth.setBluetoothScanMode8+(deprecated) setBluetoothScanMode(mode: ScanMode, duration: number): boolean Sets the Bluetooth scan mode so that the device can be discovered by a remote device. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.setBluetoothScanMode](js-apis-bluetoothManager.md#bluetoothmanagersetbluetoothscanmode). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -361,12 +401,15 @@ let result = bluetooth.setBluetoothScanMode(bluetooth.ScanMode.SCAN_MODE_CONNECT ``` -## bluetooth.getBluetoothScanMode8+ +## bluetooth.getBluetoothScanMode8+(deprecated) getBluetoothScanMode(): ScanMode Obtains the Bluetooth scan mode. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.getBluetoothScanMode](js-apis-bluetoothManager.md#bluetoothmanagergetbluetoothscanmode). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -384,12 +427,15 @@ let scanMode = bluetooth.getBluetoothScanMode(); ``` -## bluetooth.startBluetoothDiscovery8+ +## bluetooth.startBluetoothDiscovery8+(deprecated) startBluetoothDiscovery(): boolean Starts Bluetooth scan to discover remote devices. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.startBluetoothDiscovery](js-apis-bluetoothManager.md#bluetoothmanagerstartbluetoothdiscovery). + **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH and ohos.permission.LOCATION **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -412,12 +458,15 @@ let result = bluetooth.startBluetoothDiscovery(); ``` -## bluetooth.stopBluetoothDiscovery8+ +## bluetooth.stopBluetoothDiscovery8+(deprecated) stopBluetoothDiscovery(): boolean Stops Bluetooth scan. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.stopBluetoothDiscovery](js-apis-bluetoothManager.md#bluetoothmanagerstopbluetoothdiscovery). + **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -435,12 +484,15 @@ let result = bluetooth.stopBluetoothDiscovery(); ``` -## bluetooth.setDevicePairingConfirmation8+ +## bluetooth.setDevicePairingConfirmation8+(deprecated) setDevicePairingConfirmation(device: string, accept: boolean): boolean Sets the device pairing confirmation. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.setDevicePairingConfirmation](js-apis-bluetoothManager.md#bluetoothmanagersetdevicepairingconfirmation). + **Required permissions**: ohos.permission.MANAGE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -470,12 +522,15 @@ bluetooth.on("pinRequired", onReceivePinRequiredEvent); ``` -## bluetooth.on('bluetoothDeviceFind')8+ +## bluetooth.on('bluetoothDeviceFind')8+(deprecated) on(type: "bluetoothDeviceFind", callback: Callback<Array<string>>): void Subscribes to the Bluetooth device discovery events. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.on('bluetoothDeviceFind')](js-apis-bluetoothManager.md#bluetoothmanageronbluetoothdevicefind). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -501,12 +556,15 @@ bluetooth.on('bluetoothDeviceFind', onReceiveEvent); ``` -## bluetooth.off('bluetoothDeviceFind')8+ +## bluetooth.off('bluetoothDeviceFind')8+(deprecated) off(type: "bluetoothDeviceFind", callback?: Callback<Array<string>>): void Unsubscribes from the Bluetooth device discovery events. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.off('bluetoothDeviceFind')](js-apis-bluetoothManager.md#bluetoothmanageroffbluetoothdevicefind). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -533,12 +591,15 @@ bluetooth.off('bluetoothDeviceFind', onReceiveEvent); ``` -## bluetooth.on('pinRequired')8+ +## bluetooth.on('pinRequired')8+(deprecated) on(type: "pinRequired", callback: Callback<PinRequiredParam>): void Subscribes to the pairing request events of the remote Bluetooth device. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.on('pinRequired')](js-apis-bluetoothManager.md#bluetoothmanageronpinrequired). + **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -564,12 +625,15 @@ bluetooth.on('pinRequired', onReceiveEvent); ``` -## bluetooth.off('pinRequired')8+ +## bluetooth.off('pinRequired')8+(deprecated) off(type: "pinRequired", callback?: Callback<PinRequiredParam>): void Unsubscribes from the pairing request events of the remote Bluetooth device. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.off('pinRequired')](js-apis-bluetoothManager.md#bluetoothmanageroffpinrequired). + **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -596,12 +660,15 @@ bluetooth.off('pinRequired', onReceiveEvent); ``` -## bluetooth.on('bondStateChange')8+ +## bluetooth.on('bondStateChange')8+(deprecated) on(type: "bondStateChange", callback: Callback<BondStateParam>): void Subscribes to the Bluetooth pairing state change events. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.on('bondStateChange')](js-apis-bluetoothManager.md#bluetoothmanageronbondstatechange). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -627,12 +694,15 @@ bluetooth.on('bondStateChange', onReceiveEvent); ``` -## bluetooth.off('bondStateChange')8+ +## bluetooth.off('bondStateChange')8+(deprecated) off(type: "bondStateChange", callback?: Callback<BondStateParam>): void Unsubscribes from the Bluetooth pairing state change events. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.off('bondStateChange')](js-apis-bluetoothManager.md#bluetoothmanageroffbondstatechange). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -659,12 +729,15 @@ bluetooth.off('bondStateChange', onReceiveEvent); ``` -## bluetooth.on('stateChange')8+ +## bluetooth.on('stateChange')8+(deprecated) on(type: "stateChange", callback: Callback<BluetoothState>): void Subscribes to the Bluetooth connection state change events. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.on('stateChange')](js-apis-bluetoothManager.md#bluetoothmanageronstatechange). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -690,12 +763,15 @@ bluetooth.on('stateChange', onReceiveEvent); ``` -## bluetooth.off('stateChange')8+ +## bluetooth.off('stateChange')8+(deprecated) off(type: "stateChange", callback?: Callback<BluetoothState>): void Unsubscribes from the Bluetooth connection state change events. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.off('stateChange')](js-apis-bluetoothManager.md#bluetoothmanageroffstatechange). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -722,12 +798,15 @@ bluetooth.off('stateChange', onReceiveEvent); ``` -## bluetooth.sppListen8+ +## bluetooth.sppListen8+(deprecated) sppListen(name: string, option: SppOption, callback: AsyncCallback<number>): void Creates a server listening socket. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.sppListen](js-apis-bluetoothManager.md#bluetoothmanagerspplisten). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -757,12 +836,15 @@ bluetooth.sppListen('server1', sppOption, serverSocket); ``` -## bluetooth.sppAccept8+ +## bluetooth.sppAccept8+(deprecated) sppAccept(serverSocket: number, callback: AsyncCallback<number>): void Listens for a connection to be made to this socket from the client and accepts it. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.sppAccept](js-apis-bluetoothManager.md#bluetoothmanagersppaccept). + **System capability**: SystemCapability.Communication.Bluetooth.Core **Parameters** @@ -796,12 +878,15 @@ bluetooth.sppAccept(serverNumber, acceptClientSocket); ``` -## bluetooth.sppConnect8+ +## bluetooth.sppConnect8+(deprecated) sppConnect(device: string, option: SppOption, callback: AsyncCallback<number>): void Initiates an SPP connection to a remote device from the client. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.sppConnect](js-apis-bluetoothManager.md#bluetoothmanagersppconnect). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -832,12 +917,15 @@ bluetooth.sppConnect('XX:XX:XX:XX:XX:XX', sppOption, clientSocket); ``` -## bluetooth.sppCloseServerSocket8+ +## bluetooth.sppCloseServerSocket8+(deprecated) sppCloseServerSocket(socket: number): void Closes the listening socket of the server. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.sppCloseServerSocket](js-apis-bluetoothManager.md#bluetoothmanagersppcloseserversocket). + **System capability**: SystemCapability.Communication.Bluetooth.Core **Parameters** @@ -861,12 +949,15 @@ bluetooth.sppCloseServerSocket(serverNumber); ``` -## bluetooth.sppCloseClientSocket8+ +## bluetooth.sppCloseClientSocket8+(deprecated) sppCloseClientSocket(socket: number): void Closes the client socket. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.sppCloseClientSocket](js-apis-bluetoothManager.md#bluetoothmanagersppcloseclientsocket). + **System capability**: SystemCapability.Communication.Bluetooth.Core **Parameters** @@ -892,12 +983,15 @@ bluetooth.sppCloseClientSocket(clientNumber); ``` -## bluetooth.sppWrite8+ +## bluetooth.sppWrite8+(deprecated) sppWrite(clientSocket: number, data: ArrayBuffer): boolean Writes data to the remote device through the socket. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.sppWrite](js-apis-bluetoothManager.md#bluetoothmanagersppwrite). + **System capability**: SystemCapability.Communication.Bluetooth.Core **Parameters** @@ -937,10 +1031,13 @@ if (ret) { ``` -## bluetooth.on('sppRead')8+ +## bluetooth.on('sppRead')8+(deprecated) on(type: "sppRead", clientSocket: number, callback: Callback<ArrayBuffer>): void +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.on('sppRead')](js-apis-bluetoothManager.md#bluetoothmanageronsppread). + Subscribes to the SPP read request events. **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -977,12 +1074,15 @@ bluetooth.on('sppRead', clientNumber, dataRead); ``` -## bluetooth.off('sppRead')8+ +## bluetooth.off('sppRead')8+(deprecated) off(type: "sppRead", clientSocket: number, callback?: Callback<ArrayBuffer>): void Unsubscribes from the SPP read request events. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.off('sppRead')](js-apis-bluetoothManager.md#bluetoothmanageroffsppread). + **System capability**: SystemCapability.Communication.Bluetooth.Core **Parameters** @@ -1013,12 +1113,15 @@ bluetooth.off('sppRead', clientNumber); ``` -## bluetooth.getProfile8+ +## bluetooth.getProfile8+(deprecated) getProfile(profileId: ProfileId): A2dpSourceProfile | HandsFreeAudioGatewayProfile Obtains a profile object. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.getProfileInstance](js-apis-bluetoothManager.md#bluetoothmanagergetprofileinstance). + **System capability**: SystemCapability.Communication.Bluetooth.Core **Parameters** @@ -1039,41 +1142,18 @@ Obtains a profile object. let a2dpSrc = bluetooth.getProfile(bluetooth.ProfileId.PROFILE_A2DP_SOURCE); ``` -## bluetooth.getProfileInst9+ - -getProfileInst(profileId: ProfileId): A2dpSourceProfile | HandsFreeAudioGatewayProfile | HidHostProfile | PanProfile - -Obtains a profile instance. API version 9 is added with **HidHostProfile** and **PanProfile**. - -**System capability**: SystemCapability.Communication.Bluetooth.Core - -**Parameters** - -| Name | Type | Mandatory | Description | -| --------- | --------- | ---- | ------------------------------------- | -| profileId | [ProfileId](#ProfileId) | Yes | ID of the profile to obtain, for example, **PROFILE_A2DP_SOURCE**.| - -**Return value** - -| Type | Description | -| ------------------------------------------------------------ | ------------------------------------------------------------ | -| [A2dpSourceProfile](#a2dpsourceprofile), [HandsFreeAudioGatewayProfile](#handsfreeaudiogatewayprofile), [HidHostProfile](#hidhostprofile), or [PanProfile](#panprofile)| Profile instance obtained, which can be **A2dpSourceProfile**, **HandsFreeAudioGatewayProfile**, **HidHostProfile**, or **PanProfile**.| - -**Example** - -```js -let hidHost = bluetooth.getProfileInst(bluetooth.ProfileId.PROFILE_HID_HOST); -``` - ## bluetooth.BLE -### bluetooth.BLE.createGattServer +### bluetooth.BLE.createGattServer(deprecated) createGattServer(): GattServer Creates a **GattServer** instance. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BLE.createGattServer](js-apis-bluetoothManager.md#bluetoothmanagerblecreategattserver). + **System capability**: SystemCapability.Communication.Bluetooth.Core **Return value** @@ -1089,12 +1169,15 @@ let gattServer = bluetooth.BLE.createGattServer(); ``` -### bluetooth.BLE.createGattClientDevice +### bluetooth.BLE.createGattClientDevice(deprecated) createGattClientDevice(deviceId: string): GattClientDevice Creates a **GattClientDevice** instance. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BLE.createGattClientDevice](js-apis-bluetoothManager.md#bluetoothmanagerblecreategattclientdevice). + **System capability**: SystemCapability.Communication.Bluetooth.Core **Parameters** @@ -1116,12 +1199,15 @@ let device = bluetooth.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX'); ``` -### bluetooth.BLE.getConnectedBLEDevices +### bluetooth.BLE.getConnectedBLEDevices(deprecated) getConnectedBLEDevices(): Array<string> Obtains the BLE devices connected to this device. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BLE.getConnectedBLEDevices](js-apis-bluetoothManager.md#bluetoothmanagerblegetconnectedbledevices). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -1139,12 +1225,15 @@ let result = bluetooth.BLE.getConnectedBLEDevices(); ``` -### bluetooth.BLE.startBLEScan +### bluetooth.BLE.startBLEScan(deprecated) startBLEScan(filters: Array<ScanFilter>, options?: ScanOptions): void Starts a BLE scan. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BLE.startBLEScan](js-apis-bluetoothManager.md#bluetoothmanagerblestartblescan). + **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH, ohos.permission.MANAGE_BLUETOOTH, and ohos.permission.LOCATION **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -1182,12 +1271,15 @@ bluetooth.BLE.startBLEScan( ``` -### bluetooth.BLE.stopBLEScan +### bluetooth.BLE.stopBLEScan(deprecated) stopBLEScan(): void Stops the BLE scan. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BLE.stopBLEScan](js-apis-bluetoothManager.md#bluetoothmanagerblestopblescan). + **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -1203,12 +1295,15 @@ bluetooth.BLE.stopBLEScan(); ``` -### bluetooth.BLE.on('BLEDeviceFind') +### bluetooth.BLE.on('BLEDeviceFind')(deprecated) on(type: "BLEDeviceFind", callback: Callback<Array<ScanResult>>): void Subscribe to the BLE device discovery events. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BLE.on('BLEDeviceFind')](js-apis-bluetoothManager.md#bluetoothmanagerbleonbledevicefind). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -1234,12 +1329,15 @@ bluetooth.BLE.on('BLEDeviceFind', onReceiveEvent); ``` -### bluetooth.BLE.off('BLEDeviceFind') +### bluetooth.BLE.off('BLEDeviceFind')(deprecated) off(type: "BLEDeviceFind", callback?: Callback<Array<ScanResult>>): void Unsubscribes from the BLE device discovery events. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BLE.off('BLEDeviceFind')](js-apis-bluetoothManager.md#bluetoothmanagerbleoffbledevicefind). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -1271,12 +1369,15 @@ bluetooth.BLE.off('BLEDeviceFind', onReceiveEvent); Provides the profile base class. -### getConnectionDevices8+ +### getConnectionDevices8+(deprecated) getConnectionDevices(): Array<string> Obtains the connected devices. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.BaseProfile.getConnectionDevices](js-apis-bluetoothManager.md#getconnectiondevices). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -1294,12 +1395,15 @@ let a2dpSrc = bluetooth.getProfile(bluetooth.ProfileId.PROFILE_A2DP_SOURCE) as b let retArray = a2dpSrc.getConnectionDevices(); ``` -### getDeviceState8+ +### getDeviceState8+(deprecated) getDeviceState(device: string): ProfileConnectionState Obtains the connection state of the profile. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.BaseProfile.getDeviceState](js-apis-bluetoothManager.md#getdevicestate). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -1328,12 +1432,15 @@ let ret = a2dpSrc.getDeviceState('XX:XX:XX:XX:XX:XX'); Before using a method of **A2dpSourceProfile**, you need to create an instance of this class by using the **getProfile()** method. -### connect8+ +### connect8+(deprecated) connect(device: string): boolean Sets up an Advanced Audio Distribution Profile (A2DP) connection. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.A2dpSourceProfile.connect](js-apis-bluetoothManager.md#connect). + **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -1358,12 +1465,15 @@ let ret = a2dpSrc.connect('XX:XX:XX:XX:XX:XX'); ``` -### disconnect8+ +### disconnect8+(deprecated) disconnect(device: string): boolean Disconnects an A2DP connection. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.A2dpSourceProfile.disconnect](js-apis-bluetoothManager.md#disconnect). + **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -1388,12 +1498,15 @@ let ret = a2dpSrc.disconnect('XX:XX:XX:XX:XX:XX'); ``` -### on('connectionStateChange')8+ +### on('connectionStateChange')8+(deprecated) on(type: "connectionStateChange", callback: Callback<[StateChangeParam](#StateChangeParam)>): void Subscribes to the A2DP connection state change events. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.A2dpSourceProfile.on('connectionStateChange')](js-apis-bluetoothManager.md#onconnectionstatechange). + **System capability**: SystemCapability.Communication.Bluetooth.Core **Parameters** @@ -1418,12 +1531,15 @@ a2dpSrc.on('connectionStateChange', onReceiveEvent); ``` -### off('connectionStateChange')8+ +### off('connectionStateChange')8+(deprecated) off(type: "connectionStateChange", callback?: Callback<[StateChangeParam](#StateChangeParam)>): void Unsubscribes from the A2DP connection state change events. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.A2dpSourceProfile.off('connectionStateChange')](js-apis-bluetoothManager.md#offconnectionstatechange). + **System capability**: SystemCapability.Communication.Bluetooth.Core **Parameters** @@ -1431,7 +1547,7 @@ Unsubscribes from the A2DP connection state change events. | Name | Type | Mandatory | Description | | -------- | ---------------------------------------- | ---- | ---------------------------------------- | | type | string | Yes | Event type. The value **connectionStateChange** indicates an A2DP connection state change event.| -| callback | Callback<[StateChangeParam](#StateChangeParam)> | No | Callback used to return the A2DP connection state change event. | +| callback | Callback<[StateChangeParam](#StateChangeParam)> | No | Callback for the A2DP connection state change event. | **Return value** @@ -1449,12 +1565,15 @@ a2dpSrc.off('connectionStateChange', onReceiveEvent); ``` -### getPlayingState8+ +### getPlayingState8+(deprecated) getPlayingState(device: string): PlayingState Obtains the playing state of a device. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.A2dpSourceProfile.getPlayingState](js-apis-bluetoothManager.md#getplayingstate). + **System capability**: SystemCapability.Communication.Bluetooth.Core **Parameters** @@ -1482,12 +1601,15 @@ let state = a2dpSrc.getPlayingState('XX:XX:XX:XX:XX:XX'); Before using a method of **HandsFreeAudioGatewayProfile**, you need to create an instance of this class by using the **getProfile()** method. -### connect8+ +### connect8+(deprecated) connect(device: string): boolean Sets up a Hands-free Profile (HFP) connection of a device. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.HandsFreeAudioGatewayProfile.connect](js-apis-bluetoothManager.md#connect-1). + **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -1513,12 +1635,15 @@ let ret = hfpAg.connect('XX:XX:XX:XX:XX:XX'); ``` -### disconnect8+ +### disconnect8+(deprecated) disconnect(device: string): boolean Disconnects the HFP connection of a device. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.HandsFreeAudioGatewayProfile.disconnect](js-apis-bluetoothManager.md#disconnect-1). + **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -1544,12 +1669,15 @@ let ret = hfpAg.disconnect('XX:XX:XX:XX:XX:XX'); ``` -### on('connectionStateChange')8+ +### on('connectionStateChange')8+(deprecated) on(type: "connectionStateChange", callback: Callback<[StateChangeParam](#StateChangeParam)>): void Subscribes to the HFP connection state change events. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.HandsFreeAudioGatewayProfile.on('connectionStateChange')](js-apis-bluetoothManager.md#onconnectionstatechange-1). + **System capability**: SystemCapability.Communication.Bluetooth.Core **Parameters** @@ -1575,12 +1703,15 @@ hfpAg.on('connectionStateChange', onReceiveEvent); ``` -### off('connectionStateChange')8+ +### off('connectionStateChange')8+(deprecated) off(type: "connectionStateChange", callback?: Callback<[StateChangeParam](#StateChangeParam)>): void Unsubscribes from the HFP connection state change events. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.HandsFreeAudioGatewayProfile.off('connectionStateChange')](js-apis-bluetoothManager.md#offconnectionstatechange-1). + **System capability**: SystemCapability.Communication.Bluetooth.Core **Parameters** @@ -1607,301 +1738,20 @@ hfpAg.off('connectionStateChange', onReceiveEvent); ``` -## HidHostProfile - -Before using a method of **HidHostProfile**, you need to create an instance of this class by using the **getProfile()** method. - - -### connect9+ - -connect(device: string): boolean - -Connects to the HidHost service of a device. - -**System API**: This is a system API. - -**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH - -**System capability**: SystemCapability.Communication.Bluetooth.Core - -**Parameters** - -| Name | Type | Mandatory | Description | -| ------ | ------ | ---- | ------- | -| device | string | Yes | Address of the target device.| - -**Return value** - -| Type | Description | -| --------------------- | --------------------------------- | -| boolean | Returns **true** if the operation is successful; returns **false** otherwise.| - -**Example** - -```js -let hidHostProfile = bluetooth.getProfileInst(bluetooth.ProfileId.PROFILE_HID_HOST) as bluetooth.HidHostProfile; -let ret = hidHostProfile.connect('XX:XX:XX:XX:XX:XX'); -``` - - -### disconnect9+ - -disconnect(device: string): boolean - -Disconnects from the HidHost service of a device. - -**System API**: This is a system API. - -**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH - -**System capability**: SystemCapability.Communication.Bluetooth.Core - -**Parameters** - -| Name | Type | Mandatory | Description | -| ------ | ------ | ---- | ------- | -| device | string | Yes | Address of the target device.| - -**Return value** - -| Type | Description | -| --------------------- | --------------------------------- | -| boolean | Returns **true** if the operation is successful; returns **false** otherwise.| - -**Example** - -```js -let hidHostProfile = bluetooth.getProfileInst(bluetooth.ProfileId.PROFILE_HID_HOST) as bluetooth.HidHostProfile; -let ret = hidHostProfile.disconnect('XX:XX:XX:XX:XX:XX'); -``` - - -### on('connectionStateChange')9+ - -on(type: "connectionStateChange", callback: Callback<[StateChangeParam](#StateChangeParam)>): void - -Subscribes to the HidHost connection state change events. - -**System capability**: SystemCapability.Communication.Bluetooth.Core - -**Parameters** - -| Name | Type | Mandatory | Description | -| -------- | ---------------------------------------- | ---- | ---------------------------------------- | -| type | string | Yes | Event type. The value **connectionStateChange** indicates a HidHost connection state change event.| -| callback | Callback<[StateChangeParam](#StateChangeParam)> | Yes | Callback invoked to return the HidHost connection state change event. | - -**Return value** - -No value is returned. - -**Example** - -```js -function onReceiveEvent(data) { - console.info('hidHost state = '+ JSON.stringify(data)); -} -let hidHost = bluetooth.getProfileInst(bluetooth.ProfileId.PROFILE_HID_HOST) as bluetooth.HidHostProfile; -hidHost.on('connectionStateChange', onReceiveEvent); -``` - - -### off('connectionStateChange')9+ - -off(type: "connectionStateChange", callback?: Callback<[StateChangeParam](#StateChangeParam)>): void - -Unsubscribes from the HidHost connection state change events. - -**System capability**: SystemCapability.Communication.Bluetooth.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ----------------------------------------------------- | ---- | --------------------------------------------------------- | -| type | string | Yes | Event type. The value **connectionStateChange** indicates a HidHost connection state change event.| -| callback | Callback<[StateChangeParam](#StateChangeParam)> | No | Callback for the HidHost connection state change event. | - -**Return value** - -No value is returned. - -**Example** - -```js -function onReceiveEvent(data) { - console.info('hidHost state = '+ JSON.stringify(data)); -} -let hidHost = bluetooth.getProfileInst(bluetooth.ProfileId.PROFILE_HID_HOST) as bluetooth.HidHostProfile; -hidHost.on('connectionStateChange', onReceiveEvent); -hidHost.off('connectionStateChange', onReceiveEvent); -``` - - -## PanProfile - -Before using a method of **PanProfile**, you need to create an instance of this class by using the **getProfile()** method. - - -### disconnect9+ - -disconnect(device: string): boolean - -Disconnects from the Personal Area Network (PAN) service of a device. - -**System API**: This is a system API. - -**Required permissions**: ohos.permission.USE_BLUETOOTH - -**System capability**: SystemCapability.Communication.Bluetooth.Core - -**Parameters** - -| Name | Type | Mandatory | Description | -| ------ | ------ | ---- | ------- | -| device | string | Yes | Address of the target device.| - -**Return value** - -| Type | Description | -| --------------------- | --------------------------------- | -| boolean | Returns **true** if the operation is successful; returns **false** otherwise.| - -**Example** - -```js -let panProfile = bluetooth.getProfileInst(bluetooth.ProfileId.PROFILE_PAN_NETWORK) as bluetooth.PanProfile; -let ret = panProfile.disconnect('XX:XX:XX:XX:XX:XX'); -``` - - -### on('connectionStateChange')9+ - -on(type: "connectionStateChange", callback: Callback<[StateChangeParam](#StateChangeParam)>): void - -Subscribes to the PAN connection state change events. - -**System capability**: SystemCapability.Communication.Bluetooth.Core - -**Parameters** - -| Name | Type | Mandatory | Description | -| -------- | ---------------------------------------- | ---- | ---------------------------------------- | -| type | string | Yes | Event type. The value **connectionStateChange** indicates a PAN connection state change event.| -| callback | Callback<[StateChangeParam](#StateChangeParam)> | Yes | Callback invoked to return the PAN connection state change event. | - -**Return value** - -No value is returned. - -**Example** - -```js -function onReceiveEvent(data) { - console.info('pan state = '+ JSON.stringify(data)); -} -let panProfile = bluetooth.getProfileInst(bluetooth.ProfileId.PROFILE_PAN_NETWORK) as bluetooth.PanProfile; -panProfile.on('connectionStateChange', onReceiveEvent); -``` - - -### off('connectionStateChange')9+ - -off(type: "connectionStateChange", callback?: Callback<[StateChangeParam](#StateChangeParam)>): void - -Unsubscribes from the PAN connection state change events. - -**System capability**: SystemCapability.Communication.Bluetooth.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ----------------------------------------------------- | ---- | --------------------------------------------------------- | -| type | string | Yes | Event type. The value **connectionStateChange** indicates a PAN connection state change event.| -| callback | Callback<[StateChangeParam](#StateChangeParam)> | No | Callback for the PAN connection state change event. | - -**Return value** - -No value is returned. - -**Example** - -```js -function onReceiveEvent(data) { - console.info('pan state = '+ JSON.stringify(data)); -} -let panProfile = bluetooth.getProfileInst(bluetooth.ProfileId.PROFILE_PAN_NETWORK) as bluetooth.PanProfile; -panProfile.on('connectionStateChange', onReceiveEvent); -panProfile.off('connectionStateChange', onReceiveEvent); -``` - - -### setTethering9+ - -setTethering(enable: boolean): void - -Sets tethering. - -**System API**: This is a system API. - -**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH - -**System capability**: SystemCapability.Communication.Bluetooth.Core - -**Parameters** - -| Name | Type | Mandatory | Description | -| ------ | ------ | ---- | ------- | -| value | boolean | Yes | Whether to set tethering over a Bluetooth PAN.| - -**Return value** - -| Type | Description | -| --------------------- | --------------------------------- | -| boolean | Returns **true** if the operation is successful; returns **false** otherwise.| - -**Example** - -```js -let panProfile = bluetooth.getProfileInst(bluetooth.ProfileId.PROFILE_PAN_NETWORK) as bluetooth.PanProfile; -let ret = panProfile.setTethering(true); -``` - - -### isTetheringOn9+ - -isTetheringOn(): boolean - -Obtains the tethering state. - -**System API**: This is a system API. - -**System capability**: SystemCapability.Communication.Bluetooth.Core - -**Return value** - -| Type | Description | -| --------------------- | --------------------------------- | -| boolean | Returns **true** if tethering is available over a Bluetooth PAN; return **false** otherwise.| - -**Example** - -```js -let panProfile = bluetooth.getProfileInst(bluetooth.ProfileId.PROFILE_PAN_NETWORK) as bluetooth.PanProfile; -let ret = panProfile.isTetheringOn(); -``` - - ## GattServer Implements the Generic Attribute Profile (GATT) server. Before using a method of this class, you need to create a **GattServer** instance using the **createGattServer()** method. -### startAdvertising +### startAdvertising(deprecated) startAdvertising(setting: AdvertiseSetting, advData: AdvertiseData, advResponse?: AdvertiseData): void Starts BLE advertising. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.startAdvertising](js-apis-bluetoothManager.md#startadvertising). + **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -1963,12 +1813,15 @@ gattServer.startAdvertising({ ``` -### stopAdvertising +### stopAdvertising(deprecated) stopAdvertising(): void Stops BLE advertising. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.stopAdvertising](js-apis-bluetoothManager.md#stopadvertising). + **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -1985,12 +1838,15 @@ server.stopAdvertising(); ``` -### addService +### addService(deprecated) addService(service: GattService): boolean Adds a service to this GATT server. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.addService](js-apis-bluetoothManager.md#addservice). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2044,12 +1900,15 @@ if (ret) { ``` -### removeService +### removeService(deprecated) removeService(serviceUuid: string): boolean Removes a service from this GATT server. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.removeService](js-apis-bluetoothManager.md#removeservice). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2074,12 +1933,15 @@ server.removeService('00001810-0000-1000-8000-00805F9B34FB'); ``` -### close +### close(deprecated) close(): void Closes this GATT server to unregister it from the protocol stack. After this method is called, this [GattServer](#gattserver) cannot be used. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.close](js-apis-bluetoothManager.md#close). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2092,12 +1954,15 @@ server.close(); ``` -### notifyCharacteristicChanged +### notifyCharacteristicChanged(deprecated) notifyCharacteristicChanged(deviceId: string, notifyCharacteristic: NotifyCharacteristic): boolean Notifies the connected client device when a characteristic value changes. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.notifyCharacteristicChanged](js-apis-bluetoothManager.md#notifycharacteristicchanged). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2137,12 +2002,15 @@ server.notifyCharacteristicChanged('XX:XX:XX:XX:XX:XX', notifyCharacteristic); ``` -### sendResponse +### sendResponse(deprecated) sendResponse(serverResponse: ServerResponse): boolean Sends a response to a read or write request from the GATT client. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.sendResponse](js-apis-bluetoothManager.md#sendresponse). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2184,12 +2052,15 @@ if (ret) { ``` -### on('characteristicRead') +### on('characteristicRead')(deprecated) on(type: "characteristicRead", callback: Callback<CharacteristicReadReq>): void Subscribes to the characteristic read request events. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.on('characteristicRead')](js-apis-bluetoothManager.md#oncharacteristicread). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2232,12 +2103,15 @@ gattServer.on("characteristicRead", ReadCharacteristicReq); ``` -### off('characteristicRead') +### off('characteristicRead')(deprecated) off(type: "characteristicRead", callback?: Callback<CharacteristicReadReq>): void Unsubscribes from the characteristic read request events. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.off('characteristicRead')](js-apis-bluetoothManager.md#offcharacteristicread). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2261,12 +2135,15 @@ gattServer.off("characteristicRead"); ``` -### on('characteristicWrite') +### on('characteristicWrite')(deprecated) on(type: "characteristicWrite", callback: Callback<CharacteristicWriteReq>): void Subscribes to the characteristic write request events. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.on('characteristicWrite')](js-apis-bluetoothManager.md#oncharacteristicwrite). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2312,12 +2189,15 @@ gattServer.on("characteristicWrite", WriteCharacteristicReq); ``` -### off('characteristicWrite') +### off('characteristicWrite')(deprecated) off(type: "characteristicWrite", callback?: Callback<CharacteristicWriteReq>): void Unsubscribes from the characteristic write request events. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.off('characteristicWrite')](js-apis-bluetoothManager.md#offcharacteristicwrite). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2341,12 +2221,15 @@ gattServer.off("characteristicWrite"); ``` -### on('descriptorRead') +### on('descriptorRead')(deprecated) on(type: "descriptorRead", callback: Callback<DescriptorReadReq>): void Subscribes to the descriptor read request events. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.on('descriptorRead')](js-apis-bluetoothManager.md#ondescriptorread). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2389,12 +2272,15 @@ gattServer.on("descriptorRead", ReadDescriptorReq); ``` -### off('descriptorRead') +### off('descriptorRead')(deprecated) off(type: "descriptorRead", callback?: Callback<DescriptorReadReq>): void Unsubscribes from the descriptor read request events. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.off('descriptorRead')](js-apis-bluetoothManager.md#offdescriptorread). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2418,12 +2304,15 @@ gattServer.off("descriptorRead"); ``` -### on('descriptorWrite') +### on('descriptorWrite')(deprecated) on(type: "descriptorWrite", callback: Callback<DescriptorWriteReq>): void Subscribes to the descriptor write request events. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.on('descriptorWrite')](js-apis-bluetoothManager.md#ondescriptorwrite). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2469,12 +2358,15 @@ gattServer.on("descriptorRead", WriteDescriptorReq); ``` -### off('descriptorWrite') +### off('descriptorWrite')(deprecated) off(type: "descriptorWrite", callback?: Callback<DescriptorWriteReq>): void Unsubscribes from the descriptor write request events. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.off('descriptorWrite')](js-apis-bluetoothManager.md#offdescriptorwrite). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2498,12 +2390,15 @@ gattServer.off("descriptorWrite"); ``` -### on('connectStateChange') +### on('connectStateChange')(deprecated) on(type: "connectStateChange", callback: Callback<BLEConnectChangedState>): void Subscribes to the BLE connection state change events. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.on('connectStateChange')](js-apis-bluetoothManager.md#onconnectstatechange). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2532,12 +2427,15 @@ gattServer.on("connectStateChange", Connected); ``` -### off('connectStateChange') +### off('connectStateChange')(deprecated) off(type: "connectStateChange", callback?: Callback<BLEConnectChangedState>): void Unsubscribes from the BLE connection state change events. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.off('connectStateChange')](js-apis-bluetoothManager.md#offconnectstatechange). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2566,12 +2464,15 @@ gattServer.off("connectStateChange"); Implements the GATT client. Before using a method of this class, you must create a **GattClientDevice** instance using the **createGattClientDevice(deviceId: string)** method. -### connect +### connect(deprecated) connect(): boolean Initiates a connection to the remote BLE device. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.connect](js-apis-bluetoothManager.md#connect-3). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2590,12 +2491,15 @@ let ret = device.connect(); ``` -### disconnect +### disconnect(deprecated) disconnect(): boolean Disconnects from the remote BLE device. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.disconnect](js-apis-bluetoothManager.md#disconnect-4). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2614,12 +2518,15 @@ let ret = device.disconnect(); ``` -### close +### close(deprecated) close(): boolean Closes this GATT client to unregister it from the protocol stack. After this method is called, this [GattClientDevice](#gattclientdevice) instance cannot be used. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.close](js-apis-bluetoothManager.md#close-1). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2640,12 +2547,15 @@ let ret = device.close(); -### getServices +### getServices(deprecated) getServices(callback: AsyncCallback<Array<GattService>>): void Obtains all services of the remote BLE device. This API uses an asynchronous callback to return the result. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.getServices](js-apis-bluetoothManager.md#getservices). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2682,12 +2592,15 @@ device.getServices(getServices); ``` -### getServices +### getServices(deprecated) getServices(): Promise<Array<GattService>> Obtains all services of the remote BLE device. This API uses a promise to return the result. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.getServices](js-apis-bluetoothManager.md#getservices-1). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2710,12 +2623,15 @@ device.getServices().then(result => { ``` -### readCharacteristicValue +### readCharacteristicValue(deprecated) readCharacteristicValue(characteristic: BLECharacteristic, callback: AsyncCallback<BLECharacteristic>): void Reads the characteristic value of the specific service of the remote BLE device. This API uses an asynchronous callback to return the result. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.readCharacteristicValue](js-apis-bluetoothManager.md#readcharacteristicvalue). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2764,12 +2680,15 @@ device.readCharacteristicValue(characteristic, readCcc); ``` -### readCharacteristicValue +### readCharacteristicValue(deprecated) readCharacteristicValue(characteristic: BLECharacteristic): Promise<BLECharacteristic> Reads the characteristic value of the specific service of the remote BLE device. This API uses a promise to return the result. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.readCharacteristicValue](js-apis-bluetoothManager.md#readcharacteristicvalue-1). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2810,12 +2729,15 @@ device.readCharacteristicValue(characteristic); ``` -### readDescriptorValue +### readDescriptorValue(deprecated) readDescriptorValue(descriptor: BLEDescriptor, callback: AsyncCallback<BLEDescriptor>): void Reads the descriptor contained in the specific characteristic of the remote BLE device. This API uses an asynchronous callback to return the result. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.readDescriptorValue](js-apis-bluetoothManager.md#readdescriptorvalue). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2854,12 +2776,15 @@ device.readDescriptorValue(descriptor, readDesc); ``` -### readDescriptorValue +### readDescriptorValue(deprecated) readDescriptorValue(descriptor: BLEDescriptor): Promise<BLEDescriptor> Reads the descriptor contained in the specific characteristic of the remote BLE device. This API uses a promise to return the result. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.readDescriptorValue](js-apis-bluetoothManager.md#readdescriptorvalue-1). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2890,12 +2815,15 @@ device.readDescriptorValue(descriptor); ``` -### writeCharacteristicValue +### writeCharacteristicValue(deprecated) writeCharacteristicValue(characteristic: BLECharacteristic): boolean Writes a characteristic value to the remote BLE device. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.writeCharacteristicValue](js-apis-bluetoothManager.md#writecharacteristicvalue). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2940,12 +2868,15 @@ if (retWriteCcc) { ``` -### writeDescriptorValue +### writeDescriptorValue(deprecated) writeDescriptorValue(descriptor: BLEDescriptor): boolean Writes binary data to the specific descriptor of the remote BLE device. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.writeDescriptorValue](js-apis-bluetoothManager.md#writedescriptorvalue). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2981,12 +2912,15 @@ if (retWriteDesc) { ``` -### setBLEMtuSize +### setBLEMtuSize(deprecated) setBLEMtuSize(mtu: number): boolean Sets the maximum transmission unit (MTU) that can be transmitted between the GATT client and its remote BLE device. This API can be used only after a connection is set up by calling [connect](#connect). +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.setBLEMtuSize](js-apis-bluetoothManager.md#setblemtusize). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -3011,12 +2945,15 @@ device.setBLEMtuSize(128); ``` -### setNotifyCharacteristicChanged +### setNotifyCharacteristicChanged(deprecated) setNotifyCharacteristicChanged(characteristic: BLECharacteristic, enable: boolean): boolean Sets the function of notifying the GATT client when the characteristic value of the remote BLE device changes. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.setNotifyCharacteristicChanged](js-apis-bluetoothManager.md#setnotifycharacteristicchanged). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -3054,12 +2991,15 @@ device.setNotifyCharacteristicChanged(characteristic, false); ``` -### on('BLECharacteristicChange') +### on('BLECharacteristicChange')(deprecated) on(type: "BLECharacteristicChange", callback: Callback<BLECharacteristic>): void Subscribes to the BLE characteristic change events. The client can receive a notification from the server only after the **setNotifyCharacteristicChanged** method is called. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.on('BLECharacteristicChange')](js-apis-bluetoothManager.md#onblecharacteristicchange). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -3088,12 +3028,15 @@ device.on('BLECharacteristicChange', CharacteristicChange); ``` -### off('BLECharacteristicChange') +### off('BLECharacteristicChange')(deprecated) off(type: "BLECharacteristicChange", callback?: Callback<BLECharacteristic>): void Unsubscribes from the BLE characteristic change events. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.off('BLECharacteristicChange')](js-apis-bluetoothManager.md#offblecharacteristicchange). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -3117,12 +3060,15 @@ device.off('BLECharacteristicChange'); ``` -### on('BLEConnectionStateChange') +### on('BLEConnectionStateChange')(deprecated) on(type: "BLEConnectionStateChange", callback: Callback<BLEConnectChangedState>): void Subscribes to the BLE connection state change events. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.on('BLEConnectionStateChange')](js-apis-bluetoothManager.md#onbleconnectionstatechange). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -3150,12 +3096,15 @@ device.on('BLEConnectionStateChange', ConnectStateChanged); ``` -### off('BLEConnectionStateChange') +### off('BLEConnectionStateChange')(deprecated) off(type: "BLEConnectionStateChange", callback?: Callback<BLEConnectChangedState>): void Unsubscribes from the BLE connection state change events. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.off('BLEConnectionStateChange')](js-apis-bluetoothManager.md#offbleconnectionstatechange). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -3179,12 +3128,15 @@ device.off('BLEConnectionStateChange'); ``` -### getDeviceName +### getDeviceName(deprecated) getDeviceName(callback: AsyncCallback<string>): void Obtains the name of the remote BLE device. This API uses an asynchronous callback to return the result. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.getDeviceName](js-apis-bluetoothManager.md#getdevicename). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -3211,12 +3163,15 @@ let deviceName = gattClient.getDeviceName((err, data)=> { ``` -### getDeviceName +### getDeviceName(deprecated) getDeviceName(): Promise<string> Obtains the name of the remote BLE device. This API uses a promise to return the result. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.getDeviceName](js-apis-bluetoothManager.md#getdevicename-1). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -3239,12 +3194,15 @@ let deviceName = gattClient.getDeviceName().then((data) => { ``` -### getRssiValue +### getRssiValue(deprecated) getRssiValue(callback: AsyncCallback<number>): void Obtains the received signal strength indication (RSSI) of the remote BLE device. This API uses an asynchronous callback to return the result. It can be used only after a connection is set up by calling [connect](#connect). +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.getRssiValue](js-apis-bluetoothManager.md#getrssivalue). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -3272,12 +3230,15 @@ let rssi = gattClient.getRssiValue((err, data)=> { ``` -### getRssiValue +### getRssiValue(deprecated) getRssiValue(): Promise<number> Obtains the RSSI of the remote BLE device. This API uses a promise to return the result. It can be used only after a connection is set up by calling [connect](#connect). +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.getRssiValue](js-apis-bluetoothManager.md#getrssivalue-1). + **Required permissions**: ohos.permission.USE_BLUETOOTH **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -3298,10 +3259,13 @@ let rssi = gattClient.getRssiValue().then((data) => { }) ``` -## ScanMode8+ +## ScanMode8+(deprecated) Enumerates the scan modes. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.ScanMode](js-apis-bluetoothManager.md#scanmode). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Value | Description | @@ -3313,10 +3277,13 @@ Enumerates the scan modes. | SCAN_MODE_CONNECTABLE_GENERAL_DISCOVERABLE | 4 | General connectable and discoverable mode.| | SCAN_MODE_CONNECTABLE_LIMITED_DISCOVERABLE | 5 | Limited connectable and discoverable mode.| -## BondState8+ +## BondState8+(deprecated) Enumerates the pairing states. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.BondState](js-apis-bluetoothManager.md#bondstate). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Value | Description | @@ -3326,10 +3293,13 @@ Enumerates the pairing states. | BOND_STATE_BONDED | 2 | Paired. | -## SppOption8+ +## SppOption8+(deprecated) Defines the SPP configuration parameters. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.SppOption](js-apis-bluetoothManager.md#sppoption). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable | Writable | Description | @@ -3339,10 +3309,13 @@ Defines the SPP configuration parameters. | type | [SppType](#spptype) | Yes | Yes | Type of the SPP link. | -## SppType8+ +## SppType8+(deprecated) Enumerates the SPP link types. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.SppType](js-apis-bluetoothManager.md#spptype). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Value | Description | @@ -3350,10 +3323,13 @@ Enumerates the SPP link types. | SPP_RFCOMM | 0 | Radio frequency communication (RFCOMM) link type.| -## GattService +## GattService(deprecated) Defines the GATT service API parameters. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattService](js-apis-bluetoothManager.md#gattservice). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable | Writable | Description | @@ -3364,10 +3340,13 @@ Defines the GATT service API parameters. | includeServices | Array<[GattService](#gattservice)> | Yes | Yes | Services on which the service depends. | -## BLECharacteristic +## BLECharacteristic(deprecated) Defines the characteristic API parameters. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BLECharacteristic](js-apis-bluetoothManager.md#blecharacteristic). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable | Writable | Description | @@ -3378,10 +3357,13 @@ Defines the characteristic API parameters. | descriptors | Array<[BLEDescriptor](#bledescriptor)> | Yes | Yes | List of descriptors of the characteristic. | -## BLEDescriptor +## BLEDescriptor(deprecated) Defines the descriptor API parameters. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BLEDescriptor](js-apis-bluetoothManager.md#bledescriptor). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable | Writable | Description | @@ -3392,10 +3374,13 @@ Defines the descriptor API parameters. | descriptorValue | ArrayBuffer | Yes | Yes | Binary value of the descriptor. | -## NotifyCharacteristic +## NotifyCharacteristic(deprecated) Defines the parameters in the notifications sent when the server characteristic value changes. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.NotifyCharacteristic](js-apis-bluetoothManager.md#notifycharacteristic). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable | Writable | Description | @@ -3406,10 +3391,13 @@ Defines the parameters in the notifications sent when the server characteristic | confirm | boolean | Yes | Yes | Whether the notification needs to be confirmed by the remote end. For a notification, set it to **true**. In this case, the remote end must confirm the receipt of the notification. For an indication, set it to **false**. In this case, the remote end does not need to confirm the receipt of the notification.| -## CharacteristicReadReq +## CharacteristicReadReq(deprecated) Defines the parameters of the **CharacteristicReadReq** event received by the server. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.CharacteristicReadRequest](js-apis-bluetoothManager.md#characteristicreadrequest). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable | Writable | Description | @@ -3421,10 +3409,13 @@ Defines the parameters of the **CharacteristicReadReq** event received by the se | serviceUuid | string | Yes | No | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.| -## CharacteristicWriteReq +## CharacteristicWriteReq(deprecated) Defines the parameters of the **CharacteristicWriteReq** event received by the server. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.CharacteristicWriteRequest](js-apis-bluetoothManager.md#characteristicwriterequest). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable | Writable | Description | @@ -3437,10 +3428,13 @@ Defines the parameters of the **CharacteristicWriteReq** event received by the s | serviceUuid | string | Yes | No | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.| -## DescriptorReadReq +## DescriptorReadReq(deprecated) Defines the parameters of the **DescriptorReadReq** event received by the server. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.DescriptorReadRequest](js-apis-bluetoothManager.md#descriptorreadrequest). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable | Writable | Description | @@ -3453,10 +3447,13 @@ Defines the parameters of the **DescriptorReadReq** event received by the server | serviceUuid | string | Yes | No | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.| -## DescriptorWriteReq +## DescriptorWriteReq(deprecated) Defines the parameters of the **DescriptorWriteReq** event received by the server. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.DescriptorWriteRequest](js-apis-bluetoothManager.md#descriptorwriterequest). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable | Writable | Description | @@ -3472,10 +3469,13 @@ Defines the parameters of the **DescriptorWriteReq** event received by the serve | serviceUuid | string | Yes | No | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.| -## ServerResponse +## ServerResponse(deprecated) Defines the parameters of the server's response to the GATT client's read/write request. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.ServerResponse](js-apis-bluetoothManager.md#serverresponse). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable | Writable | Description | @@ -3487,10 +3487,13 @@ Defines the parameters of the server's response to the GATT client's read/write | value | ArrayBuffer | Yes | No | Binary data in the response. | -## BLEConnectChangedState +## BLEConnectChangedState(deprecated) Defines the parameters of **BLEConnectChangedState**. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BLEConnectChangedState](js-apis-bluetoothManager.md#bleconnectchangedstate). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable| Writable| Description | @@ -3499,10 +3502,13 @@ Defines the parameters of **BLEConnectChangedState**. | state | [ProfileConnectionState](#profileconnectionstate) | Yes | Yes | BLE connection state. | -## ProfileConnectionState +## ProfileConnectionState(deprecated) Enumerates the profile connection states. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.ProfileConnectionState](js-apis-bluetoothManager.md#profileconnectionstate). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Value | Description | @@ -3513,10 +3519,13 @@ Enumerates the profile connection states. | STATE_DISCONNECTING | 3 | Disconnecting.| -## ScanFilter +## ScanFilter(deprecated) Defines the scan filter parameters. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.ScanFilter](js-apis-bluetoothManager.md#scanfilter). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable| Writable| Description | @@ -3524,20 +3533,15 @@ Defines the scan filter parameters. | deviceId | string | Yes | Yes | Address of the BLE device to filter, for example, XX:XX:XX:XX:XX:XX. | | name | string | Yes | Yes | Name of the BLE device to filter. | | serviceUuid | string | Yes | Yes | Service UUID of the device to filter, for example, **00001888-0000-1000-8000-00805f9b34fb**.| -| serviceUuidMask9+ | string | Yes | Yes | Service UUID mask of the device to filter, for example, **FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF**.| -| serviceSolicitationUuid9+ | string | Yes | Yes | Service solicitation UUID of the device to filter, for example, **00001888-0000-1000-8000-00805F9B34FB**.| -| serviceSolicitationUuidMask9+ | string | Yes | Yes | Service solicitation UUID mask of the device to filter, for example, **FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF**.| -| serviceData9+ | ArrayBuffer | Yes | Yes | Service data of the device to filter, for example, **[0x90, 0x00, 0xF1, 0xF2]**.| -| serviceDataMask9+ | ArrayBuffer | Yes | Yes | Service data mask of the device to filter, for example, **[0xFF,0xFF,0xFF,0xFF]**.| -| manufactureId9+ | number | Yes | Yes | Manufacturer ID of the device to filter, for example, **0x0006**. | -| manufactureData9+ | ArrayBuffer | Yes | Yes | Manufacturer data of the device to filter, for example, **[0x1F,0x2F,0x3F]**.| -| manufactureDataMask9+ | ArrayBuffer | Yes | Yes | Manufacturer data mask of the device to filter, for example, **[0xFF, 0xFF, 0xFF]**.| -## ScanOptions +## ScanOptions(deprecated) Defines the scan configuration parameters. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.ScanOptions](js-apis-bluetoothManager.md#scanoptions). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable | Writable | Description | @@ -3547,10 +3551,13 @@ Defines the scan configuration parameters. | matchMode | [MatchMode](#matchmode) | Yes | Yes | Hardware filtering match mode. The default value is **MATCH_MODE_AGGRESSIVE**.| -## ScanDuty +## ScanDuty(deprecated) Enumerates the scan duty options. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.ScanDuty](js-apis-bluetoothManager.md#scanduty). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Value | Description | @@ -3560,10 +3567,13 @@ Enumerates the scan duty options. | SCAN_MODE_LOW_LATENCY | 2 | Low-latency mode. | -## MatchMode +## MatchMode(deprecated) Enumerates the hardware match modes of BLE scan filters. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.MatchMode](js-apis-bluetoothManager.md#matchmode). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Value | Description | @@ -3572,10 +3582,13 @@ Enumerates the hardware match modes of BLE scan filters. | MATCH_MODE_STICKY | 2 | Hardware reports the scan result with a higher threshold of signal strength and sightings. | -## ScanResult +## ScanResult(deprecated) Defines the scan result. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.ScanResult](js-apis-bluetoothManager.md#scanresult). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable | Writable | Description | @@ -3585,10 +3598,13 @@ Defines the scan result. | data | ArrayBuffer | Yes | No | Advertisement packets sent by the device. | -## BluetoothState +## BluetoothState(deprecated) Enumerates the Bluetooth states. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BluetoothState](js-apis-bluetoothManager.md#bluetoothstate). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Value | Description | @@ -3602,10 +3618,13 @@ Enumerates the Bluetooth states. | STATE_BLE_TURNING_OFF | 6 | The LE-only mode is being turned off for Bluetooth.| -## AdvertiseSetting +## AdvertiseSetting(deprecated) Defines the BLE advertising parameters. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.AdvertiseSetting](js-apis-bluetoothManager.md#advertisesetting). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable | Writable | Description | @@ -3615,10 +3634,13 @@ Defines the BLE advertising parameters. | connectable | boolean | Yes | Yes | Whether the advertisement is connectable. The default value is **true**. | -## AdvertiseData +## AdvertiseData(deprecated) Defines the content of a BLE advertisement packet. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.AdvertiseData](js-apis-bluetoothManager.md#advertisedata). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable | Writable | Description | @@ -3628,10 +3650,13 @@ Defines the content of a BLE advertisement packet. | serviceData | Array<[ServiceData](#servicedata)> | Yes | Yes | List of service data to broadcast. | -## ManufactureData +## ManufactureData(deprecated) Defines the content of a BLE advertisement packet. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.ManufactureData](js-apis-bluetoothManager.md#manufacturedata). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable | Writable | Description | @@ -3640,10 +3665,13 @@ Defines the content of a BLE advertisement packet. | manufactureValue | ArrayBuffer | Yes | Yes | Manufacturer data. | -## ServiceData +## ServiceData(deprecated) Defines the service data contained in an advertisement packet. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.ServiceData](js-apis-bluetoothManager.md#servicedata). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable | Writable | Description | @@ -3652,10 +3680,13 @@ Defines the service data contained in an advertisement packet. | serviceValue | ArrayBuffer | Yes | Yes | Service data. | -## PinRequiredParam8+ +## PinRequiredParam8+(deprecated) Defines the pairing request parameters. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.PinRequiredParam](js-apis-bluetoothManager.md#pinrequiredparam). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable | Writable | Description | @@ -3664,10 +3695,13 @@ Defines the pairing request parameters. | pinCode | string | Yes | No | Key for the device pairing. | -## BondStateParam8+ +## BondStateParam8+(deprecated) Defines the pairing state parameters. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.BondStateParam](js-apis-bluetoothManager.md#bondstateparam). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable | Writable | Description | @@ -3676,10 +3710,13 @@ Defines the pairing state parameters. | state | BondState | Yes | No | State of the device.| -## StateChangeParam8+ +## StateChangeParam8+(deprecated) Defines the profile state change parameters. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.StateChangeParam](js-apis-bluetoothManager.md#statechangeparam). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable| Writable| Description | @@ -3688,10 +3725,13 @@ Defines the profile state change parameters. | state | [ProfileConnectionState](#profileconnectionstate) | Yes | No | Profile connection state of the device.| -## DeviceClass8+ +## DeviceClass8+(deprecated) Defines the class of a Bluetooth device. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.DeviceClass](js-apis-bluetoothManager.md#deviceclass). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Type | Readable | Writable | Description | @@ -3702,10 +3742,13 @@ Defines the class of a Bluetooth device. -## MajorClass8+ +## MajorClass8+(deprecated) Enumerates the major classes of Bluetooth devices. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.MajorClass](js-apis-bluetoothManager.md#majorclass). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Value | Description | @@ -3723,10 +3766,13 @@ Enumerates the major classes of Bluetooth devices. | MAJOR_UNCATEGORIZED | 0x1F00 | Unclassified device. | -## MajorMinorClass8+ +## MajorMinorClass8+(deprecated) Enumerates the major and minor classes of Bluetooth devices. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.MajorMinorClass](js-apis-bluetoothManager.md#majorminorclass). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Value | Description | @@ -3819,10 +3865,13 @@ Enumerates the major and minor classes of Bluetooth devices. | HEALTH_PERSONAL_MOBILITY_DEVICE | 0x093C | Personal mobility device. | -## PlayingState8+ +## PlayingState8+(deprecated) Enumerates the A2DP playing states. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.PlayingState](js-apis-bluetoothManager.md#playingstate). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Value | Description | @@ -3831,15 +3880,16 @@ Enumerates the A2DP playing states. | STATE_PLAYING | 0x0001 | Playing.| -## ProfileId8+ +## ProfileId8+(deprecated) Enumerates the Bluetooth profiles. API version 9 is added with **PROFILE_HID_HOST** and **PROFILE_PAN_NETWORK**. +> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.ProfileId](js-apis-bluetoothManager.md#profileid). + **System capability**: SystemCapability.Communication.Bluetooth.Core | Name | Value | Description | | -------------------------------- | ------ | --------------- | | PROFILE_A2DP_SOURCE | 1 | A2DP profile.| | PROFILE_HANDS_FREE_AUDIO_GATEWAY | 4 | HFP profile. | -| PROFILE_HID_HOST9+ | 6 | Human Interface Device (HID) profile. | -| PROFILE_PAN_NETWORK9+ | 7 | PAN profile. | diff --git a/en/application-dev/reference/apis/js-apis-bluetoothManager.md b/en/application-dev/reference/apis/js-apis-bluetoothManager.md new file mode 100644 index 0000000000000000000000000000000000000000..9711dd232291c9863725c5ed3dba6a64f654cea7 --- /dev/null +++ b/en/application-dev/reference/apis/js-apis-bluetoothManager.md @@ -0,0 +1,4491 @@ +# @ohos.bluetoothManager (Bluetooth) + +The **Bluetooth** module provides classic Bluetooth capabilities and Bluetooth Low Energy (BLE) scan and advertising. + +> **NOTE** +> +> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. + + + +## Modules to Import + +```js +import bluetoothManager from '@ohos.bluetoothManager'; +``` + + +## bluetoothManager.enableBluetooth + +enableBluetooth(): void + +Enables Bluetooth. + +**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + bluetoothManager.enableBluetooth(); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.disableBluetooth + +disableBluetooth(): void + +Disables Bluetooth. + +**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + bluetoothManager.disableBluetooth(); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.getLocalName + +getLocalName(): string + +Obtains the name of the local Bluetooth device. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Return value** + +| Type | Description | +| ------ | --------- | +| string | Name of the local Bluetooth device obtained.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let localName = bluetoothManager.getLocalName(); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.getState + +getState(): BluetoothState + +Obtains the Bluetooth state. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Return value** + +| Type | Description | +| --------------------------------- | --------- | +| [BluetoothState](#bluetoothstate) | Bluetooth state obtained.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let state = bluetoothManager.getState(); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.getBtConnectionState + +getBtConnectionState(): ProfileConnectionState + +Obtains the local profile connection status. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Return value** + +| Type | Description | +| ---------------------------------------- | ------------------- | +| [ProfileConnectionState](#profileconnectionstate) | Profile connection state obtained.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let connectionState = bluetoothManager.getBtConnectionState(); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.setLocalName + +setLocalName(name: string): void + +Sets the name of the local Bluetooth device. + +**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ---- | ------ | ---- | --------------------- | +| name | string | Yes | Bluetooth device name to set. It cannot exceed 248 bytes.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + bluetoothManager.setLocalName('device_name'); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.pairDevice + +pairDevice(deviceId: string): void + +Initiates Bluetooth pairing. + +**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ------ | ---- | ----------------------------------- | +| deviceId | string | Yes | Address of the remote device to pair, for example, XX:XX:XX:XX:XX:XX.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + // The address can be scanned. + bluetoothManager.pairDevice("XX:XX:XX:XX:XX:XX"); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.getProfileConnectionState + +getProfileConnectionState(profileId: ProfileId): ProfileConnectionState + +Obtains the connection status of the specified profile. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| --------- | --------- | ---- | ------------------------------------- | +| ProfileId | profileId | Yes | ID of the profile to obtain, for example, **PROFILE_A2DP_SOURCE**.| + +**Return value** + +| Type | Description | +| ------------------------------------------------- | ------------------- | +| [ProfileConnectionState](#profileconnectionstate) | Profile connection state obtained.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900004 | Profile is not supported. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let result = bluetoothManager.getProfileConnectionState(bluetoothManager.ProfileId.PROFILE_A2DP_SOURCE); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.cancelPairedDevice + +cancelPairedDevice(deviceId: string): void + +Cancels a paired remote device. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ------ | ---- | ------------------------------------- | +| deviceId | string | Yes | Address of the remote device to cancel, for example, XX:XX:XX:XX:XX:XX.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + bluetoothManager.cancelPairedDevice("XX:XX:XX:XX:XX:XX"); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.getRemoteDeviceName + +getRemoteDeviceName(deviceId: string): string + +Obtains the name of the remote Bluetooth device. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ------ | ---- | --------------------------------- | +| deviceId | string | Yes | Address of the target remote device, for example, XX:XX:XX:XX:XX:XX.| + +**Return value** + +| Type | Description | +| ------ | ------------- | +| string | Device name (a string) obtained.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let remoteDeviceName = bluetoothManager.getRemoteDeviceName("XX:XX:XX:XX:XX:XX"); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.getRemoteDeviceClass + +getRemoteDeviceClass(deviceId: string): DeviceClass + +Obtains the class of the remote Bluetooth device. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ------ | ---- | --------------------------------- | +| deviceId | string | Yes | Address of the target remote device, for example, XX:XX:XX:XX:XX:XX.| + +**Return value** + +| Type | Description | +| --------------------------- | -------- | +| [DeviceClass](#deviceclass) | Class of the remote device obtained.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let remoteDeviceClass = bluetoothManager.getRemoteDeviceClass("XX:XX:XX:XX:XX:XX"); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.getPairedDevices + +getPairedDevices(): Array<string> + +Obtains the paired devices. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Return value** + +| Type | Description | +| ------------------- | ------------- | +| Array<string> | Addresses of the paired Bluetooth devices.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let devices = bluetoothManager.getPairedDevices(); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.setBluetoothScanMode + +setBluetoothScanMode(mode: ScanMode, duration: number): void + +Sets the Bluetooth scan mode so that the device can be discovered by a remote device. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | --------------------- | ---- | ---------------------------- | +| mode | [ScanMode](#scanmode) | Yes | Bluetooth scan mode to set. | +| duration | number | Yes | Duration (in ms) in which the device can be discovered. The value **0** indicates unlimited time.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + // The device can be discovered and connected only when the discoverable and connectable mode is used. + bluetoothManager.setBluetoothScanMode(bluetoothManager.ScanMode.SCAN_MODE_CONNECTABLE_GENERAL_DISCOVERABLE, 100); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.getBluetoothScanMode + +getBluetoothScanMode(): ScanMode + +Obtains the Bluetooth scan mode. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Return value** + +| Type | Description | +| --------------------- | ------- | +| [ScanMode](#scanmode) | Bluetooth scan mode to set.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let scanMode = bluetoothManager.getBluetoothScanMode(); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.startBluetoothDiscovery + +startBluetoothDiscovery(): void + +Starts Bluetooth scan to discover remote devices. + +**Rquired permissions**: ohos.permission.DISCOVER_BLUETOOTH and ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +let deviceId; +function onReceiveEvent(data) { + deviceId = data; +} +try { + bluetoothManager.on('bluetoothDeviceFind', onReceiveEvent); + bluetoothManager.startBluetoothDiscovery(); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.stopBluetoothDiscovery + +stopBluetoothDiscovery(): void + +Stops Bluetooth scan. + +**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + bluetoothManager.stopBluetoothDiscovery(); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.setDevicePairingConfirmation + +setDevicePairingConfirmation(device: string, accept: boolean): void + +Sets the device pairing confirmation. + +**Required permissions**: ohos.permission.MANAGE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------ | ------- | ---- | -------------------------------- | +| device | string | Yes | Address of the remote device, for example, XX:XX:XX:XX:XX:XX.| +| accept | boolean | Yes | Whether to accept the pairing request. The value **true** means to accept the pairing request, and the value **false** means the opposite. | + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js + +try { + // Subscribe to the pinRequired event and configure the pairing confirmation after receiving a pairing request from the remote device. + function onReceivePinRequiredEvent(data) { // data is the input parameter for the pairing request. + console.info('pin required = '+ JSON.stringify(data)); + bluetoothManager.setDevicePairingConfirmation(data.deviceId, true); + } + bluetoothManager.on("pinRequired", onReceivePinRequiredEvent); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.on('bluetoothDeviceFind') + +on(type: "bluetoothDeviceFind", callback: Callback<Array<string>>): void + +Subscribes to the Bluetooth device discovery events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ----------------------------------- | ---- | -------------------------------------- | +| type | string | Yes | Event type. The value **bluetoothDeviceFind** indicates an event reported when a Bluetooth device is discovered.| +| callback | Callback<Array<string>> | Yes | Callback invoked to return the discovered devices. You need to implement this callback. | + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900099 | Operation failed. | + +**Example** + +```js +function onReceiveEvent(data) { // data is a set of Bluetooth device addresses. + console.info('bluetooth device find = '+ JSON.stringify(data)); +} +try { + bluetoothManager.on('bluetoothDeviceFind', onReceiveEvent); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.off('bluetoothDeviceFind') + +off(type: "bluetoothDeviceFind", callback?: Callback<Array<string>>): void + +Unsubscribes from the Bluetooth device discovery events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ----------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **bluetoothDeviceFind** indicates an event reported when a Bluetooth device is discovered. | +| callback | Callback<Array<string>> | No | Callback for the **bluetoothDeviceFind** event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900099 | Operation failed. | + +**Example** + +```js +function onReceiveEvent(data) { + console.info('bluetooth device find = '+ JSON.stringify(data)); +} +try { + bluetoothManager.on('bluetoothDeviceFind', onReceiveEvent); + bluetoothManager.off('bluetoothDeviceFind', onReceiveEvent); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.on('pinRequired') + +on(type: "pinRequired", callback: Callback<PinRequiredParam>): void + +Subscribes to the pairing request events of the remote Bluetooth device. + +**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | -------------------------------- | +| type | string | Yes | Event type. The value **pinRequired** indicates a pairing request event. | +| callback | Callback<[PinRequiredParam](#pinrequiredparam)> | Yes | Callback invoked to return the pairing request. You need to implement this callback.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900099 | Operation failed. | + +**Example** + +```js +function onReceiveEvent(data) { // data is the pairing request parameter. + console.info('pin required = '+ JSON.stringify(data)); +} +try { + bluetoothManager.on('pinRequired', onReceiveEvent); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.off('pinRequired') + +off(type: "pinRequired", callback?: Callback<PinRequiredParam>): void + +Unsubscribes from the pairing request events of the remote Bluetooth device. + +**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **pinRequired** indicates a pairing request event. | +| callback | Callback<[PinRequiredParam](#pinrequiredparam)> | No | Callback for the Bluetooth pairing request event. The input parameter is the pairing request parameter. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900099 | Operation failed. | + +**Example** + +```js +function onReceiveEvent(data) { + console.info('pin required = '+ JSON.stringify(data)); +} +try { + bluetoothManager.on('pinRequired', onReceiveEvent); + bluetoothManager.off('pinRequired', onReceiveEvent); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.on('bondStateChange') + +on(type: "bondStateChange", callback: Callback<BondStateParam>): void + +Subscribes to the Bluetooth pairing state change events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ------------------------------------ | +| type | string | Yes | Event type. The value **bondStateChange** indicates a Bluetooth pairing state change event.| +| callback | Callback<[BondStateParam](#BondStateParam)> | Yes | Callback invoked to return the pairing state. You need to implement this callback. | + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900099 | Operation failed. | + +**Example** + +```js +function onReceiveEvent(data) { // data, as the input parameter of the callback, indicates the pairing state. + console.info('pair state = '+ JSON.stringify(data)); +} +try { + bluetoothManager.on('bondStateChange', onReceiveEvent); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.off('bondStateChange') + +off(type: "bondStateChange", callback?: Callback<BondStateParam>): void + +Unsubscribes from the Bluetooth pairing state change events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **bondStateChange** indicates a Bluetooth pairing state change event. | +| callback | Callback<[BondStateParam](#BondStateParam)> | No | Callback for the change of the Bluetooth pairing state. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900099 | Operation failed. | + +**Example** + +```js +function onReceiveEvent(data) { + console.info('bond state = '+ JSON.stringify(data)); +} +try { + bluetoothManager.on('bondStateChange', onReceiveEvent); + bluetoothManager.off('bondStateChange', onReceiveEvent); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.on('stateChange') + +on(type: "stateChange", callback: Callback<BluetoothState>): void + +Subscribes to the Bluetooth connection state change events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | -------------------------------- | +| type | string | Yes | Event type. The value **stateChange** indicates a Bluetooth connection state change event. | +| callback | Callback<[BluetoothState](#bluetoothstate)> | Yes | Callback invoked to return the Bluetooth connection state. You need to implement this callback.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900099 | Operation failed. | + +**Example** + +```js +function onReceiveEvent(data) { + console.info('bluetooth state = '+ JSON.stringify(data)); +} +try { + bluetoothManager.on('stateChange', onReceiveEvent); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.off('stateChange') + +off(type: "stateChange", callback?: Callback<BluetoothState>): void + +Unsubscribes from the Bluetooth connection state change events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **stateChange** indicates a Bluetooth connection state change event. | +| callback | Callback<[BluetoothState](#bluetoothstate)> | No | Callback for the Bluetooth connection state change event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900099 | Operation failed. | + +**Example** + +```js +function onReceiveEvent(data) { + console.info('bluetooth state = '+ JSON.stringify(data)); +} +try { + bluetoothManager.on('stateChange', onReceiveEvent); + bluetoothManager.off('stateChange', onReceiveEvent); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.sppListen + +sppListen(name: string, option: SppOption, callback: AsyncCallback<number>): void + +Creates a server listening socket. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | --------------------------- | ---- | ----------------------- | +| name | string | Yes | Name of the service. | +| option | [SppOption](#sppoption) | Yes | Serial port profile (SPP) listening configuration. | +| callback | AsyncCallback<number> | Yes | Callback invoked to return the server socket ID.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900004 | Profile is not supported. | +|2900099 | Operation failed. | + +**Example** + +```js +let serverNumber = -1; +function serverSocket(code, number) { + console.log('bluetooth error code: ' + code.code); + if (code.code == 0) { + console.log('bluetooth serverSocket Number: ' + number); + serverNumber = number; + } +} + +let sppOption = {uuid: '00001810-0000-1000-8000-00805F9B34FB', secure: false, type: 0}; +try { + bluetoothManager.sppListen('server1', sppOption, serverSocket); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.sppAccept + +sppAccept(serverSocket: number, callback: AsyncCallback<number>): void + +Listens for a connection to be made to this socket from the client and accepts it. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------------ | --------------------------- | ---- | ----------------------- | +| serverSocket | number | Yes | Server socket ID. | +| callback | AsyncCallback<number> | Yes | Callback invoked to return the client socket ID.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900004 | Profile is not supported. | +|2900099 | Operation failed. | + +**Example** + +```js +let serverNumber = -1; +function serverSocket(code, number) { + console.log('bluetooth error code: ' + code.code); + if (code.code == 0) { + console.log('bluetooth serverSocket Number: ' + number); + serverNumber = number; + } +} +let clientNumber = -1; +function acceptClientSocket(code, number) { + console.log('bluetooth error code: ' + code.code); + if (code.code == 0) { + console.log('bluetooth clientSocket Number: ' + number); + // The obtained clientNumber is used as the socket ID for subsequent read/write operations on the server. + clientNumber = number; + } +} +try { + bluetoothManager.sppAccept(serverNumber, acceptClientSocket); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.sppConnect + +sppConnect(device: string, option: SppOption, callback: AsyncCallback<number>): void + +Initiates an SPP connection to a remote device from the client. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | --------------------------- | ---- | ------------------------------ | +| device | string | Yes | Address of the remote device, for example, XX:XX:XX:XX:XX:XX.| +| option | [SppOption](#sppoption) | Yes | Configuration for connecting to the SPP client. | +| callback | AsyncCallback<number> | Yes | Callback invoked to return the client socket ID. | + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900004 | Profile is not supported. | +|2900099 | Operation failed. | + +**Example** + +```js + +let clientNumber = -1; +function clientSocket(code, number) { + if (code.code != 0) { + return; + } + console.log('bluetooth serverSocket Number: ' + number); + // The obtained clientNumber is used as the socket ID for subsequent read/write operations on the client. + clientNumber = number; +} +let sppOption = {uuid: '00001810-0000-1000-8000-00805F9B34FB', secure: false, type: 0}; +try { + bluetoothManager.sppConnect('XX:XX:XX:XX:XX:XX', sppOption, clientSocket); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.sppCloseServerSocket + +sppCloseServerSocket(socket: number): void + +Closes the listening socket of the server. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------ | ------ | ---- | --------------- | +| socket | number | Yes | ID of the listening socket on the server. The ID is obtained by **sppListen**.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900099 | Operation failed. | + +**Example** + +```js +let serverNumber = -1; +function serverSocket(code, number) { + console.log('bluetooth error code: ' + code.code); + if (code.code == 0) { + console.log('bluetooth serverSocket Number: ' + number); + serverNumber = number; + } +} +try { + bluetoothManager.sppCloseServerSocket(serverNumber); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.sppCloseClientSocket + +sppCloseClientSocket(socket: number): void + +Closes the client socket. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------ | ------ | ---- | ------------- | +| Name | Type | Mandatory | Description | +| socket | number | Yes | Client socket ID, which is obtained by **sppAccept** or **sppConnect**.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900099 | Operation failed. | + +**Example** + +```js +let clientNumber = -1; +function clientSocket(code, number) { + if (code.code != 0) { + return; + } + console.log('bluetooth serverSocket Number: ' + number); + // The obtained clientNumber is used as the socket ID for subsequent read/write operations on the client. + clientNumber = number; +} +try { + bluetoothManager.sppCloseClientSocket(clientNumber); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.sppWrite + +sppWrite(clientSocket: number, data: ArrayBuffer): void + +Writes data to the remote device through the socket. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------------ | ----------- | ---- | ------------- | +| clientSocket | number | Yes | Client socket ID, which is obtained by **sppAccept** or **sppConnect**.| +| data | ArrayBuffer | Yes | Data to write. | + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2901054 | IO error. | +|2900099 | Operation failed. | + +**Example** + +```js +let clientNumber = -1; +function clientSocket(code, number) { + if (code.code != 0) { + return; + } + console.log('bluetooth serverSocket Number: ' + number); + // The obtained clientNumber is used as the socket ID for subsequent read/write operations on the client. + clientNumber = number; +} +let arrayBuffer = new ArrayBuffer(8); +let data = new Uint8Array(arrayBuffer); +data[0] = 123; +try { + bluetoothManager.sppWrite(clientNumber, arrayBuffer); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.on('sppRead') + +on(type: "sppRead", clientSocket: number, callback: Callback<ArrayBuffer>): void + +Subscribes to the SPP read request events. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------------ | --------------------------- | ---- | -------------------------- | +| type | string | Yes | Event type. The value **sppRead** indicates an SPP read request event.| +| clientSocket | number | Yes | Client socket ID, which is obtained by **sppAccept** or **sppConnect**. | +| callback | Callback<ArrayBuffer> | Yes | Callback invoked to return the data read. | + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2901054 | IO error. | +|2900099 | Operation failed. | + +**Example** + +```js +let clientNumber = -1; +function clientSocket(code, number) { + if (code.code != 0) { + return; + } + console.log('bluetooth serverSocket Number: ' + number); + // The obtained clientNumber is used as the socket ID for subsequent read/write operations on the client. + clientNumber = number; +} +function dataRead(dataBuffer) { + let data = new Uint8Array(dataBuffer); + console.log('bluetooth data is: ' + data[0]); +} +try { + bluetoothManager.on('sppRead', clientNumber, dataRead); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.off('sppRead') + +off(type: "sppRead", clientSocket: number, callback?: Callback<ArrayBuffer>): void + +Unsubscribes from the SPP read request events. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------------ | --------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **sppRead** indicates an SPP read request event. | +| clientSocket | number | Yes | Client socket ID, which is obtained by **sppAccept** or **sppConnect**. | +| callback | Callback<ArrayBuffer> | No | Callback for the SPP read request event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.| + +**Example** + +```js +let clientNumber = -1; +function clientSocket(code, number) { + if (code.code != 0) { + return; + } + console.log('bluetooth serverSocket Number: ' + number); + // The obtained clientNumber is used as the socket ID for subsequent read/write operations on the client. + clientNumber = number; +} +try { + bluetoothManager.off('sppRead', clientNumber); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + +## bluetoothManager.getProfileInstance + +getProfileInstance(profileId: ProfileId): A2dpSourceProfile | HandsFreeAudioGatewayProfile | HidHostProfile | PanProfile + +Obtains a profile instance. API version 9 is added with **HidHostProfile** and **PanProfile**. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| --------- | --------- | ---- | ------------------------------------- | +| profileId | [ProfileId](#ProfileId) | Yes | ID of the profile to obtain, for example, **PROFILE_A2DP_SOURCE**.| + +**Return value** + +| Type | Description | +| ------------------------------------------------------------ | ------------------------------------------------------------ | +| [A2dpSourceProfile](#a2dpsourceprofile), [HandsFreeAudioGatewayProfile](#handsfreeaudiogatewayprofile), [HidHostProfile](#hidhostprofile), or [PanProfile](#panprofile)| Profile instance obtained, which can be **A2dpSourceProfile**, **HandsFreeAudioGatewayProfile**, **HidHostProfile**, or **PanProfile**.| + +**Example** + +```js +try { + let hidHost = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_HID_HOST); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.BLE + +### bluetoothManager.BLE.createGattServer + +createGattServer(): GattServer + +Creates a **GattServer** instance. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Return value** + +| Type | Description | +| ------------------------- | ------------------------------------ | +| [GattServer](#gattserver) | **GattServer** instance created. Before using an API of the server, you must create a **GattSever** instance.| + +**Example** + +```js +let gattServer = bluetoothManager.BLE.createGattServer(); +``` + + +### bluetoothManager.BLE.createGattClientDevice + +createGattClientDevice(deviceId: string): GattClientDevice + +Creates a **GattClientDevice** instance. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ------ | ---- | ------------------------------------ | +| deviceId | string | Yes | Address of the remote device, for example, XX:XX:XX:XX:XX:XX.| + +**Return value** + +| Type | Description | +| ------------------------------------- | ------------------------------------ | +| [GattClientDevice](#gattclientdevice) | **GattClientDevice** instance created. Before using an API of the client, you must create a **GattClientDevice** instance.| + +**Example** + +```js +try { + let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX'); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### bluetoothManager.BLE.getConnectedBLEDevices + +getConnectedBLEDevices(): Array<string> + +Obtains the BLE devices connected to this device. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Return value** + +| Type | Description | +| ------------------- | ------------------- | +| Array<string> | Addresses of the BLE devices connected to this device.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let result = bluetoothManager.BLE.getConnectedBLEDevices(); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### bluetoothManager.BLE.startBLEScan + +startBLEScan(filters: Array<ScanFilter>, options?: ScanOptions): void + +Starts a BLE scan. + +**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH, ohos.permission.MANAGE_BLUETOOTH, ohos.permission.LOCATION, and ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------- | -------------------------------------- | ---- | ----------------------------------- | +| filters | Array<[ScanFilter](#scanfilter)> | Yes | Criteria for filtering the scan result. Set this parameter to **null** if you do not want to filter the scan result.| +| options | [ScanOptions](#scanoptions) | No | Scan options. | + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +function onReceiveEvent(data) { + console.info('BLE scan device find result = '+ JSON.stringify(data)); +} +try { + bluetoothManager.BLE.on("BLEDeviceFind", onReceiveEvent); + bluetoothManager.BLE.startBLEScan( + [{ + deviceId:"XX:XX:XX:XX:XX:XX", + name:"test", + serviceUuid:"00001888-0000-1000-8000-00805f9b34fb" + }], + { + interval: 500, + dutyMode: bluetoothManager.ScanDuty.SCAN_MODE_LOW_POWER, + matchMode: bluetoothManager.MatchMode.MATCH_MODE_AGGRESSIVE, + } + ); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### bluetoothManager.BLE.stopBLEScan + +stopBLEScan(): void + +Stops the BLE scan. + +**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + bluetoothManager.BLE.stopBLEScan(); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### bluetoothManager.BLE.on('BLEDeviceFind') + +on(type: "BLEDeviceFind", callback: Callback<Array<ScanResult>>): void + +Subscribe to the BLE device discovery events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ----------------------------------- | +| type | string | Yes | Event type. The value **BLEDeviceFind** indicates an event reported when a BLE device is discovered. | +| callback | Callback<Array<[ScanResult](#scanresult)>> | Yes | Callback invoked to return the discovered devices. You need to implement this callback.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900099 | Operation failed. | + +**Example** + +```js +function onReceiveEvent(data) { + console.info('bluetooth device find = '+ JSON.stringify(data)); +} +try { + bluetoothManager.BLE.on('BLEDeviceFind', onReceiveEvent); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### bluetoothManager.BLE.off('BLEDeviceFind') + +off(type: "BLEDeviceFind", callback?: Callback<Array<ScanResult>>): void + +Unsubscribes from the BLE device discovery events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **BLEDeviceFind** indicates an event reported when a BLE device is discovered. | +| callback | Callback<Array<[ScanResult](#scanresult)>> | No | Callback for the **BLEDeviceFind** event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900099 | Operation failed. | + +**Example** + +```js +function onReceiveEvent(data) { + console.info('bluetooth device find = '+ JSON.stringify(data)); +} +try { + bluetoothManager.BLE.on('BLEDeviceFind', onReceiveEvent); + bluetoothManager.BLE.off('BLEDeviceFind', onReceiveEvent); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## BaseProfile + +Provides the profile base class. + + +### getConnectionDevices + +getConnectionDevices(): Array<string> + +Obtains the connected devices. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Return value** + +| Type | Description | +| ------------------- | ------------- | +| Array<string> | Addresses of the connected devices.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900004 | Profile is not supported. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let a2dpSrc = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_A2DP_SOURCE) as bluetoothManager.A2dpSourceProfile; + let retArray = a2dpSrc.getConnectionDevices(); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + +### getDeviceState + +getDeviceState(device: string): ProfileConnectionState + +Obtains the connection state of the profile. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------ | ------ | ---- | ------- | +| device | string | Yes | Address of the target device.| + +**Return value** + +| Type | Description | +| ------------------------------------------------- | ----------------------- | +| [ProfileConnectionState](#profileconnectionstate) | Profile connection state obtained.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900004 | Profile is not supported. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let a2dpSrc = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_A2DP_SOURCE) as bluetoothManager.A2dpSourceProfile; + let ret = a2dpSrc.getDeviceState('XX:XX:XX:XX:XX:XX'); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + +## A2dpSourceProfile + +Before using an API of **A2dpSourceProfile**, you need to create an instance of this class by using **getProfile()**. + + +### connect + +connect(device: string): void + +Sets up an Advanced Audio Distribution Profile (A2DP) connection. + +**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------ | ------ | ---- | ------- | +| device | string | Yes | Address of the target device.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900004 | Profile is not supported. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let a2dpSrc = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_A2DP_SOURCE) as bluetoothManager.A2dpSourceProfile; + a2dpSrc.connect('XX:XX:XX:XX:XX:XX'); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### disconnect + +disconnect(device: string): void + +Disconnects an A2DP connection. + +**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------ | ------ | ---- | ------- | +| device | string | Yes | Address of the target device.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900004 | Profile is not supported. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let a2dpSrc = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_A2DP_SOURCE) as bluetoothManager.A2dpSourceProfile; + a2dpSrc.disconnect('XX:XX:XX:XX:XX:XX'); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### on('connectionStateChange') + +on(type: "connectionStateChange", callback: Callback<[StateChangeParam](#StateChangeParam)>): void + +Subscribes to the A2DP connection state change events. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **connectionStateChange** indicates an A2DP connection state change event.| +| callback | Callback<[StateChangeParam](#StateChangeParam)> | Yes | Callback invoked to return the A2DP connection state change event. | + +**Return value** + +No value is returned. + +**Example** + +```js +function onReceiveEvent(data) { + console.info('a2dp state = '+ JSON.stringify(data)); +} +let a2dpSrc = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_A2DP_SOURCE) as bluetoothManager.A2dpSourceProfile; +a2dpSrc.on('connectionStateChange', onReceiveEvent); +``` + + +### off('connectionStateChange') + +off(type: "connectionStateChange", callback?: Callback<[StateChangeParam](#StateChangeParam)>): void + +Unsubscribes from the A2DP connection state change events. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **connectionStateChange** indicates an A2DP connection state change event.| +| callback | Callback<[StateChangeParam](#StateChangeParam)> | No | Callback for the A2DP connection state change event. | + +**Return value** + +No value is returned. + +**Example** + +```js +function onReceiveEvent(data) { + console.info('a2dp state = '+ JSON.stringify(data)); +} +let a2dpSrc = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_A2DP_SOURCE) as bluetoothManager.A2dpSourceProfile; +a2dpSrc.on('connectionStateChange', onReceiveEvent); +a2dpSrc.off('connectionStateChange', onReceiveEvent); +``` + + +### getPlayingState + +getPlayingState(device: string): PlayingState + +Obtains the playing state of a device. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------ | ------ | ---- | ------- | +| device | string | Yes | Address of the target device.| + +**Return value** + +| Type | Description | +| ----------------------------- | ---------- | +| [PlayingState](#PlayingState) | Playing state of the remote device obtained.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900004 | Profile is not supported. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let a2dpSrc = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_A2DP_SOURCE) as bluetoothManager.A2dpSourceProfile; + let state = a2dpSrc.getPlayingState('XX:XX:XX:XX:XX:XX'); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## HandsFreeAudioGatewayProfile + +Before using an API of **HandsFreeAudioGatewayProfile**, you need to create an instance of this class by using **getProfile()**. + + +### connect + +connect(device: string): void + +Sets up a Hands-free Profile (HFP) connection of a device. + +**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------ | ------ | ---- | ------- | +| device | string | Yes | Address of the target device.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900004 | Profile is not supported. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let hfpAg = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_HANDS_FREE_AUDIO_GATEWAY) as bluetoothManager.HandsFreeAudioGatewayProfile; + hfpAg.connect('XX:XX:XX:XX:XX:XX'); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### disconnect + +disconnect(device: string): void + +Disconnects the HFP connection of a device. + +**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------ | ------ | ---- | ------- | +| device | string | Yes | Address of the target device.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900004 | Profile is not supported. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let hfpAg = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_HANDS_FREE_AUDIO_GATEWAY) as bluetoothManager.HandsFreeAudioGatewayProfile; + hfpAg.disconnect('XX:XX:XX:XX:XX:XX'); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### on('connectionStateChange') + +on(type: "connectionStateChange", callback: Callback<[StateChangeParam](#StateChangeParam)>): void + +Subscribes to the HFP connection state change events. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **connectionStateChange** indicates an HFP connection state change event. | +| callback | Callback<[StateChangeParam](#StateChangeParam)> | Yes | Callback invoked to return the HFP connection state change event. | + +**Example** + +```js +function onReceiveEvent(data) { + console.info('hfp state = '+ JSON.stringify(data)); +} +let hfpAg = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_HANDS_FREE_AUDIO_GATEWAY) as + bluetoothManager.HandsFreeAudioGatewayProfile; +hfpAg.on('connectionStateChange', onReceiveEvent); +``` + + +### off('connectionStateChange') + +off(type: "connectionStateChange", callback?: Callback<[StateChangeParam](#StateChangeParam)>): void + +Unsubscribes from the HFP connection state change events. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **connectionStateChange** indicates an HFP connection state change event. | +| callback | Callback<[StateChangeParam](#StateChangeParam)> | No | Callback for the HFP connection state change event. | + +**Example** + +```js +function onReceiveEvent(data) { + console.info('hfp state = '+ JSON.stringify(data)); +} +let hfpAg = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_HANDS_FREE_AUDIO_GATEWAY) as + bluetoothManager.HandsFreeAudioGatewayProfile; +hfpAg.on('connectionStateChange', onReceiveEvent); +hfpAg.off('connectionStateChange', onReceiveEvent); +``` + + +## HidHostProfile + +Before using an API of **HidHostProfile**, you need to create an instance of this class by using **getProfile()**. + + +### connect + +connect(device: string): void + +Connects to the HidHost service of a device. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------ | ------ | ---- | ------- | +| device | string | Yes | Address of the target device.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900004 | Profile is not supported. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let hidHostProfile = bluetoothManager.getProfileInst(bluetoothManager.ProfileId.PROFILE_HID_HOST) as bluetoothManager.HidHostProfile; + hidHostProfile.connect('XX:XX:XX:XX:XX:XX'); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### disconnect + +disconnect(device: string): void + +Disconnects from the HidHost service of a device. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------ | ------ | ---- | ------- | +| device | string | Yes | Address of the target device.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900004 | Profile is not supported. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let hidHostProfile = bluetoothManager.getProfileInst(bluetoothManager.ProfileId.PROFILE_HID_HOST) as bluetoothManager.HidHostProfile; + hidHostProfile.disconnect('XX:XX:XX:XX:XX:XX'); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### on('connectionStateChange') + +on(type: "connectionStateChange", callback: Callback<[StateChangeParam](#StateChangeParam)>): void + +Subscribes to the HidHost connection state change events. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **connectionStateChange** indicates a HidHost connection state change event. | +| callback | Callback<[StateChangeParam](#StateChangeParam)> | Yes | Callback invoked to return the HidHost connection state change event. | + +**Example** + +```js +function onReceiveEvent(data) { + console.info('hidHost state = '+ JSON.stringify(data)); +} +let hidHost = bluetoothManager.getProfileInst(bluetoothManager.ProfileId.PROFILE_HID_HOST) as bluetoothManager.HidHostProfile; +hidHost.on('connectionStateChange', onReceiveEvent); +``` + + +### off('connectionStateChange') + +off(type: "connectionStateChange", callback?: Callback<[StateChangeParam](#StateChangeParam)>): void + +Unsubscribes from the HidHost connection state change events. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ----------------------------------------------------- | ---- | --------------------------------------------------------- | +| type | string | Yes | Event type. The value **connectionStateChange** indicates a HidHost connection state change event. | +| callback | Callback<[StateChangeParam](#StateChangeParam)> | No | Callback for the HidHost connection state change event. | + +**Example** + +```js +function onReceiveEvent(data) { + console.info('hidHost state = '+ JSON.stringify(data)); +} +let hidHost = bluetoothManager.getProfileInst(bluetoothManager.ProfileId.PROFILE_HID_HOST) as bluetoothManager.HidHostProfile; +hidHost.on('connectionStateChange', onReceiveEvent); +hidHost.off('connectionStateChange', onReceiveEvent); +``` + + +## PanProfile + +Before using an API of **PanProfile**, you need to create an instance of this class by using **getProfile()**. + + +### disconnect + +disconnect(device: string): void + +Disconnects from the Personal Area Network (PAN) service of a device. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------ | ------ | ---- | ------- | +| device | string | Yes | Address of the target device.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900004 | Profile is not supported. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let panProfile = bluetoothManager.getProfileInst(bluetoothManager.ProfileId.PROFILE_PAN_NETWORK) as bluetoothManager.PanProfile; + panProfile.disconnect('XX:XX:XX:XX:XX:XX'); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### on('connectionStateChange') + +on(type: "connectionStateChange", callback: Callback<[StateChangeParam](#StateChangeParam)>): void + +Subscribes to the PAN connection state change events. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **connectionStateChange** indicates a PAN connection state change event. | +| callback | Callback<[StateChangeParam](#StateChangeParam)> | Yes | Callback invoked to return the PAN connection state change event. | + +**Example** + +```js +function onReceiveEvent(data) { + console.info('pan state = '+ JSON.stringify(data)); +} +let panProfile = bluetoothManager.getProfileInst(bluetoothManager.ProfileId.PROFILE_PAN_NETWORK) as bluetoothManager.PanProfile; +panProfile.on('connectionStateChange', onReceiveEvent); +``` + + +### off('connectionStateChange') + +off(type: "connectionStateChange", callback?: Callback<[StateChangeParam](#StateChangeParam)>): void + +Unsubscribes from the PAN connection state change events. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ----------------------------------------------------- | ---- | --------------------------------------------------------- | +| type | string | Yes | Event type. The value **connectionStateChange** indicates a PAN connection state change event. | +| callback | Callback<[StateChangeParam](#StateChangeParam)> | No | Callback for the PAN connection state change event. | + +**Example** + +```js +function onReceiveEvent(data) { + console.info('pan state = '+ JSON.stringify(data)); +} +let panProfile = bluetoothManager.getProfileInst(bluetoothManager.ProfileId.PROFILE_PAN_NETWORK) as bluetoothManager.PanProfile; +panProfile.on('connectionStateChange', onReceiveEvent); +panProfile.off('connectionStateChange', onReceiveEvent); +``` + + +### setTethering + +setTethering(enable: boolean): void + +Sets tethering. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------ | ------ | ---- | ------- | +| value | boolean | Yes | Whether to set tethering over a Bluetooth PAN.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900004 | Profile is not supported. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let panProfile = bluetoothManager.getProfileInst(bluetoothManager.ProfileId.PROFILE_PAN_NETWORK) as bluetoothManager.PanProfile; + panProfile.setTethering(true); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### isTetheringOn + +isTetheringOn(): boolean + +Obtains the network sharing status. + +**System API**: This is a system API. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Return value** + +| Type | Description | +| --------------------- | --------------------------------- | +| boolean | Returns **true** if tethering is available over a Bluetooth PAN; return **false** otherwise.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900004 | Profile is not supported. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let panProfile = bluetoothManager.getProfileInst(bluetoothManager.ProfileId.PROFILE_PAN_NETWORK) as bluetoothManager.PanProfile; + let ret = panProfile.isTetheringOn(); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## GattServer + +Implements the Generic Attribute Profile (GATT) server. Before using an API of this class, you need to create a **GattServer** instance using **createGattServer()**. + + +### startAdvertising + +startAdvertising(setting: AdvertiseSetting, advData: AdvertiseData, advResponse?: AdvertiseData): void + +Starts BLE advertising. + +**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ----------- | ------------------------------------- | ---- | -------------- | +| setting | [AdvertiseSetting](#advertisesetting) | Yes | Settings related to BLE advertising. | +| advData | [AdvertiseData](#advertisedata) | Yes | Content of the BLE advertisement packet. | +| advResponse | [AdvertiseData](#advertisedata) | No | Response to the BLE scan request.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +let manufactureValueBuffer = new Uint8Array(4); +manufactureValueBuffer[0] = 1; +manufactureValueBuffer[1] = 2; +manufactureValueBuffer[2] = 3; +manufactureValueBuffer[3] = 4; + +let serviceValueBuffer = new Uint8Array(4); +serviceValueBuffer[0] = 4; +serviceValueBuffer[1] = 6; +serviceValueBuffer[2] = 7; +serviceValueBuffer[3] = 8; +console.info('manufactureValueBuffer = '+ JSON.stringify(manufactureValueBuffer)); +console.info('serviceValueBuffer = '+ JSON.stringify(serviceValueBuffer)); +let gattServer = bluetoothManager.BLE.createGattServer(); +try { + gattServer.startAdvertising({ + interval:150, + txPower:60, + connectable:true, + },{ + serviceUuids:["00001888-0000-1000-8000-00805f9b34fb"], + manufactureData:[{ + manufactureId:4567, + manufactureValue:manufactureValueBuffer.buffer + }], + serviceData:[{ + serviceUuid:"00001888-0000-1000-8000-00805f9b34fb", + serviceValue:serviceValueBuffer.buffer + }], + },{ + serviceUuids:["00001889-0000-1000-8000-00805f9b34fb"], + manufactureData:[{ + manufactureId:1789, + manufactureValue:manufactureValueBuffer.buffer + }], + serviceData:[{ + serviceUuid:"00001889-0000-1000-8000-00805f9b34fb", + serviceValue:serviceValueBuffer.buffer + }], + }); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### stopAdvertising + +stopAdvertising(): void + +Stops BLE advertising. + +**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +let server = bluetoothManager.BLE.createGattServer(); +try { + server.stopAdvertising(); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### addService + +addService(service: GattService): void + +Adds a service to this GATT server. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------- | --------------------------- | ---- | ------------------------ | +| service | [GattService](#gattservice) | Yes | Service to add. Settings related to BLE advertising.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +// Create descriptors. +let descriptors = []; +let arrayBuffer = new ArrayBuffer(8); +let descV = new Uint8Array(arrayBuffer); +descV[0] = 11; +let descriptor = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB', + characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB', + descriptorUuid: '00002902-0000-1000-8000-00805F9B34FB', descriptorValue: arrayBuffer}; +descriptors[0] = descriptor; + +// Create characteristics. +let characteristics = []; +let arrayBufferC = new ArrayBuffer(8); +let cccV = new Uint8Array(arrayBufferC); +cccV[0] = 1; +let characteristic = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB', + characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB', characteristicValue: arrayBufferC, descriptors:descriptors}; +let characteristicN = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB', + characteristicUuid: '00001821-0000-1000-8000-00805F9B34FB', characteristicValue: arrayBufferC, descriptors:descriptors}; +characteristics[0] = characteristic; + +// Create a gattService instance. +let gattService = {serviceUuid:'00001810-0000-1000-8000-00805F9B34FB', isPrimary: true, characteristics:characteristics, includeServices:[]}; + +let gattServer = bluetoothManager.BLE.createGattServer(); +try { + gattServer.addService(gattService); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### removeService + +removeService(serviceUuid: string): void + +Removes a service from this GATT server. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ----------- | ------ | ---- | ---------------------------------------- | +| serviceUuid | string | Yes | Universally unique identifier (UUID) of the service to remove, for example, **00001810-0000-1000-8000-00805F9B34FB**.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900004 | Profile is not supported. | +|2900099 | Operation failed. | + +**Example** + +```js +let server = bluetoothManager.BLE.createGattServer(); +try { + server.removeService('00001810-0000-1000-8000-00805F9B34FB'); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### close + +close(): void + +Closes this GATT server to unregister it from the protocol stack. After this method is called, this [GattServer](#gattserver) cannot be used. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +let server = bluetoothManager.BLE.createGattServer(); +try { + server.close(); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### notifyCharacteristicChanged + +notifyCharacteristicChanged(deviceId: string, notifyCharacteristic: NotifyCharacteristic): void + +Notifies the connected client device when a characteristic value changes. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------------------- | ---------------------------------------- | ---- | --------------------------------------- | +| deviceId | string | Yes | Address of the client that receives notifications, for example, XX:XX:XX:XX:XX:XX.| +| notifyCharacteristic | [NotifyCharacteristic](#notifycharacteristic) | Yes | New characteristic value. | + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +// Create descriptors. +let descriptors = []; +let arrayBuffer = new ArrayBuffer(8); +let descV = new Uint8Array(arrayBuffer); +descV[0] = 11; +let descriptor = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB', + characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB', + descriptorUuid: '00002902-0000-1000-8000-00805F9B34FB', descriptorValue: arrayBuffer}; +descriptors[0] = descriptor; +let arrayBufferC = new ArrayBuffer(8); +let characteristic = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB', + characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB', characteristicValue: arrayBufferC, descriptors:descriptors}; +let notifyCharacteristic = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB', + characteristicUuid: '00001821-0000-1000-8000-00805F9B34FB', characteristicValue: characteristic.characteristicValue, confirm: false}; +let server = bluetoothManager.BLE.createGattServer(); +try { + server.notifyCharacteristicChanged('XX:XX:XX:XX:XX:XX', notifyCharacteristic); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### sendResponse + +sendResponse(serverResponse: ServerResponse): void + +Sends a response to a read or write request from the GATT client. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------------- | --------------------------------- | ---- | --------------- | +| serverResponse | [ServerResponse](#serverresponse) | Yes | Response returned by the GATT server.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +/* send response */ +let arrayBufferCCC = new ArrayBuffer(8); +let cccValue = new Uint8Array(arrayBufferCCC); +cccValue[0] = 1123; +let serverResponse = { + "deviceId": "XX:XX:XX:XX:XX:XX", + "transId": 0, + "status": 0, + "offset": 0, + "value": arrayBufferCCC, +}; + +let gattServer = bluetoothManager.BLE.createGattServer(); +try { + gattServer.sendResponse(serverResponse); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### on('characteristicRead') + +on(type: "characteristicRead", callback: Callback<CharacteristicReadRequest>): void + +Subscribes to the characteristic read request events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ------------------------------------- | +| type | string | Yes | Event type. The value **characteristicRead** indicates a characteristic read request event.| +| callback | Callback<[CharacteristicReadRequest](#characteristicreadrequest)> | Yes | Callback invoked to return a characteristic read request event from the GATT client. | + +**Example** + +```js +let arrayBufferCCC = new ArrayBuffer(8); +let cccValue = new Uint8Array(arrayBufferCCC); +cccValue[0] = 1123; +function ReadCharacteristicReq(CharacteristicReadRequest) { + let deviceId = CharacteristicReadRequest.deviceId; + let transId = CharacteristicReadRequest.transId; + let offset = CharacteristicReadRequest.offset; + let characteristicUuid = CharacteristicReadRequest.characteristicUuid; + + let serverResponse = {deviceId: deviceId, transId: transId, status: 0, offset: offset, value:arrayBufferCCC}; + + try { + gattServer.sendResponse(serverResponse); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } +} + +let gattServer = bluetoothManager.BLE.createGattServer(); +gattServer.on("characteristicRead", ReadCharacteristicReq); +``` + + +### off('characteristicRead') + +off(type: "characteristicRead", callback?: Callback<CharacteristicReadRequest>): void + +Unsubscribes from the characteristic read request events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **characteristicRead** indicates a characteristic read request event. | +| callback | Callback<[CharacteristicReadRequest](#characteristicreadrequest)> | No | Callback for the characteristic read request event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.| + +**Example** + +```js +let gattServer = bluetoothManager.BLE.createGattServer(); +gattServer.off("characteristicRead"); +``` + + +### on('characteristicWrite') + +on(type: "characteristicWrite", callback: Callback<CharacteristicWriteRequest>): void + +Subscribes to the characteristic write request events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | -------------------------------------- | +| type | string | Yes | Event type. The value **characteristicWrite** indicates a characteristic write request event.| +| callback | Callback<[CharacteristicWriteRequest](#characteristicwriterequest)> | Yes | Callback invoked to return a characteristic write request from the GATT client. | + +**Example** + +```js +let arrayBufferCCC = new ArrayBuffer(8); +let cccValue = new Uint8Array(arrayBufferCCC); +function WriteCharacteristicReq(CharacteristicWriteRequest) { + let deviceId = CharacteristicWriteRequest.deviceId; + let transId = CharacteristicWriteRequest.transId; + let offset = CharacteristicWriteRequest.offset; + let isPrep = CharacteristicWriteRequest.isPrep; + let needRsp = CharacteristicWriteRequest.needRsp; + let value = new Uint8Array(CharacteristicWriteRequest.value); + let characteristicUuid = CharacteristicWriteRequest.characteristicUuid; + + cccValue[0] = value[0]; + let serverResponse = {deviceId: deviceId, transId: transId, status: 0, offset: offset, value:arrayBufferCCC}; + + try { + gattServer.sendResponse(serverResponse); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } +} + +let gattServer = bluetoothManager.BLE.createGattServer(); +gattServer.on("characteristicWrite", WriteCharacteristicReq); +``` + + +### off('characteristicWrite') + +off(type: "characteristicWrite", callback?: Callback<CharacteristicWriteRequest>): void + +Unsubscribes from the characteristic write request events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **characteristicWrite** indicates a characteristic write request event. | +| callback | Callback<[CharacteristicWriteRequest](#characteristicwriterequest)> | No | Callback for the characteristic write request event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.| + +**Example** + +```js +let gattServer = bluetoothManager.BLE.createGattServer(); +gattServer.off("characteristicWrite"); +``` + + +### on('descriptorRead') + +on(type: "descriptorRead", callback: Callback<DescriptorReadRequest>): void + +Subscribes to the descriptor read request events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | --------------------------------- | +| type | string | Yes | Event type. The value **descriptorRead** indicates a descriptor read request event.| +| callback | Callback<[DescriptorReadRequest](#descriptorreadrequest)> | Yes | Callback invoked to return a descriptor read request event from the GATT client. | + +**Example** + +```js +let arrayBufferDesc = new ArrayBuffer(8); +let descValue = new Uint8Array(arrayBufferDesc); +descValue[0] = 1101; +function ReadDescriptorReq(DescriptorReadRequest) { + let deviceId = DescriptorReadRequest.deviceId; + let transId = DescriptorReadRequest.transId; + let offset = DescriptorReadRequest.offset; + let descriptorUuid = DescriptorReadRequest.descriptorUuid; + + let serverResponse = {deviceId: deviceId, transId: transId, status: 0, offset: offset, value:arrayBufferDesc}; + + try { + gattServer.sendResponse(serverResponse); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } +} + +let gattServer = bluetoothManager.BLE.createGattServer(); +gattServer.on("descriptorRead", ReadDescriptorReq); +``` + + +### off('descriptorRead') + +off(type: "descriptorRead", callback?: Callback<DescriptorReadRequest>): void + +Unsubscribes from the descriptor read request events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **descriptorRead** indicates a descriptor read request event. | +| callback | Callback<[DescriptorReadRequest](#descriptorreadrequest)> | No | Callback for the descriptor read request event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.| + +**Example** + +```js +let gattServer = bluetoothManager.BLE.createGattServer(); +gattServer.off("descriptorRead"); +``` + + +### on('descriptorWrite') + +on(type: "descriptorWrite", callback: Callback<DescriptorWriteRequest>): void + +Subscribes to the descriptor write request events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------- | +| type | string | Yes | Event type. The value **descriptorWrite** indicates a descriptor write request event.| +| callback | Callback<[DescriptorWriteRequest](#descriptorwriterequest)> | Yes | Callback invoked to return a descriptor write request from the GATT client. | + +**Example** + +```js +let arrayBufferDesc = new ArrayBuffer(8); +let descValue = new Uint8Array(arrayBufferDesc); +function WriteDescriptorReq(DescriptorWriteRequest) { + let deviceId = DescriptorWriteRequest.deviceId; + let transId = DescriptorWriteRequest.transId; + let offset = DescriptorWriteRequest.offset; + let isPrep = DescriptorWriteRequest.isPrep; + let needRsp = DescriptorWriteRequest.needRsp; + let value = new Uint8Array(DescriptorWriteRequest.value); + let descriptorUuid = DescriptorWriteRequest.descriptorUuid; + + descValue[0] = value[0]; + let serverResponse = {deviceId: deviceId, transId: transId, status: 0, offset: offset, value:arrayBufferDesc}; + + try { + gattServer.sendResponse(serverResponse); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } +} + +let gattServer = bluetoothManager.BLE.createGattServer(); +gattServer.on("descriptorRead", WriteDescriptorReq); +``` + + +### off('descriptorWrite') + +off(type: "descriptorWrite", callback?: Callback<DescriptorWriteRequest>): void + +Unsubscribes from the descriptor write request events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **descriptorWrite** indicates a descriptor write request event. | +| callback | Callback<[DescriptorWriteRequest](#descriptorwriterequest)> | No | Callback for the descriptor write request event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.| + +**Example** + +```js +let gattServer = bluetoothManager.BLE.createGattServer(); +gattServer.off("descriptorWrite"); +``` + + +### on('connectStateChange') + +on(type: "connectStateChange", callback: Callback<BLEConnectChangedState>): void + +Subscribes to the BLE connection state change events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **connectStateChange** indicates a BLE connection state change event.| +| callback | Callback<[BLEConnectChangedState](#bleconnectchangedstate)> | Yes | Callback invoked to return the BLE connection state. | + +**Example** + +```js +function Connected(BLEConnectChangedState) { + let deviceId = BLEConnectChangedState.deviceId; + let status = BLEConnectChangedState.state; +} + +let gattServer = bluetoothManager.BLE.createGattServer(); +gattServer.on("connectStateChange", Connected); +``` + + +### off('connectStateChange') + +off(type: "connectStateChange", callback?: Callback<BLEConnectChangedState>): void + +Unsubscribes from the BLE connection state change events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **connectStateChange** indicates a BLE connection state change event.| +| callback | Callback<[BLEConnectChangedState](#bleconnectchangedstate)> | No | Callback for the BLE connection state change event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.| + +**Example** + +```js +let gattServer = bluetoothManager.BLE.createGattServer(); +gattServer.off("connectStateChange"); +``` + + +## GattClientDevice + +Implements the GATT client. Before using an API of this class, you must create a **GattClientDevice** instance using **createGattClientDevice(deviceId: string)**. + + +### connect + +connect(): void + +Initiates a connection to the remote BLE device. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX'); + device.connect(); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### disconnect + +disconnect(): void + +Disconnects from the remote BLE device. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX'); + device.disconnect(); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### close + +close(): void + +Closes this GATT client to unregister it from the protocol stack. After this method is called, this [GattClientDevice](#gattclientdevice) instance cannot be used. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX'); + device.close(); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + + + +### getServices + +getServices(callback: AsyncCallback<Array<GattService>>): void + +Obtains all services of the remote BLE device. This API uses an asynchronous callback to return the result. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ------------------------ | +| callback | AsyncCallback<Array<[GattService](#gattservice)>> | Yes | Callback invoked to return the services obtained.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900099 | Operation failed. | + +**Example** + +```js +// Callback +function getServices(code, gattServices) { + if (code.code == 0) { + let services = gattServices; + console.log('bluetooth code is ' + code.code); + console.log("bluetooth services size is ", services.length); + + for (let i = 0; i < services.length; i++) { + console.log('bluetooth serviceUuid is ' + services[i].serviceUuid); + } + } +} + +try { + let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX'); + device.connect(); + device.getServices(getServices); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### getServices + +getServices(): Promise<Array<GattService>> + +Obtains all services of the remote BLE device. This API uses a promise to return the result. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Return value** + +| Type | Description | +| ---------------------------------------- | --------------------------- | +| Promise<Array<[GattService](#gattservice)>> | Promise used to return the services obtained.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900099 | Operation failed. | + +**Example** + +```js +// Promise +try { + let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX'); + device.connect(); + device.getServices().then(result => { + console.info("getServices successfully:" + JSON.stringify(result)); + }); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### readCharacteristicValue + +readCharacteristicValue(characteristic: BLECharacteristic, callback: AsyncCallback<BLECharacteristic>): void + +Reads the characteristic value of the specific service of the remote BLE device. This API uses an asynchronous callback to return the result. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------------- | ---------------------------------------- | ---- | ----------------------- | +| characteristic | [BLECharacteristic](#blecharacteristic) | Yes | Characteristic value to read. | +| callback | AsyncCallback<[BLECharacteristic](#blecharacteristic)> | Yes | Callback invoked to return the characteristic value read.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2901000 | Read forbidden. | +|2900099 | Operation failed. | + +**Example** + +```js +function readCcc(code, BLECharacteristic) { + if (code.code != 0) { + return; + } + console.log('bluetooth characteristic uuid: ' + BLECharacteristic.characteristicUuid); + let value = new Uint8Array(BLECharacteristic.characteristicValue); + console.log('bluetooth characteristic value: ' + value[0] +','+ value[1]+','+ value[2]+','+ value[3]); +} + +let descriptors = []; +let bufferDesc = new ArrayBuffer(8); +let descV = new Uint8Array(bufferDesc); +descV[0] = 11; +let descriptor = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB', +characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB', +descriptorUuid: '00002903-0000-1000-8000-00805F9B34FB', descriptorValue: bufferDesc}; +descriptors[0] = descriptor; + +let bufferCCC = new ArrayBuffer(8); +let cccV = new Uint8Array(bufferCCC); +cccV[0] = 1; +let characteristic = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB', +characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB', +characteristicValue: bufferCCC, descriptors:descriptors}; + +try { + let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX'); + device.readCharacteristicValue(characteristic, readCcc); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### readCharacteristicValue + +readCharacteristicValue(characteristic: BLECharacteristic): Promise<BLECharacteristic> + +Reads the characteristic value of the specific service of the remote BLE device. This API uses an asynchronous callback to return the result. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------------- | --------------------------------------- | ---- | -------- | +| characteristic | [BLECharacteristic](#blecharacteristic) | Yes | Characteristic value to read.| + +**Return value** + +| Type | Description | +| ---------------------------------------- | -------------------------- | +| Promise<[BLECharacteristic](#blecharacteristic)> | Promise used to return the characteristic value read.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2901000 | Read forbidden. | +|2900099 | Operation failed. | + +**Example** + +```js +let descriptors = []; +let bufferDesc = new ArrayBuffer(8); +let descV = new Uint8Array(bufferDesc); +descV[0] = 11; +let descriptor = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB', +characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB', +descriptorUuid: '00002903-0000-1000-8000-00805F9B34FB', descriptorValue: bufferDesc}; +descriptors[0] = descriptor; + +let bufferCCC = new ArrayBuffer(8); +let cccV = new Uint8Array(bufferCCC); +cccV[0] = 1; +let characteristic = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB', +characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB', +characteristicValue: bufferCCC, descriptors:descriptors}; + +try { + let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX'); + device.readCharacteristicValue(characteristic); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### readDescriptorValue + +readDescriptorValue(descriptor: BLEDescriptor, callback: AsyncCallback<BLEDescriptor>): void + +Reads the descriptor contained in the specific characteristic of the remote BLE device. This API uses an asynchronous callback to return the result. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ---------- | ---------------------------------------- | ---- | ----------------------- | +| descriptor | [BLEDescriptor](#bledescriptor) | Yes | Descriptor to read. | +| callback | AsyncCallback<[BLEDescriptor](#bledescriptor)> | Yes | Callback invoked to return the descriptor read.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2901000 | Read forbidden. | +|2900099 | Operation failed. | + +**Example** + +```js +function readDesc(code, BLEDescriptor) { + if (code.code != 0) { + return; + } + console.log('bluetooth descriptor uuid: ' + BLEDescriptor.descriptorUuid); + let value = new Uint8Array(BLEDescriptor.descriptorValue); + console.log('bluetooth descriptor value: ' + value[0] +','+ value[1]+','+ value[2]+','+ value[3]); +} + +let bufferDesc = new ArrayBuffer(8); +let descV = new Uint8Array(bufferDesc); +descV[0] = 11; +let descriptor = { + serviceUuid: '00001810-0000-1000-8000-00805F9B34FB', + characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB', + descriptorUuid: '00002903-0000-1000-8000-00805F9B34FB', + descriptorValue: bufferDesc +}; +try { + let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX'); + device.readDescriptorValue(descriptor, readDesc); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### readDescriptorValue + +readDescriptorValue(descriptor: BLEDescriptor): Promise<BLEDescriptor> + +Reads the descriptor contained in the specific characteristic of the remote BLE device. This API uses an asynchronous callback to return the result. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ---------- | ------------------------------- | ---- | -------- | +| descriptor | [BLEDescriptor](#bledescriptor) | Yes | Descriptor to read.| + +**Return value** + +| Type | Description | +| ---------------------------------------- | -------------------------- | +| Promise<[BLEDescriptor](#bledescriptor)> | Promise used to return the descriptor read.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2901000 | Read forbidden. | +|2900099 | Operation failed. | + +**Example** + +```js +let bufferDesc = new ArrayBuffer(8); +let descV = new Uint8Array(bufferDesc); +descV[0] = 11; +let descriptor = { + serviceUuid: '00001810-0000-1000-8000-00805F9B34FB', + characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB', + descriptorUuid: '00002903-0000-1000-8000-00805F9B34FB', + descriptorValue: bufferDesc +}; +try { + let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX'); + device.readDescriptorValue(descriptor); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### writeCharacteristicValue + +writeCharacteristicValue(characteristic: BLECharacteristic): void + +Writes a characteristic value to the remote BLE device. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------------- | --------------------------------------- | ---- | ------------------- | +| characteristic | [BLECharacteristic](#blecharacteristic) | Yes | Binary value and other parameters of the BLE device characteristic.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2901001 | Write forbidden. | +|2900099 | Operation failed. | + +**Example** + +```js +let descriptors = []; +let bufferDesc = new ArrayBuffer(8); +let descV = new Uint8Array(bufferDesc); +descV[0] = 11; +let descriptor = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB', + characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB', + descriptorUuid: '00002903-0000-1000-8000-00805F9B34FB', descriptorValue: bufferDesc}; +descriptors[0] = descriptor; + +let bufferCCC = new ArrayBuffer(8); +let cccV = new Uint8Array(bufferCCC); +cccV[0] = 1; +let characteristic = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB', + characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB', + characteristicValue: bufferCCC, descriptors:descriptors}; +try { + let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX'); + device.writeCharacteristicValue(characteristic); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### writeDescriptorValue + +writeDescriptorValue(descriptor: BLEDescriptor): void + +Writes binary data to the specific descriptor of the remote BLE device. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ---------- | ------------------------------- | ---- | ------------------ | +| descriptor | [BLEDescriptor](#bledescriptor) | Yes | Binary value and other parameters of the BLE device descriptor.| +| boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2901001 | Write forbidden. | +|2900099 | Operation failed. | + +**Example** + +```js +let bufferDesc = new ArrayBuffer(8); +let descV = new Uint8Array(bufferDesc); +descV[0] = 22; +let descriptor = { + serviceUuid: '00001810-0000-1000-8000-00805F9B34FB', + characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB', + descriptorUuid: '00002903-0000-1000-8000-00805F9B34FB', + descriptorValue: bufferDesc +}; +try { + let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX'); + device.writeDescriptorValue(descriptor); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### setBLEMtuSize + +setBLEMtuSize(mtu: number): void + +Sets the maximum transmission unit (MTU) that can be transmitted between the GATT client and its remote BLE device. This API can be used only after a connection is set up by calling [connect](#connect). + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ---- | ------ | ---- | -------------- | +| mtu | number | Yes | MTU to set, which ranges from 22 to 512 bytes.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900099 | Operation failed. | + +**Example** + +```js +try { + let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX'); + device.setBLEMtuSize(128); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### setNotifyCharacteristicChanged + +setNotifyCharacteristicChanged(characteristic: BLECharacteristic, enable: boolean): void + +Sets the function of notifying the GATT client when the characteristic value of the remote BLE device changes. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------------- | --------------------------------------- | ---- | ----------------------------- | +| characteristic | [BLECharacteristic](#blecharacteristic) | Yes | BLE characteristic to listen for. | +| enable | boolean | Yes | Whether to enable the notify function. The value **true** means to enable the notify function, and the value **false** means the opposite.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900099 | Operation failed. | + +**Example** + +```js +// Create descriptors. +let descriptors = []; +let arrayBuffer = new ArrayBuffer(8); +let descV = new Uint8Array(arrayBuffer); +descV[0] = 11; +let descriptor = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB', + characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB', + descriptorUuid: '00002902-0000-1000-8000-00805F9B34FB', descriptorValue: arrayBuffer}; +descriptors[0] = descriptor; +let arrayBufferC = new ArrayBuffer(8); +let characteristic = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB', + characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB', characteristicValue: arrayBufferC, descriptors:descriptors}; +try { + let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX'); + device.setNotifyCharacteristicChanged(characteristic, false); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} + +``` + + +### on('BLECharacteristicChange') + +on(type: "BLECharacteristicChange", callback: Callback<BLECharacteristic>): void + +Subscribes to the BLE characteristic change events. The client can receive a notification from the server only after the **setNotifyCharacteristicChanged** method is called. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **BLECharacteristicChange** indicates a characteristic value change event.| +| callback | Callback<[BLECharacteristic](#blecharacteristic)> | Yes | Callback invoked to return the characteristic value changes. | + +**Example** + +```js +function CharacteristicChange(CharacteristicChangeReq) { + let serviceUuid = CharacteristicChangeReq.serviceUuid; + let characteristicUuid = CharacteristicChangeReq.characteristicUuid; + let value = new Uint8Array(CharacteristicChangeReq.characteristicValue); +} +try { + let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX'); + device.on('BLECharacteristicChange', CharacteristicChange); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### off('BLECharacteristicChange') + +off(type: "BLECharacteristicChange", callback?: Callback<BLECharacteristic>): void + +Unsubscribes from the BLE characteristic change events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **BLECharacteristicChange** indicates a characteristic value change event.| +| callback | Callback<[BLECharacteristic](#blecharacteristic)> | No | Callback for the characteristic value change event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.| + +**Example** + +```js +try { + let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX'); + device.off('BLECharacteristicChange'); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### on('BLEConnectionStateChange') + +on(type: "BLEConnectionStateChange", callback: Callback<BLEConnectChangedState>): void + +Subscribes to the BLE connection state change events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **BLEConnectionStateChange** indicates a BLE connection state change event.| +| callback | Callback<[BLEConnectChangedState](#bleconnectchangedstate)> | Yes | Callback invoked to return the BLE connection state. | + +**Example** + +```js +function ConnectStateChanged(state) { + console.log('bluetooth connect state changed'); + let connectState = state.state; +} +try { + let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX'); + device.on('BLEConnectionStateChange', ConnectStateChanged); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### off('BLEConnectionStateChange') + +off(type: "BLEConnectionStateChange", callback?: Callback<BLEConnectChangedState>): void + +Unsubscribes from the BLE connection state change events. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| type | string | Yes | Event type. The value **BLEConnectionStateChange** indicates a BLE connection state change event.| +| callback | Callback<[BLEConnectChangedState](#bleconnectchangedstate)> | No | Callback for the BLE connection state change event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.| + +**Example** + +```js +try { + let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX'); + device.off('BLEConnectionStateChange'); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### getDeviceName + +getDeviceName(callback: AsyncCallback<string>): void + +Obtains the name of the remote BLE device. This API uses an asynchronous callback to return the result. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | --------------------------- | ---- | ------------------------------- | +| callback | AsyncCallback<string> | Yes | Callback invoked to return the remote BLE device name obtained.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900099 | Operation failed. | + +**Example** + +```js +// callback +try { + let gattClient = bluetoothManager.BLE.createGattClientDevice("XX:XX:XX:XX:XX:XX"); + gattClient.connect(); + let deviceName = gattClient.getDeviceName((err, data)=> { + console.info('device name err ' + JSON.stringify(err)); + console.info('device name' + JSON.stringify(data)); + }) +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### getDeviceName + +getDeviceName(): Promise<string> + +Obtains the name of the remote BLE device. This API uses a promise to return the result. + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Return value** + +| Type | Description | +| --------------------- | ---------------------------------- | +| Promise<string> | Promise used to return the remote BLE device name.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900099 | Operation failed. | + +**Example** + +```js +// promise +try { + let gattClient = bluetoothManager.BLE.createGattClientDevice("XX:XX:XX:XX:XX:XX"); + gattClient.connect(); + let deviceName = gattClient.getDeviceName().then((data) => { + console.info('device name' + JSON.stringify(data)); + }) +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### getRssiValue + +getRssiValue(callback: AsyncCallback<number>): void + +Obtains the received signal strength indication (RSSI) of the remote BLE device. This API uses an asynchronous callback to return the result. It can be used only after a connection is set up by calling [connect](#connect). + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | --------------------------- | ---- | ------------------------------ | +| callback | AsyncCallback<number> | Yes | Callback invoked to return the RSSI, in dBm.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900099 | Operation failed. | + +**Example** + +```js +// callback +try { + let gattClient = bluetoothManager.BLE.createGattClientDevice("XX:XX:XX:XX:XX:XX"); + gattClient.connect(); + let rssi = gattClient.getRssiValue((err, data)=> { + console.info('rssi err ' + JSON.stringify(err)); + console.info('rssi value' + JSON.stringify(data)); + }) +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +### getRssiValue + +getRssiValue(): Promise<number> + +Obtains the RSSI of the remote BLE device. This API uses a promise to return the result. It can be used only after a connection is set up by calling [connect](#connect). + +**Required permissions**: ohos.permission.USE_BLUETOOTH + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +**Return value** + +| Type | Description | +| --------------------- | --------------------------------- | +| Promise<number> | Promise used to return the RSSI, in dBm.| + +**Error codes** + +For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md). + +| ID| Error Message| +| -------- | ---------------------------- | +|2900099 | Operation failed. | + +**Example** + +```js +// promise +try { + let gattClient = bluetoothManager.BLE.createGattClientDevice("XX:XX:XX:XX:XX:XX"); + let rssi = gattClient.getRssiValue().then((data) => { + console.info('rssi' + JSON.stringify(data)); + }) +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + +## ScanMode + +Enumerates the scan modes. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Value | Description | +| ---------------------------------------- | ---- | --------------- | +| SCAN_MODE_NONE | 0 | No scan mode. | +| SCAN_MODE_CONNECTABLE | 1 | Connectable mode. | +| SCAN_MODE_GENERAL_DISCOVERABLE | 2 | General discoverable mode. | +| SCAN_MODE_LIMITED_DISCOVERABLE | 3 | Limited discoverable mode. | +| SCAN_MODE_CONNECTABLE_GENERAL_DISCOVERABLE | 4 | General connectable and discoverable mode.| +| SCAN_MODE_CONNECTABLE_LIMITED_DISCOVERABLE | 5 | Limited connectable and discoverable mode.| + +## BondState + +Enumerates the pairing states. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Value | Description | +| ------------------ | ---- | ------ | +| BOND_STATE_INVALID | 0 | Invalid pairing.| +| BOND_STATE_BONDING | 1 | Pairing. | +| BOND_STATE_BONDED | 2 | Paired. | + + +## SppOption + +Defines the SPP configuration parameters. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable | Writable | Description | +| ------ | ------------------- | ---- | ---- | ----------- | +| uuid | string | Yes | Yes | UUID of the SPP.| +| secure | boolean | Yes | Yes | Whether it is a secure channel. | +| type | [SppType](#spptype) | Yes | Yes | Type of the SPP link. | + + +## SppType + +Enumerates the SPP link types. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Value | Description | +| ---------- | ---- | ------------- | +| SPP_RFCOMM | 0 | Radio frequency communication (RFCOMM) link type.| + + +## GattService + +Defines the GATT service API parameters. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable | Writable | Description | +| --------------- | ---------------------------------------- | ---- | ---- | ---------------------------------------- | +| serviceUuid | string | Yes | Yes | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.| +| isPrimary | boolean | Yes | Yes | Whether the service is a primary service. The value **true** means a primary service. | +| characteristics | Array<[BLECharacteristic](#blecharacteristic)> | Yes | Yes | List of characteristics of the service. | +| includeServices | Array<[GattService](#gattservice)> | Yes | Yes | Services on which the service depends. | + + +## BLECharacteristic + +Defines the characteristic API parameters. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable | Writable | Description | +| ------------------- | ---------------------------------------- | ---- | ---- | ---------------------------------------- | +| serviceUuid | string | Yes | Yes | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.| +| characteristicUuid | string | Yes | Yes | UUID of the characteristic, for example, **00002a11-0000-1000-8000-00805f9b34fb**.| +| characteristicValue | ArrayBuffer | Yes | Yes | Binary value of the characteristic. | +| descriptors | Array<[BLEDescriptor](#bledescriptor)> | Yes | Yes | List of descriptors of the characteristic. | + + +## BLEDescriptor + +Defines the descriptor API parameters. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable | Writable | Description | +| ------------------ | ----------- | ---- | ---- | ---------------------------------------- | +| serviceUuid | string | Yes | Yes | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.| +| characteristicUuid | string | Yes | Yes | UUID of the characteristic, for example, **00002a11-0000-1000-8000-00805f9b34fb**.| +| descriptorUuid | string | Yes | Yes | UUID of the descriptor, for example, **00002902-0000-1000-8000-00805f9b34fb**.| +| descriptorValue | ArrayBuffer | Yes | Yes | Binary value of the descriptor. | + + +## NotifyCharacteristic + +Defines the parameters in the notifications sent when the server characteristic value changes. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable | Writable | Description | +| ------------------- | ----------- | ---- | ---- | ---------------------------------------- | +| serviceUuid | string | Yes | Yes | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.| +| characteristicUuid | string | Yes | Yes | UUID of the characteristic, for example, **00002a11-0000-1000-8000-00805f9b34fb**.| +| characteristicValue | ArrayBuffer | Yes | Yes | Binary value of the characteristic. | +| confirm | boolean | Yes | Yes | Whether the notification needs to be confirmed by the remote end. For a notification, set it to **true**. In this case, the remote end must confirm the receipt of the notification. For an indication, set it to **false**. In this case, the remote end does not need to confirm the receipt of the notification.| + + +## CharacteristicReadRequest + +Defines the parameters of the **CharacteristicReadReq** event received by the server. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable | Writable | Description | +| ------------------ | ------ | ---- | ---- | ---------------------------------------- | +| deviceId | string | Yes | No | Address of the remote device that sends the **CharacteristicReadReq** event, for example, XX:XX:XX:XX:XX:XX.| +| transId | number | Yes | No | Transmission ID of the read request. The response returned by the server must use the same transmission ID. | +| offset | number | Yes | No | Position from which the characteristic value is read. For example, **k** means to read from the kth byte. The response returned by the server must use the same offset.| +| characteristicUuid | string | Yes | No | UUID of the characteristic, for example, **00002a11-0000-1000-8000-00805f9b34fb**.| +| serviceUuid | string | Yes | No | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.| + + +## CharacteristicWriteRequest + +Defines the parameters of the **CharacteristicWriteReq** event received by the server. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable | Writable | Description | +| ------------------ | ------ | ---- | ---- | ---------------------------------------- | +| deviceId | string | Yes | No | Address of the remote device that sends the **CharacteristicWriteReq** event, for example, XX:XX:XX:XX:XX:XX.| +| transId | number | Yes | No | Transmission ID of the write request. The response returned by the server must use the same transmission ID. | +| offset | number | Yes | No | Start position for writing the characteristic value. For example, **k** means to write from the kth byte. The response returned by the server must use the same offset.| +| descriptorUuid | string | Yes | No | UUID of the descriptor, for example, **00002902-0000-1000-8000-00805f9b34fb**.| +| characteristicUuid | string | Yes | No | UUID of the characteristic, for example, **00002a11-0000-1000-8000-00805f9b34fb**.| +| serviceUuid | string | Yes | No | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.| + + +## DescriptorReadRequest + +Defines the parameters of the **DescriptorReadReq** event received by the server. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable | Writable | Description | +| ------------------ | ------ | ---- | ---- | ---------------------------------------- | +| deviceId | string | Yes | No | Address of the remote device that sends a **DescriptorReadReq** event, for example, XX:XX:XX:XX:XX:XX.| +| transId | number | Yes | No | Transmission ID of the read request. The response returned by the server must use the same transmission ID. | +| offset | number | Yes | No | Position from which the descriptor is read. For example, **k** means to read from the kth byte. The response returned by the server must use the same offset.| +| descriptorUuid | string | Yes | No | UUID of the descriptor, for example, **00002902-0000-1000-8000-00805f9b34fb**.| +| characteristicUuid | string | Yes | No | UUID of the characteristic, for example, **00002a11-0000-1000-8000-00805f9b34fb**.| +| serviceUuid | string | Yes | No | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.| + + +## DescriptorWriteRequest + +Defines the parameters of the **DescriptorWriteReq** event received by the server. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable | Writable | Description | +| ------------------ | ----------- | ---- | ---- | ---------------------------------------- | +| deviceId | string | Yes | No | Address of the remote device that sends a **DescriptorWriteReq** event, for example, XX:XX:XX:XX:XX:XX.| +| transId | number | Yes | No | Transmission ID of the write request. The response returned by the server must use the same transmission ID. | +| offset | number | Yes | No | Start position for writing the descriptor. For example, **k** means to write from the kth byte. The response returned by the server must use the same offset.| +| isPrep | boolean | Yes | No | Whether the write request is executed immediately. | +| needRsp | boolean | Yes | No | Whether to send a response to the GATT client. | +| value | ArrayBuffer | Yes | No | Binary value of the descriptor to write. | +| descriptorUuid | string | Yes | No | UUID of the descriptor, for example, **00002902-0000-1000-8000-00805f9b34fb**.| +| characteristicUuid | string | Yes | No | UUID of the characteristic, for example, **00002a11-0000-1000-8000-00805f9b34fb**.| +| serviceUuid | string | Yes | No | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.| + + +## ServerResponse + +Defines the parameters of the server's response to the GATT client's read/write request. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable | Writable | Description | +| -------- | ----------- | ---- | ---- | -------------------------------------- | +| deviceId | string | Yes | No | Address of the remote device, for example, XX:XX:XX:XX:XX:XX. | +| transId | number | Yes | No | Transmission ID of the request. The value must be the same as the ID carried in the read/write request received. | +| status | number | Yes | No | Response state. Set this parameter to **0**, which indicates a normal response. | +| offset | number | Yes | No | Start read/write position. The value must be the same as the offset carried in the read/write request.| +| value | ArrayBuffer | Yes | No | Binary data in the response. | + + +## BLEConnectChangedState + +Defines the parameters of **BLEConnectChangedState**. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable| Writable| Description | +| -------- | ------------------------------------------------- | ---- | ---- | --------------------------------------------- | +| deviceId | string | Yes | No | Address of the remote device, for example, XX:XX:XX:XX:XX:XX.| +| state | [ProfileConnectionState](#profileconnectionstate) | Yes | Yes | BLE connection state. | + + +## ProfileConnectionState + +Enumerates the profile connection states. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Value | Description | +| ------------------- | ---- | -------------- | +| STATE_DISCONNECTED | 0 | Disconnected. | +| STATE_CONNECTING | 1 | Connecting.| +| STATE_CONNECTED | 2 | Connected. | +| STATE_DISCONNECTING | 3 | Disconnecting.| + + +## ScanFilter + +Defines the scan filter parameters. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable| Writable| Description | +| ---------------------------------------- | ----------- | ---- | ---- | ------------------------------------------------------------ | +| deviceId | string | Yes | Yes | Address of the BLE device to filter, for example, XX:XX:XX:XX:XX:XX. | +| name | string | Yes | Yes | Name of the BLE device to filter. | +| serviceUuid | string | Yes | Yes | Service UUID of the device to filter, for example, **00001888-0000-1000-8000-00805f9b34fb**.| +| serviceUuidMask | string | Yes | Yes | Service UUID mask of the device to filter, for example, **FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF**.| +| serviceSolicitationUuid | string | Yes | Yes | Service solicitation UUID of the device to filter, for example, **00001888-0000-1000-8000-00805F9B34FB**.| +| serviceSolicitationUuidMask | string | Yes | Yes | Service solicitation UUID mask of the device to filter, for example, **FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF**.| +| serviceData | ArrayBuffer | Yes | Yes | Service data of the device to filter, for example, **[0x90, 0x00, 0xF1, 0xF2]**.| +| serviceDataMask | ArrayBuffer | Yes | Yes | Service data mask of the device to filter, for example, **[0xFF,0xFF,0xFF,0xFF]**.| +| manufactureId | number | Yes | Yes | Manufacturer ID of the device to filter, for example, **0x0006**. | +| manufactureData | ArrayBuffer | Yes | Yes | Manufacturer data of the device to filter, for example, **[0x1F,0x2F,0x3F]**.| +| manufactureDataMask | ArrayBuffer | Yes | Yes | Manufacturer data mask of the device to filter, for example, **[0xFF, 0xFF, 0xFF]**.| + + +## ScanOptions + +Defines the scan configuration parameters. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable | Writable | Description | +| --------- | ----------------------- | ---- | ---- | -------------------------------------- | +| interval | number | Yes | Yes | Delay in reporting the scan result. The default value is **0**. | +| dutyMode | [ScanDuty](#scanduty) | Yes | Yes | Scan duty. The default value is SCAN_MODE_LOW_POWER. | +| matchMode | [MatchMode](#matchmode) | Yes | Yes | Hardware filtering match mode. The default value is **MATCH_MODE_AGGRESSIVE**.| + + +## ScanDuty + +Enumerates the scan duty options. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Value | Description | +| --------------------- | ---- | ------------ | +| SCAN_MODE_LOW_POWER | 0 | Low-power mode, which is the default value.| +| SCAN_MODE_BALANCED | 1 | Balanced mode. | +| SCAN_MODE_LOW_LATENCY | 2 | Low-latency mode. | + + +## MatchMode + +Enumerates the hardware match modes of BLE scan filters. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Value | Description | +| --------------------- | ---- | ---------------------------------------- | +| MATCH_MODE_AGGRESSIVE | 1 | Hardware reports the scan result with a lower threshold of signal strength and few number of matches in a duration. This is the default value.| +| MATCH_MODE_STICKY | 2 | Hardware reports the scan result with a higher threshold of signal strength and sightings. | + + +## ScanResult + +Defines the scan result. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable | Writable | Description | +| -------- | ----------- | ---- | ---- | ---------------------------------- | +| deviceId | string | Yes | No | Address of the scanned device, for example, XX:XX:XX:XX:XX:XX.| +| rssi | number | Yes | No | RSSI of the device. | +| data | ArrayBuffer | Yes | No | Advertisement packets sent by the device. | + + +## BluetoothState + +Enumerates the Bluetooth states. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Value | Description | +| --------------------- | ---- | ------------------ | +| STATE_OFF | 0 | Bluetooth is turned off. | +| STATE_TURNING_ON | 1 | Bluetooth is being turned on. | +| STATE_ON | 2 | Bluetooth is turned on. | +| STATE_TURNING_OFF | 3 | Bluetooth is being turned off. | +| STATE_BLE_TURNING_ON | 4 | The LE-only mode is being turned on for Bluetooth.| +| STATE_BLE_ON | 5 | Bluetooth is in LE-only mode. | +| STATE_BLE_TURNING_OFF | 6 | The LE-only mode is being turned off for Bluetooth.| + + +## AdvertiseSetting + +Defines the BLE advertising parameters. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable | Writable | Description | +| ----------- | ------- | ---- | ---- | ---------------------------------------- | +| interval | number | Yes | Yes | Interval for BLE advertising. The minimum value is **32** slots (20 ms). The maximum value is **16384** slots. The default value is **1600** slots (1s).| +| txPower | number | Yes | Yes | Transmit power, in dBm. The value range is -127 to 1. The default value is **-7**. | +| connectable | boolean | Yes | Yes | Whether the advertisement is connectable. The default value is **true**. | + + +## AdvertiseData + +Defines the content of a BLE advertisement packet. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable | Writable | Description | +| --------------- | ---------------------------------------- | ---- | ---- | --------------------------- | +| serviceUuids | Array<string> | Yes | Yes | List of service UUIDs to broadcast.| +| manufactureData | Array<[ManufactureData](#manufacturedata)> | Yes | Yes | List of manufacturers to broadcast. | +| serviceData | Array<[ServiceData](#servicedata)> | Yes | Yes | List of service data to broadcast. | + + +## ManufactureData + +Defines the content of a BLE advertisement packet. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable | Writable | Description | +| ---------------- | ------------------- | ---- | ---- | ------------------ | +| manufactureId | number | Yes | Yes | Manufacturer ID allocated by the Bluetooth SIG.| +| manufactureValue | ArrayBuffer | Yes | Yes | Manufacturer data. | + + +## ServiceData + +Defines the service data contained in an advertisement packet. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable | Writable | Description | +| ------------ | ----------- | ---- | ---- | ---------- | +| serviceUuid | string | Yes | Yes | Service UUID.| +| serviceValue | ArrayBuffer | Yes | Yes | Service data. | + + +## PinRequiredParam + +Defines the pairing request parameters. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable | Writable | Description | +| -------- | ------ | ---- | ---- | ----------- | +| deviceId | string | Yes | No | ID of the device to pair.| +| pinCode | string | Yes | No | Key for the device pairing. | + + +## BondStateParam + +Defines the pairing state parameters. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable | Writable | Description | +| -------- | ------ | ---- | ---- | ----------- | +| deviceId | string | Yes | No | ID of the device to pair.| +| state | BondState | Yes | No | State of the device.| + + +## StateChangeParam + +Defines the profile state change parameters. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable| Writable| Description | +| -------- | ------------------------------------------------- | ---- | ---- | ------------------------------- | +| deviceId | string | Yes | No | Address of a Bluetooth device. | +| state | [ProfileConnectionState](#profileconnectionstate) | Yes | No | Profile connection state of the device.| + + +## DeviceClass + +Defines the class of a Bluetooth device. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Type | Readable | Writable | Description | +| --------------- | ----------------------------------- | ---- | ---- | ---------------- | +| majorClass | [MajorClass](#majorclass) | Yes | No | Major classes of Bluetooth devices. | +| majorMinorClass | [MajorMinorClass](#majorminorclass) | Yes | No | Major and minor classes of Bluetooth devices.| +| classOfDevice | number | Yes | No | Class of the device. | + + + +## MajorClass + +Enumerates the major classes of Bluetooth devices. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Value | Description | +| ------------------- | ------ | ---------- | +| MAJOR_MISC | 0x0000 | Miscellaneous device. | +| MAJOR_COMPUTER | 0x0100 | Computer. | +| MAJOR_PHONE | 0x0200 | Mobile phone. | +| MAJOR_NETWORKING | 0x0300 | Network device. | +| MAJOR_AUDIO_VIDEO | 0x0400 | Audio or video device.| +| MAJOR_PERIPHERAL | 0x0500 | Peripheral device. | +| MAJOR_IMAGING | 0x0600 | Imaging device. | +| MAJOR_WEARABLE | 0x0700 | Wearable device. | +| MAJOR_TOY | 0x0800 | Toy. | +| MAJOR_HEALTH | 0x0900 | Health device. | +| MAJOR_UNCATEGORIZED | 0x1F00 | Unclassified device. | + + +## MajorMinorClass + +Enumerates the major and minor classes of Bluetooth devices. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Value | Description | +| ---------------------------------------- | ------ | --------------- | +| COMPUTER_UNCATEGORIZED | 0x0100 | Unclassified computer. | +| COMPUTER_DESKTOP | 0x0104 | Desktop computer. | +| COMPUTER_SERVER | 0x0108 | Server. | +| COMPUTER_LAPTOP | 0x010C | Laptop. | +| COMPUTER_HANDHELD_PC_PDA | 0x0110 | Hand-held computer. | +| COMPUTER_PALM_SIZE_PC_PDA | 0x0114 | Palmtop computer. | +| COMPUTER_WEARABLE | 0x0118 | Wearable computer. | +| COMPUTER_TABLET | 0x011C | Tablet. | +| PHONE_UNCATEGORIZED | 0x0200 | Unclassified mobile phone. | +| PHONE_CELLULAR | 0x0204 | Portable phone. | +| PHONE_CORDLESS | 0x0208 | Cordless phone. | +| PHONE_SMART | 0x020C | Smartphone. | +| PHONE_MODEM_OR_GATEWAY | 0x0210 | Modem or gateway phone.| +| PHONE_ISDN | 0x0214 | ISDN phone. | +| NETWORK_FULLY_AVAILABLE | 0x0300 | Device with network fully available. | +| NETWORK_1_TO_17_UTILIZED | 0x0320 | Device used on network 1 to 17. | +| NETWORK_17_TO_33_UTILIZED | 0x0340 | Device used on network 17 to 33. | +| NETWORK_33_TO_50_UTILIZED | 0x0360 | Device used on network 33 to 50. | +| NETWORK_60_TO_67_UTILIZED | 0x0380 | Device used on network 60 to 67. | +| NETWORK_67_TO_83_UTILIZED | 0x03A0 | Device used on network 67 to 83. | +| NETWORK_83_TO_99_UTILIZED | 0x03C0 | Device used on network 83 to 99. | +| NETWORK_NO_SERVICE | 0x03E0 | Device without network service | +| AUDIO_VIDEO_UNCATEGORIZED | 0x0400 | Unclassified audio or video device. | +| AUDIO_VIDEO_WEARABLE_HEADSET | 0x0404 | Wearable audio or video headset. | +| AUDIO_VIDEO_HANDSFREE | 0x0408 | Hands-free audio or video device. | +| AUDIO_VIDEO_MICROPHONE | 0x0410 | Audio or video microphone. | +| AUDIO_VIDEO_LOUDSPEAKER | 0x0414 | Audio or video loudspeaker. | +| AUDIO_VIDEO_HEADPHONES | 0x0418 | Audio or video headphones. | +| AUDIO_VIDEO_PORTABLE_AUDIO | 0x041C | Portable audio or video device. | +| AUDIO_VIDEO_CAR_AUDIO | 0x0420 | In-vehicle audio or video device. | +| AUDIO_VIDEO_SET_TOP_BOX | 0x0424 | Audio or video STB device. | +| AUDIO_VIDEO_HIFI_AUDIO | 0x0428 | High-fidelity speaker device. | +| AUDIO_VIDEO_VCR | 0x042C | Video cassette recording (VCR) device. | +| AUDIO_VIDEO_VIDEO_CAMERA | 0x0430 | Camera. | +| AUDIO_VIDEO_CAMCORDER | 0x0434 | Camcorder | +| AUDIO_VIDEO_VIDEO_MONITOR | 0x0438 | Audio or video monitor. | +| AUDIO_VIDEO_VIDEO_DISPLAY_AND_LOUDSPEAKER | 0x043C | Video display or loudspeaker. | +| AUDIO_VIDEO_VIDEO_CONFERENCING | 0x0440 | Video conferencing device. | +| AUDIO_VIDEO_VIDEO_GAMING_TOY | 0x0448 | Audio or video gaming toy. | +| PERIPHERAL_NON_KEYBOARD_NON_POINTING | 0x0500 | Non-keyboard or non-pointing peripheral device. | +| PERIPHERAL_KEYBOARD | 0x0540 | Keyboard device. | +| PERIPHERAL_POINTING_DEVICE | 0x0580 | Pointing peripheral device. | +| PERIPHERAL_KEYBOARD_POINTING | 0x05C0 | Keyboard pointing device. | +| PERIPHERAL_UNCATEGORIZED | 0x0500 | Unclassified peripheral device. | +| PERIPHERAL_JOYSTICK | 0x0504 | Peripheral joystick. | +| PERIPHERAL_GAMEPAD | 0x0508 | Peripheral game pad | +| PERIPHERAL_REMOTE_CONTROL | 0x05C0 | Peripheral remote control device | +| PERIPHERAL_SENSING_DEVICE | 0x0510 | Peripheral sensing device. | +| PERIPHERAL_DIGITIZER_TABLET | 0x0514 | Peripheral digitizer tablet.| +| PERIPHERAL_CARD_READER | 0x0518 | Peripheral card reader. | +| PERIPHERAL_DIGITAL_PEN | 0x051C | Peripheral digital pen. | +| PERIPHERAL_SCANNER_RFID | 0x0520 | Peripheral RFID scanner. | +| PERIPHERAL_GESTURAL_INPUT | 0x0522 | Gesture input device. | +| IMAGING_UNCATEGORIZED | 0x0600 | Unclassified imaging device. | +| IMAGING_DISPLAY | 0x0610 | Imaging display device. | +| IMAGING_CAMERA | 0x0620 | Imaging camera device. | +| IMAGING_SCANNER | 0x0640 | Imaging scanner. | +| IMAGING_PRINTER | 0x0680 | Imaging printer. | +| WEARABLE_UNCATEGORIZED | 0x0700 | Unclassified wearable device. | +| WEARABLE_WRIST_WATCH | 0x0704 | Smart watch. | +| WEARABLE_PAGER | 0x0708 | Wearable pager. | +| WEARABLE_JACKET | 0x070C | Smart jacket. | +| WEARABLE_HELMET | 0x0710 | Wearable helmet. | +| WEARABLE_GLASSES | 0x0714 | Wearable glasses. | +| TOY_UNCATEGORIZED | 0x0800 | Unclassified toy. | +| TOY_ROBOT | 0x0804 | Toy robot. | +| TOY_VEHICLE | 0x0808 | Toy vehicle. | +| TOY_DOLL_ACTION_FIGURE | 0x080C | Humanoid toy doll. | +| TOY_CONTROLLER | 0x0810 | Toy controller. | +| TOY_GAME | 0x0814 | Toy gaming device. | +| HEALTH_UNCATEGORIZED | 0x0900 | Unclassified health devices. | +| HEALTH_BLOOD_PRESSURE | 0x0904 | Blood pressure device. | +| HEALTH_THERMOMETER | 0x0908 | Thermometer | +| HEALTH_WEIGHING | 0x090C | Body scale. | +| HEALTH_GLUCOSE | 0x0910 | Blood glucose monitor. | +| HEALTH_PULSE_OXIMETER | 0x0914 | Pulse oximeter. | +| HEALTH_PULSE_RATE | 0x0918 | Heart rate monitor. | +| HEALTH_DATA_DISPLAY | 0x091C | Health data display. | +| HEALTH_STEP_COUNTER | 0x0920 | Step counter. | +| HEALTH_BODY_COMPOSITION_ANALYZER | 0x0924 | Body composition analyzer. | +| HEALTH_PEAK_FLOW_MONITOR | 0x0928 | Hygrometer. | +| HEALTH_MEDICATION_MONITOR | 0x092C | Medication monitor. | +| HEALTH_KNEE_PROSTHESIS | 0x0930 | Prosthetic knee. | +| HEALTH_ANKLE_PROSTHESIS | 0x0934 | Prosthetic ankle. | +| HEALTH_GENERIC_HEALTH_MANAGER | 0x0938 | Generic health management device. | +| HEALTH_PERSONAL_MOBILITY_DEVICE | 0x093C | Personal mobility device. | + + +## PlayingState + +Enumerates the A2DP playing states. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Value | Description | +| ----------------- | ------ | ------- | +| STATE_NOT_PLAYING | 0x0000 | Not playing. | +| STATE_PLAYING | 0x0001 | Playing.| + + +## ProfileId + +Enumerates the Bluetooth profiles. API version 9 is added with **PROFILE_HID_HOST** and **PROFILE_PAN_NETWORK**. + +**System capability**: SystemCapability.Communication.Bluetooth.Core + +| Name | Value | Description | +| -------------------------------- | ------ | --------------- | +| PROFILE_A2DP_SOURCE | 1 | A2DP profile.| +| PROFILE_HANDS_FREE_AUDIO_GATEWAY | 4 | HFP profile. | +| PROFILE_HID_HOST | 6 | Human Interface Device (HID) profile. | +| PROFILE_PAN_NETWORK | 7 | PAN profile. | diff --git a/en/application-dev/reference/apis/js-apis-call.md b/en/application-dev/reference/apis/js-apis-call.md index b6b2bddb6306e577053b5ea9e34c21acf23c9477..068a12cd46efce13b68a4fcf697306c4b5d8f256 100644 --- a/en/application-dev/reference/apis/js-apis-call.md +++ b/en/application-dev/reference/apis/js-apis-call.md @@ -14,110 +14,6 @@ To subscribe to the call status, use [`observer.on('callStateChange')`](js-apis- import call from '@ohos.telephony.call'; ``` -## call.dial(deprecated) - -dial\(phoneNumber: string, callback: AsyncCallback\): void - -Initiates a call. This API uses an asynchronous callback to return the result. - ->**NOTE** -> ->This parameter is supported since API version 6 and deprecated since API version 9. You are advised to use [dialCall](#calldialcall9). - -**Required Permissions**: ohos.permission.PLACE_CALL - -**System capability**: SystemCapability.Telephony.CallManager - -**Parameters** - -| Name | Type | Mandatory| Description | -| ----------- | ---------------------------- | ---- | --------------------------------------- | -| phoneNumber | string | Yes | Phone number. | -| callback | AsyncCallback<boolean> | Yes | Callback used to return the result.
- **true**: success
- **false**: failure| - -**Example** - -```js -call.dial("138xxxxxxxx", (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); -}); -``` - - -## call.dial(deprecated) - -dial\(phoneNumber: string, options: DialOptions, callback: AsyncCallback\): void - -Initiates a call. You can set call options as needed. This API uses an asynchronous callback to return the result. - ->**NOTE** -> ->This parameter is supported since API version 6 and deprecated since API version 9. You are advised to use [dialCall](#calldialcall9). - -**Required Permissions**: ohos.permission.PLACE_CALL - -**System capability**: SystemCapability.Telephony.CallManager - -**Parameters** - -| Name | Type | Mandatory| Description | -| ----------- | ---------------------------- | ---- | --------------------------------------- | -| phoneNumber | string | Yes | Phone number. | -| options | [DialOptions](#dialoptions) | Yes | Call option, which indicates whether the call is a voice call or video call. | -| callback | AsyncCallback<boolean> | Yes | Callback used to return the result.
- **true**: success
- **false**: failure| - -**Example** - -```js -call.dial("138xxxxxxxx", { - extras: false -}, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); -}); -``` - - -## call.dial(deprecated) - -dial\(phoneNumber: string, options?: DialOptions\): Promise - -Initiates a call. You can set call options as needed. This API uses a promise to return the result. - ->**NOTE** -> ->This parameter is supported since API version 6 and deprecated since API version 9. You are advised to use [dialCall](#calldialcall9). - -**Required Permissions**: ohos.permission.PLACE_CALL - -**System capability**: SystemCapability.Telephony.CallManager - -**Parameters** - -| Name | Type | Mandatory| Description | -| ----------- | --------------------------- | ---- | -------------------------------------- | -| phoneNumber | string | Yes | Phone number. | -| options | [DialOptions](#dialoptions) | No | Call option, which indicates whether the call is a voice call or video call.| - -**Return value** - -| Type | Description | -| ---------------------- | ------------------------------------------------------------ | -| Promise<boolean> | Promise used to return the result.
- **true**: success
- **false**: failure| - -**Example** - -```js -let promise = call.dial("138xxxxxxxx", { - extras: false -}); -promise.then(data => { - console.log(`dial success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { - console.error(`dial fail, promise: err->${JSON.stringify(err)}`); -}); -``` - - ## call.dialCall9+ dialCall\(phoneNumber: string, callback: AsyncCallback\): void @@ -260,6 +156,107 @@ promise.then(() => { }); ``` +## call.dial(deprecated) + +dial\(phoneNumber: string, callback: AsyncCallback\): void + +Initiates a call. This API uses an asynchronous callback to return the result. + +> **NOTE** +> +> This API is supported since API version 6 and deprecated since API version 9. You are advised to use [dialCall](#calldialcall9). The substitute API is available only for system applications. + +**Required Permissions**: ohos.permission.PLACE_CALL + +**System capability**: SystemCapability.Telephony.CallManager + +**Parameters** + +| Name | Type | Mandatory| Description | +| ----------- | ---------------------------- | ---- | --------------------------------------- | +| phoneNumber | string | Yes | Phone number. | +| callback | AsyncCallback<boolean> | Yes | Callback used to return the result.
- **true**: success
- **false**: failure| + +**Example** + +```js +call.dial("138xxxxxxxx", (err, data) => { + console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +}); +``` + + +## call.dial(deprecated) + +dial\(phoneNumber: string, options: DialOptions, callback: AsyncCallback\): void + +Initiates a call. You can set call options as needed. This API uses an asynchronous callback to return the result. + +> **NOTE** +> +> This API is supported since API version 6 and deprecated since API version 9. You are advised to use [dialCall](#calldialcall9). The substitute API is available only for system applications. + +**Required Permissions**: ohos.permission.PLACE_CALL + +**System capability**: SystemCapability.Telephony.CallManager + +**Parameters** + +| Name | Type | Mandatory| Description | +| ----------- | ---------------------------- | ---- | --------------------------------------- | +| phoneNumber | string | Yes | Phone number. | +| options | [DialOptions](#dialoptions) | Yes | Call option, which indicates whether the call is a voice call or video call. | +| callback | AsyncCallback<boolean> | Yes | Callback used to return the result.
- **true**: success
- **false**: failure| + +**Example** + +```js +call.dial("138xxxxxxxx", { + extras: false +}, (err, data) => { + console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +}); +``` + +## call.dial(deprecated) + +dial\(phoneNumber: string, options?: DialOptions\): Promise + +Initiates a call. You can set call options as needed. This API uses a promise to return the result. + +> **NOTE** +> +> This API is supported since API version 6 and deprecated since API version 9. You are advised to use [dialCall](#calldialcall9). The substitute API is available only for system applications. + +**Required Permissions**: ohos.permission.PLACE_CALL + +**System capability**: SystemCapability.Telephony.CallManager + +**Parameters** + +| Name | Type | Mandatory| Description | +| ----------- | --------------------------- | ---- | -------------------------------------- | +| phoneNumber | string | Yes | Phone number. | +| options | [DialOptions](#dialoptions) | No | Call option, which indicates whether the call is a voice call or video call.| + +**Return value** + +| Type | Description | +| ---------------------- | ------------------------------------------------------------ | +| Promise<boolean> | Promise used to return the result.
- **true**: success
- **false**: failure| + +**Example** + +```js +let promise = call.dial("138xxxxxxxx", { + extras: false +}); +promise.then(data => { + console.log(`dial success, promise: data->${JSON.stringify(data)}`); +}).catch(err => { + console.error(`dial fail, promise: err->${JSON.stringify(err)}`); +}); +``` ## call.makeCall7+ @@ -2387,7 +2384,7 @@ Subscribes to **callDetailsChange** events. This API uses an asynchronous callba | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------------- | ---- | -------------------------- | -| type | string | Yes | Event type. This field has a fixed value of **callDetailsChange**.| +| type | string | Yes | Call event change. This field has a fixed value of **callDetailsChange**.| | callback | Callback<[CallAttributeOptions](#callattributeoptions7)> | Yes | Callback used to return the result. | **Error codes** @@ -2427,7 +2424,7 @@ Subscribes to **callEventChange** events. This API uses an asynchronous callback | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------ | ---- | -------------------------- | -| type | string | Yes | This interface is used to monitor the change of call events during a call. The parameter has a fixed value of callEventChange.| +| type | string | Yes | Call event change. This field has a fixed value of **callEventChange**.| | callback | Callback<[CallEventOptions](#calleventoptions8)> | Yes | Callback used to return the result. | **Error codes** @@ -2467,7 +2464,7 @@ Subscribes to **callDisconnectedCause** events. This API uses an asynchronous ca | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------------ | ---- | -------------------------- | -| type | string | Yes | Event type. The field has a fixed value of **callDisconnectedCause**.| +| type | string | Yes | Call disconnection cause. This field has a fixed value of **callDisconnectedCause**.| | callback | Callback<[DisconnectedDetails](#disconnecteddetails9)> | Yes | Callback used to return the result. | **Error codes** @@ -2507,7 +2504,7 @@ Subscribes to **mmiCodeResult** events. This API uses an asynchronous callback t | Name | Type | Mandatory| Description | | -------- | -------------------------------------------- | ---- | --------------------- | -| type | string | Yes | Event type. The field has a fixed value of **mmiCodeResult**.| +| type | string | Yes | MMI code result. This field has a fixed value of **mmiCodeResult**.| | callback | Callback<[MmiCodeResults](#mmicoderesults9)> | Yes | Callback used to return the result. | **Error codes** @@ -2547,7 +2544,7 @@ Unsubscribes from **callDetailsChange** events. This API uses an asynchronous ca | Name | Type | Mandatory| Description | | -------- | -------------------------------------------------------- | ---- | ---------------------------------- | -| type | string | Yes | Event type. The field has a fixed value of **callDetailsChange**.| +| type | string | Yes | Call details change. This field has a fixed value of **callDetailsChange**.| | callback | Callback<[CallAttributeOptions](#callattributeoptions7)> | No | Callback used to return the result. | **Error codes** @@ -2587,7 +2584,7 @@ Unsubscribes from **callEventChange** events. This API uses an asynchronous call | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------ | ---- | ---------------------------------- | -| type | string | Yes | Event type. The field has a fixed value of **callEventChange**.| +| type | string | Yes | Call event change. This field has a fixed value of **callEventChange**.| | callback | Callback<[CallEventOptions](#calleventoptions8)> | No | Callback used to return the result. | **Error codes** @@ -2627,7 +2624,7 @@ Unsubscribes from **callDisconnectedCause** events. This API uses an asynchronou | Name | Type | Mandatory| Description | | -------- | ---------------------------------------------------------- | ---- | ------------------- | -| type | string | Yes | Event type. The field has a fixed value of **callDisconnectedCause**.| +| type | string | Yes | Call disconnection cause. This field has a fixed value of **callDisconnectedCause**.| | callback | Callback<[DisconnectedDetails](#disconnecteddetails9)> | No | Callback used to return the result. | **Error codes** @@ -2667,7 +2664,7 @@ Unsubscribes from **mmiCodeResult** events. This API uses an asynchronous callba | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------ | ---- | ----------- | -| type | string | Yes | Event type. The field has a fixed value of **mmiCodeResult**.| +| type | string | Yes | MMI code result. This field has a fixed value of **mmiCodeResult**.| | callback | Callback<[MmiCodeResults](#mmicoderesults9)> | No | Callback used to return the result. | **Error codes** 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 5c27d183e38680ec392471f55e374a5127714e82..978cbffcf74444d9c902a91d72017d316f5ae5e8 100644 --- a/en/application-dev/reference/apis/js-apis-data-distributedobject.md +++ b/en/application-dev/reference/apis/js-apis-data-distributedobject.md @@ -131,7 +131,7 @@ Sets a session ID for synchronization. Automatic synchronization is performed fo **Error codes** -For details about the error codes, see [Distributed Data Object Error Codes](../errorcodes/errorcode-distributed-dataObject.md). + For details about the error codes, see [Distributed Data Object Error Codes](../errorcodes/errorcode-distributed-dataObject.md). | ID| Error Message| | -------- | -------- | @@ -288,7 +288,7 @@ g_object.off("change"); on(type: 'status', callback: Callback<{ sessionId: string, networkId: string, status: 'online' | 'offline' }>): void -Subscribes to statue changes of this distributed data object. +Subscribes to status changes of this distributed data object. **System capability**: SystemCapability.DistributedDataManager.DataObject.DistributedObject @@ -363,7 +363,12 @@ The saved data will be released in the following cases: ```ts g_object.setSessionId("123456"); -g_object.save("local", (result) => { +g_object.save("local", (err, result) => { + if (err) { + console.info("save failed, error code = " + err.code); + console.info("save failed, error message: " + err.message); + return; + } console.info("save callback"); console.info("save sessionId: " + result.sessionId); console.info("save version: " + result.version); @@ -408,8 +413,9 @@ g_object.save("local").then((result) => { console.info("save sessionId " + result.sessionId); console.info("save version " + result.version); console.info("save deviceId " + result.deviceId); -}, () => { - console.error("save failed"); +}).catch((err) => { + console.info("save failed, error code = " + err.code); + console.info("save failed, error message: " + err.message); }); ``` @@ -435,16 +441,26 @@ If the object is stored on another device, the data on the local device will be ```js g_object.setSessionId("123456"); // Save data for persistence. -g_object.save("local", (result) => { +g_object.save("local", (err, result) => { + if (err) { + console.info("save failed, error code = " + err.code); + console.info("save failed, error message: " + err.message); + return; + } console.info("save callback"); - console.info("save sessionId " + result.sessionId); - console.info("save version " + result.version); - console.info("save deviceId " + result.deviceId); + 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.info("revokeSave callback"); - console.info("revokeSave sessionId " + result.sessionId); +g_object.revokeSave((err, result) => { + if (err) { + console.info("revokeSave failed, error code = " + err.code); + console.info("revokeSave failed, error message: " + err.message); + return; + } + console.info("revokeSave callback"); + console.info("revokeSave sessionId " + result.sessionId); }); ``` @@ -475,15 +491,17 @@ g_object.save("local").then((result) => { console.info("save sessionId " + result.sessionId); console.info("save version " + result.version); console.info("save deviceId " + result.deviceId); -}, () => { - console.error("save failed"); +}).catch((err) => { + console.info("save failed, error code = " + err.code); + console.info("save failed, error message: " + err.message); }); // Delete the persistence data. g_object.revokeSave().then((result) => { console.info("revokeSave callback"); console.info("sessionId" + result.sessionId); -}, () => { - console.error("revokeSave failed"); +}).catch((err)=> { + console.info("revokeSave failed, error code = " + err.code); + console.info("revokeSave failed, error message = " + err.message); }); ``` @@ -583,7 +601,7 @@ Subscribes to data changes of this distributed data object. **Example** ```js -import distributedObject from '@ohos.data.distributedDataObject'; +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); @@ -612,14 +630,14 @@ Unsubscribes from the data changes of this distributed data object. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| type | string | Yes| Event type to unsubscribe from. The value is **change**, which indicates data changes. | +| 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'; +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); @@ -673,14 +691,14 @@ Unsubscribes from the status change of this distributed data object. | 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. | +| 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 unregistered.
**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'; +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; diff --git a/en/application-dev/reference/apis/js-apis-data-rdb.md b/en/application-dev/reference/apis/js-apis-data-rdb.md index bcebd097f34c1337e5826e866302af9626696a32..04dcfb83d02cc263ff739c4e2618a65b2eeee181 100644 --- a/en/application-dev/reference/apis/js-apis-data-rdb.md +++ b/en/application-dev/reference/apis/js-apis-data-rdb.md @@ -7,7 +7,7 @@ This module provides the following RDB-related functions: - [RdbPredicates](#rdbpredicates): provides predicates indicating the nature, feature, or relationship of a data entity in an RDB store. It is used to define the operation conditions for an RDB store. - [RdbStore](#rdbstore): provides APIs for managing an RDB store. -> **NOTE**
+> **NOTE** > > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. > @@ -31,7 +31,7 @@ Obtains an RDB store. This API uses an asynchronous callback to return the resul | Name | Type | Mandatory| Description | | -------- | ------------------------------------------ | ---- | ------------------------------------------------------------ | -| 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).| +| 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-inner-app-context.md).| | config | [StoreConfig](#storeconfig) | Yes | Configuration of the RDB store. | | version | number | Yes | RDB store version.
Currently, automatic RDB upgrades and downgrades performed based on **version** is not supported. | | callback | AsyncCallback<[RdbStore](#rdbstore)> | Yes | Callback invoked to return the RDB store obtained. | @@ -92,7 +92,7 @@ Obtains an RDB store. This API uses a promise to return the result. You can set | Name | Type | Mandatory| Description | | ------- | --------------------------- | ---- | ------------------------------------------------------------ | -| 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).| +| 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-inner-app-context.md).| | config | [StoreConfig](#storeconfig) | Yes | Configuration of the RDB store. | | version | number | Yes | RDB store version.
Currently, automatic RDB upgrades and downgrades performed based on **version** is not supported. | @@ -156,7 +156,7 @@ Deletes an RDB store. This API uses an asynchronous callback to return the resul | Name | Type | Mandatory| Description | | -------- | ------------------------- | ---- | ------------------------------------------------------------ | -| 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).| +| 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-inner-app-context.md).| | name | string | Yes | Name of the RDB store to delete. | | callback | AsyncCallback<void> | Yes | Callback invoked to return the result. | @@ -214,7 +214,7 @@ Deletes an RDB store. This API uses a promise to return the result. | Name | Type | Mandatory| Description | | ------- | ------- | ---- | ------------------------------------------------------------ | -| 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).| +| 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-inner-app-context.md).| | name | string | Yes | Name of the RDB store to delete. | **Return value** @@ -349,6 +349,10 @@ inDevices(devices: Array<string>): RdbPredicates Sets an **RdbPredicates** to specify the remote devices to connect on the network during distributed database synchronization. +> **NOTE** +> +> The value of **devices** is obtained by [deviceManager.getTrustedDeviceListSync](js-apis-device-manager.md#gettrusteddevicelistsync). The APIs of the **deviceManager** module are system interfaces and available only to system applications. + **System capability**: SystemCapability.DistributedDataManager.RelationalStore.Core **Parameters** @@ -366,8 +370,24 @@ Sets an **RdbPredicates** to specify the remote devices to connect on the networ **Example** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.inDevices(['12345678abcde']) +import deviceManager from '@ohos.distributedHardware.deviceManager'; +let dmInstance = null; + +deviceManager.createDeviceManager("com.example.appdatamgrverify", (err, manager) => { + if (err) { + console.log("create device manager failed, err=" + err); + return; + } + dmInstance = manager; + let devices = dmInstance.getTrustedDeviceListSync(); + let deviceIds = []; + for (var i = 0; i < devices.length; i++) { + deviceIds[i] = devices[i].deviceId; + } +}) + +let predicates = new data_rdb.RdbPredicates("EMPLOYEE"); +predicates.inDevices(deviceIds); ``` ### inAllDevices8+ @@ -1269,10 +1289,10 @@ const valueBucket3 = { let valueBuckets = new Array(valueBucket1, valueBucket2, valueBucket3); rdbStore.batchInsert("EMPLOYEE", valueBuckets, function(status, insertNum) { if (status) { - console.log("Failed to batch insert data, status = " + status); + console.log("batchInsert is failed, status = " + status); return; } - console.log("Batch inserted data successfully. The number of values that were inserted = " + insertNum); + console.log("batchInsert is successful, the number of values that were inserted = " + insertNum); }) ``` @@ -1322,9 +1342,9 @@ const valueBucket3 = { let valueBuckets = new Array(valueBucket1, valueBucket2, valueBucket3); let promise = rdbStore.batchInsert("EMPLOYEE", valueBuckets); promise.then((insertNum) => { - console.log("Batch inserted data successfully. The number of values that were inserted = " + insertNum); + console.log("batchInsert is successful, the number of values that were inserted = " + insertNum); }).catch((status) => { - console.log("Failed to batch insert data, status = " + status); + console.log("batchInsert is failed, status = " + status); }) ``` @@ -1340,7 +1360,7 @@ Updates data in the RDB store based on the specified **RdbPredicates** object. T | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| values | [ValuesBucket](#valuesbucket) | Yes| Data to update in the RDB store. The key-value pair is associated with the column name in the target table.| +| values | [ValuesBucket](#valuesbucket) | Yes| Rows of data to update in the RDB store. The key-value pair is associated with the column name in the target table.| | predicates | [RdbPredicates](#rdbpredicates) | Yes| Update conditions specified by the **RdbPredicates** object.| | callback | AsyncCallback<number> | Yes| Callback invoked to return the number of rows updated.| @@ -1376,7 +1396,7 @@ Updates data based on the specified **RdbPredicates** object. This API uses a pr | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| values | [ValuesBucket](#valuesbucket) | Yes| Data to update in the RDB store. The key-value pair is associated with the column name in the target table.| +| values | [ValuesBucket](#valuesbucket) | Yes| Rows of data to update in the RDB store. The key-value pair is associated with the column name in the target table.| | predicates | [RdbPredicates](#rdbpredicates) | Yes| Update conditions specified by the **RdbPredicates** object.| **Return value** @@ -1619,7 +1639,7 @@ rdbStore.executeSql(SQL_CREATE_TABLE, null, function(err) { console.info("Failed to execute SQL, err: " + err) return } - console.info('Created table successfully.') + console.info('Create table done.') }) ``` @@ -1650,7 +1670,7 @@ Executes an SQL statement that contains specified arguments but returns no value 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) promise.then(() => { - console.info('Created table successfully.') + console.info('Create table done.') }).catch((err) => { console.info("Failed to execute SQL, err: " + err) }) @@ -1808,7 +1828,11 @@ promise.then(() => { obtainDistributedTableName(device: string, table: string, callback: AsyncCallback<string>): void -Obtains the distributed table name for a remote device based on the local table name. This API uses an asynchronous callback to return the result. The distributed table name is required when the RDB store of a remote device is queried. +Obtains the distributed table name for a remote device based on the local table name. The distributed table name is required when the RDB store of a remote device is queried. + +> **NOTE**
+> +> The value of **device** is obtained by [deviceManager.getTrustedDeviceListSync](js-apis-device-manager.md#gettrusteddevicelistsync). The APIs of the **deviceManager** module are system interfaces and available only to system applications. **Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC @@ -1818,14 +1842,28 @@ Obtains the distributed table name for a remote device based on the local table | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| device | string | Yes| Remote device.| -| table | string | Yes| Local table name.| +| device | string | Yes| ID of the remote device.| +| table | string | Yes| Local table name of the remote device.| | callback | AsyncCallback<string> | Yes| Callback invoked to return the result. If the operation succeeds, the distributed table name of the remote device is returned.| **Example** ```js -rdbStore.obtainDistributedTableName("12345678abcde", "EMPLOYEE", function (err, tableName) { +import deviceManager from '@ohos.distributedHardware.deviceManager'; +let dmInstance = null; + +deviceManager.createDeviceManager("com.example.appdatamgrverify", (err, manager) => { + if (err) { + console.log("create device manager failed, err=" + err); + return; + } + dmInstance = manager; + let devices = dmInstance.getTrustedDeviceListSync(); + let deviceId = devices[0].deviceId; +}) + + +rdbStore.obtainDistributedTableName(deviceId, "EMPLOYEE", function (err, tableName) { if (err) { console.info('Failed to obtain DistributedTableName, err: ' + err) return @@ -1838,7 +1876,11 @@ rdbStore.obtainDistributedTableName("12345678abcde", "EMPLOYEE", function (err, obtainDistributedTableName(device: string, table: string): Promise<string> -Obtains the distributed table name for a remote device based on the local table name. This API uses a promise to return the result. The distributed table name is required when the RDB store of a remote device is queried. +Obtains the distributed table name for a remote device based on the local table name. The distributed table name is required when the RDB store of a remote device is queried. + +> **NOTE**
+> +> The value of **device** is obtained by [deviceManager.getTrustedDeviceListSync](js-apis-device-manager.md#gettrusteddevicelistsync). The APIs of the **deviceManager** module are system interfaces and available only to system applications. **Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC @@ -1848,8 +1890,8 @@ Obtains the distributed table name for a remote device based on the local table | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| device | string | Yes| Remote device.| -| table | string | Yes| Local table name.| +| device | string | Yes| ID of the remote device.| +| table | string | Yes| Local table name of the remote device.| **Return value** @@ -1860,7 +1902,20 @@ Obtains the distributed table name for a remote device based on the local table **Example** ```js -let promise = rdbStore.obtainDistributedTableName("12345678abcde", "EMPLOYEE") +import deviceManager from '@ohos.distributedHardware.deviceManager'; +let dmInstance = null; + +deviceManager.createDeviceManager("com.example.appdatamgrverify", (err, manager) => { + if (err) { + console.log("create device manager failed, err=" + err); + return; + } + dmInstance = manager; + let devices = dmInstance.getTrustedDeviceListSync(); + let deviceId = devices[0].deviceId; +}) + +let promise = rdbStore.obtainDistributedTableName(deviceId, "EMPLOYEE") promise.then((tableName) => { console.info('Obtained distributed table name successfully, tableName= ' + tableName) }).catch((err) => { @@ -1889,8 +1944,24 @@ Synchronizes data between devices. This API uses an asynchronous callback to ret **Example** ```js +import deviceManager from '@ohos.distributedHardware.deviceManager'; +let dmInstance = null; + +deviceManager.createDeviceManager("com.example.appdatamgrverify", (err, manager) => { + if (err) { + console.log("create device manager failed, err=" + err); + return; + } + dmInstance = manager; + let devices = dmInstance.getTrustedDeviceListSync(); + let deviceIds = []; + for (var i = 0; i < devices.length; i++) { + deviceIds[i] = devices[i].deviceId; + } +}) + let predicates = new data_rdb.RdbPredicates('EMPLOYEE') -predicates.inDevices(['12345678abcde']) +predicates.inDevices(deviceIds) rdbStore.sync(data_rdb.SyncMode.SYNC_MODE_PUSH, predicates, function (err, result) { if (err) { console.log('Sync failed, err: ' + err) @@ -1924,13 +1995,29 @@ Synchronizes data between devices. This API uses a promise to return the result. | Type| Description| | -------- | -------- | -| Promise<Array<[string, number]>> | Promise used to return the synchronization result to the caller.
**string** indicates the device ID.
**number** indicates the synchronization status of that device. The value **0** indicates a successful synchronization. Other values indicate a synchronization failure. | +| Promise<Array<[string, number]>> | Promise used to return the synchronization result.
**string** indicates the device ID.
**number** indicates the synchronization status of that device. The value **0** indicates a successful synchronization. Other values indicate a synchronization failure. | **Example** ```js +import deviceManager from '@ohos.distributedHardware.deviceManager'; +let dmInstance = null; + +deviceManager.createDeviceManager("com.example.appdatamgrverify", (err, manager) => { + if (err) { + console.log("create device manager failed, err=" + err); + return; + } + dmInstance = manager; + let devices = dmInstance.getTrustedDeviceListSync(); + let deviceIds = []; + for (var i = 0; i < devices.length; i++) { + deviceIds[i] = devices[i].deviceId; + } +}) + let predicates = new data_rdb.RdbPredicates('EMPLOYEE') -predicates.inDevices(['12345678abcde']) +predicates.inDevices(deviceIds) let promise = rdbStore.sync(data_rdb.SyncMode.SYNC_MODE_PUSH, predicates) promise.then((result) =>{ console.log('Sync done.') diff --git a/en/application-dev/reference/apis/js-apis-data-relationalStore.md b/en/application-dev/reference/apis/js-apis-data-relationalStore.md index e49fa27eb58c01d5ccfaa905159c9124f7812687..5694b698b4f81cca15db7cad6777a156765df6d2 100644 --- a/en/application-dev/reference/apis/js-apis-data-relationalStore.md +++ b/en/application-dev/reference/apis/js-apis-data-relationalStore.md @@ -6,7 +6,7 @@ The **relationalStore** module provides the following functions: - [RdbPredicates](#rdbpredicates): provides predicates indicating the nature, feature, or relationship of a data entity in an RDB store. It is used to define the operation conditions for an RDB store. - [RdbStore](#rdbstore): provides APIs for managing data in an RDB store. -- [Resultset](#resultset): provides APIs for accessing the result set obtained from the RDB store. +- [ResultSet](#resultset): provides APIs for accessing the result set obtained from the RDB store. > **NOTE** > @@ -115,7 +115,7 @@ Obtains an RDB store. This API uses a promise to return the result. You can set | Type | Description | | ----------------------------------------- | --------------------------------- | -| Promise<[RdbStore](#rdbstore)> | Promise used to return the RDB store obtained.| +| Promise<[RdbStore](#rdbstore)> | Promise used to return the **RdbStore** object.| **Error codes** @@ -414,9 +414,12 @@ let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); inDevices(devices: Array<string>): RdbPredicates - Sets an **RdbPredicates** to specify the remote devices to connect on the network during distributed database synchronization. +> **NOTE**
+> +> The value of **devices** is obtained by [deviceManager.getTrustedDeviceListSync](js-apis-device-manager.md#gettrusteddevicelistsync). The APIs of the **deviceManager** module are system interfaces and available only to system applications. + **System capability**: SystemCapability.DistributedDataManager.RelationalStore.Core **Parameters** @@ -434,8 +437,24 @@ Sets an **RdbPredicates** to specify the remote devices to connect on the networ **Example** ```js +import deviceManager from '@ohos.distributedHardware.deviceManager'; +let dmInstance = null; + +deviceManager.createDeviceManager("com.example.appdatamgrverify", (err, manager) => { + if (err) { + console.log("create device manager failed, err=" + err); + return; + } + dmInstance = manager; + let devices = dmInstance.getTrustedDeviceListSync(); + let deviceIds = []; + for (var i = 0; i < devices.length; i++) { + deviceIds[i] = devices[i].deviceId; + } +}) + let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); -predicates.inDevices(['12345678abcde']); +predicates.inDevices(deviceIds); ``` ### inAllDevices @@ -2008,24 +2027,41 @@ remoteQuery(device: string, table: string, predicates: RdbPredicates, columns: A Queries data from the RDB store of a remote device based on specified conditions. This API uses an asynchronous callback to return the result. +> **NOTE**
+> +> The value of **device** is obtained by [deviceManager.getTrustedDeviceListSync](js-apis-device-manager.md#gettrusteddevicelistsync). The APIs of the **deviceManager** module are system interfaces and available only to system applications. + **System capability**: SystemCapability.DistributedDataManager.RelationalStore.Core **Parameters** -| Name | Type | Mandatory| Description | -| ---------- | ------------------------------------------------------------ | ---- | ----------------------------------------------------------- | -| device | string | Yes | Network ID of the remote device. | -| table | string | Yes | Name of the target table. | -| predicates | [RdbPredicates](#rdbpredicates) | Yes | Query conditions specified by the **RdbPredicates** object. | -| columns | Array<string> | Yes | Columns to query. If this parameter is not specified, the query applies to all columns. | +| Name | Type | Mandatory| Description | +| ---------- | -------------------------------------------- | ---- | --------------------------------------------------------- | +| device | string | Yes | ID of the remote device. | +| table | string | Yes | Name of the target table. | +| predicates | [RdbPredicates](#rdbpredicates) | Yes | Query conditions specified by the **RdbPredicates** object. | +| columns | Array<string> | Yes | Columns to query. If this parameter is not specified, the query applies to all columns. | | callback | AsyncCallback<[ResultSet](#resultset)> | Yes | Callback invoked to return the result. If the operation is successful, a **ResultSet** object will be returned.| **Example** ```js +import deviceManager from '@ohos.distributedHardware.deviceManager'; +let dmInstance = null; + +deviceManager.createDeviceManager("com.example.appdatamgrverify", (err, manager) => { + if (err) { + console.log("create device manager failed, err=" + err); + return; + } + dmInstance = manager; + let devices = dmInstance.getTrustedDeviceListSync(); + let deviceId = devices[0].deviceId; +}) + let predicates = new relationalStore.RdbPredicates('EMPLOYEE'); predicates.greaterThan("id", 0); -store.remoteQuery("deviceId", "EMPLOYEE", predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"], +store.remoteQuery(deviceId, "EMPLOYEE", predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"], function(err, resultSet) { if (err) { console.error(`Failed to remoteQuery, err: ${err}`); @@ -2043,13 +2079,17 @@ remoteQuery(device: string, table: string, predicates: RdbPredicates, columns: A Queries data from the RDB store of a remote device based on specified conditions. This API uses a promise to return the result. +> **NOTE**
+> +> The value of **device** is obtained by [deviceManager.getTrustedDeviceListSync](js-apis-device-manager.md#gettrusteddevicelistsync). The APIs of the **deviceManager** module are system interfaces and available only to system applications. + **System capability**: SystemCapability.DistributedDataManager.RelationalStore.Core **Parameters** | Name | Type | Mandatory| Description | | ---------- | ------------------------------------ | ---- | ------------------------------------------------ | -| device | string | Yes | Network ID of the remote device. | +| device | string | Yes | ID of the remote device. | | table | string | Yes | Name of the target table. | | predicates | [RdbPredicates](#rdbpredicates) | Yes | Query conditions specified by the **RdbPredicates** object. | | columns | Array<string> | Yes | Columns to query. If this parameter is not specified, the query applies to all columns.| @@ -2063,6 +2103,19 @@ Queries data from the RDB store of a remote device based on specified conditions **Example** ```js +import deviceManager from '@ohos.distributedHardware.deviceManager'; +let dmInstance = null; + +deviceManager.createDeviceManager("com.example.appdatamgrverify", (err, manager) => { + if (err) { + console.log("create device manager failed, err=" + err); + return; + } + dmInstance = manager; + let devices = dmInstance.getTrustedDeviceListSync(); + let deviceId = devices[0].deviceId; +}) + let predicates = new relationalStore.RdbPredicates('EMPLOYEE'); predicates.greaterThan("id", 0); let promise = store.remoteQuery("deviceId", "EMPLOYEE", predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]); @@ -2488,7 +2541,11 @@ promise.then(() => { obtainDistributedTableName(device: string, table: string, callback: AsyncCallback<string>): void -Obtains the distributed table name for a remote device based on the local table name. This API uses an asynchronous callback to return the result. The distributed table name is required when the RDB store of a remote device is queried. +Obtains the distributed table name for a remote device based on the local table name. The distributed table name is required when the RDB store of a remote device is queried. + +> **NOTE**
+> +> The value of **device** is obtained by [deviceManager.getTrustedDeviceListSync](js-apis-device-manager.md#gettrusteddevicelistsync). The APIs of the **deviceManager** module are system interfaces and available only to system applications. **Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC @@ -2498,14 +2555,27 @@ Obtains the distributed table name for a remote device based on the local table | Name | Type | Mandatory| Description | | -------- | --------------------------- | ---- | ------------------------------------------------------------ | -| device | string | Yes | Remote device. | -| table | string | Yes | Local table name. | +| device | string | Yes | ID of the remote device. | +| table | string | Yes | Local table name of the remote device. | | callback | AsyncCallback<string> | Yes | Callback invoked to return the result. If the operation succeeds, the distributed table name of the remote device is returned.| **Example** ```js -store.obtainDistributedTableName("12345678abcde", "EMPLOYEE", function (err, tableName) { +import deviceManager from '@ohos.distributedHardware.deviceManager'; +let dmInstance = null; + +deviceManager.createDeviceManager("com.example.appdatamgrverify", (err, manager) => { + if (err) { + console.log("create device manager failed, err=" + err); + return; + } + dmInstance = manager; + let devices = dmInstance.getTrustedDeviceListSync(); + let deviceId = devices[0].deviceId; +}) + +store.obtainDistributedTableName(deviceId, "EMPLOYEE", function (err, tableName) { if (err) { console.error(`ObtainDistributedTableName failed, err: ${err}`); return; @@ -2518,7 +2588,11 @@ store.obtainDistributedTableName("12345678abcde", "EMPLOYEE", function (err, tab obtainDistributedTableName(device: string, table: string): Promise<string> -Obtains the distributed table name for a remote device based on the local table name. This API uses a promise to return the result. The distributed table name is required when the RDB store of a remote device is queried. +Obtains the distributed table name for a remote device based on the local table name. The distributed table name is required when the RDB store of a remote device is queried. + +> **NOTE**
+> +> The value of **device** is obtained by [deviceManager.getTrustedDeviceListSync](js-apis-device-manager.md#gettrusteddevicelistsync). The APIs of the **deviceManager** module are system interfaces and available only to system applications. **Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC @@ -2526,10 +2600,10 @@ Obtains the distributed table name for a remote device based on the local table **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ------ | ---- | ---------- | -| device | string | Yes | Remote device.| -| table | string | Yes | Local table name.| +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | -------------------- | +| device | string | Yes | ID of the remote device. | +| table | string | Yes | Local table name of the remote device.| **Return value** @@ -2540,7 +2614,20 @@ Obtains the distributed table name for a remote device based on the local table **Example** ```js -let promise = store.obtainDistributedTableName("12345678abcde", "EMPLOYEE"); +import deviceManager from '@ohos.distributedHardware.deviceManager'; +let dmInstance = null; + +deviceManager.createDeviceManager("com.example.appdatamgrverify", (err, manager) => { + if (err) { + console.log("create device manager failed, err=" + err); + return; + } + dmInstance = manager; + let devices = dmInstance.getTrustedDeviceListSync(); + let deviceId = devices[0].deviceId; +}) + +let promise = store.obtainDistributedTableName(deviceId, "EMPLOYEE"); promise.then((tableName) => { console.info(`ObtainDistributedTableName successfully, tableName= ${tableName}`); }).catch((err) => { @@ -2569,8 +2656,24 @@ Synchronizes data between devices. This API uses an asynchronous callback to ret **Example** ```js +import deviceManager from '@ohos.distributedHardware.deviceManager'; +let dmInstance = null; + +deviceManager.createDeviceManager("com.example.appdatamgrverify", (err, manager) => { + if (err) { + console.log("create device manager failed, err=" + err); + return; + } + dmInstance = manager; + let devices = dmInstance.getTrustedDeviceListSync(); + let deviceIds = []; + for (var i = 0; i < devices.length; i++) { + deviceIds[i] = devices[i].deviceId; + } +}) + let predicates = new relationalStore.RdbPredicates('EMPLOYEE'); -predicates.inDevices(['12345678abcde']); +predicates.inDevices(deviceIds); store.sync(relationalStore.SyncMode.SYNC_MODE_PUSH, predicates, function (err, result) { if (err) { console.error(`Sync failed, err: ${err}`); @@ -2609,8 +2712,24 @@ Synchronizes data between devices. This API uses a promise to return the result. **Example** ```js +import deviceManager from '@ohos.distributedHardware.deviceManager'; +let dmInstance = null; + +deviceManager.createDeviceManager("com.example.appdatamgrverify", (err, manager) => { + if (err) { + console.log("create device manager failed, err=" + err); + return; + } + dmInstance = manager; + let devices = dmInstance.getTrustedDeviceListSync(); + let deviceIds = []; + for (var i = 0; i < devices.length; i++) { + deviceIds[i] = devices[i].deviceId; + } +}) + let predicates = new relationalStore.RdbPredicates('EMPLOYEE'); -predicates.inDevices(['12345678abcde']); +predicates.inDevices(deviceIds); let promise = store.sync(relationalStore.SyncMode.SYNC_MODE_PUSH, predicates); promise.then((result) =>{ console.info(`Sync done.`); @@ -2634,9 +2753,9 @@ Registers an observer for this RDB store. When the data in the RDB store changes | Name | Type | Mandatory| Description | | -------- | ----------------------------------- | ---- | ------------------------------------------- | -| event | string | Yes | Event to observe. The value is **dataChange**, which indicates a data change event. | +| event | string | Yes | Event to observe. The value is **dataChange**, which indicates a data change event. | | type | [SubscribeType](#subscribetype) | Yes | Subscription type to register.| -| observer | Callback<Array<string>> | Yes | Callback invoked to return the data change event. | +| observer | Callback<Array<string>> | Yes | Callback invoked to return the data change event. | **Example** @@ -2657,7 +2776,7 @@ try { off(event:'dataChange', type: SubscribeType, observer: Callback<Array<string>>): void -Unregisters the observer of the specified type from the RDB store. This API uses an asynchronous callback to return the result. +Unregisters the observer of the specified type from the RDB store. This API uses a callback to return the result. **System capability**: SystemCapability.DistributedDataManager.RelationalStore.Core diff --git a/en/application-dev/reference/apis/js-apis-distributed-account.md b/en/application-dev/reference/apis/js-apis-distributed-account.md index b1a3996627f88c46e0657102ad33bd6ed27855a6..0ec67bc229c124cdf36a289e7321acaa9c2fcd43 100644 --- a/en/application-dev/reference/apis/js-apis-distributed-account.md +++ b/en/application-dev/reference/apis/js-apis-distributed-account.md @@ -232,7 +232,8 @@ Sets the distributed account information. This API uses a promise to return the | ID| Error Message| | -------- | ------------------- | | 12300001 | System service exception. | -| 12300002 | invalid accountInfo. | +| 12300002 | Invalid accountInfo. | +| 12300003 | Account not found. | **Example** ```js @@ -325,4 +326,4 @@ Defines distributed OS account information. | event | string | Yes| Login state of the distributed account. The state can be login, logout, token invalid, or logoff, which correspond to the following strings respectively:
- Ohos.account.event.LOGIN
- Ohos.account.event.LOGOUT
- Ohos.account.event.TOKEN_INVALID
- Ohos.account.event.LOGOFF | | nickname9+ | string | No| Nickname of the distributed account. It must be a non-null string.| | avatar9+ | string | No| Avatar of the distributed account. It must be a non-null string.| -| scalableData | object | No| Extended information about the distributed account, passed in key-value (KV) pairs.
**NOTE**
This parameter is reserved and not used in the setters and getters.| +| scalableData8+ | object | No| Extended information about the distributed account, passed in key-value (KV) pairs.
**NOTE**
This parameter is reserved and not used in the setters and getters.| diff --git a/en/application-dev/reference/apis/js-apis-distributed-data.md b/en/application-dev/reference/apis/js-apis-distributed-data.md index 23ee9ed06ec230543ed4ee8594954bc3d72871cf..736a41901b6c74fc06bca36eeb1cee01456e1f49 100644 --- a/en/application-dev/reference/apis/js-apis-distributed-data.md +++ b/en/application-dev/reference/apis/js-apis-distributed-data.md @@ -11,9 +11,9 @@ This module provides the following functions: - [SingleKVStore](#singlekvstore): provides methods to query and synchronize data in a single KV store. This class inherits from [KVStore](#kvstore), and data is not distinguished by device. - [DeviceKVStore8+ ](#devicekvstore8): provides methods to query and synchronize data in a device KV store. This class inherits from [KVStore](#kvstore), and data is distinguished by device. ->**NOTE**
+>**NOTE** > ->- The APIs provided by this module are no longer maintained since API version 9. You are advised to use `@ohos.data.distributedKVStore`](js-apis-distributedKVStore.md). +>- The APIs provided by this module are no longer maintained since API version 9. You are advised to use [@ohos.data.distributedKVStore](js-apis-distributedKVStore.md). > >- The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. @@ -162,7 +162,7 @@ Creates and obtains a KV store. This API uses an asynchronous callback to return | ----- | ------ | ------ | ------ | | storeId | string | Yes | Unique identifier of the KV store. The length cannot exceed [MAX_STORE_ID_LENGTH](#constants).| | options | [Options](#options) | Yes | Configuration of the KV store.| -| callback | AsyncCallback<T> | Yes | Callback invoked to return the KV store created.| +| callback | AsyncCallback<T> | Yes | Callback invoked to return the KV store instance created.| **Example** @@ -212,7 +212,7 @@ Creates and obtains a KV store. This API uses a promise to return the result. | Type | Description | | -------------------------------------- | ------------------------ | -| Promise<T>, <T extends [KVStore](#kvstore)> | Promise used to return the KV store created.| +| Promise<T>, <T extends [KVStore](#kvstore)> | Promise used to return the KV store instance created. | **Example** @@ -449,7 +449,7 @@ Obtains the IDs of all KV stores that are created by [getKVStore()](#getkvstore) | Name | Type| Mandatory | Description | | ----- | ------ | ---- | ----------------------- | | appId | string | Yes | Bundle name of the app that invokes the KV store. | -| callback | AsyncCallback<string[]> | Yes |Callback invoked to return the KV store IDs obtained.| +| callback | AsyncCallback<string[]> | Yes |Callback invoked to return the IDs of all created KV stores.| **Example** @@ -485,7 +485,7 @@ Obtains the IDs of all KV stores that are created by [getKVStore()](#getkvstore) | Type | Description | | ------------- | -------------- | -| Promise<string[]>| Promise used to return the KV store IDs obtained.| +| Promise<string[]>| Promise used to return the IDs of all created KV stores. | **Example** @@ -578,7 +578,7 @@ Provides KV store configuration. | createIfMissing | boolean | No| Whether to create a KV store if no database file exists. By default, a KV store is created.
**System capability**: SystemCapability.DistributedDataManager.KVStore.Core | | encrypt | boolean | No|Whether to encrypt database files. By default, database files are not encrypted.
**System capability**: SystemCapability.DistributedDataManager.KVStore.Core | | backup | boolean | No|Whether to back up database files. By default, database files are backed up.
**System capability**: SystemCapability.DistributedDataManager.KVStore.Core | -| autoSync | boolean | No|Whether database files are automatically synchronized. By default, database files are not automatically synchronized.
**System capability**: SystemCapability.DistributedDataManager.KVStore.Core
**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC | +| autoSync | boolean | No|Whether to automatically synchronize database files. The value **false** (default) means to manually synchronize database files; the value **true** means to automatically synchronize database files.
**System capability**: SystemCapability.DistributedDataManager.KVStore.Core
**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC | | kvStoreType | [KVStoreType](#kvstoretype) | No|Type of the KV store to create. By default, a device KV store is created. The device KV store stores data for multiple devices that collaborate with each other.
**System capability**: SystemCapability.DistributedDataManager.KVStore.Core| | securityLevel | [SecurityLevel](#securitylevel) | No|Security level of the KV store. By default, the security level is not set.
**System capability**: SystemCapability.DistributedDataManager.KVStore.Core | | schema8+ | [Schema](#schema8) | No| Schema used to define the values stored in a KV store.
**System capability**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore| @@ -3074,7 +3074,7 @@ Obtains all KV pairs that match the specified key prefix. This API uses an async | Name | Type| Mandatory | Description | | ----- | ------ | ---- | ----------------------- | | keyPrefix |string | Yes |Key prefix to match. | -| callback |AsyncCallback<[Entry](#entry)[]> | Yes |Callback invoked to return the KV pairs obtained. | +| callback |AsyncCallback<[Entry](#entry)[]> | Yes |Callback invoked to return the KV pairs that match the specified prefix. | **Example** @@ -3125,7 +3125,7 @@ Obtains all KV pairs that match the specified key prefix. This API uses a promis | Type | Description | | ------ | ------- | -|Promise<[Entry](#entry)[]> |Promise used to return the KV pairs obtained.| +|Promise<[Entry](#entry)[]> |Promise used to return the KV pairs that match the specified prefix.| **Example** @@ -3178,7 +3178,7 @@ Obtains the KV pairs that match the specified **Query** object. This API uses an | Name | Type| Mandatory | Description | | ----- | ------ | ---- | ----------------------- | | query |[Query](#query8) | Yes |Key prefix to match. | -| callback |AsyncCallback<[Entry](#entry)[]> | Yes |Callback invoked to return the KV pairs obtained. | +| callback |AsyncCallback<[Entry](#entry)[]> | Yes |Callback invoked to return the KV pairs that match the specified **Query** object. | **Example** @@ -3234,7 +3234,7 @@ Obtains the KV pairs that match the specified **Query** object. This API uses a | Type | Description | | ------ | ------- | -|Promise<[Entry](#entry)[]> |Promise used to return the KV pairs obtained.| +|Promise<[Entry](#entry)[]> |Promise used to return the KV pairs that match the specified **Query** object.| **Example** @@ -3287,7 +3287,7 @@ Obtains the result set with the specified prefix. This API uses an asynchronous | Name | Type| Mandatory | Description | | ----- | ------ | ---- | ----------------------- | | keyPrefix |string | Yes |Key prefix to match.| -| callback |AsyncCallback<[KvStoreResultSet](#kvstoreresultset8)> | Yes |Callback invoked to return the result set obtained.| +| callback |AsyncCallback<[KvStoreResultSet](#kvstoreresultset8)> | Yes |Callback invoked to return the result set with the specified prefix.| **Example** @@ -3341,7 +3341,7 @@ Obtains the result set with the specified prefix. This API uses a promise to ret | Type | Description | | ------ | ------- | -|Promise<[KvStoreResultSet](#kvstoreresultset8)> |Promise used to return the result set obtained.| +|Promise<[KvStoreResultSet](#kvstoreresultset8)> |Promise used to return the result set with the specified prefix.| **Example** @@ -3571,7 +3571,7 @@ Obtains the number of results that matches the specified **Query** object. This | Name | Type| Mandatory | Description | | ----- | ------ | ---- | ----------------------- | | query |[Query](#query8) | Yes |**Query** object to match. | -| callback |AsyncCallback<number> | Yes |Callback invoked to return the number of results obtained. | +| callback |AsyncCallback<number> | Yes |Callback invoked to return the number of results that match the specified **Query** object. | **Example** @@ -3755,6 +3755,9 @@ try { sync(deviceIds: string[], mode: SyncMode, delayMs?: number): void Synchronizes the KV store manually. For details about the synchronization modes of the distributed data service, see [Distributed Data Service Overview](../../database/database-mdds-overview.md). +> **NOTE**
+> +> The value of **deviceIds** is obtained by [deviceManager.getTrustedDeviceListSync](js-apis-device-manager.md#gettrusteddevicelistsync). The APIs of the **deviceManager** module are system interfaces and available only to system applications. **Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC @@ -3771,8 +3774,41 @@ Synchronizes the KV store manually. For details about the synchronization modes **Example** ```js +import deviceManager from '@ohos.distributedHardware.deviceManager'; + +let devManager; let kvStore; -kvStore.sync(['deviceIds'], distributedData.SyncMode.PULL_ONLY, 1000); +const KEY_TEST_SYNC_ELEMENT = 'key_test_sync'; +const VALUE_TEST_SYNC_ELEMENT = 'value-string-001'; +// create deviceManager +deviceManager.createDeviceManager('bundleName', (err, value) => { + if (!err) { + devManager = value; + let deviceIds = []; + if (devManager != null) { + var devices = devManager.getTrustedDeviceListSync(); + for (var i = 0; i < devices.length; i++) { + deviceIds[i] = devices[i].deviceId; + } + } + try { + kvStore.on('syncComplete', function (data) { + console.log('Sync dataChange'); + }); + kvStore.put(KEY_TEST_SYNC_ELEMENT + 'testSync101', VALUE_TEST_SYNC_ELEMENT, function (err, data) { + if (err != undefined) { + console.log("put err: " + JSON.stringify(err)); + return; + } + console.log('Succeeded in putting data'); + const mode = distributedData.SyncMode.PULL_ONLY; + kvStore.sync(deviceIds, mode, 1000); + }); + } catch (e) { + console.log('Sync e' + e); + } + } +}); ``` ### on('dataChange')8+ @@ -3884,7 +3920,7 @@ Unsubscribes from synchronization complete events. | Name | Type | Mandatory| Description | | ------------ | --------------------------------------------- | ---- | ---------------------------------------------------------- | | event | string | Yes | Event to unsubscribe from. The value is **syncComplete**, which indicates a synchronization complete event.| -| syncCallback | Callback<Array<[string, number]>> | No | Callback for a synchronization complete event. | +| syncCallback | Callback<Array<[string, number]>> | No | Callback for the synchronization complete event. | **Example** @@ -3987,7 +4023,7 @@ Obtains the security level of this KV store. This API uses an asynchronous callb | Name | Type| Mandatory | Description | | ----- | ------ | ---- | ----------------------- | -| callback |AsyncCallback<[SecurityLevel](#securitylevel)> | Yes |Callback invoked to return the security level obtained. | +| callback |AsyncCallback<[SecurityLevel](#securitylevel)> | Yes |Callback invoked to return the security level of the KV store. | **Example** @@ -4015,7 +4051,7 @@ Obtains the security level of this KV store. This API uses a promise to return t | Type | Description | | ------ | ------- | -|Promise<[SecurityLevel](#securitylevel)> |Promise used to return the security level obtained.| +|Promise<[SecurityLevel](#securitylevel)> |Promise used to return the security level of the KV store.| **Example** @@ -4097,7 +4133,7 @@ Obtains a string value that matches the specified device ID and key. This API us | Type | Description | | ------ | ------- | -|Promise<boolean\|string\|number\|Uint8Array> |Promise used to return the string value obtained.| +|Promise<boolean\|string\|number\|Uint8Array> |Promise used to return the string value that matches the given condition.| **Example** @@ -4189,7 +4225,7 @@ Obtains all KV pairs that match the specified device ID and key prefix. This API | Type | Description | | ------ | ------- | -|Promise<[Entry](#entry)[]> |Promise used to return the KV pairs obtained.| +|Promise<[Entry](#entry)[]> |Promise used to return all the KV pairs that match the given condition.| **Example** @@ -4299,7 +4335,7 @@ Obtains the KV pairs that match the specified **Query** object. This API uses a | Type | Description | | ------ | ------- | -|Promise<[Entry](#entry)[]> |Promise used to return the KV pairs obtained.| +|Promise<[Entry](#entry)[]> |Promise used to return the KV pairs that match the specified **Query** object.| **Example** @@ -4353,7 +4389,7 @@ Obtains the KV pairs that match the specified device ID and **Query** object. Th | ----- | ------ | ---- | ----------------------- | | deviceId |string | Yes |ID of the target device. | | query |[Query](#query8) | Yes |**Query** object to match. | -| callback |AsyncCallback<[Entry](#entry)[]> | Yes |Callback invoked to return the KV pairs obtained. | +| callback |AsyncCallback<[Entry](#entry)[]> | Yes |Callback invoked to return the KV pairs that match the specified device ID and **Query** object. | **Example** @@ -4411,7 +4447,7 @@ Obtains the KV pairs that match the specified device ID and **Query** object. Th | Type | Description | | ------ | ------- | -|Promise<[Entry](#entry)[]> |Promise used to return the KV pairs obtained.| +|Promise<[Entry](#entry)[]> |Promise used to return the KV pairs that match the specified device ID and **Query** object.| **Example** @@ -4466,7 +4502,7 @@ Obtains a **KvStoreResultSet** object that matches the specified device ID and k | ----- | ------ | ---- | ----------------------- | | deviceId |string | Yes |ID of the target device. | | keyPrefix |string | Yes |Key prefix to match. | -| callback |AsyncCallback<[KvStoreResultSet](#kvstoreresultset8)> | Yes |Callback invoked to return the **KvStoreResultSet** object obtained. | +| callback |AsyncCallback<[KvStoreResultSet](#kvstoreresultset8)> | Yes |Callback invoked to return the **KvStoreResultSet** object that matches the specified device ID and key prefix. | **Example** @@ -4506,7 +4542,7 @@ Obtains a **KvStoreResultSet** object that matches the specified device ID and k | Type | Description | | ------ | ------- | -|Promise<[KvStoreResultSet](#kvstoreresultset8)> |Promise used to return the **KvStoreResultSet** object obtained.| +|Promise<[KvStoreResultSet](#kvstoreresultset8)> |Promise used to return the **KvStoreResultSet** object that matches the specified device ID and key prefix.| **Example** @@ -4601,7 +4637,7 @@ Obtains a **KvStoreResultSet** object that matches the specified **Query** objec | Type | Description | | ------ | ------- | -|Promise<[KvStoreResultSet](#kvstoreresultset8)> |Promise used to return the **KvStoreResultSet** object obtained.| +|Promise<[KvStoreResultSet](#kvstoreresultset8)> |Promise used to return the **KvStoreResultSet** object that matches the specified **Query** object.| **Example** @@ -4661,7 +4697,7 @@ Obtains a **KvStoreResultSet** object that matches the specified device ID and * | ----- | ------ | ---- | ----------------------- | | deviceId |string | Yes |ID of the target device. | | query |[Query](#query8) | Yes |**Query** object to match. | -| callback |AsyncCallback<[KvStoreResultSet](#kvstoreresultset8)> | Yes |Callback invoked to return the **KvStoreResultSet** object obtained. | +| callback |AsyncCallback<[KvStoreResultSet](#kvstoreresultset8)> | Yes |Callback invoked to return the **KvStoreResultSet** object that matches the specified device ID and **Query** object. | **Example** @@ -4718,7 +4754,7 @@ Obtains a **KvStoreResultSet** object that matches the specified device ID and * | Type | Description | | ------ | ------- | -|Promise<[KvStoreResultSet](#kvstoreresultset8)> |Promise used to return the **KvStoreResultSet** object obtained.| +|Promise<[KvStoreResultSet](#kvstoreresultset8)> |Promise used to return the **KvStoreResultSet** object that matches the specified device ID and **Query** object.| **Example** @@ -5141,6 +5177,10 @@ sync(deviceIds: string[], mode: SyncMode, delayMs?: number): void Synchronizes the KV store manually. For details about the synchronization modes of the distributed data service, see [Distributed Data Service Overview](../../database/database-mdds-overview.md). +> **NOTE**
+> +> The value of **deviceIds** is obtained by [deviceManager.getTrustedDeviceListSync](js-apis-device-manager.md#gettrusteddevicelistsync). The APIs of the **deviceManager** module are system interfaces and available only to system applications. + **Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC **System capability**: SystemCapability.DistributedDataManager.KVStore.Core @@ -5156,22 +5196,41 @@ Synchronizes the KV store manually. For details about the synchronization modes **Example** ```js +import deviceManager from '@ohos.distributedHardware.deviceManager'; + +let devManager; let kvStore; const KEY_TEST_SYNC_ELEMENT = 'key_test_sync'; const VALUE_TEST_SYNC_ELEMENT = 'value-string-001'; -try { - kvStore.on('syncComplete', function (data) { +// create deviceManager +deviceManager.createDeviceManager('bundleName', (err, value) => { + if (!err) { + devManager = value; + let deviceIds = []; + if (devManager != null) { + var devices = devManager.getTrustedDeviceListSync(); + for (var i = 0; i < devices.length; i++) { + deviceIds[i] = devices[i].deviceId; + } + } + try { + kvStore.on('syncComplete', function (data) { console.log('Sync dataChange'); - }); - kvStore.put(KEY_TEST_SYNC_ELEMENT + 'testSync101', VALUE_TEST_SYNC_ELEMENT, function (err,data) { - console.log('Sync put success'); - const devices = ['deviceList']; + }); + kvStore.put(KEY_TEST_SYNC_ELEMENT + 'testSync101', VALUE_TEST_SYNC_ELEMENT, function (err, data) { + if (err != undefined) { + console.log("put err: " + JSON.stringify(err)); + return; + } + console.log('Succeeded in putting data'); const mode = distributedData.SyncMode.PULL_ONLY; - kvStore.sync(devices, mode); - }); -}catch(e) { - console.log('Sync e' + e); -} + kvStore.sync(deviceIds, mode, 1000); + }); + } catch (e) { + console.log('Sync e' + e); + } + } +}); ``` ### on('dataChange')8+ @@ -5283,7 +5342,7 @@ Unsubscribes from synchronization complete events. | Name | Type | Mandatory| Description | | ------------ | --------------------------------------------- | ---- | ---------------------------------------------------------- | | event | string | Yes | Event to unsubscribe from. The value is **syncComplete**, which indicates a synchronization complete event.| -| syncCallback | Callback<Array<[string, number]>> | No | Callback for a synchronization complete event. | +| syncCallback | Callback<Array<[string, number]>> | No | Callback for the synchronization complete event. | **Example** diff --git a/en/application-dev/reference/apis/js-apis-distributedKVStore.md b/en/application-dev/reference/apis/js-apis-distributedKVStore.md index aa475afa50fe07e03f9a8341b1429a16f7151658..004ae7c0e58348787b80e7fd3013ff18c82f6b13 100644 --- a/en/application-dev/reference/apis/js-apis-distributedKVStore.md +++ b/en/application-dev/reference/apis/js-apis-distributedKVStore.md @@ -151,7 +151,7 @@ Provides KV store configuration. | createIfMissing | boolean | No | Whether to create a KV store if no database file exists. By default, a KV store is created.
**System capability**: SystemCapability.DistributedDataManager.KVStore.Core| | encrypt | boolean | No | Whether to encrypt database files. By default, database files are not encrypted.
**System capability**: SystemCapability.DistributedDataManager.KVStore.Core| | backup | boolean | No | Whether to back up database files. By default, database files are backed up.
**System capability**: SystemCapability.DistributedDataManager.KVStore.Core| -| autoSync | boolean | No | Whether database files are automatically synchronized. By default, database files are not automatically synchronized.
**System capability**: SystemCapability.DistributedDataManager.KVStore.Core
**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC| +| autoSync | boolean | No | Whether to automatically synchronize database files. The value **false** (default) means to manually synchronize database files; the value **true** means to automatically synchronize database files.
**System capability**: SystemCapability.DistributedDataManager.KVStore.Core
**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC| | kvStoreType | [KVStoreType](#kvstoretype) | No | Type of the KV store to create. By default, a device KV store is created. The device KV store stores data for multiple devices that collaborate with each other.
**System capability**: SystemCapability.DistributedDataManager.KVStore.Core| | securityLevel | [SecurityLevel](#securitylevel) | Yes |Security level of the KV store.
**System capability**: SystemCapability.DistributedDataManager.KVStore.Core| | schema | [Schema](#schema) | No | Schema used to define the values stored in the KV store. By default, **schema** is not used.
**System capability**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore| @@ -258,7 +258,7 @@ Creates a **KVManager** instance to manage KV stores. | Name| Type | Mandatory| Description | | ------ | ----------------------------- | ---- | --------------------------------------------------------- | -| config | [KVManagerConfig](#kvmanagerconfig) | Yes | **KVManager** instance configuration, including the bundle name of the caller and user information.| +| config | [KVManagerConfig](#kvmanagerconfig) | Yes | **KVManager** instance configuration, including the bundle name and user information of the caller.| **Return value** @@ -271,7 +271,8 @@ Creates a **KVManager** instance to manage KV stores. Stage model: ```js -import UIAbility from '@ohos.app.ability.UIAbility' +import UIAbility from '@ohos.app.ability.UIAbility'; + let kvManager; export default class EntryAbility extends UIAbility { onCreate() { @@ -294,7 +295,7 @@ export default class EntryAbility extends UIAbility { FA model: ```js -import featureAbility from '@ohos.ability.featureAbility' +import featureAbility from '@ohos.ability.featureAbility'; let kvManager; let context = featureAbility.getContext() const kvManagerConfig = { @@ -327,7 +328,7 @@ Creates and obtains a distributed KV store. This API uses an asynchronous callba | -------- | ---------------------- | ---- | ------------------------------------------------------------ | | storeId | string | Yes | Unique identifier of the KV store. The length cannot exceed [MAX_STORE_ID_LENGTH](#constants).| | options | [Options](#options) | Yes | Configuration of the KV store to create. | -| callback | AsyncCallback<T> | Yes | Callback invoked to return the distributed KV store (**SingleKVStore** or **DeviceKVStore**) instance created.| +| callback | AsyncCallback<T> | Yes | Callback invoked to return the **SingleKVStore** or **DeviceKVStore** instance created.| **Error codes** @@ -384,7 +385,7 @@ Creates and obtains a distributed KV store. This API uses a promise to return th | Type | Description | | ---------------- | ------------------------------------------------------------ | -| Promise<T> | Promise used to return the distributed KV store (**SingleKVStore** or **DeviceKVStore**) instance created.| +| Promise<T> | Promise used to return the **SingleKVStore** or **DeviceKVStore** instance created.| **Error codes** @@ -651,7 +652,7 @@ Obtains the IDs of all distributed KV stores that are created by [getKVStore](#g | Name | Type | Mandatory| Description | | -------- | ----------------------------- | ---- | --------------------------------------------------- | | appId | string | Yes | Bundle name of the app that invokes the KV store. | -| callback | AsyncCallback<string[]> | Yes | Callback invoked to return the IDs of the distributed KV stores obtained.| +| callback | AsyncCallback<string[]> | Yes | Callback invoked to return the IDs of all the distributed KV stores created.| **Example** @@ -689,7 +690,7 @@ Obtains the IDs of all distributed KV stores that are created by [getKVStore](#g | Type | Description | | ----------------------- | ------------------------------------------------------ | -| Promise<string[]> | Promise used to return the IDs of the distributed KV stores obtained.| +| Promise<string[]> | Promise used to return the IDs of all the distributed KV stores created. | **Example** @@ -2960,7 +2961,7 @@ Obtains all KV pairs that match the specified key prefix. This API uses an async | Name | Type | Mandatory| Description | | --------- | -------------------------------------- | ---- | ---------------------------------------- | | keyPrefix | string | Yes | Key prefix to match. | -| callback | AsyncCallback<[Entry](#entry)[]> | Yes | Callback invoked to return the KV pairs obtained.| +| callback | AsyncCallback<[Entry](#entry)[]> | Yes | Callback invoked to return the KV pairs that match the specified prefix.| **Error codes** @@ -3028,7 +3029,7 @@ Obtains all KV pairs that match the specified key prefix. This API uses a promis | Type | Description | | -------------------------------- | ------------------------------------------- | -| Promise<[Entry](#entry)[]> | Promise used to return the KV pairs obtained.| +| Promise<[Entry](#entry)[]> | Promise used to return the KV pairs that match the specified prefix.| **Error codes** @@ -3086,7 +3087,7 @@ Obtains the KV pairs that match the specified **Query** object. This API uses an | Name | Type | Mandatory| Description | | -------- | -------------------------------------- | ---- | ----------------------------------------------- | | query | [Query](#query) | Yes | Key prefix to match. | -| callback | AsyncCallback<[Entry](#entry)[]> | Yes | Callback invoked to return the KV pairs obtained.| +| callback | AsyncCallback<[Entry](#entry)[]> | Yes | Callback invoked to return the KV pairs that match the specified **Query** object.| **Error codes** @@ -3153,7 +3154,7 @@ Obtains the KV pairs that match the specified **Query** object. This API uses a | Type | Description | | -------------------------------- | -------------------------------------------------- | -| Promise<[Entry](#entry)[]> | Promise used to return the KV pairs obtained.| +| Promise<[Entry](#entry)[]> | Promise used to return the KV pairs that match the specified **Query** object.| **Error codes** @@ -3214,7 +3215,7 @@ Obtains a result set with the specified prefix from this single KV store. This A | Name | Type | Mandatory| Description | | --------- | ---------------------------------------------------------- | ---- | ------------------------------------ | | keyPrefix | string | Yes | Key prefix to match. | -| callback | AsyncCallback<[KVStoreResultSet](#kvstoreresultset)> | Yes | Callback invoked to return the result set obtained.| +| callback | AsyncCallback<[KVStoreResultSet](#kvstoreresultset)> | Yes | Callback invoked to return the result set with the specified prefix.| **Error codes** @@ -3288,7 +3289,7 @@ Obtains a result set with the specified prefix from this single KV store. This A | Type | Description | | ---------------------------------------------------- | --------------------------------------- | -| Promise<[KVStoreResultSet](#kvstoreresultset)> | Promise used to return the result set obtained.| +| Promise<[KVStoreResultSet](#kvstoreresultset)> | Promise used to return the result set with the specified prefix.| **Error codes** @@ -4484,6 +4485,9 @@ try { sync(deviceIds: string[], mode: SyncMode, delayMs?: number): void Synchronizes the KV store manually. For details about the synchronization modes of the distributed data service, see [Distributed Data Service Overview](../../database/database-mdds-overview.md). +> **NOTE** +> +> The value of **deviceIds** is obtained by [deviceManager.getTrustedDeviceListSync](js-apis-device-manager.md#gettrusteddevicelistsync). The APIs of the **deviceManager** module are system interfaces and available only to system applications. **Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC @@ -4509,26 +4513,41 @@ For details about the error codes, see [Distributed KV Store Error Codes](../err **Example** ```js +import deviceManager from '@ohos.distributedHardware.deviceManager'; + +let devManager; let kvStore; const KEY_TEST_SYNC_ELEMENT = 'key_test_sync'; const VALUE_TEST_SYNC_ELEMENT = 'value-string-001'; -try { - kvStore.on('syncComplete', function (data) { +// create deviceManager +deviceManager.createDeviceManager('bundleName', (err, value) => { + if (!err) { + devManager = value; + let deviceIds = []; + if (devManager != null) { + var devices = devManager.getTrustedDeviceListSync(); + for (var i = 0; i < devices.length; i++) { + deviceIds[i] = devices[i].deviceId; + } + } + try { + kvStore.on('syncComplete', function (data) { console.log('Sync dataChange'); - }); - kvStore.put(KEY_TEST_SYNC_ELEMENT + 'testSync101', VALUE_TEST_SYNC_ELEMENT, function (err, data) { + }); + kvStore.put(KEY_TEST_SYNC_ELEMENT + 'testSync101', VALUE_TEST_SYNC_ELEMENT, function (err, data) { if (err != undefined) { - console.error(`Fail to sync.code is ${err.code},message is ${err.message}`); - return; + console.error(`Fail to sync.code is ${err.code},message is ${err.message}`); + return; } console.log('Succeeded in putting data'); - const devices = ['deviceList']; const mode = distributedKVStore.SyncMode.PULL_ONLY; - kvStore.sync(devices, mode, 1000); - }); -} catch (e) { - console.error(`Fail to sync.code is ${e.code},message is ${e.message}`); -} + kvStore.sync(deviceIds, mode, 1000); + }); + } catch (e) { + console.error(`Fail to sync.code is ${e.code},message is ${e.message}`); + } + } +}); ``` ### sync @@ -4536,6 +4555,9 @@ try { sync(deviceIds: string[], query: Query, mode: SyncMode, delayMs?: number): void Synchronizes the KV store manually. This API returns the result synchronously. For details about the synchronization modes of the distributed data service, see [Distributed Data Service Overview](../../database/database-mdds-overview.md). +> **NOTE**
+> +> The value of **deviceIds** is obtained by [deviceManager.getTrustedDeviceListSync](js-apis-device-manager.md#gettrusteddevicelistsync). The APIs of the **deviceManager** module are system interfaces and available only to system applications. **Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC @@ -4562,29 +4584,44 @@ For details about the error codes, see [Distributed KV Store Error Codes](../err **Example** ```js +import deviceManager from '@ohos.distributedHardware.deviceManager'; + +let devManager; let kvStore; const KEY_TEST_SYNC_ELEMENT = 'key_test_sync'; const VALUE_TEST_SYNC_ELEMENT = 'value-string-001'; -try { - kvStore.on('syncComplete', function (data) { +// create deviceManager +deviceManager.createDeviceManager('bundleName', (err, value) => { + if (!err) { + devManager = value; + let deviceIds = []; + if (devManager != null) { + var devices = devManager.getTrustedDeviceListSync(); + for (var i = 0; i < devices.length; i++) { + deviceIds[i] = devices[i].deviceId; + } + } + try { + kvStore.on('syncComplete', function (data) { console.log('Sync dataChange'); - }); - kvStore.put(KEY_TEST_SYNC_ELEMENT + 'testSync101', VALUE_TEST_SYNC_ELEMENT, function (err, data) { + }); + kvStore.put(KEY_TEST_SYNC_ELEMENT + 'testSync101', VALUE_TEST_SYNC_ELEMENT, function (err, data) { if (err != undefined) { - console.error(`Fail to sync.code is ${err.code},message is ${err.message}`); - return; + console.error(`Fail to sync.code is ${err.code},message is ${err.message}`); + return; } console.log('Succeeded in putting data'); - const devices = ['deviceList']; const mode = distributedKVStore.SyncMode.PULL_ONLY; const query = new distributedKVStore.Query(); query.prefixKey("batch_test"); query.deviceId('localDeviceId'); - kvStore.sync(devices, query, mode, 1000); - }); -} catch (e) { - console.error(`Fail to sync.code is ${e.code},message is ${e.message}`); -} + kvStore.sync(deviceIds, query, mode, 1000); + }); + } catch (e) { + console.error(`Fail to sync.code is ${e.code},message is ${e.message}`); + } + } +}); ``` ### on('dataChange') @@ -5020,7 +5057,7 @@ Obtains a string value that matches the specified device ID and key. This API us | Type | Description | | ------ | ------- | -|Promise<boolean\|string\|number\|Uint8Array> |Promise used to return the string value obtained.| +|Promise<boolean\|string\|number\|Uint8Array> |Promise used to return the string value that matches the given condition.| **Error codes** @@ -5067,7 +5104,7 @@ Obtains all KV pairs that match the specified key prefix for this device. This A | Name | Type | Mandatory| Description | | --------- | -------------------------------------- | ---- | ---------------------------------------- | | keyPrefix | string | Yes | Key prefix to match. | -| callback | AsyncCallback<[Entry](#entry)[]> | Yes | Callback invoked to return the KV pairs obtained.| +| callback | AsyncCallback<[Entry](#entry)[]> | Yes | Callback invoked to return the KV pairs that match the specified prefix.| **Error codes** @@ -5135,7 +5172,7 @@ Obtains all KV pairs that match the specified key prefix for this device. This A | Type | Description | | -------------------------------- | ------------------------------------------- | -| Promise<[Entry](#entry)[]> | Promise used to return the KV pairs obtained.| +| Promise<[Entry](#entry)[]> | Promise used to return the KV pairs that match the specified prefix.| **Error codes** @@ -5263,7 +5300,7 @@ Obtains all KV pairs that match the specified device ID and key prefix. This API | Type | Description | | -------------------------------- | ------------------------------------------------- | -| Promise<[Entry](#entry)[]> | Promise used to return the KV pairs obtained.| +| Promise<[Entry](#entry)[]> | Promise used to return all the KV pairs that match the given condition.| **Error codes** @@ -5324,7 +5361,7 @@ Obtains all KV pairs that match the specified **Query** object for this device. | Name | Type | Mandatory| Description | | -------- | -------------------------------------- | ---- | ----------------------------------------------------- | | query | [Query](#query) | Yes | Key prefix to match. | -| callback | AsyncCallback<[Entry](#entry)[]> | Yes | Callback invoked to return the KV pairs obtained.| +| callback | AsyncCallback<[Entry](#entry)[]> | Yes | Callback invoked to return the KV pairs that match the specified **Query** object on the local device.| **Error codes** @@ -5391,7 +5428,7 @@ Obtains all KV pairs that match the specified **Query** object for this device. | Type | Description | | -------------------------------- | -------------------------------------------------------- | -| Promise<[Entry](#entry)[]> | Promise used to return the KV pairs obtained.| +| Promise<[Entry](#entry)[]> | Promise used to return the KV pairs that match the specified **Query** object on the local device.| **Error codes** @@ -5453,7 +5490,7 @@ Obtains the KV pairs that match the specified device ID and **Query** object. Th | -------- | -------------------------------------- | ---- | ------------------------------------------------------- | | deviceId | string | Yes | ID of the target device. | | query | [Query](#query) | Yes | **Query** object to match. | -| callback | AsyncCallback<[Entry](#entry)[]> | Yes | Callback invoked to return the KV pairs obtained.| +| callback | AsyncCallback<[Entry](#entry)[]> | Yes | Callback invoked to return the KV pairs that match the specified device ID and **Query** object.| **Error codes** @@ -5527,7 +5564,7 @@ Obtains the KV pairs that match the specified device ID and **Query** object. Th | Type | Description | | -------------------------------- | ---------------------------------------------------------- | -| Promise<[Entry](#entry)[]> | Promise used to return the KV pairs obtained.| +| Promise<[Entry](#entry)[]> | Promise used to return the KV pairs that match the specified device ID and **Query** object.| **Error codes** @@ -5589,7 +5626,7 @@ Obtains a result set with the specified prefix for this device. This API uses an | Name | Type | Mandatory| Description | | --------- | ---------------------------------------------------------- | ---- | ------------------------------------ | | keyPrefix | string | Yes | Key prefix to match. | -| callback | AsyncCallback<[KVStoreResultSet](#kvstoreresultset)> | Yes | Callback invoked to return the result set obtained.| +| callback | AsyncCallback<[KVStoreResultSet](#kvstoreresultset)> | Yes | Callback invoked to return the result set with the specified prefix.| **Error codes** @@ -5663,7 +5700,7 @@ Obtains a result set with the specified prefix for this device. This API uses a | Type | Description | | ---------------------------------------------------- | --------------------------------------- | -| Promise<[KVStoreResultSet](#kvstoreresultset)> | Promise used to return the result set obtained.| +| Promise<[KVStoreResultSet](#kvstoreresultset)> | Promise used to return the result set with the specified prefix.| **Error codes** @@ -5727,7 +5764,7 @@ Obtains a **KVStoreResultSet** object that matches the specified device ID and k | --------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | | deviceId | string | Yes | ID of the target device. | | keyPrefix | string | Yes | Key prefix to match. | -| callback | AsyncCallback<[KVStoreResultSet](#kvstoreresultset)> | Yes | Callback invoked to return the **KVStoreResultSet** object obtained.| +| callback | AsyncCallback<[KVStoreResultSet](#kvstoreresultset)> | Yes | Callback invoked to return the **KVStoreResultSet** object that matches the specified device ID and key prefix.| **Error codes** @@ -5783,7 +5820,7 @@ Obtains a **KVStoreResultSet** object that matches the specified device ID and k | Type | Description | | ------------------------------------------------------ | ------------------------------------------------------------ | -| Promise<[KVStoreResultSet](#kvstoreresultset)> | Promise used to return the **KVStoreResultSet** object obtained.| +| Promise<[KVStoreResultSet](#kvstoreresultset)> | Promise used to return the **KVStoreResultSet** object that matches the specified device ID and key prefix.| **Error codes** @@ -5830,7 +5867,7 @@ Obtains a **KVStoreResultSet** object that matches the specified device ID and * | -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | | deviceId | string | Yes | ID of the device to which the **KVStoreResultSet** object belongs. | | query | [Query](#query) | Yes | **Query** object to match. | -| callback | AsyncCallback<[KVStoreResultSet](#kvstoreresultset)> | Yes | Callback invoked to return the **KVStoreResultSet** object obtained.| +| callback | AsyncCallback<[KVStoreResultSet](#kvstoreresultset)> | Yes | Callback invoked to return the **KVStoreResultSet** object that matches the specified device ID and **Query** object.| **Error codes** @@ -5907,7 +5944,7 @@ Obtains a **KVStoreResultSet** object that matches the specified device ID and * | Type | Description | | ------------------------------------------------------ | ------------------------------------------------------------ | -| Promise<[KVStoreResultSet](#kvstoreresultset)> | Promise used to return the **KVStoreResultSet** object obtained.| +| Promise<[KVStoreResultSet](#kvstoreresultset)> | Promise used to return the **KVStoreResultSet** object that matches the specified device ID and **Query** object.| **Error codes** @@ -5980,7 +6017,7 @@ Obtains a **KVStoreResultSet** object that matches the specified **Query** objec | Type | Description | | ---------------------------------------------------- | ------------------------------------------------------------ | -| Promise<[KVStoreResultSet](#kvstoreresultset)> | Promise used to return Obtains a **KVStoreResultSet** object that matches the specified **Query** object for this device.| +| Promise<[KVStoreResultSet](#kvstoreresultset)> | Promise used to return the **KVStoreResultSet** object obtained.| **Error codes** @@ -6341,7 +6378,7 @@ Obtains the number of results that match the specified **Query** object for this | Name | Type | Mandatory| Description | | -------- | --------------------------- | ---- | ------------------------------------------------- | | query | [Query](#query) | Yes | **Query** object to match. | -| callback | AsyncCallback<number> | Yes | Callback invoked to return the number of results that match the specified **Query** object.| +| callback | AsyncCallback<number> | Yes | Callback invoked to return the number of results obtained.| **Error codes** @@ -6404,7 +6441,7 @@ Obtains the number of results that match the specified **Query** object for this | Type | Description | | --------------------- | ---------------------------------------------------- | -| Promise<number> | Promise used to return the number of results that match the specified **Query** object.| +| Promise<number> | Promise used to return the number of results obtained.| **Error codes** @@ -6463,7 +6500,7 @@ Obtains the number of results that matches the specified device ID and **Query** | -------- | --------------------------- | ---- | --------------------------------------------------- | | deviceId | string | Yes | ID of the device to which the **KVStoreResultSet** object belongs. | | query | [Query](#query) | Yes | **Query** object to match. | -| callback | AsyncCallback<number> | Yes | Callback invoked to return the number of results obtained.| +| callback | AsyncCallback<number> | Yes | Callback invoked to return the number of results obtained. | **Error codes** @@ -6532,7 +6569,7 @@ Obtains the number of results that matches the specified device ID and **Query** | Type | Description | | --------------------- | ------------------------------------------------------ | -| Promise<number> | Promise used to return the number of results obtained.| +| Promise<number> | Promise used to return the number of results obtained. | **Error codes** diff --git a/en/application-dev/reference/apis/js-apis-file-picker.md b/en/application-dev/reference/apis/js-apis-file-picker.md index 44e38fa5f4ef0b9b6af861ceb2ceeb1a8d126906..08a1e1bca160c10d9aa96c08c80082d6d78916ab 100644 --- a/en/application-dev/reference/apis/js-apis-file-picker.md +++ b/en/application-dev/reference/apis/js-apis-file-picker.md @@ -1,10 +1,11 @@ -# @ohos.file.picker (Picker) +# @ohos.file.picker (File Picker) + +The File Picker encapsulates system applications, such as **PhotoViewPicker**, **DocumentViewPicker**, and **AudioViewPicker**, and provides capabilities of selecting and saving photos, documents, and audio clips. The application can select the picker as required. > **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. -**Picker** encapsulates system applications, such as **PhotoViewPicker**, **DocumentViewPicker**, and **AudioViewPicker**, and provides capabilities of selecting and saving images, videos, documents, and audio clips. The application can select the picker as required. ## Modules to Import ```js @@ -378,7 +379,7 @@ Saves one or more documents in a **documentPicker** page. This API uses a promis | Type | Description | | ----------------------------- | :---- | -| Promise<Array<string>> | Promise used to return the URIs of the documents saved.| +| Promise<Array<string>> | Promise used to return the URIs of the documents saved.| **Example** diff --git a/en/application-dev/reference/apis/js-apis-file-statvfs.md b/en/application-dev/reference/apis/js-apis-file-statvfs.md index f431f3cb17d8d82a88a0b9bde7e2a3e3d8e66c86..b7809c5f9f10fa9904ec0f64367ff025e7aafc94 100644 --- a/en/application-dev/reference/apis/js-apis-file-statvfs.md +++ b/en/application-dev/reference/apis/js-apis-file-statvfs.md @@ -22,15 +22,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** @@ -53,10 +53,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** @@ -81,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** @@ -112,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-file-storage-statistics.md b/en/application-dev/reference/apis/js-apis-file-storage-statistics.md index 834bf7bcbdd703786d9bb43db8fe0b61956fdd52..716e0da462bf4e59d0cd969deb561e0adc23a351 100644 --- a/en/application-dev/reference/apis/js-apis-file-storage-statistics.md +++ b/en/application-dev/reference/apis/js-apis-file-storage-statistics.md @@ -22,8 +22,7 @@ Obtains the total size (in bytes) of the specified volume in an external storage **System capability**: SystemCapability.FileManagement.StorageService.SpatialStatistics - -This is a system API. +**System API**: This is a system API. **Parameters** @@ -59,8 +58,7 @@ Obtains the total size (in bytes) of the specified volume in an external storage **System capability**: SystemCapability.FileManagement.StorageService.SpatialStatistics - -This is a system API. +**System API**: This is a system API. **Parameters** @@ -90,8 +88,7 @@ Obtains the available space (in bytes) of the specified volume in an external st **System capability**: SystemCapability.FileManagement.StorageService.SpatialStatistics - -This is a system API. +**System API**: This is a system API. **Parameters** @@ -128,8 +125,7 @@ Obtains the available space (in bytes) of the specified volume in an external st **System capability**: SystemCapability.FileManagement.StorageService.SpatialStatistics - -This is a system API. +**System API**: This is a system API. **Parameters** @@ -159,8 +155,7 @@ Obtains the space (in bytes) of an application. This API uses a promise to retur **System capability**: SystemCapability.FileManagement.StorageService.SpatialStatistics - -This is a system API. +**System API**: This is a system API. **Parameters** @@ -196,8 +191,7 @@ Obtains the space (in bytes) of an application. This API uses an asynchronous ca **System capability**: SystemCapability.FileManagement.StorageService.SpatialStatistics - -This is a system API. +**System API**: This is a system API. **Parameters** @@ -263,12 +257,8 @@ Obtains the space (in bytes) of this third-party application. This API uses an a ## BundleStats9+ -### Attributes - **System capability**: SystemCapability.FileManagement.StorageService.SpatialStatistics - - | Name | Type | Readable| Writable| Description | | --------- | ------ | --- | ---- | -------------- | | appSize | number | Yes| No| Size of the application, in bytes. | @@ -286,9 +276,7 @@ Obtains the total size (in bytes) of the built-in storage. This API uses a promi **System capability**: SystemCapability.FileManagement.StorageService.SpatialStatistics - -This is a system API. - +**System API**: This is a system API. **Return value** @@ -313,9 +301,7 @@ Obtains the total size (in bytes) of the built-in storage. This API uses an asyn **System capability**: SystemCapability.FileManagement.StorageService.SpatialStatistics - -This is a system API. - +**System API**: This is a system API. **Parameters** @@ -343,9 +329,7 @@ Obtains the available space (in bytes) of the built-in storage. This API uses a **System capability**: SystemCapability.FileManagement.StorageService.SpatialStatistics - -This is a system API. - +**System API**: This is a system API. **Return value** @@ -371,9 +355,7 @@ Obtains the available space (in bytes) of the built-in storage. This API uses an **System capability**: SystemCapability.FileManagement.StorageService.SpatialStatistics - -This is a system API. - +**System API**: This is a system API. **Parameters** @@ -400,8 +382,7 @@ Obtains the system data space, in bytes. This API uses a promise to return the r **System capability**: SystemCapability.FileManagement.StorageService.SpatialStatistics - -This is a system API. +**System API**: This is a system API. **Return value** @@ -430,9 +411,7 @@ Obtains the system data space, in bytes. This API uses an asynchronous callback **System capability**: SystemCapability.FileManagement.StorageService.SpatialStatistics - -This is a system API. - +**System API**: This is a system API. **Parameters** @@ -459,9 +438,7 @@ Obtains the storage statistics (in bytes) of this user. This API uses a promise **System capability**: SystemCapability.FileManagement.StorageService.SpatialStatistics - -This is a system API. - +**System API**: This is a system API. **Return value** @@ -489,9 +466,7 @@ Obtains the storage statistics (in bytes) of this user. This API uses an asynchr **System capability**: SystemCapability.FileManagement.StorageService.SpatialStatistics - -This is a system API. - +**System API**: This is a system API. **Parameters** @@ -515,9 +490,7 @@ Obtains the storage statistics (in bytes) of the specified user. This API uses a **System capability**: SystemCapability.FileManagement.StorageService.SpatialStatistics - -This is a system API. - +**System API**: This is a system API. **Parameters** @@ -552,9 +525,7 @@ Obtains the storage statistics (in bytes) of the specified user. This API uses a **System capability**: SystemCapability.FileManagement.StorageService.SpatialStatistics - -This is a system API. - +**System API**: This is a system API. **Parameters** @@ -576,12 +547,9 @@ This is a system API. ## StorageStats9+ -### Attributes - **System capability**: SystemCapability.FileManagement.StorageService.SpatialStatistics - -This is a system API. +**System API**: This is a system API. | Name | Type | Readable | Writable | Description | | --------- | ------ | ---- | ----- | -------------- | diff --git a/en/application-dev/reference/apis/js-apis-file-volumemanager.md b/en/application-dev/reference/apis/js-apis-file-volumemanager.md index bf1e5c9c417ecc5940e75d4876def5ffd7b4b210..c2628ce063d93233af5ee6f6641a422e1a163c37 100644 --- a/en/application-dev/reference/apis/js-apis-file-volumemanager.md +++ b/en/application-dev/reference/apis/js-apis-file-volumemanager.md @@ -1,6 +1,6 @@ -# @ohos.file.volumeManager (Volument Management) +# @ohos.file.volumeManager (Volume Management) -The volumeManager module provides APIs for volume and disk management, including obtaining volume information, mounting or unmounting volumes, partitioning disks, and formatting volumes. +The **volumeManager** module provides APIs for volume and disk management, including obtaining volume information, mounting or unmounting a volume, partitioning a disk, and formatting a volume. > **NOTE** > @@ -18,7 +18,7 @@ import volumemanager from "@ohos.file.volumeManager"; getAllVolumes(): Promise<Array<Volume>> -Asynchronously obtains information about all available volumes. This API uses a promise to return the result. +Obtains information about all volumes of this external storage device. This API uses a promise to return the result. **Required permissions**: ohos.permission.STORAGE_MANAGER @@ -26,15 +26,17 @@ Asynchronously obtains information about all available volumes. This API uses a **Return value** - | Type | Description | - | ---------------------------------- | -------------------------- | - | Promise<[Volume](#volume)[]> | Promise used to return the execution result.| +| Type | Description | +| ---------------------------------- | -------------------------- | +| Promise<[Volume](#volume)[]> | Promise used to return information about all available volumes.| **Example** ```js volumemanager.getAllVolumes().then(function(volumes){ // Do something. + }).catch(function(error){ + console.info("getAllVolumes failed"); }); ``` @@ -42,7 +44,7 @@ Asynchronously obtains information about all available volumes. This API uses a getAllVolumes(callback: AsyncCallback<Array<Volume>>): void -Asynchronously obtains information about all available volumes. This API uses a callback to return the result. +Obtains information about all volumes of this external storage device. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.STORAGE_MANAGER @@ -50,9 +52,9 @@ Asynchronously obtains information about all available volumes. This API uses a **Parameters** - | Name | Type | Mandatory| Description | - | -------- | ------------------------------------------------- | ---- | ------------------------------------ | - | callback | AsyncCallback<[Volume](#volume)[]> | Yes | Callback invoked to return the volume information obtained.| +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------------------- | ---- | ------------------------------------ | +| callback | AsyncCallback<[Volume](#volume)[]> | Yes | Callback invoked to return information about all available volumes.| **Example** @@ -68,7 +70,7 @@ Asynchronously obtains information about all available volumes. This API uses a mount(volumeId: string): Promise<void> -Asynchronously mounts a volume. This API uses a promise to return the result. +Asynchronously mounts a volume. This API uses a promise to return the result. Currently, only the File Allocation Table (FAT), Extensible FAT (exFAT), and New Technology File System (NTFS) file systems are supported. **Required permissions**: ohos.permission.MOUNT_UNMOUNT_MANAGER @@ -76,22 +78,24 @@ Asynchronously mounts a volume. This API uses a promise to return the result. **Parameters** - | Name | Type | Mandatory| Description| - | -------- | ------ | ---- | ---- | - | volumeId | string | Yes | Volume ID.| +| Name | Type | Mandatory| Description| +| -------- | ------ | ---- | ---- | +| volumeId | string | Yes | Volume ID.| **Return value** - | Type | Description | - | ---------------------- | ---------- | - | Promise<void> | Promise used to return the result.| +| Type | Description | +| ---------------------- | ---------- | +| Promise<void> | Promise that returns no value.| **Example** ```js let volumeId = ""; - volumemanager.mount(volumeId).then(function(flag){ - // Do something + volumemanager.mount(volumeId).then(function(){ + // Do something. + }).catch(function(error){ + console.info("mount failed"); }); ``` @@ -99,7 +103,7 @@ Asynchronously mounts a volume. This API uses a promise to return the result. mount(volumeId: string, callback:AsyncCallback<void>):void -Asynchronously obtains the available space of the specified volume. This API uses a callback to return the result. +Asynchronously mounts a volume. This API uses an asynchronous callback to return the result. Currently, only the FAT, exFAT, and NTFS file systems are supported. **Required permissions**: ohos.permission.MOUNT_UNMOUNT_MANAGER @@ -107,17 +111,17 @@ Asynchronously obtains the available space of the specified volume. This API use **Parameters** - | Name | Type | Mandatory| Description | - | -------- | ------------------------------------- | ---- | -------------------- | - | volumeId | string | Yes | Volume ID. | - | callback | AsyncCallback<void> | Yes | Callback invoked to return the result.| +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------- | ---- | -------------------- | +| volumeId | string | Yes | Volume ID. | +| callback | AsyncCallback<void> | Yes | Callback that returns no value.| **Example** ```js let volumeId = ""; - volumemanager.mount(volumeId, function(error, flag){ - // Do something + volumemanager.mount(volumeId, function(error){ + // Do something. }); ``` @@ -133,22 +137,24 @@ Asynchronously unmounts a volume. This API uses a promise to return the result. **Parameters** - | Name | Type | Mandatory| Description| - | -------- | ------ | ---- | ---- | - | volumeId | string | Yes | Volume ID.| +| Name | Type | Mandatory| Description| +| -------- | ------ | ---- | ---- | +| volumeId | string | Yes | Volume ID.| **Return value** - | Type | Description | - | ---------------------- | ---------- | - | Promise<void> | Promise used to return the result.| +| Type | Description | +| ---------------------- | ---------- | +| Promise<void> | Promise that returns no value.| **Example** ```js let volumeId = ""; - volumemanager.unmount(volumeId).then(function(flag){ - // Do something + volumemanager.unmount(volumeId).then(function(){ + // Do something. + }).catch(function(error){ + console.info("mount failed"); }); ``` @@ -156,7 +162,7 @@ Asynchronously unmounts a volume. This API uses a promise to return the result. unmount(volumeId: string, callback: AsyncCallback<void>): void -Asynchronously unmounts a volume. This API uses a callback to return the result. +Asynchronously unmounts a volume. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.MOUNT_UNMOUNT_MANAGER @@ -164,17 +170,17 @@ Asynchronously unmounts a volume. This API uses a callback to return the result. **Parameters** - | Name | Type | Mandatory| Description | - | -------- | ------------------------------------- | ---- | -------------------- | - | volumeId | string | Yes | Volume ID. | - | callback | AsyncCallback<void> | Yes | Callback invoked to return the result.| +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------- | ---- | -------------------- | +| volumeId | string | Yes | Volume ID. | +| callback | AsyncCallback<void> | Yes | Callback that returns no value.| **Example** ```js let volumeId = ""; - volumemanager.unmount(volumeId, function(error, flag){ - // Do something + volumemanager.unmount(volumeId, function(error){ + // Do something. }); ``` @@ -182,7 +188,7 @@ Asynchronously unmounts a volume. This API uses a callback to return the result. getVolumeByUuid(uuid: string): Promise<Volume> -Asynchronously obtains volume information based on the universally unique identifier (UUID). This API uses a promise to return the result. +Obtains information about a volume based on the universally unique identifier (UUID). This API uses a promise to return the result. **Required permissions**: ohos.permission.STORAGE_MANAGER @@ -190,15 +196,15 @@ Asynchronously obtains volume information based on the universally unique identi **Parameters** - | Name | Type | Mandatory| Description| - | -------- | ------ | ---- | ---- | - | uuid | string | Yes | UUID of the volume.| +| Name | Type | Mandatory| Description| +| -------- | ------ | ---- | ---- | +| uuid | string | Yes | UUID of the volume.| **Return value** - | Type | Description | - | ---------------------------------- | -------------------------- | - | Promise<[Volume](#volume)> | Promise used to return the volume information obtained.| +| Type | Description | +| ---------------------------------- | -------------------------- | +| Promise<[Volume](#volume)> | Promise used to return the volume information obtained.| **Example** @@ -215,7 +221,7 @@ Asynchronously obtains volume information based on the universally unique identi getVolumeByUuid(uuid: string, callback: AsyncCallback<Volume>): void -Asynchronously obtains volume information based on the UUID. This API uses a callback to return the result. +Obtains information about a volume based on the UUID. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.STORAGE_MANAGER @@ -223,10 +229,10 @@ Asynchronously obtains volume information based on the UUID. This API uses a cal **Parameters** - | Name | Type | Mandatory| Description | - | -------- | ------------------------------------------------ | ---- | -------------------- | - | uuid | string | Yes | UUID of the volume. | - | callback | AsyncCallback<[Volume](#volume)> | Yes | Callback invoked to return the volume information obtained.| +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------------------ | ---- | -------------------- | +| uuid | string | Yes | UUID of the volume. | +| callback | AsyncCallback<[Volume](#volume)> | Yes | Callback invoked to return the volume information obtained.| **Example** @@ -241,7 +247,7 @@ Asynchronously obtains volume information based on the UUID. This API uses a cal getVolumeById(volumeId: string): Promise<Volume> -Asynchronously obtains volume information based on the volume ID. This API uses a promise to return the result. +Obtains information about a volume based on the volume ID. This API uses a promise to return the result. **Required permissions**: ohos.permission.STORAGE_MANAGER @@ -249,15 +255,15 @@ Asynchronously obtains volume information based on the volume ID. This API uses **Parameters** - | Name | Type | Mandatory | Description| - | -------- | ------ | ---- | ---- | - | volumeId | string | Yes | Volume ID.| +| Name | Type | Mandatory | Description| +| -------- | ------ | ---- | ---- | +| volumeId | string | Yes | Volume ID.| **Return value** - | Type | Description | - | ---------------------------------- | -------------------------- | - | Promise<[Volume](#volume)> | Promise used to return the volume information obtained.| +| Type | Description | +| ---------------------------------- | -------------------------- | +| Promise<[Volume](#volume)> | Promise used to return the volume information obtained.| **Example** @@ -274,7 +280,7 @@ Asynchronously obtains volume information based on the volume ID. This API uses getVolumeById(volumeId: string, callback: AsyncCallback<Volume>): void -Asynchronously obtains volume information based on the volume ID. This API uses a callback to return the result. +Obtains information about a volume based on the volume ID. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.STORAGE_MANAGER @@ -282,10 +288,10 @@ Asynchronously obtains volume information based on the volume ID. This API uses **Parameters** - | Name | Type | Mandatory| Description | - | -------- | ------------------------- | ---- | ----------------------------- | - | volumeId | string | Yes | Volume ID. | - | callback | AsyncCallback<[Volume](#volume)> | Yes | Callback invoked to return the volume information obtained. | +| Name | Type | Mandatory| Description | +| -------- | ------------------------- | ---- | ----------------------------- | +| volumeId | string | Yes | Volume ID. | +| callback | AsyncCallback<[Volume](#volume)> | Yes | Callback invoked to return the volume information obtained. | **Example** @@ -300,7 +306,7 @@ Asynchronously obtains volume information based on the volume ID. This API uses setVolumeDescription(uuid: string, description: string): Promise<void> -Asynchronously sets the volume description based on the UUID. This API uses a promise to return the result. +Sets volume description. This API uses a promise to return the result. **Required permissions**: ohos.permission.MOUNT_UNMOUNT_MANAGER @@ -308,16 +314,16 @@ Asynchronously sets the volume description based on the UUID. This API uses a pr **Parameters** - | Name | Type | Mandatory| Description| - | --------- | ------ | ---- | ---- | - | uuid | string | Yes | UUID of the volume.| - | description | string | Yes | Volume description.| +| Name | Type | Mandatory| Description| +| --------- | ------ | ---- | ---- | +| uuid | string | Yes | UUID of the volume.| +| description | string | Yes | Volume description to set.| **Return value** - | Type | Description | - | ---------------------- | -------------------------- | - | Promise<void> | Promise used to return the result. | +| Type | Description | +| ---------------------- | -------------------------- | +| Promise<void> | Promise that returns no value. | **Example** @@ -335,7 +341,7 @@ Asynchronously sets the volume description based on the UUID. This API uses a pr setVolumeDescription(uuid: string, description: string, callback: AsyncCallback<void>): void -Asynchronously sets the volume description based on the UUID. This API uses a callback to return the result. +Sets volume description. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.MOUNT_UNMOUNT_MANAGER @@ -343,18 +349,18 @@ Asynchronously sets the volume description based on the UUID. This API uses a ca **Parameters** - | Name | Type | Mandatory| Description | - | ---------- | --------------------------------------- | ---- | ---------------- | - | uuid | string | Yes | UUID of the volume. | - | description | string | Yes | Volume description. | - | callback | AsyncCallback<void> | Yes | Callback invoked to return the result.| +| Name | Type | Mandatory| Description | +| ---------- | --------------------------------------- | ---- | ---------------- | +| uuid | string | Yes | UUID of the volume. | +| description | string | Yes | Volume description to set. | +| callback | AsyncCallback<void> | Yes | Callback that returns no value.| **Example** ```js let uuid = ""; let description = ""; - volumemanager.setVolumeDescription(uuid, description, (error, bool) => { + volumemanager.setVolumeDescription(uuid, description, (error) => { // Do something. }); ``` @@ -363,7 +369,7 @@ Asynchronously sets the volume description based on the UUID. This API uses a ca format(volumeId: string, fsType: string): Promise<void> -Asynchronously formats a volume. This API uses a promise to return the result. +Formats a volume. This API uses a promise to return the result. Currently, only the virtual file allocation table (VFAT) and exFAT file systems are supported. Only unmounted volumes can be formatted. After a volume is formatted, the UUID, mounting path, and description of the volume change. **Required permissions**: ohos.permission.MOUNT_FORMAT_MANAGER @@ -371,16 +377,16 @@ Asynchronously formats a volume. This API uses a promise to return the result. **Parameters** - | Name | Type | Mandatory| Description| - | ----------- | ------ | ---- | ---- | - | volumeId | string | Yes | Volume ID.| - | fsType | string | Yes | File system type.| +| Name | Type | Mandatory| Description| +| ----------- | ------ | ---- | ---- | +| volumeId | string | Yes | Volume ID.| +| fsType | string | Yes | File system type, which can be VFAT or exFAT.| **Return value** - | Type | Description | - | ---------------------- | ---------- | - | Promise<void> | Promise used to return the result.| +| Type | Description | +| ---------------------- | ---------- | +| Promise<void> | Promise that returns no value.| **Example** @@ -398,7 +404,7 @@ Asynchronously formats a volume. This API uses a promise to return the result. format(volumeId: string, fsType: string, callback: AsyncCallback<void>): void -Asynchronously formats a volume. This API uses a callback to return the result. +Formats a volume. This API uses an asynchronous callback to return the result. Currently, only the VFAT and exFAT file systems are supported. Only unmounted volumes can be formatted. After a volume is formatted, the UUID, mounting path, and description of the volume change. **Required permissions**: ohos.permission.MOUNT_FORMAT_MANAGER @@ -406,18 +412,18 @@ Asynchronously formats a volume. This API uses a callback to return the result. **Parameters** - | Name | Type | Mandatory| Description | - | -------- | ------------------------- | ---- | ----------------------------- | - | volumeId | string | Yes | Volume ID. | - | fsType | string | Yes | File system type.| - | callback | AsyncCallback<void> | Yes | Called after the volume is formatted. | +| Name | Type | Mandatory| Description | +| -------- | ------------------------- | ---- | ----------------------------- | +| volumeId | string | Yes | Volume ID. | +| fsType | string | Yes | File system type, which can be VFAT or exFAT.| +| callback | AsyncCallback<void> | Yes | Callback that returns no value. | **Example** ```js let volumeId = ""; let fsType = ""; - volumemanager.format(volumeId, fsType, (error, bool) => { + volumemanager.format(volumeId, fsType, (error) => { // Do something. }); ``` @@ -426,7 +432,7 @@ Asynchronously formats a volume. This API uses a callback to return the result. partition(diskId: string, type: number): Promise<void> -Asynchronously partitions a disk. This API uses a promise to return the result. +Partitions a disk. This API uses a promise to return the result. The system supports access to multi-partition disks. Currently, this API can partition a disk into only one partition. **Required permissions**: ohos.permission.MOUNT_FORMAT_MANAGER @@ -434,16 +440,16 @@ Asynchronously partitions a disk. This API uses a promise to return the result. **Parameters** - | Name | Type | Mandatory| Description| - | ----------- | ------ | ---- | ---- | - | diskId | string | Yes | ID of the disk to which the volume belongs.| - | type | number | Yes | Partition type. | +| Name | Type | Mandatory| Description| +| ----------- | ------ | ---- | ---- | +| diskId | string | Yes | ID of the disk to partition.| +| type | number | Yes | Partition type. | **Return value** - | Type | Description | - | --------------------- | ----------------------- | - | Promise<void> | Promise used to return the result. | +| Type | Description | +| --------------------- | ----------------------- | +| Promise<void> | Promise used to return the result. | **Example** @@ -461,7 +467,7 @@ Asynchronously partitions a disk. This API uses a promise to return the result. partition(diskId: string, type: number, callback: AsyncCallback<void>): void -Asynchronously partitions a disk. This API uses a callback to return the result. +Asynchronously partitions a disk. This API uses a callback to return the result. The system supports access to multi-partition disks. Currently, this API can partition a disk into only one partition. **Required permissions**: ohos.permission.MOUNT_FORMAT_MANAGER @@ -469,18 +475,18 @@ Asynchronously partitions a disk. This API uses a callback to return the result. **Parameters** - | Name | Type | Mandatory| Description | - | -------- | --------------------------------------- | ---- | ---------------- | - | diskId | string | Yes | ID of the disk to which the volume belongs. | - | type | number | Yes | Partition type. | - | callback | AsyncCallback<void> | Yes | Callback invoked to return the result. | +| Name | Type | Mandatory| Description | +| -------- | --------------------------------------- | ---- | ---------------- | +| diskId | string | Yes | ID of the disk to partition. | +| type | number | Yes | Partition type. | +| callback | AsyncCallback<void> | Yes | Callback that returns no value. | **Example** ```js let diskId = ""; let type = 0; - volumemanager.partition(diskId, type, (error, bool) => { + volumemanager.partition(diskId, type, (error) => { // Do something. }); ``` @@ -493,10 +499,10 @@ Asynchronously partitions a disk. This API uses a callback to return the result. | Name | Type | Readable | Writable | Description | | ----------- | ------- | ------- | ----- | -------------------- | -| id | string | Yes| No| Volume ID. | -| uuid | string | Yes| No| UUID of the volume. | -| diskId | string | Yes| No| ID of the disk to which the volume belongs. | +| id | string | Yes| No| Volume ID, in the vol-{Primary device ID}-{Secondary device ID} format. The primary device IDs identify devices of different types. The secondary device IDs identify different devices of the same type. The volume IDs vary depending on the card insertion sequence. | +| uuid | string | Yes| No| Volume UUID, which uniquely identifies a volume irrespective of the card insertion sequence. However, the UUID of a volume will change after the volume is formatted. | +| diskId | string | Yes| No| ID of the disk to which the volume belongs. A disk can have one or more volumes. The disk ID is in the disk-{Primary device ID}-{Secondary device ID} format, which is similar to the volume ID. | | description | string | Yes| No| Description of the volume. | -| removable | boolean | Yes| No| Whether the volume is a removable storage device.| -| state | number | Yes| No| Volume state. | -| path | string | Yes| No| Mount address of the volume. | +| removable | boolean | Yes| No| Whether the volume can be removed. Currently, only removable storage devices are supported.| +| state | number | Yes| No| Volume status.
**0**: The volume is unmounted.
**1**: The volume is being checked.
**2**: The volume is mounted.
**3**: The volume is being ejected. | +| path | string | Yes| No| Path of the volume mounted. Generally, the path is **/mnt/external/{uuid}**. | diff --git a/en/application-dev/reference/apis/js-apis-fileio.md b/en/application-dev/reference/apis/js-apis-fileio.md index 181a68d508ac6a52903f2fa33c13bc24a94cee88..4d69af5ec5184989ae3a79c45693297fae5b1c66 100644 --- a/en/application-dev/reference/apis/js-apis-fileio.md +++ b/en/application-dev/reference/apis/js-apis-fileio.md @@ -3,9 +3,9 @@ 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** -> +> > - 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). +> - 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 @@ -18,7 +18,7 @@ import fileio from '@ohos.fileio'; 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 +**Stage Model** ```js import UIAbility from '@ohos.app.ability.UIAbility'; @@ -31,9 +31,9 @@ export default class EntryAbility extends UIAbility { } ``` - For details about how to obtain the stage model context, see [AbilityContext](js-apis-ability-context.md#abilitycontext). + For details about how to obtain the stage model context, see [UIAbilityContext](js-apis-inner-application-uiAbilityContext.md). -FA Model +**FA Model** ```js import featureAbility from '@ohos.ability.featureAbility'; @@ -62,9 +62,9 @@ Obtains file information. This API uses a promise to return the result. **Return value** -| Type | Description | -| ---------------------------- | ---------- | -| Promise<[Stat](#stat)> | Promise used to return the file information obtained.| + | Type | Description | + | ---------------------------- | ---------- | + | Promise<[Stat](#stat)> | Promise used to return the file information obtained.| **Example** @@ -119,9 +119,9 @@ Synchronously obtains file information. **Return value** -| Type | Description | -| ------------- | ---------- | -| [Stat](#stat) | File information obtained.| + | Type | Description | + | ------------- | ---------- | + | [Stat](#stat) | File information obtained.| **Example** @@ -147,9 +147,9 @@ Opens a file directory. This API uses a promise to return the result. **Return value** -| Type | Description | -| -------------------------- | -------- | -| Promise<[Dir](#dir)> | Promise used to return the **Dir** object.| + | Type | Description | + | -------------------------- | -------- | + | Promise<[Dir](#dir)> | Promise used to return the **Dir** object.| **Example** @@ -205,9 +205,9 @@ Synchronously opens a directory. **Return value** -| Type | Description | -| ----------- | -------- | -| [Dir](#dir) | A **Dir** instance corresponding to the directory.| + | Type | Description | + | ----------- | -------- | + | [Dir](#dir) | A **Dir** instance corresponding to the directory.| **Example** @@ -231,13 +231,13 @@ Checks whether the current process can access a file. This API uses a promise to | Name| Type | Mandatory| Description | | ------ | ------ | ---- | ------------------------------------------------------------ | | path | string | Yes | Application sandbox path of the file. | -| mode | number | No | Options for accessing the file. You can specify multiple options, separated with a bitwise OR operator (|). The default value is **0**.
The options are as follows:
- **0**: check whether the file exists.
- **1**: check whether the current process has the execute permission on the file.
- **2**: check whether the current process has the write permission on the file.
- **4**: check whether the current process has the read permission on the file.| +| mode | number | No | Options for accessing the file. You can specify multiple options, separated with a bitwise OR operator (|). The default value is **0**.
The options are as follows:
- **0**: Check whether the file exists.
- **1**: Check whether the process has the execute permission on the file.
- **2**: Check whether the process has the write permission on the file.
- **4**: Check whether the process has the read permission on the file. | **Return value** -| Type | Description | -| ------------------- | ---------------------------- | -| Promise<void> | Promise that returns no value.| + | Type | Description | + | ------------------- | ---------------------------- | + | Promise<void> | Promise that returns no value.| **Example** @@ -264,7 +264,7 @@ Checks whether the current process can access a file. This API uses an asynchron | Name | Type | Mandatory| Description | | -------- | ------------------------- | ---- | ------------------------------------------------------------ | | path | string | Yes | Application sandbox path of the file. | -| mode | number | No | Options for accessing the file. You can specify multiple options, separated with a bitwise OR operator (|). The default value is **0**.
The options are as follows:
- **0**: check whether the file exists.
- **1**: check whether the current process has the execute permission on the file.
- **2**: check whether the current process has the write permission on the file.
- **4**: check whether the current process has the read permission on the file.| +| mode | number | No | Options for accessing the file. You can specify multiple options, separated with a bitwise OR operator (|). The default value is **0**.
The options are as follows:
- **0**: Check whether the file exists.
- **1**: Check whether the process has the execute permission on the file.
- **2**: Check whether the process has the write permission on the file.
- **4**: Check whether the process has the read permission on the file. | | callback | AsyncCallback<void> | Yes | Callback invoked when the file is asynchronously checked. | **Example** @@ -290,7 +290,7 @@ Synchronously checks whether the current process can access the specified file. | Name| Type | Mandatory| Description | | ------ | ------ | ---- | ------------------------------------------------------------ | | path | string | Yes | Application sandbox path of the file. | -| mode | number | No | Options for accessing the file. You can specify multiple options, separated with a bitwise OR operator (|). The default value is **0**.
The options are as follows:
- **0**: check whether the file exists.
- **1**: check whether the current process has the execute permission on the file.
- **2**: check whether the current process has the write permission on the file.
- **4**: check whether the current process has the read permission on the file.| +| mode | number | No | Options for accessing the file. You can specify multiple options, separated with a bitwise OR operator (|). The default value is **0**.
The options are as follows:
- **0**: Check whether the file exists.
- **1**: Check whether the process has the execute permission on the file.
- **2**: Check whether the process has the write permission on the file.
- **4**: Check whether the process has the read permission on the file. | **Example** @@ -314,15 +314,15 @@ Closes a file. This API uses a promise to return the result. **Parameters** -| Name | Type | Mandatory | Description | -| ---- | ------ | ---- | ------------ | -| fd | number | Yes | File descriptor of the file to close.| + | Name | Type | Mandatory | Description | + | ---- | ------ | ---- | ------------ | + | fd | number | Yes | File descriptor of the file to close.| **Return value** -| Type | Description | -| ------------------- | ---------------------------- | -| Promise<void> | Promise that returns no value.| + | Type | Description | + | ------------------- | ---------------------------- | + | Promise<void> | Promise that returns no value.| **Example** @@ -347,10 +347,10 @@ Closes a file. This API uses an asynchronous callback to return the result. **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ------------------------- | ---- | ------------ | -| fd | number | Yes | File descriptor of the file to close.| -| callback | AsyncCallback<void> | Yes | Callback invoked when the file is closed asynchronously.| + | Name | Type | Mandatory | Description | + | -------- | ------------------------- | ---- | ------------ | + | fd | number | Yes | File descriptor of the file to close.| + | callback | AsyncCallback<void> | Yes | Callback invoked when the file is closed asynchronously.| **Example** @@ -373,9 +373,9 @@ Synchronously closes a file. **Parameters** -| Name | Type | Mandatory | Description | -| ---- | ------ | ---- | ------------ | -| fd | number | Yes | File descriptor of the file to close.| + | Name | Type | Mandatory | Description | + | ---- | ------ | ---- | ------------ | + | fd | number | Yes | File descriptor of the file to close.| **Example** @@ -396,17 +396,17 @@ Copies a file. This API uses a promise to return the result. **Parameters** -| 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. | -| 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.| + | 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. | + | 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** -| Type | Description | -| ------------------- | ---------------------------- | -| Promise<void> | Promise that returns no value.| + | Type | Description | + | ------------------- | ---------------------------- | + | Promise<void> | Promise that returns no value.| **Example** @@ -431,12 +431,12 @@ Copies a file. This API uses an asynchronous callback to return the result. **Parameters** -| 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. | -| 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. | + | 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. | + | 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. | **Example** @@ -459,11 +459,11 @@ Synchronously copies a file. **Parameters** -| 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. | -| 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.| + | 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. | + | 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** @@ -487,13 +487,13 @@ Creates a directory. This API uses a promise to return the result. | Name| Type | Mandatory| Description | | ------ | ------ | ---- | ------------------------------------------------------------ | | path | string | Yes | Application sandbox path of the directory. | -| mode | number | No | Permission on the directory to create. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o775**.
- **0o775**: The owner has the read, write, and execute permissions, and other users have the read and execute permissions.
- **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.| +| mode | number | No | Permission on the directory to create. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o775**.
- **0o775**: The owner has the read, write, and execute permissions, and other users have the read and execute permissions.
- **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. | **Return value** -| Type | Description | -| ------------------- | ---------------------------- | -| Promise<void> | Promise that returns no value.| + | Type | Description | + | ------------------- | ---------------------------- | + | Promise<void> | Promise that returns no value.| **Example** @@ -520,7 +520,7 @@ Creates a directory. This API uses an asynchronous callback to return the result | Name | Type | Mandatory| Description | | -------- | ------------------------- | ---- | ------------------------------------------------------------ | | path | string | Yes | Application sandbox path of the directory. | -| mode | number | No | Permission on the directory to create. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o775**.
- **0o775**: The owner has the read, write, and execute permissions, and other users have the read and execute permissions.
- **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.| +| mode | number | No | Permission on the directory to create. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o775**.
- **0o775**: The owner has the read, write, and execute permissions, and other users have the read and execute permissions.
- **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 directory is created asynchronously. | **Example** @@ -546,7 +546,7 @@ Synchronously creates a directory. | Name| Type | Mandatory| Description | | ------ | ------ | ---- | ------------------------------------------------------------ | | path | string | Yes | Application sandbox path of the directory. | -| mode | number | No | Permission on the directory to create. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o775**.
- **0o775**: The owner has the read, write, and execute permissions, and other users have the read and execute permissions.
- **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.| +| mode | number | No | Permission on the directory to create. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o775**.
- **0o775**: The owner has the read, write, and execute permissions, and other users have the read and execute permissions.
- **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. | **Example** @@ -569,14 +569,14 @@ Opens a file. This API uses a promise to return the result. | Name| Type | Mandatory| Description | | ------ | ------ | ---- | ------------------------------------------------------------ | | 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.| +| 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 a file. The third parameter **mode** must also be specified.
- **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 (written 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.
- **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. | **Return value** -| Type | Description | -| --------------------- | ----------- | -| Promise<number> | Promise used to return the file descriptor of the file opened.| + | Type | Description | + | --------------------- | ----------- | + | Promise<number> | Promise used to return the file descriptor of the file opened.| **Example** @@ -603,8 +603,8 @@ Opens a file. This API uses an asynchronous callback to return the result. | Name | Type | Mandatory| Description | | -------- | ------------------------------- | ---- | ------------------------------------------------------------ | | 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.| +| 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 a file. The third parameter **mode** must also be specified.
- **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 (written 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.
- **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<number> | Yes | Callback invoked when the file is open asynchronously. | **Example** @@ -630,14 +630,14 @@ Synchronously opens a file. | Name| Type | Mandatory| Description | | ------ | ------ | ---- | ------------------------------------------------------------ | | 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.
- **0o640**: The owner has the read and write permissions, and the user group has the read permission.
- **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.
The file permissions on newly created files are affected by umask, which is set as the process starts. Currently, the modification of umask is not open.| +| 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 a file. The third parameter **mode** must also be specified.
- **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 (written 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.
- **0o640**: The owner has the read and write permissions, and the user group has the read permission.
- **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.
The file permissions on newly created files are affected by umask, which is set as the process starts. Currently, the modification of umask is not open. | **Return value** -| Type | Description | -| ------ | ----------- | -| number | File descriptor of the file opened.| + | Type | Description | + | ------ | ----------- | + | number | File descriptor of the file opened.| **Example** @@ -670,13 +670,13 @@ Reads data from a file. This API uses a promise to return the result. | ------- | ----------- | ---- | ------------------------------------------------------------ | | fd | number | Yes | File descriptor of the file to read. | | buffer | ArrayBuffer | Yes | Buffer used to store the file data read. | -| options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size| +| options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size| **Return value** -| Type | Description | -| ---------------------------------- | ------ | -| Promise<[ReadOut](#readout)> | Promise used to return the data read.| + | Type | Description | + | ---------------------------------- | ------ | + | Promise<[ReadOut](#readout)> | Promise used to return the data read.| **Example** @@ -703,12 +703,12 @@ Reads data from a file. This API uses an asynchronous callback to return the res **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ---------------------------------------- | ---- | ---------------------------------------- | -| fd | number | Yes | File descriptor of the file to read. | -| buffer | ArrayBuffer | Yes | Buffer used to store the file data read. | -| options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size | -| callback | AsyncCallback<[ReadOut](#readout)> | Yes | Callback invoked when the data is read asynchronously. | + | Name | Type | Mandatory | Description | + | -------- | ---------------------------------------- | ---- | ---------------------------------------- | + | fd | number | Yes | File descriptor of the file to read. | + | buffer | ArrayBuffer | Yes | Buffer used to store the file data read. | + | options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size | + | callback | AsyncCallback<[ReadOut](#readout)> | Yes | Callback invoked when the data is read asynchronously. | **Example** @@ -735,17 +735,17 @@ Synchronously reads data from a file. **Parameters** -| Name | Type | Mandatory | Description | -| ------- | ----------- | ---- | ---------------------------------------- | -| fd | number | Yes | File descriptor of the file to read. | -| buffer | ArrayBuffer | Yes | Buffer used to store the file data read. | -| options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size | + | Name | Type | Mandatory | Description | + | ------- | ----------- | ---- | ---------------------------------------- | + | fd | number | Yes | File descriptor of the file to read. | + | buffer | ArrayBuffer | Yes | Buffer used to store the file data read. | + | options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size | **Return value** -| Type | Description | -| ------ | -------- | -| number | Length of the data read.| + | Type | Description | + | ------ | -------- | + | number | Length of the data read.| **Example** @@ -773,9 +773,9 @@ Deletes a directory. This API uses a promise to return the result. **Return value** -| Type | Description | -| ------------------- | ---------------------------- | -| Promise<void> | Promise that returns no value.| + | Type | Description | + | ------------------- | ---------------------------- | + | Promise<void> | Promise that returns no value.| **Example** @@ -853,9 +853,9 @@ Deletes a file. This API uses a promise to return the result. **Return value** -| Type | Description | -| ------------------- | ---------------------------- | -| Promise<void> | Promise that returns no value.| + | Type | Description | + | ------------------- | ---------------------------- | + | Promise<void> | Promise that returns no value.| **Example** @@ -926,17 +926,17 @@ Writes data into a file. This API uses a promise to return the result. **Parameters** -| 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. | -| 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| + | 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. | + | 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 data to be encoded when the data is a string. The default value is **'utf-8'**, which is the only value supported.
Constraints: offset + length <= Buffer size| **Return value** -| Type | Description | -| --------------------- | -------- | -| Promise<number> | Promise used to return the length of the data written.| + | Type | Description | + | --------------------- | -------- | + | Promise<number> | Promise used to return the length of the data written.| **Example** @@ -961,12 +961,12 @@ Writes data into a file. This API uses an asynchronous callback to return the re **Parameters** -| 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. | -| 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. | + | 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. | + | 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 data to be encoded when the data is a string. 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. | **Example** @@ -991,17 +991,17 @@ Synchronously writes data into a file. **Parameters** -| 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. | -| 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| + | 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. | + | 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 data to be encoded when the data is a string. The default value is **'utf-8'**, which is the only value supported.
Constraints: offset + length <= Buffer size| **Return value** -| Type | Description | -| ------ | -------- | -| number | Length of the data written in the file.| + | Type | Description | + | ------ | -------- | + | number | Length of the data written in the file.| **Example** @@ -1029,9 +1029,9 @@ Calculates the hash value of a file. This API uses a promise to return the resul **Return value** -| Type | Description | -| --------------------- | -------------------------- | -| Promise<string> | Promise used to return the hash value obtained. The hash value is a hexadecimal string consisting of digits and uppercase letters.| + | Type | Description | + | --------------------- | -------------------------- | + | Promise<string> | Promise used to return the hash value obtained. The hash value is a hexadecimal string consisting of digits and uppercase letters.| **Example** @@ -1086,13 +1086,13 @@ Changes file permissions. This API uses a promise to return the result. | Name| Type | Mandatory| Description | | ------ | ------ | ---- | ------------------------------------------------------------ | | path | string | Yes | Application sandbox path of the 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.| +| 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. | **Return value** -| Type | Description | -| ------------------- | ---------------------------- | -| Promise<void> | Promise that returns no value.| + | Type | Description | + | ------------------- | ---------------------------- | + | Promise<void> | Promise that returns no value.| **Example** @@ -1119,7 +1119,7 @@ Changes file permissions. This API uses an asynchronous callback to return the r | Name | Type | Mandatory| Description | | -------- | ------------------------- | ---- | ------------------------------------------------------------ | | path | string | Yes | Application sandbox path of the 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.| +| 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. | **Example** @@ -1145,7 +1145,7 @@ Synchronously changes file permissions. | Name| Type | Mandatory| Description | | ------ | ------ | ---- | ------------------------------------------------------------ | | path | string | Yes | Application sandbox path of the 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.| +| 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. | **Example** @@ -1165,15 +1165,15 @@ Obtains file information based on the file descriptor. This API uses a promise t **Parameters** -| Name | Type | Mandatory | Description | -| ---- | ------ | ---- | ------------ | -| fd | number | Yes | Descriptor of the target file.| + | Name | Type | Mandatory | Description | + | ---- | ------ | ---- | ------------ | + | fd | number | Yes | Descriptor of the target file.| **Return value** -| Type | Description | -| ---------------------------- | ---------- | -| Promise<[Stat](#stat)> | Promise used to return the file information.| + | Type | Description | + | ---------------------------- | ---------- | + | Promise<[Stat](#stat)> | Promise used to return the file information obtained.| **Example** @@ -1198,10 +1198,10 @@ Obtains file information based on the file descriptor. This API uses an asynchro **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ---------------------------------- | ---- | ---------------- | -| fd | number | Yes | File descriptor of the target file. | -| callback | AsyncCallback<[Stat](#stat)> | Yes | Callback invoked to return the file information obtained.| + | Name | Type | Mandatory | Description | + | -------- | ---------------------------------- | ---- | ---------------- | + | fd | number | Yes | File descriptor of the target file. | + | callback | AsyncCallback<[Stat](#stat)> | Yes | Callback invoked to return the file information obtained.| **Example** @@ -1224,15 +1224,15 @@ Synchronously obtains file information based on the file descriptor. **Parameters** -| Name | Type | Mandatory | Description | -| ---- | ------ | ---- | ------------ | -| fd | number | Yes | File descriptor of the target file.| + | Name | Type | Mandatory | Description | + | ---- | ------ | ---- | ------------ | + | fd | number | Yes | File descriptor of the target file.| **Return value** -| Type | Description | -| ------------- | ---------- | -| [Stat](#stat) | File information obtained.| + | Type | Description | + | ------------- | ---------- | + | [Stat](#stat) | File information obtained.| **Example** @@ -1253,16 +1253,16 @@ Truncates a file based on the file descriptor. This API uses a promise to return **Parameters** -| Name | Type | Mandatory | Description | -| ---- | ------ | ---- | ---------------- | -| fd | number | Yes | File descriptor of the file to truncate. | -| len | number | No | File length, in bytes, after truncation.| + | Name | Type | Mandatory | Description | + | ---- | ------ | ---- | ---------------- | + | fd | number | Yes | File descriptor of the file to truncate. | + | len | number | No | File length, in bytes, after truncation.| **Return value** -| Type | Description | -| ------------------- | ---------------------------- | -| Promise<void> | Promise that returns no value.| + | Type | Description | + | ------------------- | ---------------------------- | + | Promise<void> | Promise that returns no value.| **Example** @@ -1287,11 +1287,11 @@ Truncates a file based on the file descriptor. This API uses an asynchronous cal **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ------------------------- | ---- | ---------------- | -| fd | number | Yes | File descriptor of the file to truncate. | -| len | number | No | File length, in bytes, after truncation.| -| callback | AsyncCallback<void> | Yes | Callback that returns no value. | + | Name | Type | Mandatory | Description | + | -------- | ------------------------- | ---- | ---------------- | + | fd | number | Yes | File descriptor of the file to truncate. | + | len | number | No | File length, in bytes, after truncation.| + | callback | AsyncCallback<void> | Yes | Callback that returns no value. | **Example** @@ -1315,10 +1315,10 @@ Synchronously truncates a file based on the file descriptor. **Parameters** -| Name | Type | Mandatory | Description | -| ---- | ------ | ---- | ---------------- | -| fd | number | Yes | File descriptor of the file to truncate. | -| len | number | No | File length, in bytes, after truncation.| + | Name | Type | Mandatory | Description | + | ---- | ------ | ---- | ---------------- | + | fd | number | Yes | File descriptor of the file to truncate. | + | len | number | No | File length, in bytes, after truncation.| **Example** @@ -1347,9 +1347,9 @@ Truncates a file based on the file path. This API uses a promise to return the r **Return value** -| Type | Description | -| ------------------- | ---------------------------- | -| Promise<void> | Promise that returns no value.| + | Type | Description | + | ------------------- | ---------------------------- | + | Promise<void> | Promise that returns no value.| **Example** @@ -1376,7 +1376,7 @@ Truncates a file based on the file path. This API uses an asynchronous callback | 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.| | callback | AsyncCallback<void> | Yes | Callback that returns no value. | @@ -1403,7 +1403,7 @@ Synchronously truncates a file based on the file path. | 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.| **Example** @@ -1428,13 +1428,13 @@ Reads the text content of a file. This API uses a promise to return the result. | Name | Type | Mandatory| Description | | -------- | ------ | ---- | ------------------------------------------------------------ | | filePath | string | Yes | Application sandbox path of the file to read. | -| options | Object | No | The options are as follows:
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **encoding** (string): format of the data (string) to be encoded. The default value is **utf-8**, which is the only value supported.| +| options | Object | No | The options are as follows:
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **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.| + | Type | Description | + | --------------------- | ---------- | + | Promise<string> | Promise used to return the content read.| **Example** @@ -1461,7 +1461,7 @@ Reads the text content of a file. This API uses an asynchronous callback to retu | Name | Type | Mandatory| Description | | -------- | --------------------------- | ---- | ------------------------------------------------------------ | | filePath | string | Yes | Application sandbox path of the file to read. | -| options | Object | No | The options are as follows:
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
-  **encoding**: format of the string to be encoded. The default value is  **utf-8**, which is the only value supported.| +| options | Object | No | The options are as follows:
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **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** @@ -1487,13 +1487,13 @@ Synchronously reads the text of a file. | Name | Type | Mandatory| Description | | -------- | ------ | ---- | ------------------------------------------------------------ | | filePath | string | Yes | Application sandbox path of the file to read. | -| options | Object | No | The options are as follows:
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **encoding** (string): format of the data (string) to be encoded. The default value is **utf-8**, which is the only value supported.| +| options | Object | No | The options are as follows:
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **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.| + | Type | Description | + | ------ | -------------------- | + | string | Promise used to return the content of the file read.| **Example** @@ -1519,9 +1519,9 @@ Obtains link information. This API uses a promise to return the result. **Return value** -| Type | Description | -| ---------------------------- | ---------- | -| Promise<[Stat](#stat)> | Promise used to return the link information obtained. For details, see [Stat](#stat).| + | Type | Description | + | ---------------------------- | ---------- | + | Promise<[Stat](#stat)> | Promise used to return the link information obtained. For details, see [Stat](#stat).| **Example** @@ -1576,9 +1576,9 @@ Synchronously obtains the link information. **Return value** -| Type | Description | -| ------------- | ---------- | -| [Stat](#stat) | Link information obtained.| + | Type | Description | + | ------------- | ---------- | + | [Stat](#stat) | Link information obtained.| **Example** @@ -1605,9 +1605,9 @@ Renames a file. This API uses a promise to return the result. **Return value** -| Type | Description | -| ------------------- | ---------------------------- | -| Promise<void> | Promise that returns no value.| + | Type | Description | + | ------------------- | ---------------------------- | + | Promise<void> | Promise that returns no value.| **Example** @@ -1682,15 +1682,15 @@ Flushes data of a file to disk. This API uses a promise to return the result. **Parameters** -| Name | Type | Mandatory | Description | -| ---- | ------ | ---- | ------------ | -| fd | number | Yes | File descriptor of the file to flush.| + | Name | Type | Mandatory | Description | + | ---- | ------ | ---- | ------------ | + | fd | number | Yes | File descriptor of the file to flush.| **Return value** -| Type | Description | -| ------------------- | ---------------------------- | -| Promise<void> | Promise that returns no value.| + | Type | Description | + | ------------------- | ---------------------------- | + | Promise<void> | Promise that returns no value.| **Example** @@ -1715,10 +1715,10 @@ Flushes data of a file to disk. This API uses an asynchronous callback to return **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ------------------------- | ---- | --------------- | -| fd | number | Yes | File descriptor of the file to flush. | -| Callback | AsyncCallback<void> | Yes | Callback invoked when the file is synchronized in asynchronous mode.| + | Name | Type | Mandatory | Description | + | -------- | ------------------------- | ---- | --------------- | + | fd | number | Yes | File descriptor of the file to flush. | + | Callback | AsyncCallback<void> | Yes | Callback invoked when the file is synchronized in asynchronous mode.| **Example** @@ -1741,9 +1741,9 @@ Flushes data of a file to disk in synchronous mode. **Parameters** -| Name | Type | Mandatory | Description | -| ---- | ------ | ---- | ------------ | -| fd | number | Yes | File descriptor of the file to flush.| + | Name | Type | Mandatory | Description | + | ---- | ------ | ---- | ------------ | + | fd | number | Yes | File descriptor of the file to flush.| **Example** @@ -1764,15 +1764,15 @@ Flushes data of a file to disk. This API uses a promise to return the result. ** **Parameters** -| Name | Type | Mandatory | Description | -| ---- | ------ | ---- | ------------ | -| fd | number | Yes | File descriptor of the file to flush.| + | Name | Type | Mandatory | Description | + | ---- | ------ | ---- | ------------ | + | fd | number | Yes | File descriptor of the file to flush.| **Return value** -| Type | Description | -| ------------------- | ---------------------------- | -| Promise<void> | Promise that returns no value.| + | Type | Description | + | ------------------- | ---------------------------- | + | Promise<void> | Promise that returns no value.| **Example** @@ -1797,10 +1797,10 @@ Flushes data of a file to disk. This API uses an asynchronous callback to return **Parameters** -| 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.| + | 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.| **Example** @@ -1823,9 +1823,9 @@ Synchronizes data in a file in synchronous mode. **Parameters** -| Name | Type | Mandatory | Description | -| ---- | ------ | ---- | ------------ | -| fd | number | Yes | File descriptor of the file to flush.| + | Name | Type | Mandatory | Description | + | ---- | ------ | ---- | ------------ | + | fd | number | Yes | File descriptor of the file to flush.| **Example** @@ -1853,9 +1853,9 @@ Creates a symbolic link based on the file path. This API uses a promise to retur **Return value** -| Type | Description | -| ------------------- | ---------------------------- | -| Promise<void> | Promise that returns no value.| + | Type | Description | + | ------------------- | ---------------------------- | + | Promise<void> | Promise that returns no value.| **Example** @@ -1939,9 +1939,9 @@ Changes the file owner based on the file path. This API uses a promise to return **Return value** -| Type | Description | -| ------------------- | ---------------------------- | -| Promise<void> | Promise that returns no value.| + | Type | Description | + | ------------------- | ---------------------------- | + | Promise<void> | Promise that returns no value.| **Example** @@ -2019,15 +2019,15 @@ Creates a temporary directory. This API uses a promise to return the result. **Parameters** -| Name | Type | Mandatory | Description | -| ------ | ------ | ---- | --------------------------- | -| prefix | string | Yes | A randomly generated string used to replace "XXXXXX" in a directory.| + | 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.| + | Type | Description | + | --------------------- | ---------- | + | Promise<string> | Promise used to return the unique directory generated.| **Example** @@ -2050,10 +2050,10 @@ Creates a temporary directory. This API uses an asynchronous callback to return **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. | + | 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** @@ -2074,15 +2074,15 @@ Synchronously creates a temporary directory. **Parameters** -| Name | Type | Mandatory | Description | -| ------ | ------ | ---- | --------------------------- | -| prefix | string | Yes | A randomly generated string used to replace "XXXXXX" in a directory.| + | 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.| + | Type | Description | + | ------ | ---------- | + | string | Unique path generated.| **Example** @@ -2101,16 +2101,16 @@ Changes file permissions based on the file descriptor. This API uses a promise t **Parameters** -| Name | Type | Mandatory | Description | -| ---- | ------ | ---- | ---------------------------------------- | -| 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.| + | Name | Type | Mandatory | Description | + | ---- | ------ | ---- | ---------------------------------------- | + | 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. | **Return value** -| Type | Description | -| ------------------- | ---------------------------- | -| Promise<void> | Promise that returns no value.| + | Type | Description | + | ------------------- | ---------------------------- | + | Promise<void> | Promise that returns no value.| **Example** @@ -2136,11 +2136,11 @@ Changes file permissions based on the file descriptor. This API uses an asynchro **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ------------------------------- | ---- | ---------------------------------------- | -| 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. | + | Name | Type | Mandatory | Description | + | -------- | ------------------------------- | ---- | ---------------------------------------- | + | 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. | **Example** @@ -2164,10 +2164,10 @@ Synchronously changes the file permissions based on the file descriptor. **Parameters** -| Name | Type | Mandatory | Description | -| ---- | ------ | ---- | ---------------------------------------- | -| 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.| + | Name | Type | Mandatory | Description | + | ---- | ------ | ---- | ---------------------------------------- | + | 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. | **Example** @@ -2192,13 +2192,13 @@ Opens a file stream based on the file path. This API uses a promise to return th | Name| Type | Mandatory| Description | | ------ | ------ | ---- | ------------------------------------------------------------ | | path | string | Yes | Application sandbox path 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).| +| 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.| + | Type | Description | + | --------------------------------- | --------- | + | Promise<[Stream](#stream)> | Promise used to return the result.| **Example** @@ -2225,7 +2225,7 @@ Opens a file stream based on the file path. This API uses an asynchronous callba | Name | Type | Mandatory| Description | | -------- | --------------------------------------- | ---- | ------------------------------------------------------------ | | path | string | Yes | Application sandbox path 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).| +| 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** @@ -2251,13 +2251,13 @@ Synchronously opens a stream based on the file path. | Name| Type | Mandatory| Description | | ------ | ------ | ---- | ------------------------------------------------------------ | | path | string | Yes | Application sandbox path 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).| +| 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.| + | Type | Description | + | ------------------ | --------- | + | [Stream](#stream) | Stream opened.| **Example** @@ -2277,16 +2277,16 @@ Opens a file stream based on the file descriptor. This API uses a promise to ret **Parameters** -| Name | Type | Mandatory | Description | -| ---- | ------ | ---- | ---------------------------------------- | -| 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).| + | Name | Type | Mandatory | Description | + | ---- | ------ | ---- | ---------------------------------------- | + | 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).| **Return value** -| Type | Description | -| --------------------------------- | --------- | -| Promise<[Stream](#stream)> | Promise used to return the result.| + | Type | Description | + | --------------------------------- | --------- | + | Promise<[Stream](#stream)> | Promise used to return the result.| **Example** @@ -2311,11 +2311,11 @@ Opens a file stream based on the file descriptor. This API uses an asynchronous **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ---------------------------------------- | ---- | ---------------------------------------- | -| 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. | + | Name | Type | Mandatory | Description | + | -------- | ---------------------------------------- | ---- | ---------------------------------------- | + | 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. | **Example** @@ -2338,16 +2338,16 @@ Synchronously opens a stream based on the file descriptor. **Parameters** -| Name | Type | Mandatory | Description | -| ---- | ------ | ---- | ---------------------------------------- | -| 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).| + | Name | Type | Mandatory | Description | + | ---- | ------ | ---- | ---------------------------------------- | + | 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).| **Return value** -| Type | Description | -| ------------------ | --------- | -| [Stream](#stream) | Stream opened.| + | Type | Description | + | ------------------ | --------- | + | [Stream](#stream) | Stream opened.| **Example** @@ -2368,17 +2368,17 @@ Changes the file owner based on the file descriptor. This API uses a promise to **Parameters** -| Name | Type | Mandatory | Description | -| ---- | ------ | ---- | ------------ | -| fd | number | Yes | File descriptor of the target file.| -| uid | number | Yes | New UID. | -| gid | number | Yes | New GID. | + | Name | Type | Mandatory | Description | + | ---- | ------ | ---- | ------------ | + | fd | number | Yes | File descriptor of the target file.| + | uid | number | Yes | New UID. | + | gid | number | Yes | New GID. | **Return value** -| Type | Description | -| ------------------- | ---------------------------- | -| Promise<void> | Promise that returns no value.| + | Type | Description | + | ------------------- | ---------------------------- | + | Promise<void> | Promise that returns no value.| **Example** @@ -2404,12 +2404,12 @@ Changes the file owner based on the file descriptor. This API uses an asynchrono **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ------------------------- | ---- | --------------- | -| fd | number | Yes | File descriptor of the target file. | -| uid | number | Yes | New UID. | -| gid | number | Yes | New GID. | -| callback | AsyncCallback<void> | Yes | Callback invoked when the file owner is changed asynchronously.| + | Name | Type | Mandatory | Description | + | -------- | ------------------------- | ---- | --------------- | + | fd | number | Yes | File descriptor of the target file. | + | uid | number | Yes | New UID. | + | gid | number | Yes | New GID. | + | callback | AsyncCallback<void> | Yes | Callback invoked when the file owner is changed asynchronously.| **Example** @@ -2433,11 +2433,11 @@ Synchronously changes the file owner based on the file descriptor. **Parameters** -| Name | Type | Mandatory | Description | -| ---- | ------ | ---- | ------------ | -| fd | number | Yes | File descriptor of the target file.| -| uid | number | Yes | New UID. | -| gid | number | Yes | New GID. | + | Name | Type | Mandatory | Description | + | ---- | ------ | ---- | ------------ | + | fd | number | Yes | File descriptor of the target file.| + | uid | number | Yes | New UID. | + | gid | number | Yes | New GID. | **Example** @@ -2467,9 +2467,9 @@ Changes the file owner (owner of the symbolic link, not the file referred to by **Return value** -| Type | Description | -| ------------------- | ---------------------------- | -| Promise<void> | Promise that returns no value.| + | Type | Description | + | ------------------- | ---------------------------- | + | Promise<void> | Promise that returns no value.| **Example** @@ -2550,14 +2550,14 @@ 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.| +| 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** -| Type | Description | -| -------------------- | ---------- | -| [Watcher](#watcher7) | Promise used to return the **Watcher** instance.| + | Type | Description | + | -------------------- | ---------- | + | [Watcher](#watcher7) | Promise used to return the **Watcher** instance.| **Example** @@ -2595,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, that is, FIFO.
- **0o0700**: mask used to obtain owner permissions.
- **0o0400**: The owner has the read permission on 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 has the permission to search for the specified path in a directory.
- **0o0070**: mask used to obtain user group permissions.
- **0o0040**: The user group has the read permission on a regular file or a directory entry.
- **0o0020**: The user group has the permission to write a regular file or has the permission to create and delete a directory entry.
- **0o0010**: The user group has the permission to execute a regular file or has the permission to search for the specified path in a directory.
- **0o0007**: mask used to obtain permissions of other users.
- **0o0004**: Other user groups have the read permission on a regular file or a directory entry.
- **0o0002**: Other user groups have the permission to write a regular file or have the permission to 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. | @@ -2617,9 +2617,9 @@ Checks whether this file is a block special file. A block special file supports **Return value** -| Type | Description | -| ------- | ---------------- | -| boolean | Whether the file is a block special file.| + | Type | Description | + | ------- | ---------------- | + | boolean | Whether the file is a block special file.| **Example** @@ -2639,9 +2639,9 @@ Checks whether this file is a character special file. A character special file s **Return value** -| Type | Description | -| ------- | ----------------- | -| boolean | Whether the file is a character special file.| + | Type | Description | + | ------- | ----------------- | + | boolean | Whether the file is a character special file.| **Example** @@ -2661,9 +2661,9 @@ Checks whether this file is a directory. **Return value** -| Type | Description | -| ------- | ------------- | -| boolean | Whether the file is a directory.| + | Type | Description | + | ------- | ------------- | + | boolean | Whether the file is a directory.| **Example** @@ -2683,9 +2683,9 @@ Checks whether this file is a named pipe (or FIFO). Named pipes are used for int **Return value** -| Type | Description | -| ------- | --------------------- | -| boolean | Whether the file is an FIFO.| + | Type | Description | + | ------- | --------------------- | + | boolean | Whether the file is an FIFO.| **Example** @@ -2705,9 +2705,9 @@ Checks whether this file is a regular file. **Return value** -| Type | Description | -| ------- | --------------- | -| boolean | Whether the file is a regular file.| + | Type | Description | + | ------- | --------------- | + | boolean | Whether the file is a regular file.| **Example** @@ -2727,9 +2727,9 @@ Checks whether this file is a socket. **Return value** -| Type | Description | -| ------- | -------------- | -| boolean | Whether the file is a socket.| + | Type | Description | + | ------- | -------------- | + | boolean | Whether the file is a socket.| **Example** @@ -2749,9 +2749,9 @@ Checks whether this file is a symbolic link. **Return value** -| Type | Description | -| ------- | --------------- | -| boolean | Whether the file is a symbolic link.| + | Type | Description | + | ------- | --------------- | + | boolean | Whether the file is a symbolic link.| **Example** @@ -2797,9 +2797,9 @@ Stops the **watcher** instance. This API uses an asynchronous callback to return **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ------------------------- | ---- | ---------------------- | -| callback | AsyncCallback<void> | Yes | Callback invoked when **watcher** is stopped asynchronously.| + | Name | Type | Mandatory | Description | + | -------- | ------------------------- | ---- | ---------------------- | + | callback | AsyncCallback<void> | Yes | Callback invoked when **watcher** is stopped asynchronously.| **Example** @@ -2829,9 +2829,9 @@ Closes the stream. This API uses a promise to return the result. **Return value** -| Type | Description | -| ------------------- | ------------- | -| Promise<void> | Promise used to return the stream close result.| + | Type | Description | + | ------------------- | ------------- | + | Promise<void> | Promise used to return the stream close result.| **Example** @@ -2856,9 +2856,9 @@ Closes the stream. This API uses an asynchronous callback to return the result. **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ------------------------- | ---- | ------------- | -| callback | AsyncCallback<void> | Yes | Callback invoked when the stream is closed asynchronously.| + | Name | Type | Mandatory | Description | + | -------- | ------------------------- | ---- | ------------- | + | callback | AsyncCallback<void> | Yes | Callback invoked when the stream is closed asynchronously.| **Example** @@ -2898,9 +2898,9 @@ Flushes the stream. This API uses a promise to return the result. **Return value** -| Type | Description | -| ------------------- | ------------- | -| Promise<void> | Promise used to return the stream flushing result.| + | Type | Description | + | ------------------- | ------------- | + | Promise<void> | Promise used to return the stream flushing result.| **Example** @@ -2925,9 +2925,9 @@ Flushes the stream. This API uses an asynchronous callback to return the result. **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ------------------------- | ---- | -------------- | -| callback | AsyncCallback<void> | Yes | Callback invoked when the stream is asynchronously flushed.| + | Name | Type | Mandatory | Description | + | -------- | ------------------------- | ---- | -------------- | + | callback | AsyncCallback<void> | Yes | Callback invoked when the stream is asynchronously flushed.| **Example** @@ -2967,16 +2967,16 @@ Writes data into the stream. This API uses a promise to return the result. **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:
- **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 | + | 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:
- **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 data to be encoded when the data is a string. The default value is **'utf-8'**, which is the only value supported.
Constraints: offset + length <= Buffer size | **Return value** -| Type | Description | -| --------------------- | -------- | -| Promise<number> | Promise used to return the length of the data written.| + | Type | Description | + | --------------------- | -------- | + | Promise<number> | Promise used to return the length of the data written.| **Example** @@ -3001,11 +3001,11 @@ Writes data into the stream. This API uses an asynchronous callback to return th **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:
- **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. | + | 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:
- **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 data to be encoded when the data is a string. 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. | **Example** @@ -3031,16 +3031,16 @@ Synchronously writes data into the stream. **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:
- **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 | + | 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:
- **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 data to be encoded when the data is a string. The default value is **'utf-8'**, which is the only value supported.
Constraints: offset + length <= Buffer size | **Return value** -| Type | Description | -| ------ | -------- | -| number | Length of the data written in the file.| + | Type | Description | + | ------ | -------- | + | number | Length of the data written in the file.| **Example** @@ -3061,16 +3061,16 @@ Reads data from the stream. This API uses a promise to return the result. **Parameters** -| Name | Type | Mandatory | Description | -| ------- | ----------- | ---- | ---------------------------------------- | -| buffer | ArrayBuffer | Yes | Buffer used to store the file read. | -| options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size | + | Name | Type | Mandatory | Description | + | ------- | ----------- | ---- | ---------------------------------------- | + | buffer | ArrayBuffer | Yes | Buffer used to store the file read. | + | options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size | **Return value** -| Type | Description | -| ---------------------------------- | ------ | -| Promise<[ReadOut](#readout)> | Promise used to return the data read.| + | Type | Description | + | ---------------------------------- | ------ | + | Promise<[ReadOut](#readout)> | Promise used to return the data read.| **Example** @@ -3096,11 +3096,11 @@ Reads data from the stream. This API uses an asynchronous callback to return the **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ---------------------------------------- | ---- | ---------------------------------------- | -| buffer | ArrayBuffer | Yes | Buffer used to store the file read. | -| options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size | -| callback | AsyncCallback<[ReadOut](#readout)> | Yes | Callback invoked when data is read asynchronously from the stream. | + | Name | Type | Mandatory | Description | + | -------- | ---------------------------------------- | ---- | ---------------------------------------- | + | buffer | ArrayBuffer | Yes | Buffer used to store the file read. | + | options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size | + | callback | AsyncCallback<[ReadOut](#readout)> | Yes | Callback invoked when data is read asynchronously from the stream. | **Example** @@ -3126,16 +3126,16 @@ Synchronously reads data from the stream. **Parameters** -| Name | Type | Mandatory | Description | -| ------- | ----------- | ---- | ---------------------------------------- | -| buffer | ArrayBuffer | Yes | Buffer used to store the file read. | -| options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size | + | Name | Type | Mandatory | Description | + | ------- | ----------- | ---- | ---------------------------------------- | + | buffer | ArrayBuffer | Yes | Buffer used to store the file read. | + | options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size | **Return value** -| Type | Description | -| ------ | -------- | -| number | Length of the data read.| + | Type | Description | + | ------ | -------- | + | number | Length of the data read.| **Example** @@ -3161,9 +3161,9 @@ Reads the next directory entry. This API uses a promise to return the result. **Return value** -| Type | Description | -| -------------------------------- | ------------- | -| Promise<[Dirent](#dirent)> | Promise used to return the directory entry read.| + | Type | Description | + | -------------------------------- | ------------- | + | Promise<[Dirent](#dirent)> | Promise used to return the directory entry read.| **Example** @@ -3186,9 +3186,9 @@ Reads the next directory entry. This API uses an asynchronous callback to return **Parameters** -| Name | Type | Mandatory | Description | -| -------- | -------------------------------------- | ---- | ---------------- | -| callback | AsyncCallback<[Dirent](#dirent)> | Yes | Callback invoked when the next directory entry is asynchronously read.| + | Name | Type | Mandatory | Description | + | -------- | -------------------------------------- | ---- | ---------------- | + | callback | AsyncCallback<[Dirent](#dirent)> | Yes | Callback invoked when the next directory entry is asynchronously read.| **Example** @@ -3212,9 +3212,9 @@ Synchronously reads the next directory entry. **Return value** -| Type | Description | -| ----------------- | -------- | -| [Dirent](#dirent) | Directory entry read.| + | Type | Description | + | ----------------- | -------- | + | [Dirent](#dirent) | Directory entry read.| **Example** @@ -3295,9 +3295,9 @@ Checks whether this directory entry is a block special file. A block special fil **Return value** -| Type | Description | -| ------- | ---------------- | -| boolean | Whether the directory entry is a block special file.| + | Type | Description | + | ------- | ---------------- | + | boolean | Whether the directory entry is a block special file.| **Example** @@ -3317,9 +3317,9 @@ Checks whether a directory entry is a character special file. A character specia **Return value** -| Type | Description | -| ------- | ----------------- | -| boolean | Whether the directory entry is a character special file.| + | Type | Description | + | ------- | ----------------- | + | boolean | Whether the directory entry is a character special file.| **Example** @@ -3339,9 +3339,9 @@ Checks whether a directory entry is a directory. **Return value** -| Type | Description | -| ------- | ------------- | -| boolean | Whether the directory entry is a directory.| + | Type | Description | + | ------- | ------------- | + | boolean | Whether the directory entry is a directory.| **Example** @@ -3361,9 +3361,9 @@ Checks whether this directory entry is a named pipe (or FIFO). Named pipes are u **Return value** -| Type | Description | -| ------- | --------------- | -| boolean | Whether the directory entry is a FIFO.| + | Type | Description | + | ------- | --------------- | + | boolean | Whether the directory entry is a FIFO.| **Example** @@ -3383,9 +3383,9 @@ Checks whether a directory entry is a regular file. **Return value** -| Type | Description | -| ------- | --------------- | -| boolean | Whether the directory entry is a regular file.| + | Type | Description | + | ------- | --------------- | + | boolean | Whether the directory entry is a regular file.| **Example** @@ -3405,9 +3405,9 @@ Checks whether a directory entry is a socket. **Return value** -| Type | Description | -| ------- | -------------- | -| boolean | Whether the directory entry is a socket.| + | Type | Description | + | ------- | -------------- | + | boolean | Whether the directory entry is a socket.| **Example** @@ -3427,9 +3427,9 @@ Checks whether a directory entry is a symbolic link. **Return value** -| Type | Description | -| ------- | --------------- | -| boolean | Whether the directory entry is a symbolic link.| + | Type | Description | + | ------- | --------------- | + | boolean | Whether the directory entry is a symbolic link.| **Example** diff --git a/en/application-dev/reference/apis/js-apis-hichecker.md b/en/application-dev/reference/apis/js-apis-hichecker.md index 4d6d81f15430a456eb60f54e1b650df5ef112dbe..35c86ccd1c0143dea06b5f1a24634b6cc09a2187 100644 --- a/en/application-dev/reference/apis/js-apis-hichecker.md +++ b/en/application-dev/reference/apis/js-apis-hichecker.md @@ -122,7 +122,9 @@ try { addRule(rule: bigint): void -> **NOTE**
This API is deprecated since API version 9. You are advised to use [hichecker.addCheckRule](#hicheckeraddcheckrule9) instead. +> **NOTE** +> +> This API is deprecated since API version 9. You are advised to use [hichecker.addCheckRule](#hicheckeraddcheckrule9). Adds one or more rules. HiChecker detects unexpected operations or gives feedback based on the added rules. @@ -149,7 +151,9 @@ hichecker.addRule( removeRule(rule: bigint): void -> **NOTE**
This API is deprecated since API version 9. You are advised to use [hichecker.removeCheckRule](#hicheckerremovecheckrule9) instead. +> **NOTE** +> +> This API is deprecated since API version 9. You are advised to use [hichecker.removeCheckRule](#hicheckerremovecheckrule9). Removes one or more rules. The removed rules will become ineffective. @@ -200,7 +204,9 @@ hichecker.getRule(); // return 1n; contains(rule: bigint): boolean -> **NOTE**
This API is deprecated since API version 9. You are advised to use [hichecker.containsCheckRule](#hicheckercontainscheckrule9) instead. +> **NOTE** +> +> This API is deprecated since API version 9. You are advised to use [hichecker.containsCheckRule](#hicheckercontainscheckrule9). Checks whether the specified rule exists in the collection of added rules. If the rule is of the thread level, this operation is performed only on the current thread. diff --git a/en/application-dev/reference/apis/js-apis-hidebug.md b/en/application-dev/reference/apis/js-apis-hidebug.md index 364938ddfa2864850a1335cb886f41e3de2c1a9c..186b2dc92d8bf4fd2693f06b5b6e062bb9a7fc29 100644 --- a/en/application-dev/reference/apis/js-apis-hidebug.md +++ b/en/application-dev/reference/apis/js-apis-hidebug.md @@ -1,10 +1,10 @@ # @ohos.hidebug (HiDebug) -The **hidebug** module provides APIs for you to obtain the memory usage of an application, including the static heap memory (native heap) and proportional set size (PSS) occupied by the application process. You can also export VM memory slices and collect VM CPU profiling data. - -> **NOTE**
+> **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 **hidebug** module provides APIs for you to obtain the memory usage of an application, including the static heap memory (native heap) and proportional set size (PSS) occupied by the application process. You can also export VM memory slices and collect VM CPU profiling data. ## Modules to Import @@ -19,31 +19,25 @@ getNativeHeapSize(): bigint Obtains the total heap memory size of this application. -This API is defined but not implemented in OpenHarmony 3.1 Release. - **System capability**: SystemCapability.HiviewDFX.HiProfiler.HiDebug **Return value** -| Type | Description | +| Type | Description | | ------ | --------------------------- | | bigint | Total heap memory size of the application, in KB.| - **Example** ```js let nativeHeapSize = hidebug.getNativeHeapSize(); ``` - ## hidebug.getNativeHeapAllocatedSize getNativeHeapAllocatedSize(): bigint Obtains the allocated heap memory size of this application. -This API is defined but not implemented in OpenHarmony 3.1 Release. - **System capability**: SystemCapability.HiviewDFX.HiProfiler.HiDebug **Return value** @@ -58,15 +52,12 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. let nativeHeapAllocatedSize = hidebug.getNativeHeapAllocatedSize(); ``` - ## hidebug.getNativeHeapFreeSize getNativeHeapFreeSize(): bigint Obtains the free heap memory size of this application. -This API is defined but not implemented in OpenHarmony 3.1 Release. - **System capability**: SystemCapability.HiviewDFX.HiProfiler.HiDebug **Return value** @@ -80,7 +71,6 @@ This API is defined but not implemented in OpenHarmony 3.1 Release. let nativeHeapFreeSize = hidebug.getNativeHeapFreeSize(); ``` - ## hidebug.getPss getPss(): bigint @@ -100,7 +90,6 @@ Obtains the size of the physical memory actually used by the application process let pss = hidebug.getPss(); ``` - ## hidebug.getSharedDirty getSharedDirty(): bigint @@ -135,7 +124,6 @@ Obtains the size of the private dirty memory of a process. | ------ | -------------------------- | | bigint | Size of the private dirty memory of the process, in KB.| - **Example** ```js let privateDirty = hidebug.getPrivateDirty(); @@ -163,76 +151,6 @@ For example, if the CPU usage is **50%**, **0.5** is returned. let cpuUsage = hidebug.getCpuUsage(); ``` -## hidebug.startProfiling(deprecated) - -startProfiling(filename : string) : void - -> **NOTE**
This API is deprecated since API version 9. You are advised to use [hidebug.startJsCpuProfiling](#hidebugstartjscpuprofiling9) instead. - -Starts the profiling method. `startProfiling()` and `stopProfiling()` are called in pairs. `startProfiling()` always occurs before `stopProfiling()`; that is, calling the functions in the sequence similar to the following is prohibited: `start->start->stop`, `start->stop->stop`, and `start->start->stop->stop`. - -**System capability**: SystemCapability.HiviewDFX.HiProfiler.HiDebug - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ------ | ---- | ------------------------------------------------------------ | -| filename | string | Yes | User-defined profile name. The `filename.json` file is generated in the `files` directory of the application based on the specified `filename`.| - -**Example** - -```js -hidebug.startProfiling("cpuprofiler-20220216"); -// code block -// ... -// code block -hidebug.stopProfiling(); -``` - - - -## hidebug.stopProfiling(deprecated) - -stopProfiling() : void - -> **NOTE**
This API is deprecated since API version 9. You are advised to use [hidebug.stopJsCpuProfiling](#hidebugstopjscpuprofiling9) instead. - -Stops the profiling method. `startProfiling()` and `stopProfiling()` are called in pairs. `startProfiling()` always occurs before `stopProfiling()`; that is, calling the functions in the sequence similar to the following is prohibited: `start->start->stop`, `start->stop->stop`, and `start->start->stop->stop`. - -**System capability**: SystemCapability.HiviewDFX.HiProfiler.HiDebug - -**Example** - -```js -hidebug.startProfiling("cpuprofiler-20220216"); -// code block -// ... -// code block -hidebug.stopProfiling(); -``` - -## hidebug.dumpHeapData(deprecated) - -dumpHeapData(filename : string) : void - -> **NOTE**
This API is deprecated since API version 9. You are advised to use [hidebug.dumpJsHeapData](#hidebugdumpjsheapdata9) instead. - -Exports the heap data. - -**System capability**: SystemCapability.HiviewDFX.HiProfiler.HiDebug - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ------ | ---- | ------------------------------------------------------------ | -| filename | string | Yes | User-defined heap file name. The `filename.heapsnapshot` file is generated in the `files` directory of the application based on the specified `filename`.| - -**Example** - -```js -hidebug.dumpHeapData("heap-20220216"); -``` - ## hidebug.getServiceDump9+ getServiceDump(serviceid : number, fd : number, args : Array\) : void @@ -360,3 +278,71 @@ try { console.info(error.message) } ``` + +## hidebug.startProfiling(deprecated) + +startProfiling(filename : string) : void + +> **NOTE**
This API is deprecated since API version 9. You are advised to use [hidebug.startJsCpuProfiling](#hidebugstartjscpuprofiling9) instead. + +Starts the profiling method. `startProfiling()` and `stopProfiling()` are called in pairs. `startProfiling()` always occurs before `stopProfiling()`; that is, calling the functions in the sequence similar to the following is prohibited: `start->start->stop`, `start->stop->stop`, and `start->start->stop->stop`. + +**System capability**: SystemCapability.HiviewDFX.HiProfiler.HiDebug + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------ | ---- | ------------------------------------------------------------ | +| filename | string | Yes | User-defined profile name. The `filename.json` file is generated in the `files` directory of the application based on the specified `filename`.| + +**Example** + +```js +hidebug.startProfiling("cpuprofiler-20220216"); +// code block +// ... +// code block +hidebug.stopProfiling(); +``` + +## hidebug.stopProfiling(deprecated) + +stopProfiling() : void + +> **NOTE**
This API is deprecated since API version 9. You are advised to use [hidebug.stopJsCpuProfiling](#hidebugstopjscpuprofiling9) instead. + +Stops the profiling method. `startProfiling()` and `stopProfiling()` are called in pairs. `startProfiling()` always occurs before `stopProfiling()`; that is, calling the functions in the sequence similar to the following is prohibited: `start->start->stop`, `start->stop->stop`, and `start->start->stop->stop`. + +**System capability**: SystemCapability.HiviewDFX.HiProfiler.HiDebug + +**Example** + +```js +hidebug.startProfiling("cpuprofiler-20220216"); +// code block +// ... +// code block +hidebug.stopProfiling(); +``` + +## hidebug.dumpHeapData(deprecated) + +dumpHeapData(filename : string) : void + +> **NOTE**
This API is deprecated since API version 9. You are advised to use [hidebug.dumpJsHeapData](#hidebugdumpjsheapdata9) instead. + +Exports the heap data. + +**System capability**: SystemCapability.HiviewDFX.HiProfiler.HiDebug + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------ | ---- | ------------------------------------------------------------ | +| filename | string | Yes | User-defined heap file name. The `filename.heapsnapshot` file is generated in the `files` directory of the application based on the specified `filename`.| + +**Example** + +```js +hidebug.dumpHeapData("heap-20220216"); +``` diff --git a/en/application-dev/reference/apis/js-apis-http.md b/en/application-dev/reference/apis/js-apis-http.md index 820cba210b6b8b43578733c1a2eb060177aa5995..e884f1f348b6754b4f8c8703220a1dcd8a4eb19d 100644 --- a/en/application-dev/reference/apis/js-apis-http.md +++ b/en/application-dev/reference/apis/js-apis-http.md @@ -1,6 +1,6 @@ # @ohos.net.http (Data Request) -This module provides the HTTP data request capability. An application can initiate a data request over HTTP. Common HTTP methods include **GET**, **POST**, **OPTIONS**, **HEAD**, **PUT**, **DELETE**, **TRACE**, and **CONNECT**. +The **http** module provides the HTTP data request capability. An application can initiate a data request over HTTP. Common HTTP methods include **GET**, **POST**, **OPTIONS**, **HEAD**, **PUT**, **DELETE**, **TRACE**, and **CONNECT**. >**NOTE** > @@ -13,10 +13,10 @@ This module provides the HTTP data request capability. An application can initia import http from '@ohos.net.http'; ``` -## Example +## Examples ```js -// Import the http namespace. +// Import the HTTP namespace. import http from '@ohos.net.http'; // Each httpRequest corresponds to an HTTP request task and cannot be reused. @@ -27,7 +27,7 @@ httpRequest.on('headersReceive', (header) => { console.info('header: ' + JSON.stringify(header)); }); httpRequest.request( - // Customize EXAMPLE_URL on your own. It is up to you whether to add parameters to the URL. + // Customize EXAMPLE_URL in extraData on your own. It is up to you whether to add parameters to the URL. "EXAMPLE_URL", { method: http.RequestMethod.POST, // Optional. The default value is http.RequestMethod.GET. @@ -69,7 +69,7 @@ httpRequest.request( createHttp(): HttpRequest -Creates an HTTP request. You can use this API to initiate or destroy an HTTP request, or enable or disable listening for HTTP Response Header events. An HttpRequest object corresponds to an HTTP request. To initiate multiple HTTP requests, you must create an **HttpRequest** object for each HTTP request. +Creates an HTTP request. You can use this API to initiate or destroy an HTTP request, or enable or disable listening for HTTP Response Header events. An **HttpRequest** object corresponds to an HTTP request. To initiate multiple HTTP requests, you must create an **HttpRequest** object for each HTTP request. **System capability**: SystemCapability.Communication.NetStack @@ -112,7 +112,7 @@ Initiates an HTTP request to a given URL. This API uses an asynchronous callback **Error codes** -| Code | Error Message | +| ID | Error Message | |---------|-------------------------------------------------------| | 401 | Parameter error. | | 201 | Permission denied. | @@ -164,7 +164,7 @@ Initiates an HTTP request containing specified options to a given URL. This API **Error codes** -| Code | Error Message | +| ID | Error Message | |---------|-------------------------------------------------------| | 401 | Parameter error. | | 201 | Permission denied. | @@ -231,7 +231,7 @@ httpRequest.request("EXAMPLE_URL", request(url: string, options? : HttpRequestOptions): Promise\ -Initiates an HTTP request to a given URL. This API uses a promise to return the result. +Initiates an HTTP request containing specified options to a given URL. This API uses a promise to return the result. >**NOTE** >This API supports only transfer of data not greater than 5 MB. @@ -255,7 +255,7 @@ Initiates an HTTP request to a given URL. This API uses a promise to return the **Error codes** -| Code | Error Message | +| ID | Error Message | |---------|-------------------------------------------------------| | 401 | Parameter error. | | 201 | Permission denied. | @@ -332,7 +332,7 @@ httpRequest.destroy(); ### request210+ -request2(url: string, callback: AsyncCallback\): void +request2(url: string, callback: AsyncCallback\): void Initiates an HTTP request to a given URL. This API uses an asynchronous callback to return the result, which is a streaming response. @@ -345,11 +345,11 @@ Initiates an HTTP request to a given URL. This API uses an asynchronous callback | Name | Type | Mandatory| Description | | -------- | ---------------------------------------------- | ---- | ----------------------------------------------- | | url | string | Yes | URL for initiating an HTTP request. | -| callback | AsyncCallback\ | Yes | Callback used to return the result. | +| callback | AsyncCallback\<[number](#responsecode)\> | Yes | Callback used to return the result. | **Error codes** -| Code | Error Message | +| ID | Error Message | |---------|-------------------------------------------------------| | 401 | Parameter error. | | 201 | Permission denied. | @@ -366,9 +366,9 @@ Initiates an HTTP request to a given URL. This API uses an asynchronous callback **Example** ```js -httpRequest.request2("EXAMPLE_URL", (err) => { +httpRequest.request2("EXAMPLE_URL", (err, data) => { if (!err) { - console.info("request2 OK!"); + console.info("request2 OK! ResponseCode is " + JSON.stringify(data)); } else { console.info("request2 ERROR : err = " + JSON.stringify(err)); } @@ -377,7 +377,7 @@ httpRequest.request2("EXAMPLE_URL", (err) => { ### request210+ -request2(url: string, options: HttpRequestOptions, callback: AsyncCallback\): void +request2(url: string, options: HttpRequestOptions, callback: AsyncCallback\): void Initiates an HTTP request to a given URL. This API uses an asynchronous callback to return the result, which is a streaming response. @@ -391,11 +391,11 @@ Initiates an HTTP request to a given URL. This API uses an asynchronous callback | -------- | ---------------------------------------------- | ---- | ----------------------------------------------- | | url | string | Yes | URL for initiating an HTTP request. | | options | HttpRequestOptions | Yes | Request options. For details, see [HttpRequestOptions](#httprequestoptions).| -| callback | AsyncCallback\ | Yes | Callback used to return the result. | +| callback | AsyncCallback\<[number](#responsecode)\> | Yes | Callback used to return the result. | **Error codes** -| Code | Error Message | +| ID | Error Message | |---------|-------------------------------------------------------| | 401 | Parameter error. | | 201 | Permission denied. | @@ -444,9 +444,9 @@ httpRequest.request2("EXAMPLE_URL", }, readTimeout: 60000, connectTimeout: 60000 -}, (err) => { +}, (err, data) => { if (!err) { - console.info("request2 OK!"); + console.info("request2 OK! ResponseCode is " + JSON.stringify(data)); } else { console.info("request2 ERROR : err = " + JSON.stringify(err)); } @@ -454,7 +454,7 @@ httpRequest.request2("EXAMPLE_URL", ``` ### request210+ -request2(url: string, options? : HttpRequestOptions): Promise\ +request2(url: string, options? : HttpRequestOptions): Promise\ Initiates an HTTP request containing specified options to a given URL. This API uses a promise to return the result, which is a streaming response. @@ -473,11 +473,11 @@ Initiates an HTTP request containing specified options to a given URL. This API | Type | Description | | :------------------------------------- | :-------------------------------- | -| Promise\ | Promise used to return the result.| +| Promise\<[number](#responsecode)\> | Promise used to return the result.| **Error codes** -| Code | Error Message | +| ID | Error Message | |---------|-------------------------------------------------------| | 401 | Parameter error. | | 201 | Permission denied. | @@ -513,7 +513,7 @@ Initiates an HTTP request containing specified options to a given URL. This API >**NOTE** > For details about the error codes, see [HTTP Error Codes](../errorcodes/errorcode-net-http.md). -> The HTTP error code mapping is in the format of 2300000 + Curl error code. For more common error codes, see [Curl Error Codes](https://curl.se/libcurl/c/libcurl-errors.html). +> The HTTP error code mapping is in the format of 2300000 + Curl error code. For more common error codes, see: **Example** @@ -526,8 +526,8 @@ let promise = httpRequest.request("EXAMPLE_URL", { 'Content-Type': 'application/json' } }); -promise.then(() => { - console.info("request2 OK!"); +promise.then((data) => { + console.info("request2 OK!" + JSON.stringify(data)); }).catch((err) => { console.info("request2 ERROR : err = " + JSON.stringify(err)); }); @@ -839,7 +839,7 @@ Enumerates the response codes for an HTTP request. | Name | Value | Description | | ----------------- | ---- | ------------------------------------------------------------ | -| OK | 200 | The request is successful. The request has been processed successfully. This return code is generally used for GET and POST requests. | +| OK | 200 | "OK." The request has been processed successfully. This return code is generally used for GET and POST requests. | | CREATED | 201 | "Created." The request has been successfully sent and a new resource is created. | | ACCEPTED | 202 | "Accepted." The request has been accepted, but the processing has not been completed. | | NOT_AUTHORITATIVE | 203 | "Non-Authoritative Information." The request is successful. | @@ -1007,7 +1007,7 @@ Disables the cache and deletes the data in it. This API uses a promise to return | Type | Description | | --------------------------------- | ------------------------------------- | -| Promise\ | Promise used to return the result.| +| Promise\ | Promise used to return the result.| **Example** diff --git a/en/application-dev/reference/apis/js-apis-huks.md b/en/application-dev/reference/apis/js-apis-huks.md index 0dfcc793a2d005d34501735f320e78ab421b1a08..f297c8c29bbcd4822d2f34030b1c6e9bec2b124d 100644 --- a/en/application-dev/reference/apis/js-apis-huks.md +++ b/en/application-dev/reference/apis/js-apis-huks.md @@ -75,7 +75,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. 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.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the result. If the operation is successful, no **err** value is returned; otherwise, an error code is returned.| **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 invoked to return the result. If the operation fails, **err** is returned.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the result. If the operation is successful, no **err** value is returned; otherwise, an error code is returned.| **Example** @@ -289,7 +289,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. 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.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the result. If the operation is successful, no **err** value is returned; otherwise, an error code is returned.| **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](#huksreturnresult9)> | Yes | Callback invoked to return the result. If the operation fails, **err** is returned.| +| callback | AsyncCallback<[HuksReturnResult](#huksreturnresult9)> | Yes | Callback invoked to return the result. If the operation is successful, no **err** value is returned; otherwise, an error code 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](#huksreturnresult9)> | Promise used to return the result. If the operation fails, **err** is returned.| +| Promise<[HuksReturnResult](#huksreturnresult9)> | Promise used to return the result. If the operation is successful, no **err** value is returned; otherwise, an error code is returned.| **Example** @@ -676,7 +676,7 @@ 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. 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.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the result. If the operation is successful, no **err** value is returned; otherwise, an error code is returned.| **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](#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.| +| callback | AsyncCallback<[HuksReturnResult](#huksreturnresult9)> | Yes | Callback invoked to return the result. If the operation is successful, no **err** value is returned; otherwise, an error code is returned. **outData** contains the public key exported.| **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](#huksreturnresult9)> | 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, 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** @@ -1084,7 +1084,7 @@ Checks whether a key exists. This API uses an asynchronous callback to return th | -------- | --------------------------- | ---- | --------------------------------------- | | keyAlias | string | Yes | Alias of the key to check. | | options | [HuksOptions](#huksoptions) | Yes | Empty object (leave this parameter empty). | -| callback | AsyncCallback\ | Yes | Callback invoked to return the result. **TRUE** means that the key exists; **FALSE** means the opposite.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the result. The value **TRUE** means that the key exists; **FALSE** means the opposite.| **Example** @@ -1161,9 +1161,9 @@ Initializes the data for a key operation. This API uses an asynchronous callback | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------------- | ---- | ---------------------------------------------------- | -| keyAlias | string | Yes | Alias of the target key. | -| options | [HuksOptions](#huksoptions) | Yes | Parameters used for initialization. | -| callback | AsyncCallback\<[HuksSessionHandle](#hukssessionhandle9)> | Yes | Callback invoked to return the handle obtained through the initialization operation.| +| keyAlias | string | Yes | Alias of the key involved in the **initSession** operation. | +| options | [HuksOptions](#huksoptions) | Yes | Parameter set used for the **initSession** operation. | +| callback | AsyncCallback\<[HuksSessionHandle](#hukssessionhandle9)> | Yes | Callback invoked to return a session handle for subsequent operations.| ## huks.initSession9+ @@ -1177,14 +1177,14 @@ Initializes the data for a key operation. This API uses a promise to return the | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------- | ---- | ------------------------------------------------ | -| keyAlias | string | Yes | Alias of the target key. | -| options | [HuksOptions](#huksoptions) | Yes | Parameters used for initialization. | +| keyAlias | string | Yes | Alias of the key involved in the **initSession** operation. | +| options | [HuksOptions](#huksoptions) | Yes | Parameter set used for the **initSession** operation. | **Return value** | Type | Description | | ----------------------------------- | -------------------------------------------------- | -| Promise\<[HuksSessionHandle](#hukssessionhandle9)> | Promise used to return the handle obtained through the initialization operation.| +| Promise\<[HuksSessionHandle](#hukssessionhandle9)> | Promise used to return a session handle for subsequent operations.| ## huks.updateSession9+ @@ -1198,9 +1198,9 @@ Updates the key operation by segment. This API uses an asynchronous callback to | Name | Type | Mandatory| Description | | -------- | ---------------------------------------------------- | ---- | -------------------------------------------- | -| handle | number | Yes | Handle of the **Update** operation. | -| options | [HuksOptions](#huksoptions) | Yes | Parameters of the **Update** operation. | -| callback | AsyncCallback<[HuksReturnResult](#huksreturnresult9)> | Yes | Callback invoked to return the result.| +| handle | number | Yes | Handle for the **updateSession** operation. | +| options | [HuksOptions](#huksoptions) | Yes | Parameter set used for the **updateSession** operation. | +| callback | AsyncCallback<[HuksReturnResult](#huksreturnresult9)> | Yes | Callback invoked to return the **updateSession** operation result.| ## huks.updateSession9+ @@ -1215,16 +1215,16 @@ Updates the key operation by segment. This API uses an asynchronous callback to | Name | Type | Mandatory| Description | | -------- | ---------------------------------------------------- | ---- | -------------------------------------------- | -| 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](#huksreturnresult9)> | Yes | Callback invoked to return the result.| +| handle | number | Yes | Handle for the **updateSession** operation. | +| options | [HuksOptions](#huksoptions) | Yes | Parameter set used for the **updateSession** operation. | +| token | Uint8Array | Yes | Token of the **updateSession** operation. | +| callback | AsyncCallback<[HuksReturnResult](#huksreturnresult9)> | Yes | Callback invoked to return the **updateSession** operation result.| ## huks.updateSession9+ updateSession(handle: number, options: HuksOptions, token?: Uint8Array) : Promise\ -Updates the key operation data by segment. This API uses a promise to return the result. **huks.initSession**, **huks.updateSession**, and **huks.finishSession** must be used together. +Updates the key operation by segment. This API uses a promise to return the result. **huks.initSession**, **huks.updateSession**, and **huks.finishSession** must be used together. **System capability**: SystemCapability.Security.Huks @@ -1232,15 +1232,15 @@ Updates the key operation data by segment. This API uses a promise to return the | Name | Type | Mandatory| Description | | ------- | ---------------------------------------------- | ---- | -------------------------------------------- | -| handle | number | Yes | Handle of the **Update** operation. | -| options | [HuksOptions](#huksoptions) | Yes | Parameters of the **Update** operation. | -| token | Uint8Array | No | Token of the **Update** operation. | +| handle | number | Yes | Handle for the **updateSession** operation. | +| options | [HuksOptions](#huksoptions) | Yes | Parameter set used for the **updateSession** operation. | +| token | Uint8Array | No | Token of the **updateSession** operation. | **Return value** | Type | Description | | ----------------------------------- | -------------------------------------------------- | -| Promise<[HuksReturnResult](#huksreturnresult9)> | Promise used to return the result.| +| Promise<[HuksReturnResult](#huksreturnresult9)> | Promise used to return the **updateSession** operation result.| ## huks.finishSession9+ @@ -1254,10 +1254,10 @@ Completes the key operation and releases resources. This API uses an asynchronou | Name | Type | Mandatory| Description | | -------- | ---------------------------------------------------- | ---- | -------------------------------------------- | -| 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](#huksreturnresult9)> | Yes | Callback invoked to return the result.| +| handle | number | Yes | Handle for the **finishSession** operation. | +| options | [HuksOptions](#huksoptions) | Yes | Parameter set used for the **finishSession** operation. | +| token | Uint8Array | Yes | Token of the **finishSession** operation. | +| callback | AsyncCallback<[HuksReturnResult](#huksreturnresult9)> | Yes | Callback invoked to return the **finishSession** operation result. | ## huks.finishSession9+ @@ -1271,10 +1271,10 @@ Completes the key operation and releases resources. This API uses an asynchronou | Name | Type | Mandatory| Description | | -------- | ----------------------------------------------------- | ---- | -------------------------------------------- | -| 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](#huksreturnresult9)> | Yes | Callback invoked to return the result.| +| handle | number | Yes | Handle for the **finishSession** operation. | +| options | [HuksOptions](#huksoptions) | Yes | Parameter set used for the **finishSession** operation. | +| token | Uint8Array | Yes | Token of the **finishSession** operation. | +| callback | AsyncCallback\<[HuksReturnResult](#huksreturnresult9)> | Yes | Callback invoked to return the **finishSession** operation result. | ## huks.finishSession9+ @@ -1288,9 +1288,9 @@ Completes the key operation and releases resources. This API uses a promise to r | Name | Type | Mandatory| Description | | ------- | ----------------------------------------------- | ---- | ----------------------------------- | -| handle | number | Yes | Handle of the **Finish** operation. | -| options | [HuksOptions](#huksoptions) | Yes | Parameters of the **Finish** operation. | -| token | Uint8Array | No | Token for the **Finish** operation. | +| handle | number | Yes | Handle for the **finishSession** operation. | +| options | [HuksOptions](#huksoptions) | Yes | Parameter set used for the **finishSession** operation. | +| token | Uint8Array | No | Token of the **finishSession** operation. | **Return value** @@ -1302,7 +1302,7 @@ Completes the key operation and releases resources. This API uses a promise to r abortSession(handle: number, options: HuksOptions, callback: AsyncCallback\) : void -Aborts the use of the key. This API uses an asynchronous callback to return the result. +Aborts a key operation. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.Security.Huks @@ -1310,16 +1310,16 @@ Aborts the use of the key. This API uses an asynchronous callback to return the | Name | Type | Mandatory| Description | | -------- | --------------------------- | ---- | ------------------------------------------- | -| handle | number | Yes | Handle of the **Abort** operation. | -| options | [HuksOptions](#huksoptions) | Yes | Parameters of the **Abort** operation. | -| callback | AsyncCallback\ | Yes | Callback invoked to return the result. If the operation fails, **err** is returned.| +| handle | number | Yes | Handle for the **abortSession** operation. | +| options | [HuksOptions](#huksoptions) | Yes | Parameter set used for the **abortSession** operation. | +| callback | AsyncCallback\ | Yes | Callback that returns no value. | **Example** ```js /* huks.initSession, huks.updateSession, and huks.finishSession must be used together. * If an error occurs in any of huks.initSession, huks.updateSession, - * and huks.finishSession operation, + * and huks.finishSession operations, * huks.abortSession must be called to terminate the use of the key. * * The following uses the callback of an RSA1024 key as an example. @@ -1447,7 +1447,7 @@ async function huksAbort() { abortSession(handle: number, options: HuksOptions) : Promise\; -Aborts the use of the key. This API uses a promise to return the result. +Aborts a key operation. This API uses a promise to return the result. **System capability**: SystemCapability.Security.Huks @@ -1455,21 +1455,21 @@ Aborts the use of the key. This API uses a promise to return the result. | Name | Type | Mandatory| Description | | ------- | --------------------------- | ---- | ------------------------------------------- | -| handle | number | Yes | Handle of the **Abort** operation. | -| options | [HuksOptions](#huksoptions) | Yes | Parameters of the **Abort** operation. | +| handle | number | Yes | Handle for the **abortSession** operation. | +| options | [HuksOptions](#huksoptions) | Yes | Parameter set used for the **abortSession** operation. | **Return value** | Type | Description | | ----------------------------------- | -------------------------------------------------- | -| Promise\ | Promise that returns no value.| +| Promise\ | Promise used to return the **abortSession** operation result.| **Example** ```js /* huks.initSession, huks.updateSession, and huks.finishSession must be used together. * If an error occurs in any of huks.initSession, huks.updateSession, - * and huks.finishSession operation, + * and huks.finishSession operations, * huks.abortSession must be called to terminate the use of the key. * * The following uses the callback of an RSA1024 key as an example. @@ -1889,90 +1889,90 @@ Enumerates the tags used to invoke parameters. **System capability**: SystemCapability.Security.Huks -| Name | Value | Description | -| -------------------------------------------- | ---------------------------------------- | -------------------------------------- | -| HUKS_TAG_INVALID | HuksTagType.HUKS_TAG_TYPE_INVALID \| 0 | Invalid tag. | -| HUKS_TAG_ALGORITHM | HuksTagType.HUKS_TAG_TYPE_UINT \| 1 | Algorithm. | -| HUKS_TAG_PURPOSE | HuksTagType.HUKS_TAG_TYPE_UINT \| 2 | Purpose of the key. | -| HUKS_TAG_KEY_SIZE | HuksTagType.HUKS_TAG_TYPE_UINT \| 3 | Key size. | -| HUKS_TAG_DIGEST | HuksTagType.HUKS_TAG_TYPE_UINT \| 4 | Digest algorithm. | -| HUKS_TAG_PADDING | HuksTagType.HUKS_TAG_TYPE_UINT \| 5 | Padding algorithm. | -| HUKS_TAG_BLOCK_MODE | HuksTagType.HUKS_TAG_TYPE_UINT \| 6 | Cipher mode. | -| HUKS_TAG_KEY_TYPE | HuksTagType.HUKS_TAG_TYPE_UINT \| 7 | Key type. | -| HUKS_TAG_ASSOCIATED_DATA | HuksTagType.HUKS_TAG_TYPE_BYTES \| 8 | Associated authentication data. | -| HUKS_TAG_NONCE | HuksTagType.HUKS_TAG_TYPE_BYTES \| 9 | Field for key encryption and decryption. | -| HUKS_TAG_IV | HuksTagType.HUKS_TAG_TYPE_BYTES \| 10 | IV. | -| HUKS_TAG_INFO | HuksTagType.HUKS_TAG_TYPE_BYTES \| 11 | Information generated during key derivation. | -| HUKS_TAG_SALT | HuksTagType.HUKS_TAG_TYPE_BYTES \| 12 | Salt value used for key derivation. | -| HUKS_TAG_PWD | HuksTagType.HUKS_TAG_TYPE_BYTES \| 13 | Password used for key derivation. | -| HUKS_TAG_ITERATION | HuksTagType.HUKS_TAG_TYPE_UINT \| 14 | Number of iterations for key derivation. | -| HUKS_TAG_KEY_GENERATE_TYPE | HuksTagType.HUKS_TAG_TYPE_UINT \| 15 | Key generation type. | -| HUKS_TAG_DERIVE_MAIN_KEY | HuksTagType.HUKS_TAG_TYPE_BYTES \| 16 | Main key for key derivation. | -| HUKS_TAG_DERIVE_FACTOR | HuksTagType.HUKS_TAG_TYPE_BYTES \| 17 | Factor for key derivation. | -| HUKS_TAG_DERIVE_ALG | HuksTagType.HUKS_TAG_TYPE_UINT \| 18 | Type of the algorithm used for key derivation. | -| HUKS_TAG_AGREE_ALG | HuksTagType.HUKS_TAG_TYPE_UINT \| 19 | Type of the algorithm used for key agreement. | -| HUKS_TAG_AGREE_PUBLIC_KEY_IS_KEY_ALIAS | HuksTagType.HUKS_TAG_TYPE_BOOL \| 20 | Public key alias used in key agreement. | -| HUKS_TAG_AGREE_PRIVATE_KEY_ALIAS | HuksTagType.HUKS_TAG_TYPE_BYTES \| 21 | Private key alias used in key agreement. | -| HUKS_TAG_AGREE_PUBLIC_KEY | HuksTagType.HUKS_TAG_TYPE_BYTES \| 22 | Public key used in key agreement. | -| HUKS_TAG_KEY_ALIAS | HuksTagType.HUKS_TAG_TYPE_BYTES \| 23 | Key alias. | -| HUKS_TAG_DERIVE_KEY_SIZE | HuksTagType.HUKS_TAG_TYPE_UINT \| 24 | Size of the derived key. | -| HUKS_TAG_IMPORT_KEY_TYPE9+ | HuksTagType.HUKS_TAG_TYPE_UINT \| 25 | Type of the imported key. | -| HUKS_TAG_UNWRAP_ALGORITHM_SUITE9+ | HuksTagType.HUKS_TAG_TYPE_UINT \| 26 | Algorithm suite required for encrypted imports. | -| HUKS_TAG_ACTIVE_DATETIME | HuksTagType.HUKS_TAG_TYPE_ULONG \| 201 | Reserved. | -| HUKS_TAG_ORIGINATION_EXPIRE_DATETIME | HuksTagType.HUKS_TAG_TYPE_ULONG \| 202 | Reserved. | -| HUKS_TAG_USAGE_EXPIRE_DATETIME | HuksTagType.HUKS_TAG_TYPE_ULONG \| 203 | Reserved. | -| HUKS_TAG_CREATION_DATETIME | HuksTagType.HUKS_TAG_TYPE_ULONG \| 204 | Reserved. | -| HUKS_TAG_ALL_USERS | HuksTagType.HUKS_TAG_TYPE_BOOL \| 301 | Reserved. | -| HUKS_TAG_USER_ID | HuksTagType.HUKS_TAG_TYPE_UINT \| 302 | Reserved. | -| HUKS_TAG_NO_AUTH_REQUIRED | HuksTagType.HUKS_TAG_TYPE_BOOL \| 303 | Reserved. | -| HUKS_TAG_USER_AUTH_TYPE | HuksTagType.HUKS_TAG_TYPE_UINT \| 304 | User authentication type. For details, see [HuksUserAuthType](#huksuserauthtype9). This parameter must be set together with [HuksAuthAccessType](#huksauthaccesstype9). You can set a maximum of two user authentication types at a time. For example, if **HuksAuthAccessType** is **HKS_SECURE_ACCESS_INVALID_NEW_BIO_ENROLL**, you can set two of **HKS_USER_AUTH_TYPE_FACE**, **HKS_USER_AUTH_TYPE_FINGERPRINT**, and **HKS_USER_AUTH_TYPE_FACE\**.| HKS_USER_AUTH_TYPE_FINGERPRINT | -| HUKS_TAG_AUTH_TIMEOUT | HuksTagType.HUKS_TAG_TYPE_UINT \| 305 | Reserved. | -| HUKS_TAG_AUTH_TOKEN | HuksTagType.HUKS_TAG_TYPE_BYTES \| 306 | Reserved. | -| HUKS_TAG_KEY_AUTH_ACCESS_TYPE9+ | HuksTagType.HUKS_TAG_TYPE_UINT \| 307 | Access control type. For details, see [HuksAuthAccessType](#huksauthaccesstype9). This parameter must be set together with [HuksUserAuthType](#huksuserauthtype9).| -| HUKS_TAG_KEY_SECURE_SIGN_TYPE9+ | HuksTagType.HUKS_TAG_TYPE_UINT \| 308 | Signature type of the key generated or imported.| -| HUKS_TAG_CHALLENGE_TYPE9+ | HuksTagType.HUKS_TAG_TYPE_UINT \| 309 | Type of the challenge generated for a key. For details, see [HuksChallengeType](#hukschallengetype9).| -| HUKS_TAG_CHALLENGE_POS9+ | HuksTagType.HUKS_TAG_TYPE_UINT \| 310 | Position of the 8-byte valid value in a custom challenge. For details, see [HuksChallengePosition](#hukschallengeposition9).| -| HUKS_TAG_ATTESTATION_CHALLENGE | HuksTagType.HUKS_TAG_TYPE_BYTES \| 501 | Challenge value used in the attestation. | -| HUKS_TAG_ATTESTATION_APPLICATION_ID | HuksTagType.HUKS_TAG_TYPE_BYTES \| 502 | Application ID used in the attestation. | -| HUKS_TAG_ATTESTATION_ID_BRAND | HuksTagType.HUKS_TAG_TYPE_BYTES \| 503 | Brand of the device. | -| HUKS_TAG_ATTESTATION_ID_DEVICE | HuksTagType.HUKS_TAG_TYPE_BYTES \| 504 | ID of the device. | -| HUKS_TAG_ATTESTATION_ID_PRODUCT | HuksTagType.HUKS_TAG_TYPE_BYTES \| 505 | Product name of the device. | -| HUKS_TAG_ATTESTATION_ID_SERIAL | HuksTagType.HUKS_TAG_TYPE_BYTES \| 506 | SN of the device. | -| HUKS_TAG_ATTESTATION_ID_IMEI | HuksTagType.HUKS_TAG_TYPE_BYTES \| 507 | International mobile equipment identity (IMEI) of the device. | -| HUKS_TAG_ATTESTATION_ID_MEID | HuksTagType.HUKS_TAG_TYPE_BYTES \| 508 | Mobile equipment identity (MEID) of the device. | -| HUKS_TAG_ATTESTATION_ID_MANUFACTURER | HuksTagType.HUKS_TAG_TYPE_BYTES \| 509 | Manufacturer of the device. | -| HUKS_TAG_ATTESTATION_ID_MODEL | HuksTagType.HUKS_TAG_TYPE_BYTES \| 510 | Device model. | -| HUKS_TAG_ATTESTATION_ID_ALIAS | HuksTagType.HUKS_TAG_TYPE_BYTES \| 511 | Key alias used in the attestation. | -| HUKS_TAG_ATTESTATION_ID_SOCID | HuksTagType.HUKS_TAG_TYPE_BYTES \| 512 | System-on-a-chip (SoCID) of the device. | -| HUKS_TAG_ATTESTATION_ID_UDID | HuksTagType.HUKS_TAG_TYPE_BYTES \| 513 | Unique device identifier (UDID) of the device. | -| HUKS_TAG_ATTESTATION_ID_SEC_LEVEL_INFO | HuksTagType.HUKS_TAG_TYPE_BYTES \| 514 | Security level used in the attestation. | -| HUKS_TAG_ATTESTATION_ID_VERSION_INFO | HuksTagType.HUKS_TAG_TYPE_BYTES \| 515 | Version information used in the attestation. | -| HUKS_TAG_IS_KEY_ALIAS | HuksTagType.HUKS_TAG_TYPE_BOOL \| 1001 | Whether to use the alias passed in during key generation.| -| HUKS_TAG_KEY_STORAGE_FLAG | HuksTagType.HUKS_TAG_TYPE_UINT \| 1002 | Key storage mode. | -| HUKS_TAG_IS_ALLOWED_WRAP | HuksTagType.HUKS_TAG_TYPE_BOOL \| 1003 | Reserved. | -| HUKS_TAG_KEY_WRAP_TYPE | HuksTagType.HUKS_TAG_TYPE_UINT \| 1004 | Reserved. | -| HUKS_TAG_KEY_AUTH_ID | HuksTagType.HUKS_TAG_TYPE_BYTES \| 1005 | Reserved. | -| HUKS_TAG_KEY_ROLE | HuksTagType.HUKS_TAG_TYPE_UINT \| 1006 | Reserved. | -| HUKS_TAG_KEY_FLAG | HuksTagType.HUKS_TAG_TYPE_UINT \| 1007 | Flag of the key. | -| HUKS_TAG_IS_ASYNCHRONIZED | HuksTagType.HUKS_TAG_TYPE_UINT \| 1008 | Reserved. | -| HUKS_TAG_SECURE_KEY_ALIAS | HuksTagType.HUKS_TAG_TYPE_BOOL \| 1009 | Reserved. | -| HUKS_TAG_SECURE_KEY_UUID | HuksTagType.HUKS_TAG_TYPE_BYTES \| 1010 | Reserved. | -| HUKS_TAG_KEY_DOMAIN | HuksTagType.HUKS_TAG_TYPE_UINT \| 1011 | Reserved. | -| HUKS_TAG_PROCESS_NAME | HuksTagType.HUKS_TAG_TYPE_BYTES \| 10001 | Process name. | -| HUKS_TAG_PACKAGE_NAME | HuksTagType.HUKS_TAG_TYPE_BYTES \| 10002 | Reserved. | -| HUKS_TAG_ACCESS_TIME | HuksTagType.HUKS_TAG_TYPE_UINT \| 10003 | Reserved. | -| HUKS_TAG_USES_TIME | HuksTagType.HUKS_TAG_TYPE_UINT \| 10004 | Reserved. | -| HUKS_TAG_CRYPTO_CTX | HuksTagType.HUKS_TAG_TYPE_ULONG \| 10005 | Reserved. | -| HUKS_TAG_KEY | HuksTagType.HUKS_TAG_TYPE_BYTES \| 10006 | Reserved. | -| HUKS_TAG_KEY_VERSION | HuksTagType.HUKS_TAG_TYPE_UINT \| 10007 | Key version. | -| HUKS_TAG_PAYLOAD_LEN | HuksTagType.HUKS_TAG_TYPE_UINT \| 10008 | Reserved. | -| HUKS_TAG_AE_TAG | HuksTagType.HUKS_TAG_TYPE_BYTES \| 10009 | Reserved. | -| HUKS_TAG_IS_KEY_HANDLE | HuksTagType.HUKS_TAG_TYPE_ULONG \| 10010 | Reserved. | -| HUKS_TAG_OS_VERSION | HuksTagType.HUKS_TAG_TYPE_UINT \| 10101 | OS version. | -| HUKS_TAG_OS_PATCHLEVEL | HuksTagType.HUKS_TAG_TYPE_UINT \| 10102 | OS patch level. | -| HUKS_TAG_SYMMETRIC_KEY_DATA | HuksTagType.HUKS_TAG_TYPE_BYTES \| 20001 | Reserved. | -| HUKS_TAG_ASYMMETRIC_PUBLIC_KEY_DATA | HuksTagType.HUKS_TAG_TYPE_BYTES \| 20002 | Reserved. | -| HUKS_TAG_ASYMMETRIC_PRIVATE_KEY_DATA | HuksTagType.HUKS_TAG_TYPE_BYTES \| 20003 | Reserved. | +| Name | Value | Description | +| -------------------------------------------- | ---------------------------------------- | ------------------------------------------------------------ | +| HUKS_TAG_INVALID | HuksTagType.HUKS_TAG_TYPE_INVALID \| 0 | Invalid tag. | +| HUKS_TAG_ALGORITHM | HuksTagType.HUKS_TAG_TYPE_UINT \| 1 | Algorithm. | +| HUKS_TAG_PURPOSE | HuksTagType.HUKS_TAG_TYPE_UINT \| 2 | Purpose of the key. | +| HUKS_TAG_KEY_SIZE | HuksTagType.HUKS_TAG_TYPE_UINT \| 3 | Key size. | +| HUKS_TAG_DIGEST | HuksTagType.HUKS_TAG_TYPE_UINT \| 4 | Digest algorithm. | +| HUKS_TAG_PADDING | HuksTagType.HUKS_TAG_TYPE_UINT \| 5 | Padding algorithm. | +| HUKS_TAG_BLOCK_MODE | HuksTagType.HUKS_TAG_TYPE_UINT \| 6 | Cipher mode. | +| HUKS_TAG_KEY_TYPE | HuksTagType.HUKS_TAG_TYPE_UINT \| 7 | Key type. | +| HUKS_TAG_ASSOCIATED_DATA | HuksTagType.HUKS_TAG_TYPE_BYTES \| 8 | Associated authentication data. | +| HUKS_TAG_NONCE | HuksTagType.HUKS_TAG_TYPE_BYTES \| 9 | Field for key encryption and decryption. | +| HUKS_TAG_IV | HuksTagType.HUKS_TAG_TYPE_BYTES \| 10 | IV. | +| HUKS_TAG_INFO | HuksTagType.HUKS_TAG_TYPE_BYTES \| 11 | Information generated during key derivation. | +| HUKS_TAG_SALT | HuksTagType.HUKS_TAG_TYPE_BYTES \| 12 | Salt value used for key derivation. | +| HUKS_TAG_PWD | HuksTagType.HUKS_TAG_TYPE_BYTES \| 13 | Password used for key derivation. | +| HUKS_TAG_ITERATION | HuksTagType.HUKS_TAG_TYPE_UINT \| 14 | Number of iterations for key derivation. | +| HUKS_TAG_KEY_GENERATE_TYPE | HuksTagType.HUKS_TAG_TYPE_UINT \| 15 | Key generation type. | +| HUKS_TAG_DERIVE_MAIN_KEY | HuksTagType.HUKS_TAG_TYPE_BYTES \| 16 | Main key for key derivation. | +| HUKS_TAG_DERIVE_FACTOR | HuksTagType.HUKS_TAG_TYPE_BYTES \| 17 | Factor for key derivation. | +| HUKS_TAG_DERIVE_ALG | HuksTagType.HUKS_TAG_TYPE_UINT \| 18 | Type of the algorithm used for key derivation. | +| HUKS_TAG_AGREE_ALG | HuksTagType.HUKS_TAG_TYPE_UINT \| 19 | Type of the algorithm used for key agreement. | +| HUKS_TAG_AGREE_PUBLIC_KEY_IS_KEY_ALIAS | HuksTagType.HUKS_TAG_TYPE_BOOL \| 20 | Public key alias used in key agreement. | +| HUKS_TAG_AGREE_PRIVATE_KEY_ALIAS | HuksTagType.HUKS_TAG_TYPE_BYTES \| 21 | Private key alias used in key agreement. | +| HUKS_TAG_AGREE_PUBLIC_KEY | HuksTagType.HUKS_TAG_TYPE_BYTES \| 22 | Public key used in key agreement. | +| HUKS_TAG_KEY_ALIAS | HuksTagType.HUKS_TAG_TYPE_BYTES \| 23 | Key alias. | +| HUKS_TAG_DERIVE_KEY_SIZE | HuksTagType.HUKS_TAG_TYPE_UINT \| 24 | Size of the derived key. | +| HUKS_TAG_IMPORT_KEY_TYPE9+ | HuksTagType.HUKS_TAG_TYPE_UINT \| 25 | Type of the imported key. | +| HUKS_TAG_UNWRAP_ALGORITHM_SUITE9+ | HuksTagType.HUKS_TAG_TYPE_UINT \| 26 | Algorithm suite required for encrypted imports. | +| HUKS_TAG_ACTIVE_DATETIME | HuksTagType.HUKS_TAG_TYPE_ULONG \| 201 | Reserved. | +| HUKS_TAG_ORIGINATION_EXPIRE_DATETIME | HuksTagType.HUKS_TAG_TYPE_ULONG \| 202 | Reserved. | +| HUKS_TAG_USAGE_EXPIRE_DATETIME | HuksTagType.HUKS_TAG_TYPE_ULONG \| 203 | Reserved. | +| HUKS_TAG_CREATION_DATETIME | HuksTagType.HUKS_TAG_TYPE_ULONG \| 204 | Reserved. | +| HUKS_TAG_ALL_USERS | HuksTagType.HUKS_TAG_TYPE_BOOL \| 301 | Reserved. | +| HUKS_TAG_USER_ID | HuksTagType.HUKS_TAG_TYPE_UINT \| 302 | Reserved. | +| HUKS_TAG_NO_AUTH_REQUIRED | HuksTagType.HUKS_TAG_TYPE_BOOL \| 303 | Reserved. | +| HUKS_TAG_USER_AUTH_TYPE | HuksTagType.HUKS_TAG_TYPE_UINT \| 304 | User authentication type. For details, see [HuksUserAuthType](#huksuserauthtype9). This parameter must be set together with [HuksAuthAccessType](#huksauthaccesstype9). You can set a maximum of two user authentication types at a time. For example, if **HuksAuthAccessType** is **HKS_SECURE_ACCESS_INVALID_NEW_BIO_ENROLL**, you can set two of **HKS_USER_AUTH_TYPE_FACE**, **HKS_USER_AUTH_TYPE_FINGERPRINT**, and **HKS_USER_AUTH_TYPE_FACE**. | +| HUKS_TAG_AUTH_TIMEOUT | HuksTagType.HUKS_TAG_TYPE_UINT \| 305 | Reserved. | +| HUKS_TAG_AUTH_TOKEN | HuksTagType.HUKS_TAG_TYPE_BYTES \| 306 | Reserved. | +| HUKS_TAG_KEY_AUTH_ACCESS_TYPE9+ | HuksTagType.HUKS_TAG_TYPE_UINT \| 307 | Access control type. For details, see [HuksAuthAccessType](#huksauthaccesstype9). This parameter must be set together with [HuksUserAuthType](#huksuserauthtype9). | +| HUKS_TAG_KEY_SECURE_SIGN_TYPE9+ | HuksTagType.HUKS_TAG_TYPE_UINT \| 308 | Signature type of the key generated or imported. | +| HUKS_TAG_CHALLENGE_TYPE9+ | HuksTagType.HUKS_TAG_TYPE_UINT \| 309 | Type of the challenge generated for a key. For details, see [HuksChallengeType](#hukschallengetype9). | +| HUKS_TAG_CHALLENGE_POS9+ | HuksTagType.HUKS_TAG_TYPE_UINT \| 310 | Position of the 8-byte valid value in a custom challenge. For details, see [HuksChallengePosition](#hukschallengeposition9). | +| HUKS_TAG_ATTESTATION_CHALLENGE | HuksTagType.HUKS_TAG_TYPE_BYTES \| 501 | Challenge value used in the attestation. | +| HUKS_TAG_ATTESTATION_APPLICATION_ID | HuksTagType.HUKS_TAG_TYPE_BYTES \| 502 | Application ID used in the attestation. | +| HUKS_TAG_ATTESTATION_ID_BRAND | HuksTagType.HUKS_TAG_TYPE_BYTES \| 503 | Brand of the device. | +| HUKS_TAG_ATTESTATION_ID_DEVICE | HuksTagType.HUKS_TAG_TYPE_BYTES \| 504 | ID of the device. | +| HUKS_TAG_ATTESTATION_ID_PRODUCT | HuksTagType.HUKS_TAG_TYPE_BYTES \| 505 | Product name of the device. | +| HUKS_TAG_ATTESTATION_ID_SERIAL | HuksTagType.HUKS_TAG_TYPE_BYTES \| 506 | SN of the device. | +| HUKS_TAG_ATTESTATION_ID_IMEI | HuksTagType.HUKS_TAG_TYPE_BYTES \| 507 | International mobile equipment identity (IMEI) of the device. | +| HUKS_TAG_ATTESTATION_ID_MEID | HuksTagType.HUKS_TAG_TYPE_BYTES \| 508 | Mobile equipment identity (MEID) of the device. | +| HUKS_TAG_ATTESTATION_ID_MANUFACTURER | HuksTagType.HUKS_TAG_TYPE_BYTES \| 509 | Manufacturer of the device. | +| HUKS_TAG_ATTESTATION_ID_MODEL | HuksTagType.HUKS_TAG_TYPE_BYTES \| 510 | Device model. | +| HUKS_TAG_ATTESTATION_ID_ALIAS | HuksTagType.HUKS_TAG_TYPE_BYTES \| 511 | Key alias used in the attestation. | +| HUKS_TAG_ATTESTATION_ID_SOCID | HuksTagType.HUKS_TAG_TYPE_BYTES \| 512 | System-on-a-chip (SoCID) of the device. | +| HUKS_TAG_ATTESTATION_ID_UDID | HuksTagType.HUKS_TAG_TYPE_BYTES \| 513 | Unique device identifier (UDID) of the device. | +| HUKS_TAG_ATTESTATION_ID_SEC_LEVEL_INFO | HuksTagType.HUKS_TAG_TYPE_BYTES \| 514 | Security level used in the attestation. | +| HUKS_TAG_ATTESTATION_ID_VERSION_INFO | HuksTagType.HUKS_TAG_TYPE_BYTES \| 515 | Version information used in the attestation. | +| HUKS_TAG_IS_KEY_ALIAS | HuksTagType.HUKS_TAG_TYPE_BOOL \| 1001 | Whether to use the alias passed in during key generation. | +| HUKS_TAG_KEY_STORAGE_FLAG | HuksTagType.HUKS_TAG_TYPE_UINT \| 1002 | Key storage mode. | +| HUKS_TAG_IS_ALLOWED_WRAP | HuksTagType.HUKS_TAG_TYPE_BOOL \| 1003 | Reserved. | +| HUKS_TAG_KEY_WRAP_TYPE | HuksTagType.HUKS_TAG_TYPE_UINT \| 1004 | Reserved. | +| HUKS_TAG_KEY_AUTH_ID | HuksTagType.HUKS_TAG_TYPE_BYTES \| 1005 | Reserved. | +| HUKS_TAG_KEY_ROLE | HuksTagType.HUKS_TAG_TYPE_UINT \| 1006 | Reserved. | +| HUKS_TAG_KEY_FLAG | HuksTagType.HUKS_TAG_TYPE_UINT \| 1007 | Flag of the key. | +| HUKS_TAG_IS_ASYNCHRONIZED | HuksTagType.HUKS_TAG_TYPE_UINT \| 1008 | Reserved. | +| HUKS_TAG_SECURE_KEY_ALIAS | HuksTagType.HUKS_TAG_TYPE_BOOL \| 1009 | Reserved. | +| HUKS_TAG_SECURE_KEY_UUID | HuksTagType.HUKS_TAG_TYPE_BYTES \| 1010 | Reserved. | +| HUKS_TAG_KEY_DOMAIN | HuksTagType.HUKS_TAG_TYPE_UINT \| 1011 | Reserved. | +| HUKS_TAG_PROCESS_NAME | HuksTagType.HUKS_TAG_TYPE_BYTES \| 10001 | Process name. | +| HUKS_TAG_PACKAGE_NAME | HuksTagType.HUKS_TAG_TYPE_BYTES \| 10002 | Reserved. | +| HUKS_TAG_ACCESS_TIME | HuksTagType.HUKS_TAG_TYPE_UINT \| 10003 | Reserved. | +| HUKS_TAG_USES_TIME | HuksTagType.HUKS_TAG_TYPE_UINT \| 10004 | Reserved. | +| HUKS_TAG_CRYPTO_CTX | HuksTagType.HUKS_TAG_TYPE_ULONG \| 10005 | Reserved. | +| HUKS_TAG_KEY | HuksTagType.HUKS_TAG_TYPE_BYTES \| 10006 | Reserved. | +| HUKS_TAG_KEY_VERSION | HuksTagType.HUKS_TAG_TYPE_UINT \| 10007 | Key version. | +| HUKS_TAG_PAYLOAD_LEN | HuksTagType.HUKS_TAG_TYPE_UINT \| 10008 | Reserved. | +| HUKS_TAG_AE_TAG | HuksTagType.HUKS_TAG_TYPE_BYTES \| 10009 | Reserved. | +| HUKS_TAG_IS_KEY_HANDLE | HuksTagType.HUKS_TAG_TYPE_ULONG \| 10010 | Reserved. | +| HUKS_TAG_OS_VERSION | HuksTagType.HUKS_TAG_TYPE_UINT \| 10101 | OS version. | +| HUKS_TAG_OS_PATCHLEVEL | HuksTagType.HUKS_TAG_TYPE_UINT \| 10102 | OS patch level. | +| HUKS_TAG_SYMMETRIC_KEY_DATA | HuksTagType.HUKS_TAG_TYPE_BYTES \| 20001 | Reserved. | +| HUKS_TAG_ASYMMETRIC_PUBLIC_KEY_DATA | HuksTagType.HUKS_TAG_TYPE_BYTES \| 20002 | Reserved. | +| HUKS_TAG_ASYMMETRIC_PRIVATE_KEY_DATA | HuksTagType.HUKS_TAG_TYPE_BYTES \| 20003 | Reserved. | ## huks.generateKey(deprecated) @@ -2285,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](#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.| +| 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** @@ -2411,7 +2411,7 @@ Checks whether a key exists. This API uses an asynchronous callback to return th | -------- | ---------------------- | ---- | ------------------------------------- | | keyAlias | string | Yes | Alias of the key to check.| | options | [HuksOptions](#huksoptions) | Yes | Empty object (leave this parameter empty).| -| callback | AsyncCallback\ | Yes | Callback invoked to return the result. **TRUE** means that the key exists; **FALSE** means the opposite.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the result. The value **TRUE** means that the key exists; **FALSE** means the opposite.| **Example** @@ -2473,8 +2473,8 @@ Initializes the data for a key operation. This API uses an asynchronous callback | Name | Type | Mandatory| Description | | -------- | ---------------------- | ---- | ------------------------------------- | | keyAlias | string | Yes | Alias of the target key.| -| options | [HuksOptions](#huksoptions) | Yes | Parameters used for initialization.| -| callback | AsyncCallback\<[HuksHandle](#hukshandledeprecated)> | Yes | Callback invoked to return the handle obtained through the initialization operation.| +| options | [HuksOptions](#huksoptions) | Yes | Parameter set used for the **init** operation.| +| callback | AsyncCallback\<[HuksHandle](#hukshandledeprecated)> | Yes | Callback invoked to return a session handle for subsequent operations.| ## huks.init(deprecated) @@ -2491,13 +2491,13 @@ Initializes the data for a key operation. This API uses a promise to return the | Name | Type | Mandatory| Description | | -------- | ---------------------- | ---- | ------------------------------------- | | keyAlias | string | Yes | Alias of the target key.| -| options | [HuksOptions](#huksoptions) | Yes | Parameters used for initialization.| +| options | [HuksOptions](#huksoptions) | Yes | Parameter set used for the **init** operation.| **Return value** | Type | Description | | ----------------------------------- | -------------------------------------------------- | -| Promise\<[HuksHandle](#hukshandledeprecated)> | Promise used to return the handle obtained through the initialization operation.| +| Promise\<[HuksHandle](#hukshandledeprecated)> | Promise used to return a session handle for subsequent operations.| ## huks.update(deprecated) @@ -2513,10 +2513,10 @@ Updates the key operation by segment. This API uses an asynchronous callback to | Name | Type | Mandatory| Description | | -------- | ----------------------------------------- | ---- | -------------------------------------------- | -| 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](#huksresultdeprecated)> | Yes | Callback invoked to return the result.| +| handle | number | Yes | Handle for the **update** operation. | +| token | Uint8Array | No | Token of the **update** operation. | +| options | [HuksOptions](#huksoptions) | Yes | Parameter set used for the **update** operation. | +| callback | AsyncCallback\<[HuksResult](#huksresultdeprecated)> | Yes | Callback invoked to return the **update** operation result. | ## huks.update(deprecated) @@ -2532,15 +2532,15 @@ Updates the key operation by segment. This API uses a promise to return the resu | Name | Type | Mandatory| Description | | ------- | ----------------------------------- | ---- | -------------------------------------------- | -| 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. | +| handle | number | Yes | Handle for the **update** operation. | +| token | Uint8Array | No | Token of the **update** operation. | +| options | [HuksOptions](#huksoptions) | Yes | Parameter set used for the **update** operation. | **Return value** | Type | Description | | ----------------------------------- | -------------------------------------------------- | -| Promise\<[HuksResult](#huksresultdeprecated)> | Promise used to return the result.| +| Promise\<[HuksResult](#huksresultdeprecated)> | Promise used to return the **update** operation result. | ## huks.finish(deprecated) @@ -2556,9 +2556,9 @@ Completes the key operation and releases resources. This API uses an asynchronou | Name | Type | Mandatory| Description | | -------- | ---------------------- | ---- | ------------------------------------- | -| handle | number | Yes | Handle of the **Finish** operation.| -| options | [HuksOptions](#huksoptions) | Yes | Parameters of the **Finish** operation.| -| callback | AsyncCallback\<[HuksResult](#huksresultdeprecated)> | Yes| Callback invoked to return the result.| +| handle | number | Yes | Handle for the **finish** operation.| +| options | [HuksOptions](#huksoptions) | Yes | Parameter set used for the **finish** operation.| +| callback | AsyncCallback\<[HuksResult](#huksresultdeprecated)> | Yes| Callback invoked to return the **finish** operation result.| ## huks.finish(deprecated) @@ -2574,8 +2574,8 @@ Completes the key operation and releases resources. This API uses a promise to r | Name | Type | Mandatory| Description | | -------- | ---------------------- | ---- | ------------------------------------- | -| handle | number | Yes | Handle of the **Finish** operation.| -| options | [HuksOptions](#huksoptions) | Yes | Parameters of the **Finish** operation.| +| handle | number | Yes | Handle for the **finish** operation.| +| options | [HuksOptions](#huksoptions) | Yes | Parameter set used for the **finish** operation.| **Return value** @@ -2597,9 +2597,9 @@ Aborts the use of the key. This API uses an asynchronous callback to return the | Name | Type | Mandatory| Description | | -------- | ---------------------- | ---- | ------------------------------------- | -| handle | number | Yes | Handle of the **Abort** operation.| -| options | [HuksOptions](#huksoptions) | Yes | Parameters of the **Abort** operation.| -| callback | AsyncCallback\<[HuksResult](#huksresultdeprecated)> | Yes| Callback invoked to return the result.| +| handle | number | Yes | Handle for the **abort** operation.| +| options | [HuksOptions](#huksoptions) | Yes | Parameter set used for the **abort** operation.| +| callback | AsyncCallback\<[HuksResult](#huksresultdeprecated)> | Yes| Callback invoked to return the **abort** operation result. | **Example** @@ -2607,7 +2607,7 @@ Aborts the use of the key. This API uses an asynchronous callback to return the /* huks.init, huks.update, and huks.finish must be used together. * If an error occurs in any of them, huks.abort must be called to terminate the use of the key. * - * The following uses the callback of an RSA 1024-bit key as an example. + * The following uses the callback of an RSA 1024 key as an example. */ let keyalias = "HuksDemoRSA"; let properties = new Array(); @@ -2708,14 +2708,14 @@ Aborts the use of the key. This API uses a promise to return the result. | Name | Type | Mandatory| Description | | -------- | ---------------------- | ---- | ------------------------------------- | -| handle | number | Yes | Handle of the **Abort** operation.| -| options | [HuksOptions](#huksoptions) | Yes | Parameters of the **Abort** operation.| +| handle | number | Yes | Handle for the **abort** operation.| +| options | [HuksOptions](#huksoptions) | Yes | Parameter set used for the **abort** operation.| **Return value** | Type | Description | | ----------------------------------- | -------------------------------------------------- | -| Promise\<[HuksResult](#huksresultdeprecated)> | Promise used to return the result.| +| Promise\<[HuksResult](#huksresultdeprecated)> | Promise used to return the **abort** operation result.| **Example** diff --git a/en/application-dev/reference/apis/js-apis-net-connection.md b/en/application-dev/reference/apis/js-apis-net-connection.md index adb1c8ee47ae8dc076f5b2c2f00b2c2ca92a2cd5..f5c48ddd07342118d752a82a00972aec398685ea 100644 --- a/en/application-dev/reference/apis/js-apis-net-connection.md +++ b/en/application-dev/reference/apis/js-apis-net-connection.md @@ -294,8 +294,8 @@ let httpProxy = { port: 8080, exclusionList: exclusionArray } -connection.setGlobalHttpProxy(httpProxy).then((error, data) => { - console.info(JSON.stringify(data)); +connection.setGlobalHttpProxy(httpProxy).then(() => { + console.info("success"); }).catch(error=>{ console.info(JSON.stringify(error)); }) @@ -436,8 +436,8 @@ Binds an application to the specified network, so that the application can acces ```js connection.getDefaultNet().then(function (netHandle) { - connection.setAppNet(netHandle).then((error, data) => { - console.log(JSON.stringify(data)) + connection.setAppNet(netHandle).then(() => { + console.log("success") }).catch(error => { console.log(JSON.stringify(error)) }) @@ -1097,7 +1097,7 @@ getAddressesByName(host: string, callback: AsyncCallback\>): Resolves the host name by using the default network to obtain all IP addresses. This API uses an asynchronous callback to return the result. -**Required permission**: ohos.permission.GET_NETWORK_INFO +**Required permissions**: ohos.permission.INTERNET **System capability**: SystemCapability.Communication.NetManager.Core @@ -1134,7 +1134,7 @@ getAddressesByName(host: string): Promise\> Resolves the host name by using the default network to obtain all IP addresses. This API uses a promise to return the result. -**Required permission**: ohos.permission.GET_NETWORK_INFO +**Required permissions**: ohos.permission.INTERNET **System capability**: SystemCapability.Communication.NetManager.Core @@ -1639,7 +1639,7 @@ getAddressesByName(host: string, callback: AsyncCallback\>): Resolves the host name by using the corresponding network to obtain all IP addresses. This API uses an asynchronous callback to return the result. -**Required permission**: ohos.permission.GET_NETWORK_INFO +**Required permissions**: ohos.permission.INTERNET **System capability**: SystemCapability.Communication.NetManager.Core @@ -1678,7 +1678,7 @@ getAddressesByName(host: string): Promise\> Resolves the host name by using the corresponding network to obtain all IP addresses. This API uses a promise to return the result. -**Required permission**: ohos.permission.GET_NETWORK_INFO +**Required permissions**: ohos.permission.INTERNET **System capability**: SystemCapability.Communication.NetManager.Core @@ -1721,7 +1721,7 @@ getAddressByName(host: string, callback: AsyncCallback\): void Resolves the host name by using the corresponding network to obtain the first IP address. This API uses an asynchronous callback to return the result. -**Required permission**: ohos.permission.GET_NETWORK_INFO +**Required permissions**: ohos.permission.INTERNET **System capability**: SystemCapability.Communication.NetManager.Core @@ -1760,7 +1760,7 @@ getAddressByName(host: string): Promise\ Resolves the host name by using the corresponding network to obtain the first IP address. This API uses a promise to return the result. -**Required permission**: ohos.permission.GET_NETWORK_INFO +**Required permissions**: ohos.permission.INTERNET **System capability**: SystemCapability.Communication.NetManager.Core diff --git a/en/application-dev/reference/apis/js-apis-observer.md b/en/application-dev/reference/apis/js-apis-observer.md index 3c46e47479de6cacc6a0a2613f0aa422aad9aff8..b0e30e22190f5242d16e4be0b815bcf4c4109f30 100644 --- a/en/application-dev/reference/apis/js-apis-observer.md +++ b/en/application-dev/reference/apis/js-apis-observer.md @@ -25,13 +25,15 @@ Registers an observer for network status change events. This API uses an asynchr **Parameters** -| Name | Type | Mandatory| Description | -| -------- | --------------------------------------------------------- | ---- | ------------------------------------------------------------ | -| type | string | Yes | Network status change event. | +| Name | Type | Mandatory| Description | +| -------- | --------------------------------------------------------- | ---- | ---------------------------------------------------------------- | +| type | string | Yes | Network status change event. This field has a fixed value of **networkStateChange**. | | callback | Callback\<[NetworkState](js-apis-radio.md#networkstate)\> | Yes | Callback used to return the result. For details, see [NetworkState](js-apis-radio.md#networkstate).| **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -62,14 +64,16 @@ Registers an observer for network status change events of the SIM card in the sp **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ------ | ---- | -------------------------------------- | -| type | string | Yes | Network status change event. | -| slotId | number | Yes | Card slot ID.
- **0**: card slot 1
- **1**: card slot 2| +| Name | Type | Mandatory| Description | +| -------- | --------------------------------------------------------- | ---- | ---------------------------------------------------------------- | +| type | string | Yes | Network status change event. This field has a fixed value of **networkStateChange**. | +| slotId | number | Yes | Card slot ID.
- **0**: card slot 1
- **1**: card slot 2 | | callback | Callback\<[NetworkState](js-apis-radio.md#networkstate)\> | Yes | Callback used to return the result. For details, see [NetworkState](js-apis-radio.md#networkstate).| **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -104,7 +108,7 @@ Unregisters the observer for network status change events. This API uses an asyn | Name | Type | Mandatory| Description | | -------- | --------------------------------------------------------- | ---- | ------------------------------------------------------------ | -| type | string | Yes | Network status change event. | +| type | string | Yes | Network status change event. This field has a fixed value of **networkStateChange**. | | callback | Callback\<[NetworkState](js-apis-radio.md#networkstate)\> | No | Callback used to return the result. For details, see [NetworkState](js-apis-radio.md#networkstate).| | ID| Error Message | @@ -138,12 +142,14 @@ Registers an observer for signal status change events. This API uses an asynchro **Parameters** | Name | Type | Mandatory| Description | -| -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| type | string | Yes | Signal information change event. | +| -------- | ------------------------------------------------------------ | ---- | ----------------------------------------------------------- | +| type | string | Yes | Signal status change event. This field has a fixed value of **signalInfoChange**. | | callback | Callback\> | Yes | Callback used to return the result. For details, see [SignalInformation](js-apis-radio.md#signalinformation).| **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -172,14 +178,16 @@ Registers an observer for signal status change events of the SIM card in the spe **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ------ | ---- | -------------------------------------- | -| type | string | Yes | Signal information change event. | -| slotId | number | Yes | Card slot ID.
- **0**: card slot 1
- **1**: card slot 2| +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------------------------------ | ---- | ----------------------------------------------------------- | +| type | string | Yes | Signal status change event. This field has a fixed value of **signalInfoChange**. | +| slotId | number | Yes | Card slot ID.
- **0**: card slot 1
- **1**: card slot 2 | | callback | Callback\> | Yes | Callback used to return the result. For details, see [SignalInformation](js-apis-radio.md#signalinformation).| **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -214,11 +222,13 @@ Unregisters the observer for signal status change events. This API uses an async | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| type | string | Yes | Signal information change event. | +| type | string | Yes | Signal status change event. This field has a fixed value of **signalInfoChange**. | | callback | Callback\> | No | Callback used to return the result. For details, see [SignalInformation](js-apis-radio.md#signalinformation).| **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -255,7 +265,7 @@ Registers an observer for cell information change events. This API uses an async | Name | Type | Mandatory| Description | | -------- | --------------------------------------------------------- | ---- |------------------------------------------------------------| -| type | string | Yes | Cell information change event. This field has a fixed value of **cellInfoChange**. | +| type | string | Yes | Cell information change event. This field has a fixed value of **cellInfoChange**. | | callback | Callback\<[CellInformation](js-apis-radio.md#cellinformation8)\> | Yes | Callback used to return the result.| **Error codes** @@ -370,12 +380,14 @@ Registers an observer for call status change events. This API uses an asynchrono **Parameters** | Name | Type | Mandatory| Description | -| -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| type | string | Yes | Call status change event. | +| -------- | ------------------------------------------------------------ | ---- | ----------------------------------------------------------- | +| type | string | Yes | Call status change event. This field has a fixed value of **callStateChange**. | | callback | Callback\<{ state: [CallState](js-apis-call.md#callstate), number: string }\> | Yes | Callback function. For details, see [CallState](js-apis-call.md#callstate) in call.
**number**: phone number.| **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -404,13 +416,15 @@ Registers an observer for call status change events. This API uses an asynchrono **Parameters** | Name | Type | Mandatory| Description | -| -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| type | string | Yes | Call status change event. | +| -------- | ------------------------------------------------------------ | ---- | ----------------------------------------------------------- | +| type | string | Yes | Call status change event. This field has a fixed value of **callStateChange**. | | slotId | number | Yes | Card slot ID.
- **0**: card slot 1
- **1**: card slot 2 | | callback | Callback\<{ state: [CallState](js-apis-call.md#callstate), number: string }\> | Yes | Callback function. For details, see [CallState](js-apis-call.md#callstate) in call.
**number**: phone number.| **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -443,12 +457,14 @@ Unregisters the observer for call status change events. This API uses an asynchr **Parameters** | Name | Type | Mandatory| Description | -| -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| type | string | Yes | Call status change event. | +| -------- | ------------------------------------------------------------ | ---- | ----------------------------------------------------------- | +| type | string | Yes | Call status change event. This field has a fixed value of **callStateChange**. | | callback | Callback\<{ state: [CallState](js-apis-call.md#callstate), number: string }\> | No | Callback function. For details, see [CallState](js-apis-call.md#callstate) in call.
**number**: phone number.| **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -482,11 +498,13 @@ Registers an observer for connection status change events of the cellular data l | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| type | string | Yes | Connection status change event of the cellular data link. | +| type | string | Yes | Cellular data connection status event. This field has a fixed value of **cellularDataConnectionStateChange**.| | callback | Callback\<{ state: [DataConnectState](js-apis-telephony-data.md#dataconnectstate), network: [RatType](js-apis-radio.md#radiotechnology) }\> | Yes | Callback used to return the result. For details, see [DataConnectState](js-apis-telephony-data.md#dataconnectstate) and [RadioTechnology](js-apis-radio.md#radiotechnology).| **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -516,12 +534,14 @@ Registers an observer for connection status change events of the cellular data l | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| type | string | Yes | Connection status change event of the cellular data link. | +| type | string | Yes | Cellular data connection status event. This field has a fixed value of **cellularDataConnectionStateChange**.| | slotId | number | Yes | Card slot ID.
- **0**: card slot 1
- **1**: card slot 2 | | callback | Callback\<{ state: [DataConnectState](js-apis-telephony-data.md#dataconnectstate), network: [RatType](js-apis-radio.md#radiotechnology) }\> | Yes | Callback used to return the result. For details, see [DataConnectState](js-apis-telephony-data.md#dataconnectstate) and [RadioTechnology](js-apis-radio.md#radiotechnology).| **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -555,11 +575,13 @@ Unregisters the observer for connection status change events of the cellular dat | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| type | string | Yes | Connection status change event of the cellular data link. | +| type | string | Yes | Cellular data connection status event. This field has a fixed value of **cellularDataConnectionStateChange**.| | callback | Callback\<{ state: [DataConnectState](js-apis-telephony-data.md#dataconnectstate), network: [RatType](js-apis-radio.md#radiotechnology) }\> | No | Callback used to return the result. For details, see [DataConnectState](js-apis-telephony-data.md#dataconnectstate) and [RadioTechnology](js-apis-radio.md#radiotechnology).| **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -593,11 +615,13 @@ Registers an observer for the uplink and downlink data flow status change events | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| type | string | Yes | Uplink and downlink data flow status change event of the cellular data service. | +| type | string | Yes | Cellular data flow change event. This field has a fixed value of **cellularDataFlowChange**. | | callback | Callback\<[DataFlowType](js-apis-telephony-data.md#dataflowtype)\> | Yes | Callback used to return the result. For details, see [DataFlowType](js-apis-telephony-data.md#dataflowtype).| **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -627,12 +651,14 @@ Registers an observer for the uplink and downlink data flow status change events | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| type | string | Yes | Uplink and downlink data flow status change event of the cellular data service. | -| slotId | number | Yes | Card slot ID.
- **0**: card slot 1
- **1**: card slot 2 | +| type | string | Yes | Cellular data flow change event. This field has a fixed value of **cellularDataFlowChange**. | +| slotId | number | Yes | Card slot ID.
- **0**: card slot 1
- **1**: card slot 2 | | callback | Callback\<[DataFlowType](js-apis-telephony-data.md#dataflowtype)\> | Yes | Callback used to return the result. For details, see [DataFlowType](js-apis-telephony-data.md#dataflowtype).| **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -664,13 +690,15 @@ Unregisters the observer for the uplink and downlink data flow status change eve **Parameters** -| Name | Type | Mandatory| Description | -| -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| type | string | Yes | Uplink and downlink data flow status change event of the cellular data service. | +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------------------------------------ | ---- | ------------------------------------------------------------ | +| type | string | Yes | Cellular data flow change event. This field has a fixed value of **cellularDataFlowChange**. | | callback | Callback\<[DataFlowType](js-apis-telephony-data.md#dataflowtype)\> | No | Callback used to return the result. For details, see [DataFlowType](js-apis-telephony-data.md#dataflowtype).| **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -703,12 +731,14 @@ Registers an observer for SIM card status change events. This API uses an asynch **Parameters** | Name | Type | Mandatory| Description | -| -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| type | string | Yes | SIM card status change event. | +| -------- | ------------------------------------------------------------ | ---- | ----------------------------------------------------------- | +| type | string | Yes | SIM status change event. This field has a fixed value of **simStateChange**. | | callback | Callback\<[SimStateData](#simstatedata7)\> | Yes | Callback used to return the result.| **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -738,12 +768,14 @@ Registers an observer for status change events of the SIM card in the specified | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| type | string | Yes | SIM card status change event. | +| type | string | Yes | SIM status change event. This field has a fixed value of **simStateChange**. | | slotId | number | Yes | Card slot ID.
- **0**: card slot 1
- **1**: card slot 2 | | callback | Callback\<[SimStateData](#simstatedata7)\> | Yes | Callback used to return the result.| **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -777,11 +809,13 @@ Unregisters the observer for SIM card status change events. This API uses an asy | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| type | string | Yes | SIM card status change event. | +| type | string | Yes | SIM status change event. This field has a fixed value of **simStateChange**. | | callback | Callback\<[SimStateData](#simstatedata7)\> | No | Callback used to return the result.| **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | diff --git a/en/application-dev/reference/apis/js-apis-osAccount.md b/en/application-dev/reference/apis/js-apis-osAccount.md index 692e834592970b9a7bdf92dc84a291c0fd2135a1..750977a24244be831048e8055b39fc1daf0219c7 100644 --- a/en/application-dev/reference/apis/js-apis-osAccount.md +++ b/en/application-dev/reference/apis/js-apis-osAccount.md @@ -326,9 +326,9 @@ Checks whether the specified constraint is enabled for an OS account. This API u | ID| Error Message | | -------- | ------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid localId or constraint. | -| 12300003 | the account indicated by localId dose not exist. | +| 12300001 | System service exception. | +| 12300002 | Invalid localId or constraint. | +| 12300003 | Account not found. | **Example**: Check whether OS account 100 is forbidden to use Wi-Fi. @@ -376,9 +376,9 @@ Checks whether the specified constraint is enabled for an OS account. This API u | ID| Error Message | | -------- | ------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid localId or constraint. | -| 12300003 | the account indicated by localId dose not exist. | +| 12300001 | System service exception. | +| 12300002 | Invalid localId or constraint. | +| 12300003 | Account not found. | **Example**: Check whether OS account 100 is forbidden to use Wi-Fi. @@ -487,7 +487,7 @@ Checks whether this OS account has been verified. This API uses an asynchronous | ID| Error Message | | -------- | ------------------- | -| 12300001 | system service exception. | +| 12300001 | System service exception. | **Example** @@ -527,9 +527,9 @@ Checks whether an OS account has been verified. This API uses an asynchronous ca | ID| Error Message | | -------- | ------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid localId. | -| 12300003 | the account indicated by localId dose not exist. | +| 12300001 | System service exception. | +| 12300002 | Invalid localId. | +| 12300003 | Account not found. | **Example** @@ -575,9 +575,9 @@ Checks whether an OS account has been verified. This API uses a promise to retur | ID| Error Message | | -------- | ------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid localId. | -| 12300003 | the account indicated by localId dose not exist. | +| 12300001 | System service exception. | +| 12300002 | Invalid localId. | +| 12300003 | Account not found. | **Example** @@ -720,7 +720,7 @@ Sets or removes constraints for an OS account. This API uses an asynchronous cal | ID| Error Message | | -------- | ------------------- | | 12300001 | System service exception. | -| 12300002 | Invalid localId. | +| 12300002 | Invalid localId or constraints. | | 12300003 | Account not found. | | 12300008 | Restricted Account. | @@ -774,7 +774,7 @@ Sets or removes constraints for an OS account. This API uses a promise to return | ID| Error Message | | -------- | ------------------- | | 12300001 | System service exception. | -| 12300002 | Invalid localId. | +| 12300002 | Invalid localId or constraints. | | 12300003 | Account not found. | | 12300008 | Restricted Account. | @@ -987,7 +987,7 @@ Obtains the ID of the OS account to which the current process belongs. This API | ID| Error Message | | -------- | ------------------- | -| 12300001 | system service exception. | +| 12300001 | System service exception. | **Example** @@ -1024,7 +1024,7 @@ Obtains the ID of the OS account to which the current process belongs. This API | ID| Error Message | | -------- | ------------------- | -| 12300001 | system service exception. | +| 12300001 | System service exception. | **Example** @@ -1060,8 +1060,8 @@ Obtains the OS account ID based on the process UID. This API uses an asynchronou | ID| Error Message | | -------- | --------------- | -| 12300001 | system service exception. | -| 12300002 | invalid uid. | +| 12300001 | System service exception. | +| 12300002 | Invalid uid. | **Example**: Obtain the ID of the OS account whose process UID is **12345678**. @@ -1104,8 +1104,8 @@ Obtains the OS account ID based on the process UID. This API uses a promise to r | ID| Error Message | | -------- | ------------- | -| 12300001 | system service exception. | -| 12300002 | invalid uid. | +| 12300001 | System service exception. | +| 12300002 | Invalid uid. | **Example**: Obtain the ID of the OS account whose process UID is **12345678**. @@ -1144,8 +1144,8 @@ Obtains the OS account ID based on the domain account information. This API uses | ID| Error Message | | -------- | ------------- | -| 12300001 | system service exception. | -| 12300002 | invalid domainInfo. | +| 12300001 | System service exception. | +| 12300002 | Invalid domainInfo. | **Example** @@ -1191,8 +1191,8 @@ Obtains the OS account ID based on the domain account information. This API uses | ID| Error Message | | -------- | ------------- | -| 12300001 | system service exception. | -| 12300002 | invalid domainInfo. | +| 12300001 | System service exception. | +| 12300002 | Invalid domainInfo. | **Example** @@ -1470,7 +1470,7 @@ Obtains information about all activated OS accounts. This API uses an asynchrono | ID| Error Message | | -------- | ------------- | -| 12300001 | system service exception. | +| 12300001 | System service exception. | **Example** @@ -1507,7 +1507,7 @@ Obtains information about all activated OS accounts. This API uses a promise to | ID| Error Message | | -------- | ------------- | -| 12300001 | system service exception. | +| 12300001 | System service exception. | **Example** @@ -1858,7 +1858,7 @@ Obtains information about the OS account of the given ID. This API uses a promis | ID| Error Message | | -------- | ------------------- | | 12300001 | System service exception. | -| 12300002 | Invalid localId. | +| 12300002 | Invalid localId. | | 12300003 | Account not found. | **Example**: Query information about OS account 100. @@ -2229,9 +2229,9 @@ Obtains the OS account ID based on the serial number (SN). This API uses an asyn | ID| Error Message | | -------- | ------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid serialNumber. | -| 12300003 | the account indicated by serialNumber dose not exist. | +| 12300001 | System service exception. | +| 12300002 | Invalid serialNumber. | +| 12300003 | The account indicated by serialNumber dose not exist. | **Example**: Obtain the ID of the OS account whose SN is 12345. @@ -2272,9 +2272,9 @@ Obtains the OS account ID based on the SN. This API uses a promise to return the | ID| Error Message | | -------- | ------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid serialNumber. | -| 12300003 | the account indicated by serialNumber dose not exist. | +| 12300001 | System service exception. | +| 12300002 | Invalid serialNumber. | +| 12300003 | The account indicated by serialNumber dose not exist. | **Example**: Obtain the ID of the OS account whose SN is 12345. @@ -2311,9 +2311,9 @@ Obtains the SN of an OS account based on the account ID. This API uses an asynch | ID| Error Message | | -------- | ------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid localId. | -| 12300003 | the account indicated by localId dose not exist. | +| 12300001 | System service exception. | +| 12300002 | Invalid localId. | +| 12300003 | Account not found. | **Example**: Obtain the SN of the OS account 100. @@ -2354,9 +2354,9 @@ Obtains the SN of an OS account based on the account ID. This API uses a promise | ID| Error Message | | -------- | ------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid localId. | -| 12300003 | the account indicated by localId dose not exist. | +| 12300001 | System service exception. | +| 12300002 | Invalid localId. | +| 12300003 | Account not found. | **Example**: Obtain the SN of the OS account 100. @@ -2400,7 +2400,6 @@ Subscribes to the OS account activation states, including the states of the acco | -------- | ------------- | | 12300001 | System service exception. | | 12300002 | Invalid type or name. | -| 12300011 | Callback has been registered. | **Example** @@ -2442,7 +2441,6 @@ Unsubscribes from the OS account activation states, including the states of the | -------- | ------------- | | 12300001 | System service exception. | | 12300002 | Invalid type or name. | -| 12300012 | Callback has not been registered. | **Example** @@ -2479,8 +2477,8 @@ Obtains the bundle ID based on the UID. This API uses an asynchronous callback t | ID| Error Message | | -------- | ------------- | -| 12300001 | system service exception. | -| 12300002 | invalid uid. | +| 12300001 | System service exception. | +| 12300002 | Invalid uid. | **Example** @@ -2522,8 +2520,8 @@ Obtains the bundle ID based on the UID. This API uses a promise to return the re | ID| Error Message | | -------- | ------------- | -| 12300001 | system service exception. | -| 12300002 | invalid uid. | +| 12300001 | System service exception. | +| 12300002 | Invalid uid. | **Example** @@ -2640,9 +2638,9 @@ Obtains the constraint source information of an OS account. This API uses an asy | ID| Error Message | | -------- | ------------- | -| 12300001 | system service exception. | -| 12300002 | invalid name or constraint. | -| 12300003 | the account indicated by localId dose not exist. | +| 12300001 | System service exception. | +| 12300002 | Invalid name or constraint. | +| 12300003 | Account not found. | **Example** @@ -2687,9 +2685,9 @@ Obtains the constraint source information of an OS account. This API uses a prom | ID| Error Message | | -------- | ------------- | -| 12300001 | system service exception. | -| 12300002 | invalid name or constraint. | -| 12300003 | the account indicated by localId dose not exist. | +| 12300001 | System service exception. | +| 12300002 | Invalid name or constraint. | +| 12300003 | Account not found. | **Example** @@ -4113,9 +4111,9 @@ Performs authentication of the current user. This API uses an asynchronous callb | 12300101 | Credential is incorrect. | | 12300105 | Unsupported authTrustLevel. | | 12300106 | Unsupported authType. | -| 12300110 | Authentication locked. | +| 12300110 | Authentication is locked. | | 12300111 | Authentication timeout. | -| 12300112 | Authentication service busy. | +| 12300112 | Authentication service is busy. | **Example** ```js @@ -4172,9 +4170,9 @@ Performs authentication of the specified user. This API uses an asynchronous cal | 12300101 | Credential is incorrect. | | 12300105 | Unsupported authTrustLevel. | | 12300106 | Unsupported authType. | -| 12300110 | Authentication locked. | +| 12300110 | Authentication is locked. | | 12300111 | Authentication timeout. | -| 12300112 | Authentication service busy. | +| 12300112 | Authentication service is busy. | **Example** ```js @@ -4282,7 +4280,7 @@ Register a PIN inputer. | ID| Error Message | | -------- | --------------------------- | | 12300001 | System service exception. | -| 12300102 | Invalid inputer. | +| 12300002 | Invalid inputer. | | 12300103 | Inputer already registered. | **Example** @@ -4347,7 +4345,7 @@ Register a credential inputer. | ID| Error Message | | -------- | --------------------------- | | 12300001 | System service exception. | -| 12300102 | Invalid authType or inputer. | +| 12300002 | Invalid authType or inputer. | | 12300103 | The credential inputer has been registered. | | 12300106 | Unsupported authType. | @@ -4716,7 +4714,7 @@ Registers a domain plug-in. | ID| Error Message | | -------- | --------------------------- | -| 12300201 | the domain plugin has been registered. | +| 12300201 | The domain plugin has been registered. | **Example** ```js @@ -4783,17 +4781,17 @@ Authenticates a domain account. | ID| Error Message | | -------- | --------------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid domainAccountInfo or credential. | -| 12300003 | domain account does not exist. | -| 12300013 | network exception. | -| 12300101 | authentication failed. | -| 12300109 | authentication is canceled. | -| 12300110 | authentication is locked. | -| 12300111 | authentication timeout. | -| 12300112 | authentication service is busy. | -| 12300113 | authentication service does not exist. | -| 12300114 | authentication service exception. | +| 12300001 | System service exception. | +| 12300002 | Invalid domainAccountInfo or credential. | +| 12300003 | Domain account does not exist. | +| 12300013 | Network exception. | +| 12300101 | Authentication failed. | +| 12300109 | Authentication is canceled. | +| 12300110 | Authentication is locked. | +| 12300111 | Authentication timeout. | +| 12300112 | Authentication service is busy. | +| 12300113 | Authentication service does not exist. | +| 12300114 | Authentication service exception. | **Example** ```js @@ -4836,16 +4834,16 @@ Authenticates this domain account in a pop-up window. | ID| Error Message | | -------- | --------------------------- | -| 12300001 | system service exception. | -| 12300003 | no domain account is bound. | -| 12300013 | network exception. | -| 12300101 | authentication failed. | -| 12300109 | authentication is canceled. | -| 12300110 | authentication is locked. | -| 12300111 | authentication timeout. | -| 12300112 | authentication service is busy. | -| 12300113 | authentication service does not exist. | -| 12300114 | authentication service exception. | +| 12300001 | System service exception. | +| 12300003 | No domain account is bound. | +| 12300013 | Network exception. | +| 12300101 | Authentication failed. | +| 12300109 | Authentication is canceled. | +| 12300110 | Authentication is locked. | +| 12300111 | Authentication timeout. | +| 12300112 | Authentication service is busy. | +| 12300113 | Authentication service does not exist. | +| 12300114 | Authentication service exception. | **Example** ```js @@ -4884,17 +4882,17 @@ Authenticates a domain account in a pop-up window. | ID| Error Message | | -------- | --------------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid localId. | -| 12300003 | no domain account is bound. | -| 12300013 | network exception. | -| 12300101 | authentication failed. | -| 12300109 | authentication is canceled. | -| 12300110 | authentication is locked. | -| 12300111 | authentication timeout. | -| 12300112 | authentication service is busy. | -| 12300113 | authentication service does not exist. | -| 12300114 | authentication service exception. | +| 12300001 | System service exception. | +| 12300002 | Invalid localId. | +| 12300003 | No domain account is bound. | +| 12300013 | Network exception. | +| 12300101 | Authentication failed. | +| 12300109 | Authentication is canceled. | +| 12300110 | Authentication is locked. | +| 12300111 | Authentication timeout. | +| 12300112 | Authentication service is busy. | +| 12300113 | Authentication service does not exist. | +| 12300114 | Authentication service exception. | **Example** ```js @@ -4933,9 +4931,9 @@ Checks whether a domain account exists. | ID| Error Message | | -------- | --------------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid domainAccountInfo. | -| 12300013 | network exception. | +| 12300001 | System service exception. | +| 12300002 | Invalid domainAccountInfo. | +| 12300013 | Network exception. | **Example** ```js @@ -4984,9 +4982,9 @@ Checks whether a domain account exists. | ID| Error Message | | -------- | --------------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid domainAccountInfo. | -| 12300013 | network exception. | +| 12300001 | System service exception. | +| 12300002 | Invalid domainAccountInfo. | +| 12300013 | Network exception. | **Example** ```js @@ -5389,7 +5387,6 @@ Obtains authentication information. This API uses an asynchronous callback to re | ID| Error Message | | -------- | --------------------- | | 12300001 | System service exception. | -| 12300102 | Credential not found. | **Example** ```js @@ -5429,7 +5426,6 @@ Obtains authentication information of the specified type. This API uses an async | -------- | ------------------- | | 12300001 | System service exception. | | 12300002 | Invalid authType. | -| 12300102 | Credential not found. | **Example** ```js @@ -5474,7 +5470,6 @@ Obtains authentication information of the specified type. This API uses a promis | -------- | ------------------- | | 12300001 | System service exception. | | 12300002 | Invalid authType. | -| 12300102 | Credential not found. | **Example** ```js @@ -5513,6 +5508,12 @@ Called to set data in a PIN operation. | authSubType | [AuthSubType](#authsubtype8) | Yes | Credential subtype. | | data | Uint8Array | Yes | Data (credential) to set. The data is used for authentication and operations for adding and modifying credentials.| +**Error codes** + +| ID| Error Message | +| -------- | ------------------- | +| 12300002 | Invalid pinSubType. | + **Example** ```js let password = new Uint8Array([0, 0, 0, 0, 0, 0]); @@ -5975,7 +5976,7 @@ Defines the domain account information. | ----------- | ------ | ---- | ---------- | | domain | string | Yes | Domain name. | | accountName | string | Yes | Domain account name.| -| accountId10+ | string | No | Domain account ID.| +| accountId10+ | string | No | Domain account ID.
**System API**: This is a system API.| ## Constraints diff --git a/en/application-dev/reference/apis/js-apis-privacyManager.md b/en/application-dev/reference/apis/js-apis-privacyManager.md index 37728bb1823311492718e31b44cd3dd4b63fd4e3..403d9a6db944073b19a80d1b086e4adc98d8f4dd 100644 --- a/en/application-dev/reference/apis/js-apis-privacyManager.md +++ b/en/application-dev/reference/apis/js-apis-privacyManager.md @@ -47,8 +47,8 @@ For details about the error codes, see [Ability Access Control Error Codes](../e | ID| Error Message| | -------- | -------- | | 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256, or the count value is invalid. | -| 12100002 | The specified tokenID does not exist or it does not refer to an application process. | -| 12100003 | The specified permission does not exist or it is not an user_grant permission. | +| 12100002 | The specified tokenID does not exist or refer to an application process. | +| 12100003 | The specified permission does not exist or is not an user_grant permission. | | 12100007 | Service is abnormal. | | 12100008 | Out of memory. | @@ -97,8 +97,8 @@ For details about the error codes, see [Ability Access Control Error Codes](../e | ID| Error Message| | -------- | -------- | | 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256, or the count value is invalid. | -| 12100002 | The specified tokenID does not exist or it does not refer to an application process. | -| 12100003 | The specified permission does not exist or it is not an user_grant permission. | +| 12100002 | The specified tokenID does not exist or refer to an application process. | +| 12100003 | The specified permission does not exist or is not an user_grant permission. | | 12100007 | Service is abnormal. | | 12100008 | Out of memory. | @@ -150,8 +150,8 @@ For details about the error codes, see [Ability Access Control Error Codes](../e | ID| Error Message| | -------- | -------- | | 12100001 | The parameter is invalid. the value of flag in request is invalid. | -| 12100002 | The specified tokenID does not exist or it does not refer to an application process. | -| 12100003 | The specified permission does not exist or it is not an user_grant permission. | +| 12100002 | The specified tokenID does not exist or refer to an application process. | +| 12100003 | The specified permission does not exist or is not an user_grant permission. | | 12100007 | Service is abnormal. | | 12100008 | Out of memory. | @@ -205,8 +205,8 @@ For details about the error codes, see [Ability Access Control Error Codes](../e | ID| Error Message| | -------- | -------- | | 12100001 | The parameter is invalid. the value of flag in request is invalid. | -| 12100002 | The specified tokenID does not exist or it does not refer to an application process. | -| 12100003 | The specified permission does not exist or it is not an user_grant permission. | +| 12100002 | The specified tokenID does not exist or refer to an application process. | +| 12100003 | The specified permission does not exist or is not an user_grant permission. | | 12100007 | Service is abnormal. | | 12100008 | Out of memory. | @@ -268,8 +268,8 @@ For details about the error codes, see [Ability Access Control Error Codes](../e | ID| Error Message| | -------- | -------- | | 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256. | -| 12100002 | The specified tokenID does not exist or it does not refer to an application process. | -| 12100003 | The specified permission does not exist or it is not an user_grant permission. | +| 12100002 | The specified tokenID does not exist or refer to an application process. | +| 12100003 | The specified permission does not exist or is not an user_grant permission. | | 12100004 | The interface is called repeatedly with the same input. It means the application specified by the tokenID has been using the specified permission. | | 12100007 | Service is abnormal. | | 12100008 | Out of memory. | @@ -316,8 +316,8 @@ For details about the error codes, see [Ability Access Control Error Codes](../e | ID| Error Message| | -------- | -------- | | 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256. | -| 12100002 | The specified tokenID does not exist or it does not refer to an application process. | -| 12100003 | The specified permission does not exist or it is not an user_grant permission. | +| 12100002 | The specified tokenID does not exist or refer to an application process. | +| 12100003 | The specified permission does not exist or is not an user_grant permission. | | 12100004 | The interface is called repeatedly with the same input. It means the application specified by the tokenID has been using the specified permission. | | 12100007 | Service is abnormal. | | 12100008 | Out of memory. | @@ -371,8 +371,8 @@ For details about the error codes, see [Ability Access Control Error Codes](../e | ID| Error Message| | -------- | -------- | | 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256. | -| 12100002 | The specified tokenID does not exist or it does not refer to an application process. | -| 12100003 | The specified permission does not exist or it is not an user_grant permission. | +| 12100002 | The specified tokenID does not exist or refer to an application process. | +| 12100003 | The specified permission does not exist or is not an user_grant permission. | | 12100004 | The interface is not used with | | 12100007 | Service is abnormal. | | 12100008 | Out of memory. | @@ -419,8 +419,8 @@ For details about the error codes, see [Ability Access Control Error Codes](../e | ID| Error Message| | -------- | -------- | | 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256. | -| 12100002 | The specified tokenID does not exist or it does not refer to an application process. | -| 12100003 | The specified permission does not exist or it is not an user_grant permission. | +| 12100002 | The specified tokenID does not exist or refer to an application process. | +| 12100003 | The specified permission does not exist or is not an user_grant permission. | | 12100004 | The interface is not used with | | 12100007 | Service is abnormal. | | 12100008 | Out of memory. | @@ -513,8 +513,8 @@ For details about the error codes, see [Ability Access Control Error Codes](../e | ID| Error Message| | -------- | -------- | -| 12100001 | The parameter is invalid. The permissionName in list is all invalid or the list size is larger than 1024. | -| 12100004 | The API is not used together with "on()". | +| 12100001 | The permissionNames in the list are all invalid, or the list size exceeds 1024 bytes. | +| 12100004 | The interface is not used together with "on()".| | 12100007 | Service is abnormal. | | 12100008 | Out of memory. | diff --git a/en/application-dev/reference/apis/js-apis-radio.md b/en/application-dev/reference/apis/js-apis-radio.md index 448ccd3dc7d40a17edfdb7b0862cefe3a2377f9e..15c1fc484dd8987dd26c9229beeb200ba8a711e9 100644 --- a/en/application-dev/reference/apis/js-apis-radio.md +++ b/en/application-dev/reference/apis/js-apis-radio.md @@ -32,6 +32,8 @@ Obtains the RAT used in the CS and PS domains for the SIM card in the specified **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -75,6 +77,8 @@ Obtains the RAT used in the CS and PS domains for the SIM card in the specified **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -115,6 +119,8 @@ Obtains the network status. This API uses an asynchronous callback to return the **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -152,6 +158,8 @@ Obtains the network status. This API uses an asynchronous callback to return the **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -195,6 +203,8 @@ Obtains the network status. This API uses a promise to return the result. **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -234,6 +244,8 @@ Obtains the network selection mode of the SIM card in the specified slot. This A **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -274,6 +286,8 @@ Obtains the network selection mode of the SIM card in the specified slot. This A **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -312,6 +326,8 @@ Obtains the ISO country code of the network with which the SIM card in the speci **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -352,6 +368,8 @@ Obtains the ISO country code of the network with which the SIM card in the speci **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -389,6 +407,8 @@ Obtains the ID of the slot in which the primary card is located. This API uses a **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 8300001 | Invalid parameter value. | @@ -421,6 +441,8 @@ Obtains the ID of the slot in which the primary card is located. This API uses a **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 8300001 | Invalid parameter value. | @@ -457,6 +479,8 @@ Obtains a list of signal strengths of the network with which the SIM card in the **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -497,6 +521,8 @@ Obtains a list of signal strengths of the network with which the SIM card in the **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -644,6 +670,8 @@ Checks whether the radio service is enabled on the primary SIM card. This API us **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -681,6 +709,8 @@ Checks whether the radio service is enabled on the SIM card in the specified slo **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -724,6 +754,8 @@ Checks whether the radio service is enabled on the SIM card in the specified slo **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -763,6 +795,8 @@ Obtains the carrier name for the SIM card in the specified slot. This API uses a **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -803,6 +837,8 @@ Obtains the carrier name for the SIM card in the specified slot. This API uses a **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -844,6 +880,8 @@ Sets the ID of the slot in which the primary card is located. This API uses an a **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -858,8 +896,8 @@ Sets the ID of the slot in which the primary card is located. This API uses an a ```js let slotId = 0; -radio.setPrimarySlotId(slotId, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +radio.setPrimarySlotId(slotId, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -890,6 +928,8 @@ Sets the ID of the slot in which the primary card is located. This API uses a pr **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -905,9 +945,9 @@ Sets the ID of the slot in which the primary card is located. This API uses a pr ```js let slotId = 0; let promise = radio.setPrimarySlotId(slotId); -promise.then(data => { - console.log(`setPrimarySlotId success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +promise.then(() => { + console.log(`setPrimarySlotId success.`); +}).catch((err) => { console.log(`setPrimarySlotId failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -932,6 +972,8 @@ Obtains the IMEI of the SIM card in a card slot. This API uses an asynchronous c **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -971,6 +1013,8 @@ Obtains the IMEI of the SIM card in the specified card slot. This API uses an as **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1016,6 +1060,8 @@ Obtains the IMEI of the SIM card in the specified card slot. This API uses a pro **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1057,6 +1103,8 @@ Obtains the MEID of the SIM card in a card slot. This API uses an asynchronous c **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1096,6 +1144,8 @@ Obtains the MEID of the SIM card in the specified card slot. This API uses an as **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1141,6 +1191,8 @@ Obtains the MEID of the SIM card in the specified card slot. This API uses a pro **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1182,6 +1234,8 @@ Obtains the unique device ID of the SIM card in a card slot. This API uses an as **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1221,6 +1275,8 @@ Obtains the unique device ID of the SIM card in the specified card slot. This AP **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1266,6 +1322,8 @@ Obtains the unique device ID of the SIM card in the specified card slot. This AP **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1307,6 +1365,8 @@ Sends a cell location update request. This API uses an asynchronous callback to **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1319,8 +1379,8 @@ Sends a cell location update request. This API uses an asynchronous callback to **Example** ```js -radio.sendUpdateCellLocationRequest((err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +radio.sendUpdateCellLocationRequest((err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -1345,6 +1405,8 @@ Sends a cell location update request for the SIM card in the specified slot. Thi **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1358,8 +1420,8 @@ Sends a cell location update request for the SIM card in the specified slot. Thi ```js let slotId = 0; -radio.sendUpdateCellLocationRequest(slotId, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +radio.sendUpdateCellLocationRequest(slotId, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -1389,6 +1451,8 @@ Sends a cell location update request for the SIM card in the specified slot. Thi **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1402,10 +1466,9 @@ Sends a cell location update request for the SIM card in the specified slot. Thi ```js let slotId = 0; -let promise = radio.sendUpdateCellLocationRequest(slotId); -promise.then(data => { - console.log(`sendUpdateCellLocationRequest success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +radio.sendUpdateCellLocationRequest(slotId).then(() => { + console.log(`sendUpdateCellLocationRequest success.`); +}).catch((err) => { console.log(`sendUpdateCellLocationRequest failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -1430,6 +1493,8 @@ Obtains cell information. This API uses an asynchronous callback to return the r **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1469,6 +1534,8 @@ Obtains cell information for the SIM card in the specified slot. This API uses a **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1514,6 +1581,8 @@ Obtains cell information for the SIM card in the specified slot. This API uses a **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1556,6 +1625,8 @@ Sets the network selection mode. This API uses an asynchronous callback to retur **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1580,8 +1651,8 @@ let networkSelectionModeOptions={ networkInformation: networkInformation, resumeSelection: true } -radio.setNetworkSelectionMode(networkSelectionModeOptions, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +radio.setNetworkSelectionMode(networkSelectionModeOptions, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -1611,6 +1682,8 @@ Sets the network selection mode. This API uses a promise to return the result. **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1636,9 +1709,9 @@ let networkSelectionModeOptions={ resumeSelection: true } let promise = radio.setNetworkSelectionMode(networkSelectionModeOptions); -promise.then(data => { - console.log(`setNetworkSelectionMode success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +promise.then(() => { + console.log(`setNetworkSelectionMode success.`); +}).catch((err) => { console.log(`setNetworkSelectionMode failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -1664,6 +1737,8 @@ Obtains network search information for the SIM card in the specified slot. This **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1707,6 +1782,8 @@ Obtains network search information for the SIM card in the specified slot. This **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1745,6 +1822,8 @@ Obtains the NR option mode. This API uses an asynchronous callback to return the **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -1781,6 +1860,8 @@ Obtains the NR option mode for the SIM card in the specified slot. This API uses **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -1823,6 +1904,8 @@ Obtains the NR option mode for the SIM card in the specified slot. This API uses **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -1863,6 +1946,8 @@ Turns on the radio function. This API uses an asynchronous callback to return th **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1875,8 +1960,8 @@ Turns on the radio function. This API uses an asynchronous callback to return th **Example** ```js -radio.turnOnRadio((err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +radio.turnOnRadio((err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -1902,6 +1987,8 @@ Turns on the radio function for the SIM card in the specified slot. This API use **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1915,8 +2002,8 @@ Turns on the radio function for the SIM card in the specified slot. This API use ```js let slotId = 0; -radio.turnOnRadio(slotId, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +radio.turnOnRadio(slotId, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -1947,6 +2034,8 @@ Turns on the radio function for the SIM card in the specified slot. This API use **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1960,10 +2049,9 @@ Turns on the radio function for the SIM card in the specified slot. This API use ```js let slotId = 0; -let promise = radio.turnOnRadio(slotId); -promise.then(data => { - console.log(`turnOnRadio success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +radio.turnOnRadio(slotId).then(() => { + console.log(`turnOnRadio success.`); +}).catch((err) => { console.error(`turnOnRadio failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -1988,6 +2076,8 @@ Turns off the radio function. This API uses an asynchronous callback to return t **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2000,8 +2090,8 @@ Turns off the radio function. This API uses an asynchronous callback to return t **Example** ```js -radio.turnOffRadio((err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +radio.turnOffRadio((err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -2027,6 +2117,8 @@ Turns off the radio function for the SIM card in the specified slot. This API us **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2040,8 +2132,8 @@ Turns off the radio function for the SIM card in the specified slot. This API us ```js let slotId = 0; -radio.turnOffRadio(slotId, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +radio.turnOffRadio(slotId, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -2072,6 +2164,8 @@ Turns off the radio function for the SIM card in the specified slot. This API us **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2085,10 +2179,9 @@ Turns off the radio function for the SIM card in the specified slot. This API us ```js let slotId = 0; -let promise = radio.turnOffRadio(slotId); -promise.then(data => { - console.log(`turnOffRadio success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +radio.turnOffRadio(slotId).then(() => { + console.log(`turnOffRadio success.`); +}).catch((err) => { console.error(`turnOffRadio failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -2115,6 +2208,8 @@ Sets the preferred network for the SIM card in the specified slot. This API uses **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2127,8 +2222,9 @@ Sets the preferred network for the SIM card in the specified slot. This API uses **Example** ```js -radio.setPreferredNetwork(0, 1, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +let slotId = 0; +radio.setPreferredNetwork(slotId, radio.PreferredNetworkMode.PREFERRED_NETWORK_MODE_GSM, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -2159,7 +2255,9 @@ Sets the preferred network for the SIM card in the specified slot. This API uses **Error codes** -| ID| Error Message | +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + +| ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | | 401 | Parameter error. | @@ -2171,10 +2269,10 @@ Sets the preferred network for the SIM card in the specified slot. This API uses **Example** ```js -let promise = radio.setPreferredNetwork(0, 1); -promise.then(data => { - console.log(`setPreferredNetwork success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +let slotId = 0; +radio.setPreferredNetwork(slotId, radio.PreferredNetworkMode.PREFERRED_NETWORK_MODE_GSM).then(() => { + console.log(`setPreferredNetwork success.`); +}).catch((err) => { console.log(`setPreferredNetwork failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -2200,6 +2298,8 @@ Obtains the preferred network for the SIM card in the specified slot. This API u **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2243,6 +2343,8 @@ Obtains the preferred network for the SIM card in the specified slot. This API u **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2285,6 +2387,8 @@ Obtains the IMS registration status of the specified IMS service type for the SI **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2329,6 +2433,8 @@ Obtains the IMS registration status of the specified IMS service type for the SI **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2372,6 +2478,8 @@ Enables listening for **imsRegStateChange** events. This API uses an asynchronou **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2412,6 +2520,8 @@ Disables listening for **imsRegStateChange** events. This API uses an asynchrono **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | diff --git a/en/application-dev/reference/apis/js-apis-request.md b/en/application-dev/reference/apis/js-apis-request.md index ec609543eb2287801cf7fc0d51a0bce4ede8b837..1108ca63710590b35d05af8129f9ff278e9d6cc9 100644 --- a/en/application-dev/reference/apis/js-apis-request.md +++ b/en/application-dev/reference/apis/js-apis-request.md @@ -16,24 +16,6 @@ import request from '@ohos.request'; ## Constraints - -HTTPS is supported by default in the FA model. To support HTTP, add **network** to the **config.json** file and set the **cleartextTraffic** attribute to **true**. - -```js -var config = { - "deviceConfig": { - "default": { - "network": { - "cleartextTraffic": true - } - //... - } - } -} -``` - -The **cleartextTraffic** attribute is not involved during application development in the stage model. - The download server must support the HTTP HEAD method so that the size of the data to download can be obtained through **Content-length**. Otherwise, the download task fails. If this is the case, you can check the failure cause through [on('fail')7+](#onfail7). Only HTTP requests are supported. HTTPS requests are not supported. @@ -105,24 +87,24 @@ Uploads files. This API uses a promise to return the result. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| context | [BaseContext](js-apis-inner-application-baseContext.md) | Yes| Application-based context.| -| config | [UploadConfig](#uploadconfig) | Yes| Upload configurations.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | context | [BaseContext](js-apis-inner-application-baseContext.md) | Yes| Application-based context.| + | config | [UploadConfig](#uploadconfig) | Yes| Upload configurations.| **Return value** -| Type| Description| -| -------- | -------- | -| Promise<[UploadTask](#uploadtask)> | Promise used to return the **UploadTask** object.| + | Type| Description| + | -------- | -------- | + | Promise<[UploadTask](#uploadtask)> | Promise used to return the **UploadTask** object.| **Error codes** For details about the error codes, see [Upload and Download Error Codes](../errorcodes/errorcode-request.md). -| ID| Error Message| -| -------- | -------- | -| 13400002 | Bad file path. | + | ID| Error Message| + | -------- | -------- | + | 13400002 | Bad file path. | **Example** @@ -159,18 +141,18 @@ Uploads files. This API uses an asynchronous callback to return the result. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| context | [BaseContext](js-apis-inner-application-baseContext.md) | Yes| Application-based context.| -| config | [UploadConfig](#uploadconfig) | Yes| Upload configurations.| -| callback | AsyncCallback<[UploadTask](#uploadtask)> | Yes| Callback used to return the **UploadTask** object.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | context | [BaseContext](js-apis-inner-application-baseContext.md) | Yes| Application-based context.| + | config | [UploadConfig](#uploadconfig) | Yes| Upload configurations.| + | callback | AsyncCallback<[UploadTask](#uploadtask)> | Yes| Callback used to return the **UploadTask** object.| **Error codes** For details about the error codes, see [Upload and Download Error Codes](../errorcodes/errorcode-request.md). -| ID| Error Message| -| -------- | -------- | -| 13400002 | Bad file path. | + | ID| Error Message| + | -------- | -------- | + | 13400002 | Bad file path. | **Example** @@ -214,15 +196,15 @@ Uploads files. This API uses a promise to return the result. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| config | [UploadConfig](#uploadconfig) | Yes| Upload configurations.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | config | [UploadConfig](#uploadconfig) | Yes| Upload configurations.| **Return value** -| Type| Description| -| -------- | -------- | -| Promise<[UploadTask](#uploadtask)> | Promise used to return the **UploadTask** object.| + | Type| Description| + | -------- | -------- | + | Promise<[UploadTask](#uploadtask)> | Promise used to return the **UploadTask** object.| **Example** @@ -261,10 +243,10 @@ Uploads files. This API uses an asynchronous callback to return the result. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| config | [UploadConfig](#uploadconfig) | Yes| Upload configurations.| -| callback | AsyncCallback<[UploadTask](#uploadtask)> | Yes| Callback used to return the **UploadTask** object.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | config | [UploadConfig](#uploadconfig) | Yes| Upload configurations.| + | callback | AsyncCallback<[UploadTask](#uploadtask)> | Yes| Callback used to return the **UploadTask** object.| **Example** @@ -304,10 +286,10 @@ Subscribes to an upload event. This API uses an asynchronous callback to return **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| type | string | Yes| Type of the event to subscribe to. The value is **'progress'** (upload progress).| -| callback | function | Yes| Callback for the upload progress event.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Type of the event to subscribe to. The value is **'progress'** (upload progress).| + | callback | function | Yes| Callback for the upload progress event.| Parameters of the callback function @@ -338,10 +320,10 @@ Subscribes to an upload event. This API uses an asynchronous callback to return **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| type | string | Yes| Type of the event to subscribe to. The value is **'headerReceive'** (response header).| -| callback | function | Yes| Callback for the HTTP Response Header event.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Type of the event to subscribe to. The value is **'headerReceive'** (response header).| + | callback | function | Yes| Callback for the HTTP Response Header event.| Parameters of the callback function @@ -371,10 +353,10 @@ Subscribes to an upload event. This API uses an asynchronous callback to return **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| type | string | Yes| Type of the event to subscribe to. The value **'complete'** means the upload completion event, and **'fail'** means the upload failure event.| -| callback | Callback<Array<TaskState>> | Yes| Callback used to return the result.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Type of the event to subscribe to. The value **'complete'** means the upload completion event, and **'fail'** means the upload failure event.| + | callback | Callback<Array<TaskState>> | Yes| Callback used to return the result.| Parameters of the callback function @@ -413,10 +395,10 @@ Unsubscribes from an upload event. This API uses an asynchronous callback to ret **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| type | string | Yes| Type of the event to unsubscribe from. The value is **'progress'** (upload progress).| -| callback | function | No| Callback for the upload progress event.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Type of the event to unsubscribe from. The value is **'progress'** (upload progress).| + | callback | function | No| Callback for the upload progress event.| Parameters of the callback function @@ -447,10 +429,10 @@ Unsubscribes from an upload event. This API uses an asynchronous callback to ret **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| type | string | Yes| Type of the event to unsubscribe from. The value is **'headerReceive'** (response header).| -| callback | function | No| Callback for the HTTP Response Header event.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Type of the event to unsubscribe from. The value is **'headerReceive'** (response header).| + | callback | function | No| Callback for the HTTP Response Header event.| Parameters of the callback function @@ -479,10 +461,10 @@ Unsubscribes from an upload event. This API uses an asynchronous callback to ret **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| type | string | Yes| Type of the event to subscribe to. The value **'complete'** means the upload completion event, and **'fail'** means the upload failure event.| -| callback | Callback<Array<TaskState>> | No| Callback used to return the result.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Type of the event to subscribe to. The value **'complete'** means the upload completion event, and **'fail'** means the upload failure event.| + | callback | Callback<Array<TaskState>> | No| Callback used to return the result.| Parameters of the callback function @@ -519,9 +501,9 @@ Deletes this upload task. This API uses a promise to return the result. **Return value** -| Type| Description| -| -------- | -------- | -| Promise<boolean> | Promise used to return the task removal result. It returns **true** if the operation is successful and returns **false** otherwise.| + | Type| Description| + | -------- | -------- | + | Promise<boolean> | Promise used to return the task removal result. It returns **true** if the operation is successful and returns **false** otherwise.| **Example** @@ -550,9 +532,9 @@ Deletes this upload task. This API uses an asynchronous callback to return the r **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| callback | AsyncCallback<boolean> | Yes| Callback used to return the result.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<boolean> | Yes| Callback used to return the result.| **Example** @@ -587,9 +569,9 @@ Removes this upload task. This API uses a promise to return the result. **Return value** -| Type| Description| -| -------- | -------- | -| Promise<boolean> | Promise used to return the task removal result. It returns **true** if the operation is successful and returns **false** otherwise.| + | Type| Description| + | -------- | -------- | + | Promise<boolean> | Promise used to return the task removal result. It returns **true** if the operation is successful and returns **false** otherwise.| **Example** @@ -622,9 +604,9 @@ Removes this upload task. This API uses an asynchronous callback to return the r **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| callback | AsyncCallback<boolean> | Yes| Callback used to return the result.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<boolean> | Yes| Callback used to return the result.| **Example** @@ -705,25 +687,25 @@ Downloads files. This API uses a promise to return the result. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| context | [BaseContext](js-apis-inner-application-baseContext.md) | Yes| Application-based context.| -| config | [DownloadConfig](#downloadconfig) | Yes| Download configurations.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | context | [BaseContext](js-apis-inner-application-baseContext.md) | Yes| Application-based context.| + | config | [DownloadConfig](#downloadconfig) | Yes| Download configurations.| **Return value** -| Type| Description| -| -------- | -------- | -| Promise<[DownloadTask](#downloadtask)> | Promise used to return the result.| + | Type| Description| + | -------- | -------- | + | Promise<[DownloadTask](#downloadtask)> | Promise used to return the result.| **Error codes** For details about the error codes, see [Upload and Download Error Codes](../errorcodes/errorcode-request.md). -| ID| Error Message| -| -------- | -------- | -| 13400001 | File operation error. | -| 13400002 | Bad file path. | -| 13400003 | Task manager service error. | + | ID| Error Message| + | -------- | -------- | + | 13400001 | File operation error. | + | 13400002 | Bad file path. | + | 13400003 | Task manager service error. | **Example** @@ -753,20 +735,20 @@ Downloads files. This API uses an asynchronous callback to return the result. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| context | [BaseContext](js-apis-inner-application-baseContext.md) | Yes| Application-based context.| -| config | [DownloadConfig](#downloadconfig) | Yes| Download configurations.| -| callback | AsyncCallback<[DownloadTask](#downloadtask)> | Yes| Callback used to return the result.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | context | [BaseContext](js-apis-inner-application-baseContext.md) | Yes| Application-based context.| + | config | [DownloadConfig](#downloadconfig) | Yes| Download configurations.| + | callback | AsyncCallback<[DownloadTask](#downloadtask)> | Yes| Callback used to return the result.| **Error codes** For details about the error codes, see [Upload and Download Error Codes](../errorcodes/errorcode-request.md). -| ID| Error Message| -| -------- | -------- | -| 13400001 | File operation error. | -| 13400002 | Bad file path. | -| 13400003 | Task manager service error. | + | ID| Error Message| + | -------- | -------- | + | 13400001 | File operation error. | + | 13400002 | Bad file path. | + | 13400003 | Task manager service error. | **Example** @@ -804,15 +786,15 @@ Downloads files. This API uses a promise to return the result. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| config | [DownloadConfig](#downloadconfig) | Yes| Download configurations.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | config | [DownloadConfig](#downloadconfig) | Yes| Download configurations.| **Return value** -| Type| Description| -| -------- | -------- | -| Promise<[DownloadTask](#downloadtask)> | Promise used to return the result.| + | Type| Description| + | -------- | -------- | + | Promise<[DownloadTask](#downloadtask)> | Promise used to return the result.| **Example** @@ -844,10 +826,10 @@ Downloads files. This API uses an asynchronous callback to return the result. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| config | [DownloadConfig](#downloadconfig) | Yes| Download configurations.| -| callback | AsyncCallback<[DownloadTask](#downloadtask)> | Yes| Callback used to return the result.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | config | [DownloadConfig](#downloadconfig) | Yes| Download configurations.| + | callback | AsyncCallback<[DownloadTask](#downloadtask)> | Yes| Callback used to return the result.| **Example** @@ -880,10 +862,10 @@ Subscribes to a download event. This API uses an asynchronous callback to return **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| type | string | Yes| Type of the event to subscribe to. The value is **'progress'** (download progress).| -| callback | function | Yes| Callback for the download progress event.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Type of the event to subscribe to. The value is **'progress'** (download progress).| + | callback | function | Yes| Callback for the download progress event.| Parameters of the callback function @@ -914,10 +896,10 @@ Unsubscribes from a download event. This API uses an asynchronous callback to re **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| type | string | Yes| Type of the event to unsubscribe from. The value is **'progress'** (download progress).| -| callback | function | No| Callback for the download progress event.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Type of the event to unsubscribe from. The value is **'progress'** (download progress).| + | callback | function | No| Callback for the download progress event.| Parameters of the callback function @@ -948,10 +930,10 @@ Subscribes to a download event. This API uses an asynchronous callback to return **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| type | string | Yes| Type of the event to subscribe to.
- **'complete'**: download task completion event.
- **'pause'**: download task pause event.
- **'remove'**: download task removal event.| -| callback | function | Yes| Callback used to return the result.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Type of the event to subscribe to.
- **'complete'**: download task completion event.
- **'pause'**: download task pause event.
- **'remove'**: download task removal event.| + | callback | function | Yes| Callback used to return the result.| **Example** @@ -975,10 +957,10 @@ Unsubscribes from a download event. This API uses an asynchronous callback to re **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| type | string | Yes| Type of the event to unsubscribe from.
- **'complete'**: download task completion event.
- **'pause'**: download task pause event.
- **'remove'**: download task removal event.| -| callback | function | No| Callback used to return the result.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Type of the event to unsubscribe from.
- **'complete'**: download task completion event.
- **'pause'**: download task pause event.
- **'remove'**: download task removal event.| + | callback | function | No| Callback used to return the result.| **Example** @@ -1002,10 +984,10 @@ Subscribes to the download task failure event. This API uses an asynchronous cal **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| type | string | Yes| Type of the event to subscribe to. The value is **'fail'** (download failure).| -| callback | function | Yes| Callback for the download task failure event.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Type of the event to subscribe to. The value is **'fail'** (download failure).| + | callback | function | Yes| Callback for the download task failure event.| Parameters of the callback function @@ -1035,10 +1017,10 @@ Unsubscribes from the download task failure event. This API uses an asynchronous **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| type | string | Yes| Type of the event to unsubscribe from. The value is **'fail'** (download failure).| -| callback | function | No| Callback for the download task failure event.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Type of the event to unsubscribe from. The value is **'fail'** (download failure).| + | callback | function | No| Callback for the download task failure event.| Parameters of the callback function @@ -1067,9 +1049,9 @@ Removes this download task. This API uses a promise to return the result. **Return value** -| Type| Description| -| -------- | -------- | -| Promise<boolean> | Promise used to return the task removal result.| + | Type| Description| + | -------- | -------- | + | Promise<boolean> | Promise used to return the task removal result.| **Example** @@ -1098,9 +1080,9 @@ Deletes this download task. This API uses an asynchronous callback to return the **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| callback | AsyncCallback<boolean> | Yes| Callback used to return the task deletion result.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<boolean> | Yes| Callback used to return the task deletion result.| **Example** @@ -1131,9 +1113,9 @@ Obtains the information about this download task. This API uses a promise to ret **Return value** -| Type| Description| -| -------- | -------- | -| Promise<[DownloadInfo](#downloadinfo7)> | Promise used to return the download task information.| + | Type| Description| + | -------- | -------- | + | Promise<[DownloadInfo](#downloadinfo7)> | Promise used to return the download task information.| **Example** @@ -1158,9 +1140,9 @@ Obtains the information about this download task. This API uses an asynchronous **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| callback | AsyncCallback<[DownloadInfo](#downloadinfo7)> | Yes| Callback used to return the download task information.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<[DownloadInfo](#downloadinfo7)> | Yes| Callback used to return the download task information.| **Example** @@ -1187,9 +1169,9 @@ Obtains the **MimeType** of this download task. This API uses a promise to retur **Return value** -| Type| Description| -| -------- | -------- | -| Promise<string> | Promise used to return the **MimeType** of the download task.| + | Type| Description| + | -------- | -------- | + | Promise<string> | Promise used to return the **MimeType** of the download task.| **Example** @@ -1214,9 +1196,9 @@ Obtains the **MimeType** of this download task. This API uses an asynchronous ca **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| callback | AsyncCallback<string> | Yes| Callback used to return the **MimeType** of the download task.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<string> | Yes| Callback used to return the **MimeType** of the download task.| **Example** @@ -1243,9 +1225,9 @@ Pauses this download task. This API uses a promise to return the result. **Return value** -| Type| Description| -| -------- | -------- | -| Promise<boolean> | Promise used to return the download task pause result.| + | Type| Description| + | -------- | -------- | + | Promise<boolean> | Promise used to return the download task pause result.| **Example** @@ -1274,9 +1256,9 @@ Pauses this download task. This API uses an asynchronous callback to return the **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| callback | AsyncCallback<boolean> | Yes| Callback used to return the result.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<boolean> | Yes| Callback used to return the result.| **Example** @@ -1307,9 +1289,9 @@ Resumes this download task. This API uses a promise to return the result. **Return value** -| Type| Description| -| -------- | -------- | -| Promise<boolean> | Promise used to return the result.| + | Type| Description| + | -------- | -------- | + | Promise<boolean> | Promise used to return the result.| **Example** @@ -1339,9 +1321,9 @@ Resumes this download task. This API uses an asynchronous callback to return the **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| callback | AsyncCallback<boolean> | Yes| Callback used to return the result.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<boolean> | Yes| Callback used to return the result.| **Example** @@ -1377,9 +1359,9 @@ Removes this download task. This API uses a promise to return the result. **Return value** -| Type| Description| -| -------- | -------- | -| Promise<boolean> | Promise used to return the task removal result.| + | Type| Description| + | -------- | -------- | + | Promise<boolean> | Promise used to return the task removal result.| **Example** @@ -1412,9 +1394,9 @@ Removes this download task. This API uses an asynchronous callback to return the **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| callback | AsyncCallback<boolean> | Yes| Callback used to return the task removal result.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<boolean> | Yes| Callback used to return the task removal result.| **Example** @@ -1449,9 +1431,9 @@ Queries this download task. This API uses a promise to return the result. **Return value** -| Type| Description| -| -------- | -------- | -| Promise<[DownloadInfo](#downloadinfo7)> | Promise used to return the download task information.| + | Type| Description| + | -------- | -------- | + | Promise<[DownloadInfo](#downloadinfo7)> | Promise used to return the download task information.| **Example** @@ -1480,9 +1462,9 @@ Queries this download task. This API uses an asynchronous callback to return the **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| callback | AsyncCallback<[DownloadInfo](#downloadinfo7)> | Yes| Callback used to return the download task information.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<[DownloadInfo](#downloadinfo7)> | Yes| Callback used to return the download task information.| **Example** @@ -1513,9 +1495,9 @@ Queries the **MimeType** of this download task. This API uses a promise to retur **Return value** -| Type| Description| -| -------- | -------- | -| Promise<string> | Promise used to return the **MimeType** of the download task.| + | Type| Description| + | -------- | -------- | + | Promise<string> | Promise used to return the **MimeType** of the download task.| **Example** @@ -1544,9 +1526,9 @@ Queries the **MimeType** of this download task. This API uses an asynchronous ca **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| callback | AsyncCallback<string> | Yes| Callback used to return the **MimeType** of the download task.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<string> | Yes| Callback used to return the **MimeType** of the download task.| **Example** @@ -1577,9 +1559,9 @@ Pauses this download task. This API uses a promise to return the result. **Return value** -| Type| Description| -| -------- | -------- | -| Promise<void> | Promise used to return the download task pause result.| + | Type| Description| + | -------- | -------- | + | Promise<void> | Promise used to return the download task pause result.| **Example** @@ -1612,9 +1594,9 @@ Pauses this download task. This API uses an asynchronous callback to return the **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| callback | AsyncCallback<void> | Yes| Callback used to return the result.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<void> | Yes| Callback used to return the result.| **Example** @@ -1649,9 +1631,9 @@ Resumes this download task. This API uses a promise to return the result. **Return value** -| Type| Description| -| -------- | -------- | -| Promise<void> | Promise used to return the result.| + | Type| Description| + | -------- | -------- | + | Promise<void> | Promise used to return the result.| **Example** @@ -1685,9 +1667,9 @@ Resumes this download task. This API uses an asynchronous callback to return the **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| callback | AsyncCallback<void> | Yes| Callback used to return the result.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<void> | Yes| Callback used to return the result.| **Example** diff --git a/en/application-dev/reference/apis/js-apis-resource-manager.md b/en/application-dev/reference/apis/js-apis-resource-manager.md index 41d18e140d9442384c32d7ccbd94ccc153b8ca07..cc24c7ab23912cb3abb8f2ee648c0be026565aac 100644 --- a/en/application-dev/reference/apis/js-apis-resource-manager.md +++ b/en/application-dev/reference/apis/js-apis-resource-manager.md @@ -13,7 +13,7 @@ The Resource Manager module provides APIs to obtain information about applicatio import resourceManager from '@ohos.resourceManager'; ``` -## How to Use +## Instruction Since API version 9, the stage model allows an application to obtain a **ResourceManager** object based on **context** and call its resource management APIs without first importing the required bundle. This approach, however, is not applicable to the FA model. For the FA model, you need to import the required bundle and then call the [getResourceManager](#resourcemanagergetresourcemanager) API to obtain a **ResourceManager** object. For details about how to reference context in the stage model, see [Context in the Stage Model](../../application-models/application-context-stage.md). @@ -78,7 +78,7 @@ Obtains the **ResourceManager** object of an application based on the specified | Name | Type | Mandatory | Description | | ---------- | ---------------------------------------- | ---- | ----------------------------- | -| bundleName | string | Yes | Bundle name of the target application. | +| bundleName | string | Yes | Bundle name of the application. | | callback | AsyncCallback<[ResourceManager](#resourcemanager)> | Yes | Callback used to return the result.| **Example** @@ -118,7 +118,7 @@ Obtains the **ResourceManager** object of this application. This API uses a prom console.log("error is " + error); }); ``` -> **NOTE**
> In the sample code, **0x1000000** indicates the resource ID, which can be found in the compiled **ResourceTable.txt** file. +> **NOTE**
In the sample code, **0x1000000** indicates the resource ID, which can be found in the compiled **ResourceTable.txt** file. ## resourceManager.getResourceManager @@ -135,7 +135,7 @@ Obtains the **ResourceManager** object of an application based on the specified | Name | Type | Mandatory | Description | | ---------- | ------ | ---- | ------------- | -| bundleName | string | Yes | Bundle name of the target application.| +| bundleName | string | Yes | Bundle name of the application.| **Return value** @@ -171,12 +171,12 @@ Enumerates the device types. | Name | Value | Description | | -------------------- | ---- | ---- | -| DEVICE_TYPE_PHONE | 0x00 | Phone. | -| DEVICE_TYPE_TABLET | 0x01 | Tablet. | -| DEVICE_TYPE_CAR | 0x02 | Head unit. | -| DEVICE_TYPE_PC | 0x03 | PC. | -| DEVICE_TYPE_TV | 0x04 | TV. | -| DEVICE_TYPE_WEARABLE | 0x06 | Wearable. | +| DEVICE_TYPE_PHONE | 0x00 | Phone | +| DEVICE_TYPE_TABLET | 0x01 | Tablet | +| DEVICE_TYPE_CAR | 0x02 | Head unit | +| DEVICE_TYPE_PC | 0x03 | PC | +| DEVICE_TYPE_TV | 0x04 | TV | +| DEVICE_TYPE_WEARABLE | 0x06 | Wearable | ## ScreenDensity @@ -278,7 +278,7 @@ Defines the capability of accessing application resources. > **NOTE** > -> - The methods involved in **ResourceManager** are applicable only to the TypeScript-based declarative development paradigm. +> - The APIs involved in **ResourceManager** are applicable only to the TypeScript-based declarative development paradigm. > > - Resource files are defined in the **resources** directory of the project. You can obtain the resource ID using **$r(resource address).id**, for example, **$r('app.string.test').id**. @@ -645,7 +645,7 @@ For details about the error codes, see [Resource Manager Error Codes](../errorco getMediaContent(resId: number, callback: AsyncCallback<Uint8Array>): void -Obtains the content of the media file corresponding to the specified resource name. This API uses an asynchronous callback to return the result. +Obtains the content of the media file corresponding to the specified resource ID. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.Global.ResourceManager @@ -1658,7 +1658,7 @@ Obtains the string corresponding to the specified resource name. This API uses a | Type | Description | | --------------------- | ---------- | -| Promise<string> | Promise used to return the result.| +| Promise<string> | String corresponding to the resource name.| For details about the error codes, see [Resource Manager Error Codes](../errorcodes/errorcode-resource-manager.md). @@ -1770,7 +1770,7 @@ For details about the error codes, see [Resource Manager Error Codes](../errorco getMediaByName(resName: string, callback: AsyncCallback<Uint8Array>): void -Obtains the content of the media file corresponding to the specified resource name. This API uses an asynchronous callback to return the result. +Obtains the content of the media file corresponding to the specified resource ID. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.Global.ResourceManager @@ -2036,7 +2036,7 @@ Obtains the string corresponding to the specified resource ID. This API returns | Type | Description | | ------ | ----------- | -| string | String corresponding to the specified resource ID.| +| string | Promise used to return the result.| For details about the error codes, see [Resource Manager Error Codes](../errorcodes/errorcode-resource-manager.md). @@ -2075,7 +2075,7 @@ Obtains the string corresponding to the specified resource object. This API retu | Type | Description | | ------ | ---------------- | -| string | String corresponding to the resource object.| +| string | Promise used to return the result.| For details about the error codes, see [Resource Manager Error Codes](../errorcodes/errorcode-resource-manager.md). @@ -2119,7 +2119,7 @@ Obtains the string corresponding to the specified resource name. This API return | Type | Description | | ------ | ---------- | -| string | String corresponding to the resource name.| +| string | String corresponding to the specified resource name.| For details about the error codes, see [Resource Manager Error Codes](../errorcodes/errorcode-resource-manager.md). @@ -2395,6 +2395,142 @@ For details about the error codes, see [Resource Manager Error Codes](../errorco } ``` +### getDrawableDescriptor10+ + +getDrawableDescriptor(resId: number, density?: number): DrawableDescriptor; + +Obtains the **DrawableDescriptor** object based on the specified resource ID. This API returns the result synchronously. + +**System capability**: SystemCapability.Global.ResourceManager + +**Parameters** + +| Name | Type | Mandatory | Description | +| ----- | ------ | ---- | ----- | +| resId | number | Yes | Resource ID.| +| [density](#screendensity) | number | No | Screen density. The default value is **0**.| + +**Return value** + +| Type | Description | +| ------ | ---------- | +| DrawableDescriptor | **DrawableDescriptor** object corresponding to the resource ID.| + +For details about the error codes, see [Resource Manager Error Codes](../errorcodes/errorcode-resource-manager.md). + +**Error codes** + +| ID| Error Message| +| -------- | ---------------------------------------- | +| 9001001 | If the resId invalid. | +| 9001002 | If the resource not found by resId. | + +**Example** + ```ts + try { + this.context.resourceManager.getDrawableDescriptor($r('app.media.icon').id); + } catch (error) { + console.error(`getDrawableDescriptor failed, error code: ${error.code}, message: ${error.message}.`) + } + try { + this.context.resourceManager.getDrawableDescriptor($r('app.media.icon').id, 120); + } catch (error) { + console.error(`getDrawableDescriptor failed, error code: ${error.code}, message: ${error.message}.`) + } + ``` + +### getDrawableDescriptor10+ + +getDrawableDescriptor(resource: Resource, density?: number): DrawableDescriptor; + +Obtains the **DrawableDescriptor** object based on the specified resource. This API returns the result synchronously. + +**System capability**: SystemCapability.Global.ResourceManager + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------- | ---- | ---- | +| resource | [Resource](#resource9) | Yes | Resource object.| +| [density](#screendensity) | number | No | Screen density. The default value is **0**.| + +**Return value** + +| Type | Description | +| ------- | ----------------- | +| DrawableDescriptor | **DrawableDescriptor** object corresponding to the resource ID.| + +For details about the error codes, see [Resource Manager Error Codes](../errorcodes/errorcode-resource-manager.md). + +**Error codes** + +| ID| Error Message| +| -------- | ---------------------------------------- | +| 9001001 | If the resId invalid. | +| 9001002 | If the resource not found by resId. | + +**Example** + ```ts + let resource = { + bundleName: "com.example.myapplication", + moduleName: "entry", + id: $r('app.media.icon').id + }; + try { + this.context.resourceManager.getDrawableDescriptor(resource); + } catch (error) { + console.error(`getDrawableDescriptor failed, error code: ${error.code}, message: ${error.message}.`) + } + try { + this.context.resourceManager.getDrawableDescriptor(resource, 120); + } catch (error) { + console.error(`getDrawableDescriptor failed, error code: ${error.code}, message: ${error.message}.`) + } + ``` + +### getDrawableDescriptorByName10+ + +getDrawableDescriptorByName(resName: string, density?: number): DrawableDescriptor; + +Obtains the **DrawableDescriptor** object based on the specified resource name. This API returns the result synchronously. + +**System capability**: SystemCapability.Global.ResourceManager + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------- | ------ | ---- | ---- | +| resName | string | Yes | Resource name.| +| [density](#screendensity) | number | No | Screen density. The default value is **0**.| + +**Return value** + +| Type | Description | +| ------ | --------- | +| DrawableDescriptor | **DrawableDescriptor** object corresponding to the resource ID.| + +For details about the error codes, see [Resource Manager Error Codes](../errorcodes/errorcode-resource-manager.md). + +**Error codes** + +| ID| Error Message| +| -------- | ---------------------------------------- | +| 9001003 | If the resName invalid. | +| 9001004 | If the resource not found by resName. | + +**Example** + ```ts + try { + this.context.resourceManager.getDrawableDescriptorByName('icon'); + } catch (error) { + console.error(`getDrawableDescriptor failed, error code: ${error.code}, message: ${error.message}.`) + } + try { + this.context.resourceManager.getDrawableDescriptorByName('icon', 120); + } catch (error) { + console.error(`getDrawableDescriptor failed, error code: ${error.code}, message: ${error.message}.`) + } + ``` ### getString(deprecated) @@ -2530,7 +2666,7 @@ This API is deprecated since API version 9. You are advised to use [getStringArr getMedia(resId: number, callback: AsyncCallback<Uint8Array>): void -Obtains the content of the media file corresponding to the specified resource name. This API uses an asynchronous callback to return the result. +Obtains the content of the media file corresponding to the specified resource ID. This API uses an asynchronous callback to return the result. This API is deprecated since API version 9. You are advised to use [getMediaContent](#getmediacontent9) instead. diff --git a/en/application-dev/reference/apis/js-apis-sim.md b/en/application-dev/reference/apis/js-apis-sim.md index f8d5e0d75a5425fcade12cd6f8f90e8cc5ee720a..6736cc90eca295e17310c295409a781f679db7d4 100644 --- a/en/application-dev/reference/apis/js-apis-sim.md +++ b/en/application-dev/reference/apis/js-apis-sim.md @@ -134,13 +134,14 @@ Checks whether the application (caller) has been granted the operator permission **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 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. | **Example** @@ -173,13 +174,14 @@ Checks whether the application (caller) has been granted the operator permission **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 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. | **Example** @@ -210,6 +212,8 @@ Obtains the ISO country code of the SIM card in the specified slot. This API use **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -250,6 +254,8 @@ Obtains the ISO country code of the SIM card in the specified slot. This API use **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -288,6 +294,8 @@ Obtains the public land mobile network \(PLMN\) ID of the SIM card in the specif **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -328,6 +336,8 @@ Obtains the PLMN ID of the SIM card in the specified slot. This API uses a promi **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -366,6 +376,8 @@ Obtains the service provider name (SPN) of the SIM card in the specified slot. T **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -406,6 +418,8 @@ Obtains the SPN of the SIM card in the specified slot. This API uses a promise t **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -444,13 +458,14 @@ Obtains the state of the SIM card in the specified slot. This API uses an asynch **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 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. | **Example** @@ -484,13 +499,14 @@ Obtains the state of the SIM card in the specified slot. This API uses a promise **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 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. | **Example** @@ -521,6 +537,8 @@ Obtains the type of the SIM card in the specified slot. This API uses an asynchr **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -561,6 +579,8 @@ Obtains the type of the SIM card in the specified slot. This API uses a promise **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -599,13 +619,14 @@ Checks whether the SIM card in the specified slot is installed. This API uses an **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 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. | **Example** @@ -639,13 +660,14 @@ Checks whether the SIM card in the specified slot is installed. This API uses a **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 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. | **Example** @@ -680,6 +702,8 @@ Obtains SIM card account information. This API uses an asynchronous callback to **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -726,6 +750,8 @@ Obtains SIM card account information. This API uses a promise to return the resu **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -768,6 +794,8 @@ Obtains the account information list of the active SIM card. This API uses an as **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -807,6 +835,8 @@ Obtains the account information list of the active SIM card. This API uses a pro **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -849,6 +879,8 @@ Sets the default slot ID of the SIM card that provides voice services. This API **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -863,8 +895,8 @@ Sets the default slot ID of the SIM card that provides voice services. This API **Example** ```js -sim.setDefaultVoiceSlotId(0, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +sim.setDefaultVoiceSlotId(0, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -895,6 +927,8 @@ Sets the default slot ID of the SIM card that provides voice services. This API **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -910,9 +944,9 @@ Sets the default slot ID of the SIM card that provides voice services. This API ```js let promise = sim.setDefaultVoiceSlotId(0); -promise.then(data => { - console.log(`setDefaultVoiceSlotId success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +promise.then(() => { + console.log(`setDefaultVoiceSlotId success.`); +}).catch((err) => { console.log(`setDefaultVoiceSlotId failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -939,6 +973,8 @@ Sets a display name for the SIM card in the specified slot. This API uses an asy **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -953,8 +989,8 @@ Sets a display name for the SIM card in the specified slot. This API uses an asy ```js let name = "ShowName"; -sim.setShowName(0, name, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +sim.setShowName(0, name, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -985,6 +1021,8 @@ Sets a display name for the SIM card in the specified slot. This API uses a prom **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1000,9 +1038,9 @@ Sets a display name for the SIM card in the specified slot. This API uses a prom ```js let name = "ShowName"; let promise = sim.setShowName(0, name); -promise.then(data => { - console.log(`setShowName success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +promise.then(() => { + console.log(`setShowName success.`); +}).catch((err) => { console.log(`setShowName failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -1028,6 +1066,8 @@ Obtains the name of the SIM card in the specified slot. This API uses an asynchr **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1073,6 +1113,8 @@ Obtains the name of the SIM card in the specified slot. This API uses a promise **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1116,6 +1158,8 @@ Sets a display number for the SIM card in the specified slot. This API uses an a **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1130,8 +1174,8 @@ Sets a display number for the SIM card in the specified slot. This API uses an a ```js let number = '+861xxxxxxxxxx'; -sim.setShowNumber(0, number, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +sim.setShowNumber(0, number, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -1163,6 +1207,8 @@ Sets a display number for the SIM card in the specified slot. This API uses a pr **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1178,9 +1224,9 @@ Sets a display number for the SIM card in the specified slot. This API uses a pr ```js let number = '+861xxxxxxxxxx'; let promise = sim.setShowNumber(0, number); -promise.then(data => { - console.log(`setShowNumber success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +promise.then(() => { + console.log(`setShowNumber success.`); +}).catch((err) => { console.log(`setShowNumber failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -1206,6 +1252,8 @@ Obtains the display number of the SIM card in the specified slot. This API uses **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1251,6 +1299,8 @@ Obtains the display number of the SIM card in the specified slot. This API uses **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1293,6 +1343,8 @@ Activates a SIM card in a specified card slot. This API uses an asynchronous cal **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1306,8 +1358,8 @@ Activates a SIM card in a specified card slot. This API uses an asynchronous cal **Example** ```js -sim.activateSim(0, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +sim.activateSim(0, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -1338,6 +1390,8 @@ Activates the SIM card in the specified slot. This API uses a promise to return **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1352,9 +1406,9 @@ Activates the SIM card in the specified slot. This API uses a promise to return ```js let promise = sim.activateSim(0); -promise.then(data => { - console.log(`activateSim success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +promise.then(() => { + console.log(`activateSim success.`); +}).catch((err) => { console.log(`activateSim failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -1380,6 +1434,8 @@ Disables the SIM card in the specified slot. This API uses an asynchronous callb **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1393,8 +1449,8 @@ Disables the SIM card in the specified slot. This API uses an asynchronous callb **Example** ```js -sim.deactivateSim(0, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +sim.deactivateSim(0, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -1425,6 +1481,8 @@ Disables the SIM card in the specified slot. This API uses a promise to return t **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1439,9 +1497,9 @@ Disables the SIM card in the specified slot. This API uses a promise to return t ```js let promise = sim.deactivateSim(0); -promise.then(data => { - console.log(`deactivateSim success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +promise.then(() => { + console.log(`deactivateSim success.`); +}).catch((err) => { console.log(`deactivateSim failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -1468,6 +1526,8 @@ Sets the lock status of the SIM card in the specified slot. This API uses an asy **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1520,6 +1580,8 @@ Sets the lock status of the SIM card in the specified slot. This API uses a prom **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1569,6 +1631,8 @@ Obtains the lock status of the SIM card in the specified slot. This API uses an **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1616,6 +1680,8 @@ Obtains the lock status of the SIM card in the specified slot. This API uses a p **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1661,6 +1727,8 @@ Changes the PIN of the SIM card in the specified slot. This API uses an asynchro **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1709,6 +1777,8 @@ Changes the PIN of the SIM card in the specified slot. This API uses a promise t **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1754,6 +1824,8 @@ Changes PIN 2 of the SIM card in the specified slot. This API uses an asynchrono **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1802,6 +1874,8 @@ Changes PIN 2 of the SIM card in the specified slot. This API uses a promise to **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1846,6 +1920,8 @@ Unlocks the PIN of the SIM card in the specified slot. This API uses an asynchro **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1894,6 +1970,8 @@ Unlocks the PIN of the SIM card in the specified slot. This API uses a promise t **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1940,6 +2018,8 @@ Unlocks the PUK of the SIM card in the specified slot. This API uses an asynchro **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -1990,6 +2070,8 @@ Unlocks the PUK of the SIM card in the specified slot. This API uses a promise t **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2036,6 +2118,8 @@ Unlocks PIN 2 of the SIM card in the specified slot. This API uses an asynchrono **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2084,6 +2168,8 @@ Unlocks PIN 2 of the SIM card in the specified slot. This API uses a promise to **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2130,6 +2216,8 @@ Unlocks PUK 2 of the SIM card in the specified slot. This API uses an asynchrono **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2180,6 +2268,8 @@ Unlocks PUK 2 of the SIM card in the specified slot. This API uses a promise to **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2245,6 +2335,8 @@ Obtains the ICCID of the SIM card in the specified slot. This API uses an asynch **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2290,6 +2382,8 @@ Obtains the ICCID of the SIM card in the specified slot. This API uses a promise **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2332,6 +2426,8 @@ Obtains the voice mailbox alpha identifier of the SIM card in the specified slot **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2377,6 +2473,8 @@ Obtains the voice mailbox alpha identifier of the SIM card in the specified slot **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2419,6 +2517,8 @@ Obtains the voice mailbox number of the SIM card in the specified slot. This API **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2464,6 +2564,8 @@ Obtains the voice mailbox number of the SIM card in the specified slot. This API **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2509,6 +2611,8 @@ Sets voice mailbox information for the SIM card in the specified slot. This API **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2523,8 +2627,8 @@ Sets voice mailbox information for the SIM card in the specified slot. This API **Example** ```js -sim.setVoiceMailInfo(0, "mail", "xxx@xxx.com", (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +sim.setVoiceMailInfo(0, "mail", "xxx@xxx.com", (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -2557,6 +2661,8 @@ Sets voice mailbox information for the SIM card in the specified slot. This API **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2572,9 +2678,9 @@ Sets voice mailbox information for the SIM card in the specified slot. This API ```js let promise = sim.setVoiceMailInfo(0, "mail", "xxx@xxx.com"); -promise.then(data => { - console.log(`setVoiceMailInfo success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +promise.then(() => { + console.log(`setVoiceMailInfo success.`); +}).catch((err) => { console.log(`setVoiceMailInfo failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -2600,6 +2706,8 @@ Obtains the MSISDN of the SIM card in the specified slot. This API uses an async **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2645,6 +2753,8 @@ Obtains the MSISDN of the SIM card in the specified slot. This API uses a promis **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2687,6 +2797,8 @@ Obtains the group identifier level 1 (GID1) of the SIM card in the specified slo **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2732,6 +2844,8 @@ Obtains the GID1 of the SIM card in the specified slot. This API uses a promise **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2774,6 +2888,8 @@ Obtains the international mobile subscriber identity (IMSI) of the SIM card in t **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2819,6 +2935,8 @@ Obtains the IMSI of the SIM card in the specified slot. This API uses a promise **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2861,6 +2979,8 @@ Obtains the carrier configuration of the SIM card in the specified slot. This AP **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2868,7 +2988,6 @@ Obtains the carrier configuration of the SIM card in the specified slot. This AP | 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. | **Example** @@ -2906,6 +3025,8 @@ Obtains the carrier configuration of the SIM card in the specified slot. This AP **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2913,7 +3034,6 @@ Obtains the carrier configuration of the SIM card in the specified slot. This AP | 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. | **Example** @@ -2949,6 +3069,8 @@ Queries contact numbers of the SIM card in the specified slot. This API uses an **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -2996,6 +3118,8 @@ Queries contact numbers of the SIM card in the specified slot. This API uses a p **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -3041,6 +3165,8 @@ Adds contact numbers for the SIM card in the specified slot. This API uses an as **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -3060,8 +3186,8 @@ let diallingNumbersInof = { number: "138xxxxxxxx", pin2: "1234" }; -sim.addIccDiallingNumbers(0, sim.ContactType.GENERAL_CONTACT, diallingNumbersInof, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +sim.addIccDiallingNumbers(0, sim.ContactType.GENERAL_CONTACT, diallingNumbersInof, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -3094,6 +3220,8 @@ Adds contact numbers for the SIM card in the specified slot. This API uses a pro **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -3113,9 +3241,9 @@ let diallingNumbersInof = { number: "138xxxxxxxx" }; let promise = sim.addIccDiallingNumbers(0, sim.ContactType.GENERAL_CONTACT, diallingNumbersInof); -promise.then(data => { - console.log(`addIccDiallingNumbers success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +promise.then(() => { + console.log(`addIccDiallingNumbers success.`); +}).catch((err) => { console.log(`addIccDiallingNumbers failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -3143,6 +3271,8 @@ Deletes contact numbers from the SIM card in the specified slot. This API uses a **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -3163,8 +3293,8 @@ let diallingNumbersInof = { recordNumber: 123, pin2: "1234" }; -sim.delIccDiallingNumbers(0, sim.ContactType.GENERAL_CONTACT, diallingNumbersInof, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +sim.delIccDiallingNumbers(0, sim.ContactType.GENERAL_CONTACT, diallingNumbersInof, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -3197,6 +3327,8 @@ Deletes contact numbers from the SIM card in the specified slot. This API uses a **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -3216,9 +3348,9 @@ let diallingNumbersInof = { number: "138xxxxxxxx" }; let promise = sim.delIccDiallingNumbers(0, sim.ContactType.GENERAL_CONTACT, diallingNumbersInof); -promise.then(data => { - console.log(`delIccDiallingNumbers success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +promise.then(() => { + console.log(`delIccDiallingNumbers success.`); +}).catch((err) => { console.log(`delIccDiallingNumbers failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -3246,6 +3378,8 @@ Updates contact numbers for the SIM card in the specified slot. This API uses an **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -3266,8 +3400,8 @@ let diallingNumbersInof = { recordNumber: 123, pin2: "1234" }; -sim.updateIccDiallingNumbers(0, sim.ContactType.GENERAL_CONTACT, diallingNumbersInof, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +sim.updateIccDiallingNumbers(0, sim.ContactType.GENERAL_CONTACT, diallingNumbersInof, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -3300,6 +3434,8 @@ Updates contact numbers for the SIM card in the specified slot. This API uses a **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -3320,9 +3456,9 @@ let diallingNumbersInof = { recordNumber: 123 }; let promise = sim.updateIccDiallingNumbers(0, sim.ContactType.GENERAL_CONTACT, diallingNumbersInof); -promise.then(data => { - console.log(`updateIccDiallingNumbers success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +promise.then(() => { + console.log(`updateIccDiallingNumbers success.`); +}).catch((err) => { console.log(`updateIccDiallingNumbers failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -3349,6 +3485,8 @@ Sends an envelope command to the SIM card in the specified slot. This API uses a **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -3362,8 +3500,8 @@ Sends an envelope command to the SIM card in the specified slot. This API uses a **Example** ```js -sim.sendEnvelopeCmd(0, "ls", (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +sim.sendEnvelopeCmd(0, "ls", (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -3395,6 +3533,8 @@ Sends an envelope command to the SIM card in the specified slot. This API uses a **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -3409,9 +3549,9 @@ Sends an envelope command to the SIM card in the specified slot. This API uses a ```js let promise = sim.sendEnvelopeCmd(0, "ls"); -promise.then(data => { - console.log(`sendEnvelopeCmd success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +promise.then(() => { + console.log(`sendEnvelopeCmd success.`); +}).catch((err) => { console.log(`sendEnvelopeCmd failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -3438,6 +3578,8 @@ Sends a terminal response command to the SIM card in the specified slot. This AP **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -3451,8 +3593,8 @@ Sends a terminal response command to the SIM card in the specified slot. This AP **Example** ```js -sim.sendTerminalResponseCmd(0, "ls", (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +sim.sendTerminalResponseCmd(0, "ls", (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -3484,6 +3626,8 @@ Sends a terminal response command to the SIM card in the specified slot. This AP **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -3498,9 +3642,9 @@ Sends a terminal response command to the SIM card in the specified slot. This AP ```js let promise = sim.sendTerminalResponseCmd(0, "ls"); -promise.then(data => { - console.log(`sendTerminalResponseCmd success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +promise.then(() => { + console.log(`sendTerminalResponseCmd success.`); +}).catch((err) => { console.log(`sendTerminalResponseCmd failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -3528,6 +3672,8 @@ Unlocks the SIM card in the specified slot. This API uses an asynchronous callba **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -3579,6 +3725,8 @@ Unlocks the SIM card in the specified slot. This API uses a promise to return th **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -3622,6 +3770,8 @@ Obtains the opkey of the SIM card in the specified slot. This API uses an asynch **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -3629,7 +3779,6 @@ Obtains the opkey of the SIM card in the specified slot. This API uses an asynch | 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. | **Example** @@ -3671,6 +3820,8 @@ Obtains the opkey of the SIM card in the specified slot. This API uses a promise **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -3678,7 +3829,6 @@ Obtains the opkey of the SIM card in the specified slot. This API uses a promise | 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. | **Example** @@ -3709,6 +3859,8 @@ Obtains the OpName of the SIM card in the specified slot. This API uses an async **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -3716,7 +3868,6 @@ Obtains the OpName of the SIM card in the specified slot. This API uses an async | 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. | **Example** @@ -3758,6 +3909,8 @@ Obtains the OpName of the SIM card in the specified slot. This API uses a promis **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -3765,7 +3918,6 @@ Obtains the OpName of the SIM card in the specified slot. This API uses a promis | 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. | **Example** @@ -3847,17 +3999,17 @@ Enumerates personalized lock types. **System capability**: SystemCapability.Telephony.CoreService -| Name | Value | Description | -| ------------ | ---- | ----------------------------------------------- | -| PN_PIN_LOCK | 0 | Personalized network PIN lock. For details, see *3GPP TS 22.022 [33]*. | +| Name | Value | Description | +| ------------ | ---- | ------------------------------------------------ | +| PN_PIN_LOCK | 0 | Personalized network PIN lock. For details, see *3GPP TS 22.022 [33]*. | | PN_PUK_LOCK | 1 | Personalized network PUK lock. | -| PU_PIN_LOCK | 2 | Personalized network subset PIN lock. For details, see *3GPP TS 22.022 [33]*. | +| PU_PIN_LOCK | 2 | Personalized network subset PIN lock. For details, see *3GPP TS 22.022 [33]*. | | PU_PUK_LOCK | 3 | Personalized network subset PUK lock. | -| PP_PIN_LOCK | 4 | Personalized service provider PIN lock. For details, see *3GPP TS 22.022 [33]*.| +| PP_PIN_LOCK | 4 | Personalized service provider PIN lock. For details, see *3GPP TS 22.022 [33]*. | | PP_PUK_LOCK | 5 | Personalized service provider PUK lock. | -| PC_PIN_LOCK | 6 | Personalized corporate PIN lock. For details, see *3GPP TS 22.022 [33]*. | +| PC_PIN_LOCK | 6 | Personalized corporate PIN lock. For details, see *3GPP TS 22.022 [33]*. | | PC_PUK_LOCK | 7 | Personalized corporate PUK lock. | -| SIM_PIN_LOCK | 8 | Personalized SIM card PIN lock. For details, see *3GPP TS 22.022 [33]*. | +| SIM_PIN_LOCK | 8 | Personalized SIM card PIN lock. For details, see *3GPP TS 22.022 [33]*. | | SIM_PUK_LOCK | 9 | Personalized SIM card PUK lock. | ## LockStatusResponse7+ diff --git a/en/application-dev/reference/apis/js-apis-sms.md b/en/application-dev/reference/apis/js-apis-sms.md index c3a1f35f5140514d466ae481876fe1114c2b43e8..464f34595cc67c5051524d2f7f6ef0753bede543 100644 --- a/en/application-dev/reference/apis/js-apis-sms.md +++ b/en/application-dev/reference/apis/js-apis-sms.md @@ -91,6 +91,19 @@ Sends an SMS message. | ------- | ----------------------------------------- | ---- | ------------------------------------------------------------ | | options | [SendMessageOptions](#sendmessageoptions) | Yes | Options (including the callback) for sending an SMS message.| +**Error codes** + +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + +| ID| Error Message | +| -------- | -------------------------------------------- | +| 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. | + **Example** ```js @@ -179,6 +192,8 @@ Sets the default slot ID of the SIM card used to send SMS messages. This API use **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -192,8 +207,8 @@ Sets the default slot ID of the SIM card used to send SMS messages. This API use **Example** ```js -sms.setDefaultSmsSlotId(0, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +sms.setDefaultSmsSlotId(0, (err) => { + console.log(`callback: err->${JSON.stringify(err)}.`); }); ``` @@ -224,6 +239,8 @@ Sets the default slot ID of the SIM card used to send SMS messages. This API use **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -238,9 +255,9 @@ Sets the default slot ID of the SIM card used to send SMS messages. This API use ```js let promise = sms.setDefaultSmsSlotId(0); -promise.then(data => { - console.log(`setDefaultSmsSlotId success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +promise.then(() => { + console.log(`setDefaultSmsSlotId success.`); +}).catch((err) => { console.error(`setDefaultSmsSlotId failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -267,6 +284,8 @@ Sets the short message service center (SMSC) address. This API uses an asynchron **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -281,8 +300,8 @@ Sets the short message service center (SMSC) address. This API uses an asynchron ```js let slotId = 0; let smscAddr = '+861xxxxxxxxxx'; -sms.setSmscAddr(slotId, smscAddr, (err,data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +sms.setSmscAddr(slotId, smscAddr, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -314,6 +333,8 @@ Sets the SMSC address. This API uses a promise to return the result. **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -329,9 +350,9 @@ Sets the SMSC address. This API uses a promise to return the result. let slotId = 0; let smscAddr = '+861xxxxxxxxxx'; let promise = sms.setSmscAddr(slotId, smscAddr); -promise.then(data => { - console.log(`setSmscAddr success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +promise.then(() => { + console.log(`setSmscAddr success.`); +}).catch((err) => { console.error(`setSmscAddr failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -358,6 +379,8 @@ Obtains the SMSC address. This API uses an asynchronous callback to return the r **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -403,6 +426,8 @@ Obtains the SMSC address. This API uses a promise to return the result. **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -464,6 +489,8 @@ Splits an SMS message into multiple segments. This API uses an asynchronous call **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -509,6 +536,8 @@ Splits an SMS message into multiple segments. This API uses a promise to return **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -551,6 +580,8 @@ Adds a SIM message. This API uses an asynchronous callback to return the result. **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -569,8 +600,8 @@ let simMessageOptions = { pdu: "xxxxxx", status: sms.SimMessageStatus.SIM_MESSAGE_STATUS_READ }; -sms.addSimMessage(simMessageOptions, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +sms.addSimMessage(simMessageOptions, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -601,6 +632,8 @@ Adds a SIM message. This API uses a promise to return the result. **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -620,9 +653,9 @@ let simMessageOptions = { status: sms.SimMessageStatus.SIM_MESSAGE_STATUS_READ }; let promise = sms.addSimMessage(simMessageOptions); -promise.then(data => { - console.log(`addSimMessage success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +promise.then(() => { + console.log(`addSimMessage success.`); +}).catch((err) => { console.error(`addSimMessage failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -649,6 +682,8 @@ Deletes a SIM message. This API uses an asynchronous callback to return the resu **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -663,8 +698,8 @@ Deletes a SIM message. This API uses an asynchronous callback to return the resu ```js let slotId = 0; let msgIndex = 1; -sms.delSimMessage(slotId, msgIndex, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +sms.delSimMessage(slotId, msgIndex, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -696,6 +731,8 @@ Deletes a SIM message. This API uses a promise to return the result. **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -711,9 +748,9 @@ Deletes a SIM message. This API uses a promise to return the result. let slotId = 0; let msgIndex = 1; let promise = sms.delSimMessage(slotId, msgIndex); -promise.then(data => { - console.log(`delSimMessage success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +promise.then(() => { + console.log(`delSimMessage success.`); +}).catch((err) => { console.error(`delSimMessage failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -739,6 +776,8 @@ Updates a SIM message. This API uses an asynchronous callback to return the resu **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -758,8 +797,8 @@ let updateSimMessageOptions = { pdu: "xxxxxxx", smsc: "test" }; -sms.updateSimMessage(updateSimMessageOptions, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +sms.updateSimMessage(updateSimMessageOptions, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -790,6 +829,8 @@ Updates a SIM message. This API uses a promise to return the result. **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -810,9 +851,9 @@ let updateSimMessageOptions = { smsc: "test" }; let promise = sms.updateSimMessage(updateSimMessageOptions); -promise.then(data => { - console.log(`updateSimMessage success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +promise.then(() => { + console.log(`updateSimMessage success.`); +}).catch((err) => { console.error(`updateSimMessage failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -838,6 +879,8 @@ Obtains all SIM card messages. This API uses an asynchronous callback to return **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -883,6 +926,8 @@ Obtains all SIM card messages. This API uses a promise to return the result. **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -925,6 +970,8 @@ Sets the cell broadcast configuration. This API uses an asynchronous callback to **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -944,8 +991,8 @@ let cbConfigOptions = { endMessageId: 200, ranType: sms.RanType.TYPE_GSM }; -sms.setCBConfig(cbConfigOptions, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +sms.setCBConfig(cbConfigOptions, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -976,6 +1023,8 @@ Sets the cell broadcast configuration. This API uses a promise to return the res **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -996,9 +1045,9 @@ let cbConfigOptions = { ranType: sms.RanType.TYPE_GSM }; let promise = sms.setCBConfig(cbConfigOptions); -promise.then(data => { - console.log(`setCBConfig success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { +promise.then(() => { + console.log(`setCBConfig success.`); +}).catch((err) => { console.error(`setCBConfig failed, promise: err->${JSON.stringify(err)}`); }); ``` @@ -1024,6 +1073,8 @@ Obtains SMS message segment information. This API uses an asynchronous callback **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -1068,6 +1119,8 @@ Obtains SMS message segment information. This API uses a promise to return the r **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -1107,6 +1160,8 @@ Checks whether SMS is supported on IMS. This API uses an asynchronous callback t **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -1149,6 +1204,8 @@ This API uses an asynchronous callback to return the result. This API uses a pro **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -1187,9 +1244,10 @@ Obtains the SMS format supported by the IMS. This API uses an asynchronous callb **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | -| 201 | Permission denied. | | 401 | Parameter error. | | 8300001 | Invalid parameter value. | | 8300002 | Operation failed. Cannot connect to service. | @@ -1223,9 +1281,10 @@ Obtains the SMS format supported by the IMS. This API uses a promise to return t **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | -| 201 | Permission denied. | | 401 | Parameter error. | | 8300001 | Invalid parameter value. | | 8300002 | Operation failed. Cannot connect to service. | @@ -1262,6 +1321,8 @@ Decodes MMS messages. This API uses an asynchronous callback to return the resul **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -1304,6 +1365,8 @@ Decodes MMS messages. This API uses a promise to return the result. **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -1343,6 +1406,8 @@ MMS message code. This API uses an asynchronous callback to return the result. **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | @@ -1393,6 +1458,8 @@ MMS message code. This API uses a promise to return the result. **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 401 | Parameter error. | diff --git a/en/application-dev/reference/apis/js-apis-socket.md b/en/application-dev/reference/apis/js-apis-socket.md index 27d1b5cb9a3e0fc77437ab1bdee1b81a30dcaecc..d60b3e4eaf6245634140ba6c217bb3d97eb2ac25 100644 --- a/en/application-dev/reference/apis/js-apis-socket.md +++ b/en/application-dev/reference/apis/js-apis-socket.md @@ -1,4 +1,4 @@ -# Socket Connection +# # @ohos.net.socket (Socket Connection) The **socket** module implements data transfer over TCPSocket, UDPSocket, WebSocket, and TLSSocket connections. @@ -364,7 +364,7 @@ udp.bind({address: '192.168.xx.xxx', port: xxxx, family: 1}, err => { setExtraOptions(options: UDPExtraOptions, callback: AsyncCallback\): void -Sets other properties of the UDPSocket connection. This API uses an asynchronous callback to return the result. +Sets other attributes of the UDPSocket connection. This API uses an asynchronous callback to return the result. >**NOTE** >This API can be called only after **bind** is successfully called. @@ -418,7 +418,7 @@ udp.bind({address:'192.168.xx.xxx', port:xxxx, family:1}, err=> { setExtraOptions(options: UDPExtraOptions): Promise\ -Sets other properties of the UDPSocket connection. This API uses a promise to return the result. +Sets other attributes of the UDPSocket connection. This API uses a promise to return the result. >**NOTE** >This API can be called only after **bind** is successfully called. @@ -522,7 +522,7 @@ let callback = value =>{ console.log("on message, message:" + value.message + ", remoteInfo:" + value.remoteInfo); } udp.on('message', callback); -// You can pass the **callback** of the **on** method to cancel listening for a certain type of callback. If you do not pass the **callback**, you will cancel listening for all callbacks. +// You can pass the callback of the on method to cancel listening for a certain type of callback. If you do not pass the callback, you will cancel listening for all callbacks. udp.off('message', callback); udp.off('message'); ``` @@ -582,14 +582,14 @@ let callback1 = () =>{ console.log("on listening, success"); } udp.on('listening', callback1); -// You can pass the **callback** of the **on** method to cancel listening for a certain type of callback. If you do not pass the **callback**, you will cancel listening for all callbacks. +// You can pass the callback of the on method to cancel listening for a certain type of callback. If you do not pass the callback, you will cancel listening for all callbacks. udp.off('listening', callback1); udp.off('listening'); let callback2 = () =>{ console.log("on close, success"); } udp.on('close', callback2); -// You can pass the **callback** of the **on** method to cancel listening for a certain type of callback. If you do not pass the **callback**, you will cancel listening for all callbacks. +// You can pass the callback of the on method to cancel listening for a certain type of callback. If you do not pass the callback, you will cancel listening for all callbacks. udp.off('close', callback2); udp.off('close'); ``` @@ -646,7 +646,7 @@ let callback = err =>{ console.log("on error, err:" + JSON.stringify(err)); } udp.on('error', callback); -// You can pass the **callback** of the **on** method to cancel listening for a certain type of callback. If you do not pass the **callback**, you will cancel listening for all callbacks. +// You can pass the callback of the on method to cancel listening for a certain type of callback. If you do not pass the callback, you will cancel listening for all callbacks. udp.off('error', callback); udp.off('error'); ``` @@ -1426,7 +1426,7 @@ let callback = value =>{ console.log("on message, message:" + value.message + ", remoteInfo:" + value.remoteInfo); } tcp.on('message', callback); -// You can pass the **callback** of the **on** method to cancel listening for a certain type of callback. If you do not pass the **callback**, you will cancel listening for all callbacks. +// You can pass the callback of the on method to cancel listening for a certain type of callback. If you do not pass the callback, you will cancel listening for all callbacks. tcp.off('message', callback); tcp.off('message'); ``` @@ -1486,14 +1486,14 @@ let callback1 = () =>{ console.log("on connect success"); } tcp.on('connect', callback1); -// You can pass the **callback** of the **on** method to cancel listening for a certain type of callback. If you do not pass the **callback**, you will cancel listening for all callbacks. +// You can pass the callback of the on method to cancel listening for a certain type of callback. If you do not pass the callback, you will cancel listening for all callbacks. tcp.off('connect', callback1); tcp.off('connect'); let callback2 = () =>{ console.log("on close success"); } tcp.on('close', callback2); -// You can pass the **callback** of the **on** method to cancel listening for a certain type of callback. If you do not pass the **callback**, you will cancel listening for all callbacks. +// You can pass the callback of the on method to cancel listening for a certain type of callback. If you do not pass the callback, you will cancel listening for all callbacks. tcp.off('close', callback2); tcp.off('close'); ``` @@ -1550,7 +1550,7 @@ let callback = err =>{ console.log("on error, err:" + JSON.stringify(err)); } tcp.on('error', callback); -// You can pass the **callback** of the **on** method to cancel listening for a certain type of callback. If you do not pass the **callback**, you will cancel listening for all callbacks. +// You can pass the callback of the on method to cancel listening for a certain type of callback. If you do not pass the callback, you will cancel listening for all callbacks. tcp.off('error', callback); tcp.off('error'); ``` @@ -2674,4 +2674,4 @@ Defines the certificate raw data. | Type | Description | | --------------------------------------------------------------------- | --------------------- | -|[cryptoFramework.EncodingBlob](js-apis-cryptoFramework.md#datablob) | Data and encoding format of the certificate.| +|[cert.EncodingBlob](js-apis-cert.md#datablob) | Data and encoding format of the certificate.| diff --git a/en/application-dev/reference/apis/js-apis-system-bluetooth.md b/en/application-dev/reference/apis/js-apis-system-bluetooth.md index ff04cbb9845aa63f7a5bb7ac12104e485e5991e9..497e0817fcfcd1ca12c43948a8907b96871a1287 100644 --- a/en/application-dev/reference/apis/js-apis-system-bluetooth.md +++ b/en/application-dev/reference/apis/js-apis-system-bluetooth.md @@ -22,7 +22,6 @@ Scans for Bluetooth Low Energy (BLE) devices nearby. This operation consumes sys **System capability**: SystemCapability.Communication.Bluetooth.Lite **Parameters** - **Table 1** StartBLEScanOptions | Name| Type| Mandatory| Description| @@ -57,7 +56,6 @@ Stops scanning for BLE devices nearby. This API is used with [bluetooth.startBLE **System capability**: SystemCapability.Communication.Bluetooth.Lite **Parameters** - **Table 2** StopBLEScanOptions | Name| Type| Mandatory| Description| diff --git a/en/application-dev/reference/apis/js-apis-system-cipher.md b/en/application-dev/reference/apis/js-apis-system-cipher.md index b99f72e1fb59bd6af33a0bd5f7cc090fc6fc1222..30ac917b4c2ff2867cbbe4c54385500316494520 100644 --- a/en/application-dev/reference/apis/js-apis-system-cipher.md +++ b/en/application-dev/reference/apis/js-apis-system-cipher.md @@ -3,7 +3,7 @@ > **NOTE** > > - The initial APIs of this module are supported since API version 3. Newly added APIs will be marked with a superscript to indicate their earliest API version. ->- The APIs provided by this module are deprecated since API version 9. You are advised to use [cryptoFramework-Cipher](js-apis-cryptoFramework.md#Cipher). +>- The APIs provided by this module are deprecated since API version 9. You are advised to use [@ohos.security.cryptoFramework Cipher](js-apis-cryptoFramework.md#cipher). ## Modules to Import diff --git a/en/application-dev/reference/apis/js-apis-telephony-data.md b/en/application-dev/reference/apis/js-apis-telephony-data.md index 4521aa0eac78b15b8c5644b53aac44fc59b2f648..7e244574143dd04bedd6c8f74a6206b0263f7584 100644 --- a/en/application-dev/reference/apis/js-apis-telephony-data.md +++ b/en/application-dev/reference/apis/js-apis-telephony-data.md @@ -100,6 +100,8 @@ Sets the default slot of the SIM card used for mobile data. This API uses an asy **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -114,8 +116,8 @@ Sets the default slot of the SIM card used for mobile data. This API uses an asy **Example** ```js -data.setDefaultCellularDataSlotId(0, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +data.setDefaultCellularDataSlotId(0, (err) => { + console.log(`callback: err->${JSON.stringify(err)}.`); }); ``` @@ -145,6 +147,8 @@ Sets the default slot of the SIM card used for mobile data. This API uses a prom **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -160,8 +164,8 @@ Sets the default slot of the SIM card used for mobile data. This API uses a prom ```js let promise = data.setDefaultCellularDataSlotId(0); -promise.then((data) => { - console.log(`setDefaultCellularDataSlotId success, promise: data->${JSON.stringify(data)}`); +promise.then(() => { + console.log(`setDefaultCellularDataSlotId success.`); }).catch((err) => { console.error(`setDefaultCellularDataSlotId fail, promise: err->${JSON.stringify(err)}`); }); @@ -279,6 +283,8 @@ Checks whether the cellular data service is enabled. This API uses an asynchrono **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -314,6 +320,8 @@ Checks whether the cellular data service is enabled. This API uses a promise to **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -353,6 +361,8 @@ Checks whether roaming is enabled for the cellular data service. This API uses a **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -394,6 +404,8 @@ Checks whether roaming is enabled for the cellular data service. This API uses a **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -434,6 +446,8 @@ Enables the cellular data service. This API uses an asynchronous callback to ret **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -446,8 +460,8 @@ Enables the cellular data service. This API uses an asynchronous callback to ret **Example** ```js -data.enableCellularData((err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +data.enableCellularData((err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -471,6 +485,8 @@ Enables the cellular data service. This API uses a promise to return the result. **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -484,8 +500,8 @@ Enables the cellular data service. This API uses a promise to return the result. ```js let promise = data.enableCellularData(); -promise.then((data) => { - console.log(`enableCellularData success, promise: data->${JSON.stringify(data)}`); +promise.then(() => { + console.log(`enableCellularData success.`); }).catch((err) => { console.error(`enableCellularData fail, promise: err->${JSON.stringify(err)}`); }); @@ -511,6 +527,8 @@ Disables the cellular data service. This API uses an asynchronous callback to re **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -523,8 +541,8 @@ Disables the cellular data service. This API uses an asynchronous callback to re **Example** ```js -data.disableCellularData((err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +data.disableCellularData((err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -548,6 +566,8 @@ Disables the cellular data service. This API uses a promise to return the result **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -561,8 +581,8 @@ Disables the cellular data service. This API uses a promise to return the result ```js let promise = data.disableCellularData(); -promise.then((data) => { - console.log(`disableCellularData success, promise: data->${JSON.stringify(data)}`); +promise.then(() => { + console.log(`disableCellularData success.`); }).catch((err) => { console.error(`disableCellularData fail, promise: err->${JSON.stringify(err)}`); }); @@ -589,6 +609,8 @@ Enables the cellular data roaming service. This API uses an asynchronous callbac **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -601,8 +623,8 @@ Enables the cellular data roaming service. This API uses an asynchronous callbac **Example** ```js -data.enableCellularDataRoaming(0, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +data.enableCellularDataRoaming(0, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -632,6 +654,8 @@ Enables the cellular data roaming service. This API uses a promise to return the **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -645,8 +669,8 @@ Enables the cellular data roaming service. This API uses a promise to return the ```js let promise = data.enableCellularDataRoaming(0); -promise.then((data) => { - console.log(`enableCellularDataRoaming success, promise: data->${JSON.stringify(data)}`); +promise.then(() => { + console.log(`enableCellularDataRoaming success.`); }).catch((err) => { console.error(`enableCellularDataRoaming fail, promise: err->${JSON.stringify(err)}`); }); @@ -673,6 +697,8 @@ Disables the cellular data roaming service. This API uses an asynchronous callba **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -685,8 +711,8 @@ Disables the cellular data roaming service. This API uses an asynchronous callba **Example** ```js -data.disableCellularDataRoaming(0, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +data.disableCellularDataRoaming(0, (err) => { + console.log(`callback: err->${JSON.stringify(err)}`); }); ``` @@ -716,6 +742,8 @@ Disables the cellular data roaming service. This API uses a promise to return th **Error codes** +For details about the following error codes, see [Telephony Error Codes](../../reference/errorcodes/errorcode-telephony.md). + | ID| Error Message | | -------- | -------------------------------------------- | | 201 | Permission denied. | @@ -729,8 +757,8 @@ Disables the cellular data roaming service. This API uses a promise to return th ```js let promise = data.disableCellularDataRoaming(0); -promise.then((data) => { - console.log(`disableCellularDataRoaming success, promise: data->${JSON.stringify(data)}`); +promise.then(() => { + console.log(`disableCellularDataRoaming success.`); }).catch((err) => { console.error(`disableCellularDataRoaming fail, promise: err->${JSON.stringify(err)}`); }); diff --git a/en/application-dev/reference/apis/js-apis-useriam-userauth.md b/en/application-dev/reference/apis/js-apis-useriam-userauth.md index ce3611111a266910c302c779ee5eadc0b1fdc06c..188eeedc48db29468c8abaadf088b9c991305bed 100644 --- a/en/application-dev/reference/apis/js-apis-useriam-userauth.md +++ b/en/application-dev/reference/apis/js-apis-useriam-userauth.md @@ -2,7 +2,8 @@ The **userIAM.userAuth** module provides user authentication capabilities in identity authentication scenarios, such as device unlocking, payment, and app login. -> **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. @@ -399,44 +400,6 @@ try { } ``` -## userIAM_userAuth.getVersion9+ - -getVersion(): number - -Obtains the version of this authenticator. - -**Required permissions**: ohos.permission.ACCESS_BIOMETRIC - -**System capability**: SystemCapability.UserIAM.UserAuth.Core - -**Return value** - -| Type | Description | -| ------ | ---------------------- | -| number | Authenticator version obtained.| - -For details about the error codes, see [User Authentication Error Codes](../errorcodes/errorcode-useriam.md). - -**Error codes** - -| ID| Error Message| -| -------- | ------- | -| 201 | Permission verification failed. | -| 12500002 | General operation error. | - -**Example** - -```js -import userIAM_userAuth from '@ohos.userIAM.userAuth'; - -try { - let version = userIAM_userAuth.getVersion(); - console.info("auth version = " + version); -} catch (error) { - console.info("get version failed, error = " + error); -} -``` - ## userIAM_userAuth.getAvailableStatus9+ getAvailableStatus(authType : UserAuthType, authTrustLevel : AuthTrustLevel): void @@ -535,7 +498,7 @@ getVersion() : number Obtains the version of this authenticator. > **NOTE**
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getVersion](#useriam_userauthgetversion9). +> This API is supported since API version 8 and deprecated since API version 9. **Required permissions**: ohos.permission.ACCESS_BIOMETRIC diff --git a/en/application-dev/reference/apis/js-apis-webview.md b/en/application-dev/reference/apis/js-apis-webview.md index d20a81f9e2b278fc2095fdd32203cfc3761c4f06..16e1356b88974ab8e4e7fcd4b76a021928847018 100644 --- a/en/application-dev/reference/apis/js-apis-webview.md +++ b/en/application-dev/reference/apis/js-apis-webview.md @@ -1739,9 +1739,9 @@ 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. Save the port number sent from the eTS side. + h5Port = event.ports[0]; // 1. Save the port number sent from the ArkTS side. h5Port.onmessage = function (event) { - // 2. Receive the message sent from the eTS side. + // 2. Receive the message sent from the ArkTS side. var msg = 'Got message from ets:'; var result = event.data; if (typeof(result) == "string") { @@ -1763,7 +1763,7 @@ window.addEventListener('message', function (event) { } }) -// 3. Use h5Port to send messages to the eTS side. +// 3. Use h5Port to send messages to the ArkTS side. function PostMsgToEts(data) { if (h5Port) { h5Port.postMessage(data); diff --git a/en/application-dev/reference/arkui-js/js-components-basic-marquee.md b/en/application-dev/reference/arkui-js/js-components-basic-marquee.md index a1072111daa65e9eab0e528e086b8955efa66e09..baf4fcc12c7ab5edb07b6d41cf6c9740e7fcfda6 100644 --- a/en/application-dev/reference/arkui-js/js-components-basic-marquee.md +++ b/en/application-dev/reference/arkui-js/js-components-basic-marquee.md @@ -136,4 +136,4 @@ export default { } ``` -![zh-cn_image_0000001176075554](figures/zh-cn_image_0000001176075554.gif) +![en-us_image_0000001176075554](figures/en-us_image_0000001176075554.gif) diff --git a/en/application-dev/reference/arkui-js/js-components-container-stepper.md b/en/application-dev/reference/arkui-js/js-components-container-stepper.md index 09bd2f3fce15f326b1d8f06832d3ea0c4319e234..ffcab80f20581fcb3e6ef36586416faeec50f922 100644 --- a/en/application-dev/reference/arkui-js/js-components-container-stepper.md +++ b/en/application-dev/reference/arkui-js/js-components-container-stepper.md @@ -48,7 +48,7 @@ In addition to the [universal events](../arkui-js/js-components-common-events.md | finish | - | Triggered when the last step on the navigator is complete. | | skip | - | Triggered when users click the skip button to skip steps.| | change | { prevIndex: prevIndex, index: index} | Triggered when users click the left or right (text) button of the step navigator to switch between steps. **prevIndex** indicates the index of the previous step, and **index** indicates that of the current step.| -| next | { index: index, pendingIndex: pendingIndex } | Triggered when users click the next (text) button. **index** indicates the index of the current step, and **pendingIndex** indicates that of the step to go. The return value is in **{pendingIndex:*** pendingIndex***}** format. You can use **pendingIndex** to specify a **** child component as the next step to go.| +| next | { index: index, pendingIndex: pendingIndex } | Triggered when users click the next (text) button. **index** indicates the index of the current step, and **pendingIndex** indicates that of the step to go. The return value is in **{pendingIndex:*** pendingIndex***}** format. You can use **pendingIndex** to specify a **\** child component as the next step to go. | | back | { index: index, pendingIndex: pendingIndex } | Triggered when users click the previous (text) button. **index** indicates the index of the current step, and **pendingIndex** indicates that of the step to go. The return value is in Object:{ **{pendingIndex:*** pendingIndex***}** format. You can use **pendingIndex** to specify a **** child component as the previous step.| diff --git a/en/application-dev/reference/arkui-js/js-components-custom-slot.md b/en/application-dev/reference/arkui-js/js-components-custom-slot.md index 706268221ec46fd3d18b3c0609229e4c1952efb3..894a56e8cbe2aa4a9675e9787f8218ad220393bd 100644 --- a/en/application-dev/reference/arkui-js/js-components-custom-slot.md +++ b/en/application-dev/reference/arkui-js/js-components-custom-slot.md @@ -31,7 +31,7 @@ The following references the custom component: ## Named Slot -When multiple slots are need inside a custom component, you can name them, so that you can specify the slot in which you want to fill content by setting the **** attribute. +When multiple slots are need inside a custom component, you can name them, so that you can specify the slot in which you want to fill content by setting the **\** attribute. ```html diff --git a/en/application-dev/reference/arkui-ts/Readme-EN.md b/en/application-dev/reference/arkui-ts/Readme-EN.md index 9b2c8d0277f79df9dc0cc3e59aece289076af677..7d723dc4082fd6f1aa65fe7ff181fc3fcd268621 100644 --- a/en/application-dev/reference/arkui-ts/Readme-EN.md +++ b/en/application-dev/reference/arkui-ts/Readme-EN.md @@ -28,7 +28,6 @@ - [Transformation](ts-universal-attributes-transformation.md) - [Image Effect Configuration](ts-universal-attributes-image-effect.md) - [Shape Clipping](ts-universal-attributes-sharp-clipping.md) - - [Text Style](ts-universal-attributes-text-style.md) - [Grid](ts-universal-attributes-grid.md) - [Gradient Color](ts-universal-attributes-gradient-color.md) - [Popup Control](ts-universal-attributes-popup.md) @@ -43,7 +42,8 @@ - [Background Blur](ts-universal-attributes-backgroundBlurStyle.md) - [restoreId](ts-universal-attributes-restoreId.md) - [Foreground Color](ts-universal-attributes-foreground-color.md) - - Gesture Processing + - [Universal Text Attributes](ts-universal-attributes-text-style.md) + - Gesture Handling - [Gesture Binding Methods](ts-gesture-settings.md) - Basic Gestures - [TapGesture](ts-basic-gestures-tapgesture.md) diff --git a/en/application-dev/reference/arkui-ts/figures/align.png b/en/application-dev/reference/arkui-ts/figures/align.png index ffabc26d3ee59984dda6cb375f8b18bb319b4fc7..5cdeb7cfd622b90a6fe52ef8cc94f187847d05b7 100644 Binary files a/en/application-dev/reference/arkui-ts/figures/align.png and b/en/application-dev/reference/arkui-ts/figures/align.png differ diff --git a/en/application-dev/reference/arkui-ts/figures/animation.PNG b/en/application-dev/reference/arkui-ts/figures/animation.PNG deleted file mode 100644 index 92f92e0001a90840d03ebd00e0b0ef736c2a94c8..0000000000000000000000000000000000000000 Binary files a/en/application-dev/reference/arkui-ts/figures/animation.PNG and /dev/null differ diff --git a/en/application-dev/reference/arkui-ts/figures/animation.gif b/en/application-dev/reference/arkui-ts/figures/animation.gif index 6cfbc07fc5122be3ecd69e6b33b6f00c0f676a0f..e1f1e9d8eedba5f4d7e9895fe10c1028cb8e19bd 100644 Binary files a/en/application-dev/reference/arkui-ts/figures/animation.gif and b/en/application-dev/reference/arkui-ts/figures/animation.gif differ diff --git a/en/application-dev/reference/arkui-ts/figures/animation1.PNG b/en/application-dev/reference/arkui-ts/figures/animation1.PNG deleted file mode 100644 index 98cc1fa8c0537071549fa8185fa14f7ad103e7f8..0000000000000000000000000000000000000000 Binary files a/en/application-dev/reference/arkui-ts/figures/animation1.PNG and /dev/null differ diff --git a/en/application-dev/reference/arkui-ts/figures/animation1.gif b/en/application-dev/reference/arkui-ts/figures/animation1.gif new file mode 100644 index 0000000000000000000000000000000000000000..d4fae00973755cc243e1d48f10acf9ef4b24682e Binary files /dev/null and b/en/application-dev/reference/arkui-ts/figures/animation1.gif differ diff --git a/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001174104400.gif b/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001174104400.gif new file mode 100644 index 0000000000000000000000000000000000000000..da442c6a4f02d281bafff3f9fde8a51c6ebbf932 Binary files /dev/null and b/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001174104400.gif differ diff --git a/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001212378420.gif b/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001212378420.gif deleted file mode 100644 index ec293bafaf6cd7204ebb231c4eee7daa504b78c3..0000000000000000000000000000000000000000 Binary files a/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001212378420.gif and /dev/null differ diff --git a/en/application-dev/reference/arkui-ts/figures/en-us_image_background_blur_style.png b/en/application-dev/reference/arkui-ts/figures/en-us_image_background_blur_style.png index e9a7b0e3baa6d48739c2a3cfbc7b5b46600f9c70..9bec842e6d41af8a815ab24ce0897a0b75c8b8c4 100644 Binary files a/en/application-dev/reference/arkui-ts/figures/en-us_image_background_blur_style.png and b/en/application-dev/reference/arkui-ts/figures/en-us_image_background_blur_style.png differ diff --git a/en/application-dev/reference/arkui-ts/ts-animatorproperty.md b/en/application-dev/reference/arkui-ts/ts-animatorproperty.md index f22e531ac3a0f8423c9e8de5af520a92d2828d5f..d5d669429dcb6af79c26cdc49661f1087c871472 100644 --- a/en/application-dev/reference/arkui-ts/ts-animatorproperty.md +++ b/en/application-dev/reference/arkui-ts/ts-animatorproperty.md @@ -37,11 +37,11 @@ struct AttrAnimationExample { build() { Column() { - Button('change width and height') + Button('change size') .onClick(() => { if (this.flag) { - this.widthSize = 100 - this.heightSize = 50 + this.widthSize = 150 + this.heightSize = 60 } else { this.widthSize = 250 this.heightSize = 100 @@ -67,8 +67,8 @@ struct AttrAnimationExample { duration: 1200, curve: Curve.Friction, delay: 500, - iterations: -1, // The value -1 indicates that the animation is played for an unlimited number of times. - playMode: PlayMode.AlternateReverse + iterations: -1, // The value -1 indicates that the animation is played for an unlimited number of times. + playMode: PlayMode.Alternate }) }.width('100%').margin({ top: 20 }) } diff --git a/en/application-dev/reference/arkui-ts/ts-appendix-enums.md b/en/application-dev/reference/arkui-ts/ts-appendix-enums.md index 967d9a0f35c6e5ee71a4ebe8a09ceaed21305c53..cf2dda07a27288101b36e111dd5ff2a51c390dff 100644 --- a/en/application-dev/reference/arkui-ts/ts-appendix-enums.md +++ b/en/application-dev/reference/arkui-ts/ts-appendix-enums.md @@ -417,21 +417,23 @@ Since API version 9, this API is supported in ArkTS widgets. Since API version 9, this API is supported in ArkTS widgets. -| Name | Description | -| ------ | -------------- | -| Start | Aligned with the start.| -| Center | Horizontally centered.| -| End | Aligned with the end.| +| Name | Description | +| --------------------- | -------------- | +| Start | Aligned with the start.| +| Center | Horizontally centered.| +| End | Aligned with the end.| +| Justify10+ | Aligned with both margins. | ## TextOverflow Since API version 9, this API is supported in ArkTS widgets. -| Name | Description | -| -------- | -------------------------------------- | -| Clip | Extra-long text is clipped. | -| Ellipsis | An ellipsis (...) is used to represent clipped text.| -| None | No clipping or ellipsis is used for extra-long text. | +| Name | Description | +| --------------------- | -------------------------------------- | +| None | No clipping or ellipsis is used for text overflow. | +| Clip | Extra-long text is clipped. | +| Ellipsis | An ellipsis (...) is used to represent text overflow.| +| Marquee10+ | Text continuously scrolls when text overflow occurs. | ## TextDecorationType @@ -513,3 +515,40 @@ Since API version 9, this API is supported in ArkTS widgets. | Block | The node responds to the hit test of a touch event, but its child node and sibling node are blocked from the hit test. | | Transparent | Both the node and its child node respond to the hit test of a touch event, and its sibling node is also considered during the hit test.| | None | The node does not respond to the hit test of a touch event, but its child node and sibling node are considered during the hit test.| + +## BlurStyle9+ + +This API is supported in ArkTS widgets. + + | Name| Description| + | ------- | ---------- | + | Thin | Thin material. | + | Regular | Regular material. | + | Thick | Thick material. | + | BackgroundThin | Material that creates the minimum depth of field effect.| + | BackgroundRegular | Material that creates a medium shallow depth of field effect.| + | BackgroundThick | Material that creates a high shallow depth of field effect.| + | BackgroundUltraThick | Material that creates the maximum depth of field effect.| + +## ThemeColorMode10+ + + | Name | Description | + | ------- | ---------- | + | System | Following the system color mode.| + | Light | Light color mode.| + | Dark | Dark color mode.| + +## AdaptiveColor10+ + + | Name | Description | + | ------- | ----------- | + | Default | Adaptive color mode is not used. The default color is used as the mask color.| + | Average | Adaptive color mode is used. The average color value of the color picking area is used as the mask color.| + +## TextHeightAdaptivePolicy10+ + +| Name | Description | +| ----------------------- | ------------------------------------------------ | +| MAX_LINES_FIRST | Prioritize the **maxLines** settings. | +| MIN_FONT_SIZE_FIRST | Prioritize the **minFontSize** settings. | +| LAYOUT_CONSTRAINT_FIRST | Prioritize the layout constraint settings in terms of height.| diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-button.md b/en/application-dev/reference/arkui-ts/ts-basic-components-button.md index 75d67936b62bf0ac72456673ef1474e4840cb9fd..de00ad6ba70f1ddb0cf8bff57e2f8ef7bfec26cf 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-button.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-button.md @@ -25,10 +25,9 @@ Since API version 9, this API is supported in ArkTS widgets. | type | ButtonType | No | Button type.
Default value: **ButtonType.Capsule** | | stateEffect | boolean | No | Whether to enable the pressed effect on the click of the button. The value **false** means to disable the pressed effect.
Default value: **true**| - **API 2:** Button(label?: ResourceStr, options?: { type?: ButtonType, stateEffect?: boolean }) - Creates a button component based on text content. In this case, the component cannot contain child components. +Creates a button component based on text content. In this case, the component cannot contain child components. Since API version 9, this API is supported in ArkTS widgets. @@ -46,6 +45,7 @@ Since API version 9, this API is supported in ArkTS widgets. | ----------- | ----------- | --------------------------------- | | type | ButtonType | Button type.
Default value: **ButtonType.Capsule**
Since API version 9, this API is supported in ArkTS widgets.| | stateEffect | boolean | Whether to enable the pressed effect on the click of the button. The value **false** means to disable the pressed effect.
Default value: **true**
Since API version 9, this API is supported in ArkTS widgets.| +| labelStyle10+ | [LabelStyle](#labelstyle10) | Label style of the button.| ## ButtonType enums @@ -58,11 +58,22 @@ Since API version 9, this API is supported in ArkTS widgets. | Normal | Normal button (without rounded corners by default). | > **NOTE** -> - The rounded corner of a button is set by using [borderRadius](ts-universal-attributes-border.md), rather than by using the **border** API. Only a button-wide rounded corner setting is supported. -> - For a button of the **Capsule** type, the **borderRadius** settings do not take effect, and its rounded corner is always half of the button height. +> - The rounded corner of a button is set by using [borderRadius](ts-universal-attributes-border.md), rather than by using the **border** API. Only a rounded corner whose parameter is [Length](ts-types.md#length) is supported. +> - For a button of the **Capsule** type, the **borderRadius** settings do not take effect, and the radius of its rounded corner is always half of the button height or width, whichever is smaller. > - For a button of the **Circle** type, its radius is the value of **borderRadius** (if set) or the width or height (whichever is smaller). > - The button text is set using the [text style attributes](ts-universal-attributes-text-style.md). - +> - Before setting the [gradient color](ts-universal-attributes-gradient-color.md), you need to set [backgroundColor](ts-universal-attributes-background.md) to transparent. + +## LabelStyle10+ + +| Name | Type | Mandatory| Description | +| -------------------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | +| overflow | [TextOverflow](ts-appendix-enums.md#textoverflow) | No | Display mode when the label text is too long. Text is clipped at the transition between words. To clip text in the middle of a word, add **\u200B** between characters.| +| maxLines | number | No | Maximum number of lines in the label text. By default, text is automatically folded. If this attribute is specified, the text will not exceed the specified number of lines. If there is extra text, you can use **textOverflow** to specify how it is displayed.| +| minFontSize | number \| [ResourceStr](ts-types.md#resourcestr) | No | Minimum font size of the label text. For the setting to take effect, this attribute must be used together with **maxFontSize**, **maxLines**, or layout constraint settings.| +| maxFontSize | number \| [ResourceStr](ts-types.md#resourcestr) | No | Maximum font size of the label text. For the setting to take effect, this attribute must be used together with **minFontSize**, **maxLines**, or layout constraint settings.| +| heightAdaptivePolicy | [TextHeightAdaptivePolicy](ts-appendix-enums.md#textheightadaptivepolicy10) | No | How the adaptive height is determined for the label text. | +| font | [Font](ts-types.md#Font) | No | Font of the label text. | ## Example diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-datapanel.md b/en/application-dev/reference/arkui-ts/ts-basic-components-datapanel.md index 08d913698286ee0cb2cbfbc66386cd4a52a45bc9..f65895eba487b20b68d4dc26f74f5c5493f3dccb 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-datapanel.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-datapanel.md @@ -24,10 +24,20 @@ Since API version 9, this API is supported in ArkTS widgets. | Name | Type | Mandatory | Description| | ----------------- | -------- | ----- | -------- | -| values | number[] | Yes | Data value list. A maximum of nine values are supported. If more than nine values are set, only the first nine ones are used. If the value is less than 0, the value 0 is used.| +| values | number[] | Yes | Data value list. A maximum of nine values are supported. If more than nine values are set, only the first nine ones are used. A value less than 0 evaluates to the value **0**. | | max | number | No | - When set to a value greater than 0, this parameter indicates the maximum value in the **values** list.
- When set to a value equal to or smaller than 0, this parameter indicates the sum of values in the **values** list. The values are displayed in proportion.
Default value: **100**| | type8+ | [DataPanelType](#datapaneltype) | No| Type of the data panel (dynamic modification is not supported).
Default value: **DataPanelType.Circle**| +## Attributes + +In addition to the [universal attributes](ts-universal-attributes-size.md), the following attributes are supported. + +| Name | Type | Description | +| ----------- | ------- | -------------------------------------------- | +| closeEffect | boolean | Whether to disable the rotation effect for the component.
Default value: **false**| + + + ## DataPanelType Since API version 9, this API is supported in ArkTS widgets. diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-divider.md b/en/application-dev/reference/arkui-ts/ts-basic-components-divider.md index cee85008404560b115d9dc021ed98e59da47d36a..3555f55586004554735bbf5cf4c4aa582e25e925 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-divider.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-divider.md @@ -26,15 +26,10 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the | ----------- | ---------- | ------------------ | | vertical | boolean | Whether a vertical divider is used. **false**: A horizontal divider is used.
**true**: A vertical divider is used.
Default value: **false**
Since API version 9, this API is supported in ArkTS widgets.| | color | [ResourceColor](ts-types.md#resourcecolor) | Color of the divider.
Since API version 9, this API is supported in ArkTS widgets.| -| strokeWidth | number \| string | Width of the divider.
Default value: **1**
Since API version 9, this API is supported in ArkTS widgets.| +| strokeWidth | number \| string | Width of the divider.
Default value: **1**
Since API version 9, this API is supported in ArkTS widgets.
**NOTE**
This attribute cannot be set to a percentage.| | lineCap | [LineCapStyle](ts-appendix-enums.md#linecapstyle) | Cap style of the divider.
Default value: **LineCapStyle.Butt**
Since API version 9, this API is supported in ArkTS widgets.| -## Events - -The universal events are not supported. - - ## Example ```ts diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-image.md b/en/application-dev/reference/arkui-ts/ts-basic-components-image.md index 1562815bc640f37d2c83043be7d4c45bf0de2c8b..ed564ed02da8ab3d1c7332aaeb4e4a05543685b9 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-image.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-image.md @@ -81,11 +81,11 @@ Since API version 9, this API is supported in ArkTS widgets. In addition to the [universal events](ts-universal-events-click.md), the following events are supported. -| Name | Description | +| Name | Description | | ------------------------------------------------------------ | ------------------------------------------------------------ | -| onComplete(callback: (event?: { width: number, height: number, componentWidth: number,
componentHeight: number, loadingStatus: number }) => void) | Triggered when an image is successfully loaded. The size of the loaded image is returned.
- **width**: width of the image, in pixels.
- **height**: height of the image, in pixels.
- **componentWidth**: width of the container component, in pixels.
- **componentHeight**: height of the container component, in pixels.
- **loadingStatus**: image loading status.
Since API version 9, this API is supported in ArkTS widgets.| -| onError(callback: (event?: { componentWidth: number, componentHeight: number , message9+: string }) => void) | Triggered when an exception occurs during image loading.
- **componentWidth**: width of the container component, in pixels.
- **componentHeight**: height of the container component, in pixels.
Since API version 9, this API is supported in ArkTS widgets.| -| onFinish(event: () => void) | Triggered when the animation playback in the loaded SVG image is complete. If the animation is an infinite loop, this callback is not triggered.
Since API version 9, this API is supported in ArkTS widgets.| +| onComplete(callback: (event?: { width: number, height: number, componentWidth: number,
componentHeight: number, loadingStatus: number }) => void) | Triggered when an image is successfully loaded. The size of the loaded image is returned.
- **width**: width of the image, in pixels.
- **height**: height of the image, in pixels.
- **componentWidth**: width of the container component, in pixels.
- **componentHeight**: height of the container component, in pixels.
- **loadingStatus**: image loading status. The value **1** means that the image is successfully loaded, and **0** means the opposite.
Since API version 9, this API is supported in ArkTS widgets. | +| onError(callback: (event?: { componentWidth: number, componentHeight: number , message9+: string }) => void) | Triggered when an exception occurs during image loading.
- **componentWidth**: width of the container component, in pixels.
- **componentHeight**: height of the container component, in pixels.
Since API version 9, this API is supported in ArkTS widgets. | +| onFinish(event: () => void) | Triggered when the animation playback in the loaded SVG image is complete. If the animation is an infinite loop, this callback is not triggered.
Since API version 9, this API is supported in ArkTS widgets. | ## Example diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-navigation.md b/en/application-dev/reference/arkui-ts/ts-basic-components-navigation.md index 0365224d576125c9af95fc0cf2531e963c5ff6b7..17787ccda78c576429fe1db1b81b3b5c879cba79 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-navigation.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-navigation.md @@ -25,18 +25,18 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the | Name | Type | Description | | -------------- | ---------------------------------------- | ---------------------------------------- | -| title | string \| [CustomBuilder](ts-types.md#custombuilder8)8+ \| [NavigationCommonTitle](#navigationcommontitle)9+ \| [NavigationCustomTitle](#navigationcustomtitle)9+ | Page title. | +| title | [ResourceStr](ts-types.md#resourcestr)10+ \| [CustomBuilder](ts-types.md#custombuilder8)8+ \| [NavigationCommonTitle](#navigationcommontitle)9+ \| [NavigationCustomTitle](#navigationcustomtitle)9+ | Page title. | | subTitledeprecated | string | Subtitle of the page. This attribute is deprecated since API version 9. You are advised to use **title** instead. | | menus | Array<[NavigationMenuItem](#navigationmenuitem)> \| [CustomBuilder](ts-types.md#custombuilder8)8+ | Menu items in the upper right corner of the page. When the value type is Array\<[NavigationMenuItem](#navigationmenuitem)>, the menu shows a maximum of three icons in portrait mode and a maximum of five icons in landscape mode, plus excess icons (if any) under the automatically generated **More** icon. | | titleMode | [NavigationTitleMode](#navigationtitlemode) | Display mode of the page title bar.
Default value: **NavigationTitleMode.Free**| | toolBar | [object](#object) \| [CustomBuilder](ts-types.md#custombuilder8)8+ | Content of the toolbar.
**items**: items on the toolbar. | | hideToolBar | boolean | Whether to hide the toolbar.
Default value: **false**
**true**: Hide the toolbar.
**false**: Display the toolbar.| | hideTitleBar | boolean | Whether to hide the title bar.
Default value: **false**
**true**: Hide the title bar.
**false**: Display the title bar.| -| hideBackButton | boolean | Whether to hide the Back key.
Default value: **false**
**true**: Hide the Back key.
**false**: Display the Back key.| +| hideBackButton | boolean | Whether to hide the Back button.
Default value: **false**
**true**: Hide the Back button.
**false**: Display the Back button.|The Back button in the title bar of the **\** component cannot be hidden.| | navBarWidth9+ | [Length](ts-types.md#length) | Width of the navigation bar.
Default value: **200vp**| | navBarPosition9+ | [NavBarPosition](#navbarposition) | Position of the navigation bar.
Default value: **NavBarPosition.Start**| | mode9+ | [NavigationMode](#navigationmode) | Display mode of the navigation bar.
Default value: **NavigationMode.Auto**| -| backButtonIcon9+ | string \| [PixelMap](../apis/js-apis-image.md#pixelmap7) \| [Resource](ts-types.md#resource) | Back icon on the navigation bar.| +| backButtonIcon9+ | string \| [PixelMap](../apis/js-apis-image.md#pixelmap7) \| [Resource](ts-types.md#resource) | Back button icon on the navigation bar. The Back button in the title bar of the **\** component cannot be hidden.| | hideNavBar9+ | boolean | Whether to hide the navigation bar. This attribute is valid only when **mode** is set to **NavigationMode.Split**.| @@ -91,7 +91,7 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the | ---- | ---------------------------------------- | | Stack | The navigation bar and content area are displayed independently of each other, which are equivalent to two pages.| | Split | The navigation bar and content area are displayed in different columns.| -| Auto | When the window width is greater than or equal to 520 vp, Split mode is used. Otherwise, Stack mode is used.| +| Auto | When the window width is greater than or equal to 520 vp, Split mode is used. Otherwise, the Stack mode is used.| ## TitleHeight @@ -103,7 +103,7 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the > **NOTE** > -> The scrollable component can only be **\**. +> Among the scrollable components, only **\** is supported. ## Events diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-qrcode.md b/en/application-dev/reference/arkui-ts/ts-basic-components-qrcode.md index e5dfa9aa5304d58c76fdfe87aaf7ade4623db417..85745ba42d26583d369fe5f652c756ae318440f5 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-qrcode.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-qrcode.md @@ -36,7 +36,7 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the ## Events -Among all the universal events, only the [click event](ts-universal-events-click.md) is supported. +Among the universal events, the [click event](ts-universal-events-click.md), [touch event](ts-universal-events-touch.md), and [show/hide event](ts-universal-events-show-hide.md) are supported. ## Example diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-radio.md b/en/application-dev/reference/arkui-ts/ts-basic-components-radio.md index 94bdbe86681322c5f0b0e4dedf31d6e037447d5b..3213884ab2337bdf548db9b685a64cdd5aa2815b 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-radio.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-radio.md @@ -32,6 +32,7 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the | Name| Type| Description| | -------- | -------- | -------- | | checked | boolean | Whether the radio button is selected.
Default value: **false**
Since API version 9, this API is supported in ArkTS widgets.| +| radioStyle10+ | [RadioStyle](#radiostyle) | Style of the radio button in selected or deselected state.
Since API version 10, this API is supported in ArkTS widgets.| ## Events @@ -41,6 +42,13 @@ In addition to the [universal events](ts-universal-events-click.md), the followi | -------- | -------- | | onChange(callback: (isChecked: boolean) => void) | Triggered when the selected state of the radio button changes.
- If **isChecked** is **true**, the radio button is selected.
- If **isChecked** is **false**, the radio button is not selected.
Since API version 9, this API is supported in ArkTS widgets.| +## RadioStyle + +| Name | Type | Mandatory| Default Value | Description | +| ---------------------- | ------------------------------------------ | ---- | ------- | ---------------------- | +| checkedBackgroundColor | [ResourceColor](ts-types.md#resourcecolor) | No | #007DFF | Color of the background when the radio button is selected. | +| uncheckedBorderColor | [ResourceColor](ts-types.md#resourcecolor) | No | #182431 | Color of the border when the radio button is deselected. | +| indicatorColor | [ResourceColor](ts-types.md#resourcecolor) | No | #FFFFFF | Color of the indicator when the radio button is selected.| ## Example diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-rating.md b/en/application-dev/reference/arkui-ts/ts-basic-components-rating.md index d78f3a705501daf305b4d3ee01a33a57c568a6a0..eb3d4489f8cadd3df86f727fe68be24596b407ee 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-rating.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-rating.md @@ -32,7 +32,7 @@ Since API version 9, this API is supported in ArkTS widgets. | -------- | -------- | -------- | | stars | number | Total number of stars.
Default value: **5**
Since API version 9, this API is supported in ArkTS widgets.| | stepSize | number | Step of an operation.
Default value: **0.5**
Since API version 9, this API is supported in ArkTS widgets.| -| starStyle | {
backgroundUri: string,
foregroundUri: string,
secondaryUri?: string
} | **backgroundUri**: image link of the unselected star. You can use the default image or a custom local image.
**foregroundUri**: image path of the selected star. You can use the default image or a custom local image.
**secondaryUir**: image path of the partially selected star. You can use the default image or a custom local image.
Since API version 9, this API is supported in ArkTS widgets.| +| starStyle | {
backgroundUri: string,
foregroundUri: string,
secondaryUri?: string
} | Star style.
**backgroundUri**: image path for the unselected star. You can use the default system image or a custom image.
**foregroundUri**: image path for the selected star. You can use the default system image or a custom image.
**secondaryUir**: image path for the partially selected star. You can use the default system image or a custom image.
Since API version 9, this API is supported in ArkTS widgets.
**NOTE**
For details about the image types supported by the **startStyle** attribute, see [Image](ts-basic-components-image.md).
Local and online images are supported, but not **PixelMap** and **Resource** objects.
By default, the image is loaded in asynchronous mode. Synchronous loading is not supported.| ## Events diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-search.md b/en/application-dev/reference/arkui-ts/ts-basic-components-search.md index 9f1d13ee9981696905d9383abfde395aa2162c1b..1086c3e68b3f5ca5d7d4383a62477d429ea122e4 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-search.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-search.md @@ -12,14 +12,14 @@ Not supported ## APIs -Search(options?: { value?: string; placeholder?: string; icon?: string; controller?: SearchController }) +Search(options?: { value?: string; placeholder?: ResourceStr; icon?: string; controller?: SearchController }) **Parameters** | Name | Type | Mandatory| Description | | ----------- | ---------------- | ---- | ------------------------------------------------------------ | -| value | string | No | Text input in the search text box. | -| placeholder | string | No | Text displayed when there is no input. | +| value | string | No | Text input in the search text box. | +| placeholder | [ResourceStr](ts-types.md#resourcestr)10+ | No | Text displayed when there is no input. | | icon | string | No | Path to the search icon. By default, the system search icon is used. The supported icon formats are .svg, .jpg, and .png.| | controller | SearchController | No | Controller of the **\** component. | @@ -29,12 +29,46 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the | Name | Type | Description | | ----------------------- | ------------------------------------------------ | ---------------------------------------------- | -| searchButton | string | Text on the search button located next to the search text box. By default, there is no search button. | +| searchButton10+ | value: string,
option?: [SearchButtonOption](#searchbuttonoption10) | Text on the search button located next to the search text box. By default, there is no search button. | | placeholderColor | [ResourceColor](ts-types.md#resourcecolor) | Placeholder text color. | | placeholderFont | [Font](ts-types.md#font) | Placeholder text font. | | textFont | [Font](ts-types.md#font) | Text font for the search text box. | | textAlign | [TextAlign](ts-appendix-enums.md#textalign) | Text alignment mode in the search text box.
Default value: **TextAlign.Start** | | copyOption9+ | [CopyOptions](ts-appendix-enums.md#copyoptions9) | Whether copy and paste is allowed. | +| searchIcon10+ | [IconOptions](#iconoptions10) | Style of the search icon on the left. | +| cancelButton10+ | {
style? : [CancelButtonStyle](#cancelbuttonstyle10)
icon?: [IconOptions](#iconoptions10)
} | Style of the Cancel button on the right. | +| fontColor10+ | [ResourceColor](ts-types.md#resourcecolor) | Font color of the input text. | +| caretStyle10+ | [CaretStyle](#caretstyle10) | Caret style. | + +## IconOptions10+ + +| Name| Type | Mandatory| Description | +| ------ | ------------------------------------------ | ---- | ----------- | +| size | [Length](ts-types.md#length) | No | Icon size. | +| color | [ResourceColor](ts-types.md#resourcecolor) | No | Icon color. | +| src | [ResourceStr](ts-types.md#resourcestr) | No | Image source of the icon.| + +## CaretStyle10+ + +| Name| Type | Mandatory| Description| +| ------ | ------------------------------------------ | ---- | -------- | +| width | [Length](ts-types.md#length) | No | Caret width.| +| color | [ResourceColor](ts-types.md#resourcecolor) | No | Caret color.| + +## SearchButtonOption10+ + +| Name | Type | Mandatory| Description | +| --------- | ------------------------------------------ | ---- | ---------------- | +| fontSize | [Length](ts-types.md#length) | No | Font size of the button.| +| fontColor | [ResourceColor](ts-types.md#resourcecolor) | No | Font color of the button.| + +## CancelButtonStyle10+ + +| Name | Description | +| ----------------------- | ---------------- | +| CONSTANT10+ | The Cancel button is always displayed.| +| INVISIBLE10+ | The Cancel button is always hidden.| +| INPUT10+ | The Cancel button is displayed when there is text input.| ## Events diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-slider.md b/en/application-dev/reference/arkui-ts/ts-basic-components-slider.md index bea534a1a1861e1ad2183d0ed1455127f762c65c..4c32cb2686c2f6e3abc7dd4b3ee4af2c9355d6fa 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-slider.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-slider.md @@ -50,9 +50,35 @@ Except touch target attributes, the universal attributes are supported. | trackColor | [ResourceColor](ts-types.md#resourcecolor) | Background color of the slider.
Since API version 9, this API is supported in ArkTS widgets.| | selectedColor | [ResourceColor](ts-types.md#resourcecolor) | Color of the selected part of the slider track.
Since API version 9, this API is supported in ArkTS widgets.| | showSteps | boolean | Whether to display the current step.
Default value: **false**
Since API version 9, this API is supported in ArkTS widgets.| -| showTips | boolean | Whether to display a bubble to indicate the percentage when the user drags the slider.
Default value: **false**
Since API version 9, this API is supported in ArkTS widgets.| +| showTips | boolean | Whether to display a bubble to indicate the percentage when the user drags the slider.
Default value: **false**
Since API version 9, this API is supported in ArkTS widgets.
**NOTE**
When **direction** is set to **Axis.Horizontal**, the bubble is displayed right above the slider. When **direction** is set to **Axis.Vertical**, the bubble is displayed on the left of the slider.
The drawing area of the bubble is the overlay of the slider.
If no margin is set for the slider or the margin is not large enough, the bubble will be clipped.| | trackThickness | [Length](ts-types.md#length) | Track thickness of the slider.
Since API version 9, this API is supported in ArkTS widgets.| +| blockBorderColor10+ | [ResourceColor](ts-types.md#resourcecolor) | Border color of the slider in the block direction.| +| blockBorderWidth10+ | [Length](ts-types.md#length) | Border width of the slider in the block direction.| +| stepColor10+ | [ResourceColor](ts-types.md#resourcecolor) | Step color.| +| trackBorderRadius10+ | [Length](ts-types.md#length) | Radius of the rounded corner of the slider track.| +| blockSize10+ | [SizeOptions](ts-types.md#sizeoptions) | Size of the slider in the block direction.| +| blockStyle10+ | [SliderBlockStyle](#sliderblockstyle10) | Style of the slider in the block direction.| +| stepSize10+ | [Length](ts-types.md#length) | Step size (diameter).| +## SliderBlockStyle10+ + +Desribes the style of the slider in the block direction. + +| Name | Type | Mandatory| Description | +| ----- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | +| type | [SliderBlockType](#sliderblocktype10) | Yes | Type of the slider in the block direction.
Default value: **SliderBlockType.DEFAULT**, indicating the round slider.| +| image | [ResourceStr](ts-types.md#resourcestr) | No | Image resource of the slider.
The area size for displaying the image is subject to the **blockSize** attribute. Be mindful of the image size when selecting an image.| +| shape | [Circle](ts-drawing-components-circle.md) \| [Ellipse](ts-drawing-components-ellipse.md) \| [Path](ts-drawing-components-path.md) \| [Rect](ts-drawing-components-rect.md) | No | Custom shape of the slider. | + +## SliderBlockType10+ + +Enumerates the types of the slider in the block direction. + +| Name | Description | +| ------- | ---------------------- | +| DEFAULT | Round slider. | +| IMAGE | Slider with an image background. | +| SHAPE | Slider in a custom shape.| ## Events @@ -60,7 +86,7 @@ In addition to the **OnAppear** and **OnDisAppear** universal events, the follow | Name| Description| | -------- | -------- | -| onChange(callback: (value: number, mode: SliderChangeMode) => void) | Invoked when the slider slides.
**value**: current slider value. If the return value contains decimals, you can use **Math.toFixed()** to process the data to the desired precision.
**mode**: dragging state.
Since API version 9, this API is supported in ArkTS widgets.| +| onChange(callback: (value: number, mode: SliderChangeMode) => void) | Invoked when the slider is dragged or clicked.
**value**: current slider value. If the return value contains decimals, you can use **Math.toFixed()** to process the data to the desired precision.
**mode**: state triggered by the event.
Since API version 9, this API is supported in ArkTS widgets.
**NOTE**
The **Begin** and **End** states are triggered when the slider is clicked with a gesture. The **Moving** and **Click** states are triggered when the value of **value** changes.
If the coherent action is a drag action, the **Click** state will not be triggered.
The value range of **value** is the **steps** value array.| ## SliderChangeMode @@ -68,9 +94,9 @@ Since API version 9, this API is supported in ArkTS widgets. | Name| Value| Description| | -------- | -------- | -------- | -| Begin | 0 | The user starts to drag the slider.| +| Begin | 0 | The user touches or presses the slider with a gesture or mouse.| | Moving | 1 | The user is dragging the slider.| -| End | 2 | The user stops dragging the slider.| +| End | 2 | The user stops dragging the slider by lifting their finger or releasing the mouse.| | Click | 3 | The user moves the slider by touching the slider track.| diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-text.md b/en/application-dev/reference/arkui-ts/ts-basic-components-text.md index 9f2fdd7b839eaa85f8900968ce42a7e7d5304a40..d20ad37b35f6184fb9f3c2b9b626d232fa6a3a6a 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-text.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-text.md @@ -2,7 +2,7 @@ The **\** component is used to display a piece of textual information. -> **NOTE**
+> **NOTE** > > This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. @@ -31,16 +31,18 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the | Name | Type | Description | | ----------------------- | ----------------------------------- | ------------------------------------------- | | textAlign | [TextAlign](ts-appendix-enums.md#textalign) | Horizontal alignment mode of the text.
Default value: **TextAlign.Start**
**NOTE**
The text takes up the full width of the **\** component. To set the vertical alignment for the text, use the [align](ts-universal-attributes-location.md) attribute.
Since API version 9, this API is supported in ArkTS widgets.| -| textOverflow | {overflow: [TextOverflow](ts-appendix-enums.md#textoverflow)} | Display mode when the text is too long.
Default value: **{overflow: TextOverflow.Clip}**
**NOTE**
Text is clipped at the transition between words. To clip text in the middle of a word, add **\u200B** between characters.
This attribute must be used with `maxLines` to take effect.
Since API version 9, this API is supported in ArkTS widgets.| -| maxLines | number | Maximum number of lines in the text.
Default value: **Infinity**
**NOTE**
By default, text is automatically folded. If this attribute is specified, the text will not exceed the specified number of lines. If there is extra text, you can use **textOverflow** to specify how it is displayed.
Since API version 9, this API is supported in ArkTS widgets.| +| textOverflow | {overflow: [TextOverflow](ts-appendix-enums.md#textoverflow)} | Display mode when the text is too long.
Default value: **{overflow: TextOverflow.Clip}**
**NOTE**
Text is clipped at the transition between words. To clip text in the middle of a word, add **\u200B** between characters.
This attribute must be used with **maxLines** to take effect.
Since API version 9, this API is supported in ArkTS widgets. | +| maxLines | number | Maximum number of lines in the text.
Default value: **Infinity**
**NOTE**
By default, text is automatically folded. If this attribute is specified, the text will not exceed the specified number of lines. If there is extra text, you can use **textOverflow** to specify how it is displayed.
Since API version 9, this API is supported in ArkTS widgets. | | lineHeight | string \| number \| [Resource](ts-types.md#resource) | Text line height. If the value is less than or equal to **0**, the line height is not limited and the font size is adaptive. If the value of the number type, the unit fp is used.
Since API version 9, this API is supported in ArkTS widgets.| | decoration | {
type: [TextDecorationType](ts-appendix-enums.md#textdecorationtype),
color?: [ResourceColor](ts-types.md#resourcecolor)
} | Style and color of the text decorative line.
Default value: {
type: TextDecorationType.None,
color: Color.Black
}
Since API version 9, this API is supported in ArkTS widgets.| | baselineOffset | number \| string | Baseline offset of the text. The default value is **0**.
Since API version 9, this API is supported in ArkTS widgets. | | letterSpacing | number \| string | Letter spacing.
Since API version 9, this API is supported in ArkTS widgets. | -| minFontSize | number \| string \| [Resource](ts-types.md#resource) | Minimum font size.
For the setting to take effect, this attribute must be used together with **maxFontSize**, **maxline**, or a layout size constraint.
Since API version 9, this API is supported in ArkTS widgets. | -| maxFontSize | number \| string \| [Resource](ts-types.md#resource) | Maximum font size.
For the setting to take effect, this attribute must be used together with **minFontSize**, **maxline**, or a layout size constraint.
Since API version 9, this API is supported in ArkTS widgets. | +| minFontSize | number \| string \| [Resource](ts-types.md#resource) | Minimum font size.
For the setting to take effect, this attribute must be used together with **maxFontSize**, **maxLines**, or layout constraint settings.
Since API version 9, this API is supported in ArkTS widgets. | +| maxFontSize | number \| string \| [Resource](ts-types.md#resource) | Maximum font size.
For the setting to take effect, this attribute must be used together with **minFontSize**, **maxLines**, or layout constraint settings.
Since API version 9, this API is supported in ArkTS widgets. | | textCase | [TextCase](ts-appendix-enums.md#textcase) | Text case.
Default value: **TextCase.Normal**
Since API version 9, this API is supported in ArkTS widgets.| | copyOption9+ | [CopyOptions](ts-appendix-enums.md#copyoptions9) | Whether copy and paste is allowed.
Default value: **CopyOptions.None**
This API is supported in ArkTS widgets.| +| textShadow10+ | [ShadowOptions](ts-universal-attributes-image-effect.md#shadowoptions) | Text shadow.| +| heightAdaptivePolicy10+ | [TextHeightAdaptivePolicy](ts-appendix-enums.md#TextHeightAdaptivePolicy10) | How the adaptive height is determined for the text.| > **NOTE** > diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-textarea.md b/en/application-dev/reference/arkui-ts/ts-basic-components-textarea.md index e4b6ba1ad47c9e06f3f26e6b47f4afd505b6aa36..0a05c9ce7311a0ab826543540dc95dda25699987 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-textarea.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-textarea.md @@ -38,6 +38,10 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the | inputFilter8+ | {
value: [ResourceStr](ts-types.md#resourcestr),
error?: (value: string) => void
} | Regular expression for input filtering. Only inputs that comply with the regular expression can be displayed. Other inputs are filtered out. The specified regular expression can match single characters, but not strings.
- **value**: regular expression to set.
- **error**: filtered-out content to return when regular expression matching fails.| | copyOption9+ | [CopyOptions](ts-appendix-enums.md#copyoptions9) | Whether copy and paste is allowed.
If this attribute is set to **CopyOptions.None**, the paste operation is allowed, but not the copy or cut operation.| +> **NOTE** +> +> The default value of the universal attribute [padding](ts-universal-attributes-size.md) is as follows: { top: 8 vp, right: 16 vp, bottom: 16 vp, left: 8 vp } + ## Events @@ -72,6 +76,18 @@ Sets the position of the caret. | ------ | -------- | ---- | -------------------------------------- | | value | number | Yes | Length from the start of the string to the position where the caret is located.| +### setTextSelection10+ + +setTextSelection(selectionStart: number, selectionEnd: number): void + +Sets the text selection range. + +**Parameters** + +| Name | Type| Mandatory| Description | +| -------------- | -------- | ---- | ------------------ | +| selectionStart | number | Yes | Start of the selection range.| +| selectionEnd | number | Yes | End of the selection range.| ## Example diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-textinput.md b/en/application-dev/reference/arkui-ts/ts-basic-components-textinput.md index 3769a949422ac922318ad203fb2a7bebd676e44c..4a6457aeda349129f035fa428710b36f32e68d3b 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-textinput.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-textinput.md @@ -34,14 +34,21 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the | type | [InputType](#inputtype) | Input box type.
Default value: **InputType.Normal** | | placeholderColor | [ResourceColor](ts-types.md#resourcecolor) | Placeholder text color.| | placeholderFont | [Font](ts-types.md#font) | Placeholder text font.| -| enterKeyType | [EnterKeyType](#enterkeytype) | Type of the Enter key. Currently, only the default value is supported.
Default value: **EnterKeyType.Done**| +| enterKeyType | [EnterKeyType](#enterkeytype) | Type of the Enter key. Only the default value is supported.
Default value: **EnterKeyType.Done**| | caretColor | [ResourceColor](ts-types.md#resourcecolor) | Color of the caret in the text box. | | maxLength | number | Maximum number of characters in the text input. | -| inputFilter8+ | {
value: [ResourceStr](ts-types.md#resourcestr),
error?: (value: string) => void
} | Regular expression for input filtering. Only inputs that comply with the regular expression can be displayed. Other inputs are filtered out. The specified regular expression can match single characters, but not strings.
- **value**: regular expression to set.
- **error**: filtered-out content to return when regular expression matching fails.| +| inputFilter8+ | {
value: [ResourceStr](ts-types.md#resourcestr),
error?: (value: string) => void
} | Regular expression for input filtering. Only inputs that comply with the regular expression can be displayed. Other inputs are filtered out. The regular expression can match single characters, but not strings.
- **value**: regular expression to set.
- **error**: filtered-out content to return when regular expression matching fails.| | copyOption9+ | [CopyOptions](ts-appendix-enums.md#copyoptions9) | Whether copy and paste is allowed.
If this attribute is set to **CopyOptions.None**, the paste operation is allowed, but not the copy or cut operation.| | showPasswordIcon9+ | boolean | Whether to display the show password icon at the end of the password text box.
Default value: **true**| | style9+ | [TextInputStyle](#textinputstyle9) | Text input style.
Default value: **TextInputStyle.Default**| | textAlign9+ | [TextAlign](ts-appendix-enums.md#textalign) | Alignment mode of the text in the text box.
Default value: **TextAlign.Start** | +| selectedBackgroundColor10+ | [ResourceColor](ts-types.md#resourcecolor) | Background color of the selected text.| +| caretStyle10+ | {
caretWidth: [Length](ts-types.md#length)
} | Caret style. | +| caretPosition10+ | number | Caret position.| + +> **NOTE** +> +> The default value of the universal attribute [padding](ts-universal-attributes-size.md) is as follows:
{
top: 8 vp,
right: 16 vp,
bottom: 16 vp,
left: 8 vp
} ## EnterKeyType @@ -103,7 +110,18 @@ Sets the position of the caret. | Name| Type| Mandatory| Description | | ------ | -------- | ---- | -------------------------------------- | | value | number | Yes | Length from the start of the string to the position where the caret is located.| +### setTextSelection10+ + +setTextSelection(selectionStart: number, selectionStart: number): void + +Sets the text selection area, which will be highlighted. + +**Parameters** +| Name | Type| Mandatory| Description | +| -------------- | -------- | ---- | ---------------------- | +| selectionStart | number | Yes | Start position of the text selection area. The start position of the text in the text box is 0.| +| selectionEnd | number | Yes | End position of the text selection area.| ## Example diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-toggle.md b/en/application-dev/reference/arkui-ts/ts-basic-components-toggle.md index 7c3994074a9bf4124800346196515150f020ffc6..f5acbb698cb3c77954cd8bd51a8e489f3ad2f1d4 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-toggle.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-toggle.md @@ -35,9 +35,9 @@ Since API version 9, this API is supported in ArkTS widgets. | Name | Description | | -------- | ---------------- | -| Checkbox | Check box type.
**NOTE**
The default value of the universal attribute [padding](ts-universal-attributes-size.md) is as follows:
{
top: 14 vp,
right: 6 vp,
bottom: 14 vp,
left: 6 vp
} | +| Checkbox | Check box type.
**NOTE**
The default value of the universal attribute [margin](ts-universal-attributes-size.md) is as follows:
{
top: 12 vp,
right: 12 vp,
bottom: 12 vp,
left: 12 vp
} | | Button | Button type. The set string, if any, will be displayed inside the button. | -| Switch | Switch type.
**NOTE**
The default value of the universal attribute [padding](ts-universal-attributes-size.md) is as follows:
{
top: 12 vp,
right: 12 vp,
bottom: 12 vp,
left: 12 vp
} | +| Switch | Switch type.
**NOTE**
The default value of the universal attribute [margin](ts-universal-attributes-size.md) is as follows:
{
top: 14 vp,
right:6 vp,
bottom: 6 vp,
left: 14 vp
} | ## Attributes diff --git a/en/application-dev/reference/arkui-ts/ts-components-summary.md b/en/application-dev/reference/arkui-ts/ts-components-summary.md index 3e5b4706f279043c2d77839cdc7da587faaec3dc..19bc1f97eec987ec2e7b97f4507b3e8fc107f29d 100644 --- a/en/application-dev/reference/arkui-ts/ts-components-summary.md +++ b/en/application-dev/reference/arkui-ts/ts-components-summary.md @@ -293,7 +293,7 @@ A component that is used to display widgets. - [Menu](ts-basic-components-menu.md) - A component that is used to present a vertical list of items to the user. Preferentially used on computers. + A component that is used to present a vertical list of items to the user. - [MenuItem](ts-basic-components-menuitem.md) A component that is used to represent an item in a menu. diff --git a/en/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md b/en/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md index 0a33bf8135951134bb63fcd80caba5c00b77e683..ed5df7b82fd0f73742ca53af4920172c90398fe5 100644 --- a/en/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md +++ b/en/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md @@ -27,8 +27,8 @@ AlphabetIndexer(value: {arrayValue: Array<string>, selected: number}) In addition to the [universal attributes](ts-universal-attributes-size.md), the following attributes are supported. -| Name | Type | Description | -| ----------------------- | --------------- | ----------------------------------------------------------- | +| Name | Type | Description | +| ----------------------- | --------------------| ------------------------------------------------------------------| | color | [ResourceColor](ts-types.md#resourcecolor) | Font color.
Default value: **0x99000000** | | selectedColor | [ResourceColor](ts-types.md#resourcecolor) | Font color of the selected text.
Default value: **0xFF254FF7** | | popupColor | [ResourceColor](ts-types.md#resourcecolor) | Font color of the pop-up text.
Default value: **0xFF254FF7** | @@ -39,9 +39,13 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the | popupFont | [Font](ts-types.md#font) | Font style of the pop-up text.
Default value:
{
size:10,
style:FontStyle.Normal,
weight:FontWeight.Normal,
family:'HarmonyOS Sans'
} | | font | [Font](ts-types.md#font) | Default font style of the alphabetic index bar.
Default value:
{
size:10,
style:FontStyle.Normal,
weight:FontWeight.Normal,
family:'HarmonyOS Sans'
} | | itemSize | string \| number | Size of an item in the alphabetic index bar. The item is a square, and the side length needs to be set. This attribute cannot be set to a percentage.
Default value: **24.0** | -| alignStyle | IndexerAlign | Alignment style of the alphabetic index bar. Left alignment and right alignment are supported.
Default value: **IndexerAlign.Right**| +| alignStyle | value: [IndexerAlign](#indexeralign),
offset10+?: [Length](ts-types.md#length) | Alignment style of the alphabetic index bar.
**value**: alignment of the alphabetic index bar with the pop-up window, which can be left-aligned or right-aligned.
Default value: **IndexerAlign.Right**
**offset**: spacing between the pop-up window and the alphabetic index bar. A value greater than or equal to 0 is valid. If this attribute is set to a value less than 0 or is not set, the spacing is the same as **popupPosition.x**.| | selected | number | Index of the selected item.
Default value: **0**| | popupPosition | [Position](ts-types.md#position8) | Position of the pop-up window relative to the center of the indexer bar's top border.
Default value: **{x:96.0, y:48.0}**| +| popupSelectedColor10+ | [ResourceColor](ts-types.md#resourcecolor) | Color of the selected text excluding the initial letter in the pop-up window.
Default value: **#FF182431**| +| popupUnselectedColor10+ | [ResourceColor](ts-types.md#resourcecolor) | Color of the unselected text in the pop-up window.
Default value: **#FF182431**| +| popupItemFont10+ | [Font](ts-types.md#font) | Font of the text excluding the initial letter in the pop-up window.
Default value:
{
size:24,
style:FontStyle.Medium
}| +| popupItemBackgroundColor10+ | [ResourceColor](ts-types.md#resourcecolor) | Background color of the portion excluding the initial letter in the pop-up window.
Default value: **#FFFFFF**| ## IndexerAlign diff --git a/en/application-dev/reference/arkui-ts/ts-container-badge.md b/en/application-dev/reference/arkui-ts/ts-container-badge.md index 83529bd0aee34fc253b3d8f46da5fe2cce6b98cc..1984ff242a64a9e8360e6ef2064e84211bd6d0d5 100644 --- a/en/application-dev/reference/arkui-ts/ts-container-badge.md +++ b/en/application-dev/reference/arkui-ts/ts-container-badge.md @@ -57,12 +57,15 @@ Since API version 9, this API is supported in ArkTS widgets. Since API version 9, this API is supported in ArkTS widgets. -| Name | Type | Mandatory| Default Value | Description | -| ---------- | ------------------------------------------ | ---- | ----------- | ------------------------------------------- | -| color | [ResourceColor](ts-types.md#resourcecolor) | No | Color.White | Font color. | -| fontSize | number \| string | No | 10 | Font size, in vp. | -| badgeSize | number \| string | No | 16 | Badge size, in vp. This parameter cannot be set in percentage. If it is set to an invalid value, the default value is used.| -| badgeColor | [ResourceColor](ts-types.md#resourcecolor) | No | Color.Red | Badge color. | +| Name | Type | Mandatory| Default Value | Description | +| ------------------------- | ------------------------------------------------------------ | ---- | ----------------- | ------------------------------------------------------------ | +| color | [ResourceColor](ts-types.md#resourcecolor) | No | Color.White | Font color. | +| fontSize | number \| string | No | 10 | Font size, in vp. | +| badgeSize | number \| string | No | 16 | Badge size, in vp. This parameter cannot be set in percentage. If it is set to an invalid value, the default value is used.| +| badgeColor | [ResourceColor](ts-types.md#resourcecolor) | No | Color.Red | Badge color. | +| fontWeight10+ | number \|[FontWeight](ts-appendix-enums.md#fontweight) \| string | No | FontWeight.Normal | Font weight of the text. | +| borderColor10+ | [ResourceColor](ts-types.md#resourcecolor) | No | Color.Red | Border color of the background. | +| borderWidth10+ | [Length](ts-types.md#length) | No | 1.0vp | Border width of the background. | ## Example diff --git a/en/application-dev/reference/arkui-ts/ts-container-flex.md b/en/application-dev/reference/arkui-ts/ts-container-flex.md index 6a5908578950850fbedda096b33f03c858097cd0..8a98f8237eb7656f48eeb5b2eeba442a64b9b4c6 100644 --- a/en/application-dev/reference/arkui-ts/ts-container-flex.md +++ b/en/application-dev/reference/arkui-ts/ts-container-flex.md @@ -5,7 +5,8 @@ The **\** component allows for flexible layout of child components. > **NOTE** > > - This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. -> - The **\** component adapts the layout of flex items during rendering. This may affect the performance. Therefore, you are advised to use **[\](ts-container-column.md)** or **[\](ts-container-row.md)** instead under scenarios where consistently high performance is required. +> - The **\** component adapts the layout of flex items during rendering. This may affect the performance. Therefore, you are advised to use **[Column](ts-container-column.md)** or **[Row](ts-container-row.md)** instead under scenarios where consistently high performance is required. +> - If the main axis of the **\** component is not set, it follows the size of the parent container. On the contrary, if the main axis of the [\](ts-container-column.md) or [\](ts-container-row.md) component is not set, it follows the size of their child component. ## Child Components diff --git a/en/application-dev/reference/arkui-ts/ts-container-list.md b/en/application-dev/reference/arkui-ts/ts-container-list.md index 20754962479003639e3e000f799b42946c3077ad..9efd6ab6e939ee495789cde41a294e15da37a3a7 100644 --- a/en/application-dev/reference/arkui-ts/ts-container-list.md +++ b/en/application-dev/reference/arkui-ts/ts-container-list.md @@ -76,7 +76,7 @@ This API is supported in ArkTS widgets. | onScrollIndex(event: (start: number, end: number) => void) | Triggered when scrolling starts.
When calculating the index value, the **\** accounts for one index value as a whole, and the index values of the list items within are not calculated.
- **start**: index of the scroll start position.
- **end**: index of the scroll end position.
Since API version 9, this API is supported in ArkTS widgets.| | onReachStart(event: () => void) | Triggered when the list reaches the start position.
Since API version 9, this API is supported in ArkTS widgets.| | onReachEnd(event: () => void) | Triggered when the list reaches the end position.
Since API version 9, this API is supported in ArkTS widgets.| -| onScrollFrameBegin9+(event: (offset: number, state: ScrollState) => { offsetRemain }) | Triggered when the list starts to scroll. The input parameters indicate the amount by which the list will scroll. The event handler then works out the amount by which the list needs to scroll based on the real-world situation and returns the result.
\- **offset**: amount to scroll by.
\- **state**: current sliding status.
- **offsetRemain**: actual amount by which the list scrolls.
This API is supported in ArkTS widgets.| +| onScrollFrameBegin9+(event: (offset: number, state: ScrollState) => { offsetRemain }) | Triggered when the list starts to scroll. The input parameters indicate the amount by which the list will scroll. The event handler then works out the amount by which the list needs to scroll based on the real-world situation and returns the result.
\- **offset**: amount to scroll by.
\- **state**: current sliding status.
- **offsetRemain**: actual amount by which the list scrolls.
This API is supported in ArkTS widgets.
**NOTE**
If **listDirection** is set to **Axis.Vertical**, the return value is the amount by which the list needs to scroll in the vertical direction. If **listDirection** is set to **Axis.Horizontal**, the return value is the amount by which the list needs to scroll in the horizontal direction.| | onScrollStart9+(event: () => void) | Triggered when the list starts scrolling initiated by the user's finger dragging the **\** component or its scrollbar. This event is also triggered when the animation contained in the scrolling triggered by [Scroller](ts-container-scroll.md#scroller) starts.
This API is supported in ArkTS widgets.| | onScrollStop(event: () => void) | Triggered when the list stops scrolling after the user's finger leaves the screen. This event is also triggered when the animation contained in the scrolling triggered by [Scroller](ts-container-scroll.md#scroller) stops.
Since API version 9, this API is supported in ArkTS widgets.| | onItemMove(event: (from: number, to: number) => boolean) | Triggered when a list item moves.
- **from**: index of the item before moving.
- **to**: index of the item after moving.| diff --git a/en/application-dev/reference/arkui-ts/ts-container-refresh.md b/en/application-dev/reference/arkui-ts/ts-container-refresh.md index 0b0831d7479bb1f720d25a36712a7ad3a50c8db9..02e9c2172db36df28211c3d987d68a32b147a147 100644 --- a/en/application-dev/reference/arkui-ts/ts-container-refresh.md +++ b/en/application-dev/reference/arkui-ts/ts-container-refresh.md @@ -5,6 +5,8 @@ > **NOTE** > > This component is supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version. +> +> When setting a custom component, make sure its height does not exceed 64 vp. ## Child Components @@ -12,15 +14,16 @@ This component supports only one child component. ## APIs -Refresh\(value: \{ refreshing: boolean, offset?: number | string , friction?: number | string \}\) +Refresh\(value: \{ refreshing: boolean, offset?: number | string , friction?: number | string, builder?: Custombuilder\}\) **Parameters** | Name| Value Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | refreshing | boolean | Yes| Whether the current component is being refreshed.
This parameter supports [$$](../../quick-start/arkts-restrictions-and-extensions.md#two-way-binding-of-variables) for two-way binding of variables.| -| offset | string \| number | No| Distance to the top of the parent component from the **** component that comes to rest after a successful pull-down gesture.
Default value: **16**, in vp| +| offset | string \| number | No| Distance from the pull-down starting point to the top of the component.
Default value: **16**, in vp
**NOTE**
The value cannot be a percentage or a negative number.| | friction | number \| string | No| Coefficient of friction, which indicates the **** component's sensitivity to the pull-down gesture. The value ranges from 0 to 100.
Default value: **62**
- **0** indicates that the **\** component is not sensitive to the pull-down gesture.
- **100** indicates that the **\** component is highly sensitive to the pull-down gesture.
- A larger value indicates a more sensitive response of the **\** component to the pull-down gesture.| +| builder | [CustomBuilder](ts-types.md#custombuilder8)10+ | No| Component with the custom refresh style set for the pull-down gesture.| @@ -32,7 +35,7 @@ Refresh\(value: \{ refreshing: boolean, offset?: number | string , friction?: n | onStateChange(callback: (state: [RefreshStatus](#refreshstatus)) => void)| Triggered when the refresh status changes.
- **state**: refresh status.| | onRefreshing(callback: () => void)| Triggered when the component enters the refresh state.| -## RefreshStatus enums +## RefreshStatus | Name| Description| | -------- | -------- | 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 b8b88e630b72e4499498f066beadc8cd197f8059..14ed577d91fb25d1a797573dd045a7e2f7c86555 100644 --- a/en/application-dev/reference/arkui-ts/ts-container-scroll.md +++ b/en/application-dev/reference/arkui-ts/ts-container-scroll.md @@ -61,7 +61,7 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the ## Scroller -Implements a controller for a scrollable container component. You can bind this component to a container component and use it to control the scrolling of that component. Currently, this controller can be bound to the **\**, **\** and **\** components. One controller can control only one container component. +Implements a controller for a scrollable container component. You can bind this component to a container component and use it to control the scrolling of that component. One controller can control only one container component. The supported container components are **\**, **\**, **\**, **\**, and **\**. ### Objects to Import @@ -82,8 +82,8 @@ Scrolls to the specified position. | Name | Type | Mandatory| Description | | --------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| xOffset | Length | Yes | Horizontal scrolling offset. | -| yOffset | Length | Yes | Vertical scrolling offset. | +| xOffset | number | string | Yes | Horizontal scrolling offset. | +| yOffset | number | string | Yes | Vertical scrolling offset. | | animation | {
duration: number,
curve: [Curve](ts-appendix-enums.md#curve)
} | No | Animation configuration, which includes the following:
- **duration**: scrolling duration.
- **curve**: scrolling curve.| @@ -92,7 +92,7 @@ Scrolls to the specified position. scrollEdge(value: Edge): void -Scrolls to the edge of the container. +Scrolls to the edge of the container, regardless of the scroll axis direction. **Edge.Top** and **Edge.Start** produce the same effect, and **Edge.Bottom** and **Edge.End** produce the same effect. **Parameters** @@ -112,7 +112,7 @@ Scrolls to the next or previous page. | Name | Type | Mandatory | Description | | --------- | ------- | ---- | ------------------------------ | | next | boolean | Yes | Whether to turn to the next page. The value **true** means to scroll to the next page, and **false** means to scroll to the previous page.| -| direction(deprecated) | [Axis](ts-appendix-enums.md#axis) | No | Scrolling direction: horizontal or vertical.
This API is deprecated since API version 9. | +| direction(deprecated) | [Axis](ts-appendix-enums.md#axis) | No | Scrolling direction: horizontal or vertical.
This API is deprecated since API version 9. | ### currentOffset @@ -158,7 +158,7 @@ Scrolls by the specified amount. > **NOTE** > -> Only the **\** component is supported. +> Only the **\**, **\**, **\**, and **\** components are supported. **Parameters** diff --git a/en/application-dev/reference/arkui-ts/ts-container-sidebarcontainer.md b/en/application-dev/reference/arkui-ts/ts-container-sidebarcontainer.md index e8f57f0aebcdf81b7f4a5227b76e8795d79543fb..6dc3c53496053d90595a0fab3010759250e9acb9 100644 --- a/en/application-dev/reference/arkui-ts/ts-container-sidebarcontainer.md +++ b/en/application-dev/reference/arkui-ts/ts-container-sidebarcontainer.md @@ -41,6 +41,7 @@ SideBarContainer( type?: SideBarContainerType ) | maxSideBarWidth | number \| Length9+ | Maximum width of the sidebar.
Default value: **280**, in vp| | autoHide9+ | boolean | Whether to automatically hide the sidebar when it is dragged to be smaller than the minimum width.
Default value: **true**| | sideBarPosition9+ | SideBarPosition | Position of the sidebar.
Default value: **SideBarPosition.Start**| +| divider10+ | [DividerStyle](#dividerstyle10) \| null | Divider style.
- **DividerStyle** (default): The divider is displayed.
- **null**: The divider is not displayed.| ## ButtonStyle @@ -59,6 +60,15 @@ SideBarContainer( type?: SideBarContainerType ) | Start | The sidebar is on the left side of the container.| | End | The sidebar is on the right side of the container.| +## DividerStyle10+ + +| Name | Type | Mandatory| Description | +| ----------- | ------------- | ---- | ---------------------------------------- | +| strokeWidth | [Length](ts-types.md#length) | Yes | Stroke width of the divider.
Default value: **1**, in vp | +| color | [ResourceColor](ts-types.md#resourcecolor) | No | Color of the divider.
Default value: **#000000, 3%** | +| startMargin | [Length](ts-types.md#length) | No | Distance between the divider and the top of the sidebar.
Default value: **0**| +| endMargin | [Length](ts-types.md#length) | No | Distance between the divider and the bottom of the sidebar.
Default value: **0**| + ## Events | Name| Description| diff --git a/en/application-dev/reference/arkui-ts/ts-container-stack.md b/en/application-dev/reference/arkui-ts/ts-container-stack.md index 1170de852ec2fd8c3361d4bd19a4cb5fc1f44231..766e63854217ff91b3ed49748d60b72ff490fee8 100644 --- a/en/application-dev/reference/arkui-ts/ts-container-stack.md +++ b/en/application-dev/reference/arkui-ts/ts-container-stack.md @@ -30,7 +30,7 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the | Name | Type | Description | | ------------ | ------------------------------------------- | ------------------------------ | -| alignContent | [Alignment](ts-appendix-enums.md#alignment) | Alignment of child components in the container.| +| alignContent | [Alignment](ts-appendix-enums.md#alignment) | Alignment of child components in the container.
Default value: **Alignment.Center**
Since API version 9, this API is supported in ArkTS widgets.| ## Example diff --git a/en/application-dev/reference/arkui-ts/ts-explicit-animation.md b/en/application-dev/reference/arkui-ts/ts-explicit-animation.md index 1cee9be56077b524b2bb71e098336701e7dd9593..3e756f519e74b7f851b3af2401e7272eb133a4a9 100644 --- a/en/application-dev/reference/arkui-ts/ts-explicit-animation.md +++ b/en/application-dev/reference/arkui-ts/ts-explicit-animation.md @@ -42,7 +42,7 @@ struct AnimateToExample { build() { Column() { - Button('change width and height') + Button('change size') .width(this.widthSize) .height(this.heightSize) .margin(30) @@ -57,8 +57,8 @@ struct AnimateToExample { console.info('play end') } }, () => { - this.widthSize = 100 - this.heightSize = 50 + this.widthSize = 150 + this.heightSize = 60 }) } else { animateTo({}, () => { @@ -77,7 +77,7 @@ struct AnimateToExample { curve: Curve.Friction, delay: 500, iterations: -1, // The value -1 indicates that the animation is played for an unlimited number of times. - playMode: PlayMode.AlternateReverse, + playMode: PlayMode.Alternate, onFinish: () => { console.info('play end') } @@ -90,10 +90,4 @@ struct AnimateToExample { } ``` -The figure below shows two buttons in their initial state. - -![animation](figures/animation.PNG) - -Clicking the first button plays the animation of resizing the button, and clicking the second button plays the animation of rotating the button clockwise by 90 degrees. The figure below shows the two buttons when the animations have finished. - -![animation1](figures/animation1.PNG) +![animation1](figures/animation1.gif) diff --git a/en/application-dev/reference/arkui-ts/ts-media-components-video.md b/en/application-dev/reference/arkui-ts/ts-media-components-video.md index feb0d96571dd263205252f8c849b5a0f6ee967b1..0c143bd234578db616fb7a86fccca80cb592b983 100644 --- a/en/application-dev/reference/arkui-ts/ts-media-components-video.md +++ b/en/application-dev/reference/arkui-ts/ts-media-components-video.md @@ -118,9 +118,9 @@ Requests full-screen mode. **Parameters** -| Name | Type | Mandatory | Description | -| ----- | ------- | ---- | --------------------- | -| value | boolean | Yes | Whether the playback is in full-screen mode.
Default value: **false**| +| Name| Type| Mandatory| Description | +| ------ | -------- | ---- | -------------------------------------------------- | +| value | boolean | Yes | Whether to play the video in full screen mode within the application window.
Default value: **false**| ### exitFullscreen @@ -173,7 +173,7 @@ struct VideoCreateComponent { previewUri: this.previewUri, currentProgressRate: this.curRate, controller: this.controller - }).width(800).height(600) + }).width('100%').height(600) .autoPlay(this.isAutoPlay) .controls(this.showControls) .onStart(() => { @@ -186,7 +186,7 @@ struct VideoCreateComponent { console.info('onFinish') }) .onError(() => { - console.info('onFinish') + console.info('onError') }) .onPrepared((e) => { console.info('onPrepared is ' + e.duration) diff --git a/en/application-dev/reference/arkui-ts/ts-methods-alert-dialog-box.md b/en/application-dev/reference/arkui-ts/ts-methods-alert-dialog-box.md index 3588277a411f29ff33929ecd92d501e1686c1d00..db8ca389e215c3a8ffd750b672212f0db0453ff9 100644 --- a/en/application-dev/reference/arkui-ts/ts-methods-alert-dialog-box.md +++ b/en/application-dev/reference/arkui-ts/ts-methods-alert-dialog-box.md @@ -11,7 +11,7 @@ You can set the text content and response callback for an alert dialog box. | Name | Type | Description| | ---- | --------------- | -------- | -| show | [AlertDialogParamWithConfirm](#alertdialogparamwithconfirm) \| [AlertDialogParamWithButtons](#alertdialogparamwithbuttons) | Defines and displays the **** component.| +| show | [AlertDialogParamWithConfirm](#alertdialogparamwithconfirm) \| [AlertDialogParamWithButtons](#alertdialogparamwithbuttons) | Defines and displays the **\** component. | ## AlertDialogParamWithConfirm | Name | Type | Mandatory | Description | diff --git a/en/application-dev/reference/arkui-ts/ts-motion-path-animation.md b/en/application-dev/reference/arkui-ts/ts-motion-path-animation.md index f32762ea1dd342ff52e4ff80c4bc7fb4245b6137..37f51638b8383dfab8aba2ddb3f6e7c441419b8a 100644 --- a/en/application-dev/reference/arkui-ts/ts-motion-path-animation.md +++ b/en/application-dev/reference/arkui-ts/ts-motion-path-animation.md @@ -11,7 +11,7 @@ The motion path animation is used to animate a component along a custom path. | Name| Type| Default Value| Description| | -------- | -------- | -------- | -------- | -| motionPath | {
path: string,
from?: number,
to?: number,
rotatable?: boolean
}
**NOTE**
In a path, **start** and **end** can be used to replace the start point and end point. Example:
'Mstart.x start.y L50 50 Lend.x end.y Z'
For more information, see [Path Drawing](../../ui/ui-js-components-svg-path.md).| {
'',
0.0,
1.0,
false
} | Motion path of the component.
- **path**: motion path of the translation animation. The value is an SVG path string.
- **from**: start point of the motion path. The default value is **0.0**.
- **to**: end point of the motion path. The default value is **1.0**.
- **rotatable**: whether to rotate along the path. | +| motionPath | {
path: string,
from?: number,
to?: number,
rotatable?: boolean
}
**NOTE**
In a path, **start** and **end** can be used to replace the start point and end point. Example:
'Mstart.x start.y L50 50 Lend.x end.y Z'
For more information, see [Path Drawing](../../ui/ui-js-components-svg-path.md).| {
'',
0.0,
1.0,
false
} | Motion path of the component.
- **path**: motion path of the translation animation. The value is an SVG path string.
- **from**: start point of the motion path. The default value is **0.0**.
- **to**: end point of the motion path. The default value is **1.0**.
- **rotatable**: whether to rotate along the path.| ## Example @@ -25,7 +25,7 @@ struct MotionPathExample { build() { Column() { - Button('click me') + Button('click me').margin(50) // Execute the animation: Move from the start point to (300,200), then to (300,500), and finally to the end point. .motionPath({ path: 'Mstart.x start.y L300 200 L300 500 Lend.x end.y', from: 0.0, to: 1.0, rotatable: true }) .onClick(() => { @@ -38,4 +38,4 @@ struct MotionPathExample { } ``` -![en-us_image_0000001212378420](figures/en-us_image_0000001212378420.gif) +![en-us_image_0000001174104400](figures/en-us_image_0000001174104400.gif) diff --git a/en/application-dev/reference/arkui-ts/ts-types.md b/en/application-dev/reference/arkui-ts/ts-types.md index 78d1c4fb2c2fc836b19e1ea17e96c662f72075c7..fac677383a0eedcbd12c7a913d30cc3d2d679845 100644 --- a/en/application-dev/reference/arkui-ts/ts-types.md +++ b/en/application-dev/reference/arkui-ts/ts-types.md @@ -124,8 +124,8 @@ The **ResourceColor** type is used to describe the color types of resources. | Type | Description | | ---------------------------------------- | ------------------------------------------------- | | [Color](ts-appendix-enums.md#color) | Color enums. | -| number | Color in hexadecimal notation. | -| string | Color in RGB or RGBA notation. | +| number | Color in hexadecimal notation. RGB is supported. | +| string | Color in RGB or ARGB notation. | | [Resource](#resource) | Color referenced from system or application resources.| ## ColoringStrategy @@ -134,7 +134,7 @@ The **ColoringStrategy** type is used to describe the foreground colors. | Name | Description | | --------- | ------- | -| Invert | Inverse of the component background color.| +| INVERT | Inverse of the component background color.| ## LengthConstrain @@ -225,3 +225,14 @@ The **CustomBuilder** type is used to define custom UI descriptions in component | Name | Type | Description | | ------------- | ---------------------- | ---------------------------------------- | | CustomBuilder | () => any | Must be decorated by **@Builder**. For details, see [@Builder](../../quick-start/arkts-dynamic-ui-elememt-building.md#builder).| + +## PixelStretchEffectOptions10+ + +Describes the pixel stretch effect options. + +| Name | Type | Mandatory | Description | +| ----------- | ------ | ---- | ---------- | +| left | [Length](#length) | No | Length by which a pixel is stretched towards the left edge of the image.| +| right | [Length](#length) | No | Length by which a pixel is stretched towards the right edge of the image.| +| top | [Length](#length) | No | Length by which a pixel is stretched towards the top edge of the image.| +| bottom | [Length](#length) | No | Length by which a pixel is stretched towards the bottom edge of the image.| diff --git a/en/application-dev/reference/arkui-ts/ts-universal-attributes-background.md b/en/application-dev/reference/arkui-ts/ts-universal-attributes-background.md index 98da7c61fee51c2a6d99349a7de61b93fda1cede..4cc26a594e13004d77784cfbb2d5f0ed24f8976b 100644 --- a/en/application-dev/reference/arkui-ts/ts-universal-attributes-background.md +++ b/en/application-dev/reference/arkui-ts/ts-universal-attributes-background.md @@ -11,8 +11,8 @@ You can set the background of a component. | Name| Type| Description| | -------- | -------- | -------- | | backgroundColor | [ResourceColor](ts-types.md#resourcecolor) | Background color of the component.
Since API version 9, this API is supported in ArkTS widgets.| -| backgroundImage | src: [ResourceStr](ts-types.md#resourcestr),
repeat?: [ImageRepeat](ts-appendix-enums.md#imagerepeat) | **src**: image address, which can be the address of an Internet or a local image. (SVG images are not supported.)
**repeat**: whether the background image is repeatedly used. By default, the background image is not repeatedly used.
Since API version 9, this API is supported in ArkTS widgets.| -| backgroundImageSize | {
width?: [Length](ts-types.md#length),
height?: [Length](ts-types.md#length)
} \| [ImageSize](ts-appendix-enums.md#imagesize) | Width and height of the background image. If the input is a **{width: Length, height: Length}** object and only one attribute is set, the other attribute is the set value multiplied by the original aspect ratio of the image. By default, the original image aspect ratio remains unchanged.
Default value: **ImageSize.Auto**
Since API version 9, this API is supported in ArkTS widgets.| +| backgroundImage | src: [ResourceStr](ts-types.md#resourcestr),
repeat?: [ImageRepeat](ts-appendix-enums.md#imagerepeat) | **src**: image address, which can be the address of an Internet or a local image or a Base64 encoded image. SVG images are not supported.
**repeat**: whether the background image is repeatedly used. By default, the background image is not repeatedly used. If the set image has a transparent background and **backgroundColor** is set, the image is overlaid on the background color.
Since API version 9, this API is supported in ArkTS widgets.| +| backgroundImageSize | {
width?: [Length](ts-types.md#length),
height?: [Length](ts-types.md#length)
} \| [ImageSize](ts-appendix-enums.md#imagesize) | Width and height of the background image. If the input is a **{width: Length, height: Length}** object and only one attribute is set, the other attribute is the set value multiplied by the original aspect ratio of the image. By default, the original image aspect ratio remains unchanged.
The value range of **width** and **height** is [0, +∞).
Default value: **ImageSize.Auto**
Since API version 9, this API is supported in ArkTS widgets.
**NOTE**
A value less than 0 evaluates to the value **0**. If **height** is set but **width** is not, the image width is adjusted based on the original aspect ratio of the image.| | backgroundImagePosition | [Position](ts-types.md#position8) \| [Alignment](ts-appendix-enums.md#alignment) | Position of the background image in the component, that is, the coordinates relative to the upper left corner of the component.
Default value:
{
x: 0,
y: 0
}
When **x** and **y** are set in percentage, the offset is calculated based on the width and height of the component.
Since API version 9, this API is supported in ArkTS widgets.| ## Example diff --git a/en/application-dev/reference/arkui-ts/ts-universal-attributes-backgroundBlurStyle.md b/en/application-dev/reference/arkui-ts/ts-universal-attributes-backgroundBlurStyle.md index fdff66a475bb3987ab7574b14d99fe0ea50a6ff0..7697d92ebdae9512ebcebfe4d46d6a43cf0143c2 100644 --- a/en/application-dev/reference/arkui-ts/ts-universal-attributes-backgroundBlurStyle.md +++ b/en/application-dev/reference/arkui-ts/ts-universal-attributes-backgroundBlurStyle.md @@ -10,19 +10,16 @@ You can apply background blur effects to a component. ## Attributes -| Name | Type | Description | +| Name | Parameter | Description | | -------------------- | ----------------------- | ------------------------ | -| backgroundBlurStyle | [BlurStyle](#blurstyle) | Style of the blur between the background and content for the current component. The input parameter indicates a blur material.
This API is supported in ArkTS widgets.| +| backgroundBlurStyle | value:[BlurStyle](ts-appendix-enums.md#blurstyle9),
options10+?:[BackgroundBlurStyleOptions](#backgroundblurstyleoptions10) | Background blur style applied between the content and the background.
**value**: settings of the background blur style, including the blur radius, mask color, mask opacity, and saturation.
**options**: background blur options. This parameter is optional.
This API is supported in ArkTS widgets.| + +## BackgroundBlurStyleOptions10+ -## BlurStyle - -This API is supported in ArkTS widgets. - - | Name | Description | - | ------- | ---------- | - | Thin | Thin material. | - | Regular | Regular material. | - | Thick | Thick material. | +| Name| Type| Mandatory| Description| +| ----------- | ------| ------ | ------ | +| colorMode10+ | [ThemeColorMode](ts-appendix-enums.md#themecolormode10) | No| Color mode used for the background blur.
Default value: **ThemeColorMode.System**| +| adaptiveColor10+ | [AdaptiveColor](ts-appendix-enums.md#adaptivecolor10) | No| Adaptive color mode.
Default value: **AdaptiveColor.Default**| ## Example @@ -30,16 +27,16 @@ This API is supported in ArkTS widgets. // xxx.ets @Entry @Component -struct Index { +struct BackgroundBlurStyleDemo { build() { Column() { Row() { Text("Thin Material") } - .width(350) - .height(300) - .backgroundBlurStyle(BlurStyle.Thin) - .position({ x: "15%", y: "30%" }) + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.Thin, { colorMode: ThemeColorMode.Light, adaptiveColor: AdaptiveColor.Default }) + .position({ x: '15%', y: '30%' }) } .height('100%') .width('100%') diff --git a/en/application-dev/reference/arkui-ts/ts-universal-attributes-gradient-color.md b/en/application-dev/reference/arkui-ts/ts-universal-attributes-gradient-color.md index b989c3554a0c0725688fbd44b2aed9fc95d99022..11394a20c84757bfff4fc3d95fc72a7f2c3ee428 100644 --- a/en/application-dev/reference/arkui-ts/ts-universal-attributes-gradient-color.md +++ b/en/application-dev/reference/arkui-ts/ts-universal-attributes-gradient-color.md @@ -12,9 +12,9 @@ Create a more gorgeous look for a component by applying a gradient color effect | Name | Type | Description | | -------------- | -------------------------------------------- | ----------------------------------- | -| linearGradient | {
angle?: number \| string,
direction?: [GradientDirection](ts-appendix-enums.md#gradientdirection),
colors: Array<[ColorStop](ts-basic-components-gauge.md#colorstop)>,
repeating?: boolean
} | Linear gradient.
- **angle**: start angle of the linear gradient. A positive value indicates a clockwise rotation from the origin, (0, 0).
Default value: **180**
- **direction**: direction of the linear gradient. It does not take effect when **angle** is set.
Default value: **GradientDirection.Bottom**
- **colors**: colors of the linear gradient.
- **repeating**: whether the colors are repeated.
Default value: **false**
Since API version 9, this API is supported in ArkTS widgets.| -| sweepGradient | {
center: Point,
start?: number \| string,
end?: number \| string,
rotation?: number\|string,
colors: Array<[ColorStop](ts-basic-components-gauge.md#colorstop)>,
repeating?: boolean
} | Sweep gradient, which can sweep around the specified center point in the 0–360 degree range. If the rotation angle exceeds the range, a monochrome color instead of a gradient will be drawn.
- **center**: center point of the sweep gradient, that is, the coordinates relative to the upper left corner of the current component.
- **start**: start point of the sweep gradient.
Default value: **0**
- **end**: end point of the sweep gradient.
Default value: **0**
- **rotation**: rotation angle of the sweep gradient.
Default value: **0**
- **colors**: colors of the sweep gradient.
- **repeating**: whether the colors are repeated.
Default value: **false**
Since API version 9, this API is supported in ArkTS widgets.| -| radialGradient | {
center: Point,
radius: number \| string,
colors: Array<[ColorStop](ts-basic-components-gauge.md#colorstop)>,
repeating?: boolean
} | Radial gradient.
- **center**: center point of the radial gradient, that is, the coordinates relative to the upper left corner of the current component.
- **radius**: radius of the radial gradient.
- **colors**: colors of the radial gradient.
- **repeating**: whether the colors are repeated.
Default value: **false**
Since API version 9, this API is supported in ArkTS widgets.| +| linearGradient | {
angle?: number \| string,
direction?: [GradientDirection](ts-appendix-enums.md#gradientdirection),
colors: Array<[ColorStop](ts-basic-components-gauge.md#colorstop)>,
repeating?: boolean
} | Linear gradient.
- **angle**: start angle of the linear gradient. A positive value indicates a clockwise rotation from the origin, (0, 0).
Default value: **180**
- **direction**: direction of the linear gradient. It does not take effect when **angle** is set.
Default value: **GradientDirection.Bottom**
- **colors**: colors of the linear gradient.
- **repeating**: whether the colors are repeated.
Default value: **false**
Since API version 9, this API is supported in ArkTS widgets.| +| sweepGradient | {
center: Point,
start?: number \| string,
end?: number \| string,
rotation?: number\|string,
colors: Array<[ColorStop](ts-basic-components-gauge.md#colorstop)>,
repeating?: boolean
} | Sweep gradient, which can sweep around the specified center point in the 0–360 degree range. If the rotation angle exceeds the range, a monochrome color instead of a gradient will be drawn.
- **center**: center point of the sweep gradient, that is, the coordinates relative to the upper left corner of the current component.
- **start**: start point of the sweep gradient.
Default value: **0**
- **end**: end point of the sweep gradient.
Default value: **0**
- **rotation**: rotation angle of the sweep gradient.
Default value: **0**
- **colors**: colors of the sweep gradient.
- **repeating**: whether the colors are repeated.
Default value: **false**
Since API version 9, this API is supported in ArkTS widgets.
**NOTE**
A value less than 0 evaluates to the value **0**. A value greater than 360 evaluates to the value **1**.
When the data type of **start**, **end**, and **rotation** is string, the value **"90"** or **"90%"** is equivalent to **90**. | +| radialGradient | {
center: Point,
radius: number \| string,
colors: Array<[ColorStop](ts-basic-components-gauge.md#colorstop)>,
repeating?: boolean
} | Radial gradient.
- **center**: center point of the radial gradient, that is, the coordinates relative to the upper left corner of the current component.
- **radius**: radius of the radial gradient.
Value range: [0, +∞)
**NOTE**
A value less than 0 evaluates to the value **0**.
- **colors**: colors of the radial gradient.
- **repeating**: whether the colors are repeated.
Default value: **false**
Since API version 9, this API is supported in ArkTS widgets. | ## Example diff --git a/en/application-dev/reference/arkui-ts/ts-universal-attributes-grid.md b/en/application-dev/reference/arkui-ts/ts-universal-attributes-grid.md index ff40648d9b60813d533cb79eee781df523738bf8..d5273a2bf095ea4fa4f34e2e7306f7b467ff72db 100644 --- a/en/application-dev/reference/arkui-ts/ts-universal-attributes-grid.md +++ b/en/application-dev/reference/arkui-ts/ts-universal-attributes-grid.md @@ -12,7 +12,7 @@ | Name | Type | Description | | ----------- | ------------------------------------------------------------ | ------------------------------------------------------------ | -| useSizeType | {
xs?: number \| { span: number, offset: number },
sm?: number \| { span: number, offset: number },
md?: number \| { span: number, offset: number },
lg?: number \| { span: number, offset: number }
} | Number of occupied columns and offset columns for a specific device width type. **span** indicates the number of occupied columns, and **offset** indicates the number of offset columns.
If the value is of the number type, only the number of columns can be set. If the value is in the format of {"span": 1, "offset": 0}, both the number of occupied columns and the number of offset columns need to be set.
- **xs** indicates that the device width type is **SizeType.XS**.
- **sm** indicates that the device width type is **SizeType.SM**.
- **md** indicates that the device width type is **SizeType.MD**.
- **lg** indicates that the device width type is **SizeType.LG**.| +| useSizeType(deprecated) | {
xs?: number \| { span: number, offset: number },
sm?: number \| { span: number, offset: number },
md?: number \| { span: number, offset: number },
lg?: number \| { span: number, offset: number }
} | Number of occupied columns and offset columns for a specific device width type. **span** indicates the number of occupied columns, and **offset** indicates the number of offset columns.
If the value is of the number type, only the number of columns can be set. If the value is in the format of {"span": 1, "offset": 0}, both the number of occupied columns and the number of offset columns need to be set.
- **xs** indicates that the device width type is **SizeType.XS**.
- **sm** indicates that the device width type is **SizeType.SM**.
- **md** indicates that the device width type is **SizeType.MD**.
- **lg** indicates that the device width type is **SizeType.LG**.
This attribute is deprecated since API version 9. You are advised to use [GridCol](ts-container-gridcol.md) and [GridRow](ts-container-gridrow.md) instead. | | gridSpan | number | Default number of occupied columns, that is, the number of occupied columns when **span** in **useSizeType** is not set.
**NOTE**
If the **span** attribute is set, the component width is determined by the grid layout.
Default value: **1**| | gridOffset | number | Default number of offset columns, that is, the number of offset columns in the start direction of the parent component (which is also the nth column that the component is in) when **offset** in **useSizeType** is not set.
**NOTE**
- After this attribute is set, the horizontal layout of the current component does not follow the original layout of the parent component. Instead, it offsets along the start direction of the parent component.
- Offset = (Column width + Gap) \* Number of columns.
- After this attribute is set, sibling components will be arranged relatively to this component, as in the relative layout.
Default value: **0**| diff --git a/en/application-dev/reference/arkui-ts/ts-universal-attributes-image-effect.md b/en/application-dev/reference/arkui-ts/ts-universal-attributes-image-effect.md index 4d4e1e7440c93e9b80972d5582b0edfe8800a176..721a7a425c5153ed672c718921dcfe593958e481 100644 --- a/en/application-dev/reference/arkui-ts/ts-universal-attributes-image-effect.md +++ b/en/application-dev/reference/arkui-ts/ts-universal-attributes-image-effect.md @@ -12,16 +12,16 @@ Image effects include blur, shadow, and much more. | Name | Type | Default Value| Description | | ----------------------------- | ------------------------------------------------------------ | ------ | ------------------------------------------------------------ | -| blur | number | - | Applies the content blur effect to the current component. The input parameter is the blur radius. The larger the radius is, the more blurred the content is. If the value is **0**, the content is not blurred.
Since API version 9, this API is supported in ArkTS widgets.| -| backdropBlur | number | - | Applies the background blur effect to the current component. The input parameter is the blur radius. The larger the radius is, the more blurred the background is. If the value is **0**, the background is not blurred.
Since API version 9, this API is supported in ArkTS widgets.| -| shadow | [ShadowOptions](#shadowoptions) \| [ShadowStyle](#shadowstyle10) | - | Applies a shadow effect to the current component.
When the value type is **ShadowOptions**, the blur radius, shadow color, and offset along the x-axis and y-axis can be specified.
When the value type is **ShadowStyle**, the shadow style can be specified.
Since API version 9, this API is supported in ArkTS widgets.
**NOTE**
ArkTS widgets do not support the [ShadowStyle](#shadowstyle10) value type. | -| grayscale | number | 0.0 | Converts the input image to grayscale. The value indicates the grayscale conversion ratio. If the input value is **1.0**, the image is converted into a grayscale image. If the input value is **0.0**, the image does not change. If the input value is between **0.0** and **1.0**, the effect changes in linear mode. The unit is percentage.
Since API version 9, this API is supported in ArkTS widgets.| -| brightness | number | 1.0 | Applies a brightness to the current component. The input parameter is a brightness ratio. The value **1** indicates no effects. The value **0** indicates the complete darkness. If the value is less than **1**, the brightness decreases. If the value is greater than **1**, the brightness increases. A larger value indicates a higher brightness.
Since API version 9, this API is supported in ArkTS widgets.| -| saturate | number | 1.0 | Applies the saturation effect to the current component. The saturation is the ratio of the chromatic component to the achromatic component (gray) in a color. When the input value is **1**, the source image is displayed. When the input value is greater than **1**, a higher percentage of the chromatic component indicates a higher saturation. When the input value is less than **1**, a higher percentage of the achromatic component indicates a lower saturation. The unit is percentage.
Since API version 9, this API is supported in ArkTS widgets.| -| contrast | number | 1.0 | Applies the contrast effect to the current component. The input parameter is a contrast value. If the value is **1**, the source image is displayed. If the value is greater than **1**, a larger value indicates a higher contrast and a clearer image. If the value is less than **1**, a smaller value indicates a lower contrast is. If the value is **0**, the image becomes all gray. The unit is percentage.
Since API version 9, this API is supported in ArkTS widgets.| -| invert | number | 0 | Inverts the input image. The input parameter is an image inversion ratio. The value **1** indicates complete inversion. The value **0** indicates that the image does not change. The unit is percentage.
Since API version 9, this API is supported in ArkTS widgets.| -| sepia | number | 0 | Converts the image color to sepia. The input parameter is an image inversion ratio. The value **1** indicates the image is completely sepia. The value **0** indicates that the image does not change. The unit is percentage.
Since API version 9, this API is supported in ArkTS widgets.| -| hueRotate | number \| string | '0deg' | Applies the hue rotation effect to the current component. The input parameter is a rotation angle.
Since API version 9, this API is supported in ArkTS widgets.| +| blur | number | - | Applies the content blur effect to the current component. The input parameter is the blur radius. The larger the radius is, the more blurred the content is. If the value is **0**, the content is not blurred.
Value range: [0, +∞)
Since API version 9, this API is supported in ArkTS widgets.| +| backdropBlur | number | - | Applies the background blur effect to the current component. The input parameter is the blur radius. The larger the radius is, the more blurred the background is. If the value is **0**, the background is not blurred.
Value range: [0, +∞)
Since API version 9, this API is supported in ArkTS widgets.| +| shadow | [ShadowOptions](#shadowoptions) \| [ShadowStyle](#shadowstyle10) | - | Applies a shadow effect to the current component.
When the value type is **ShadowOptions**, the blur radius, shadow color, and offset along the x-axis and y-axis can be specified.
When the value type is **ShadowStyle**, the shadow style can be specified.
Since API version 9, this API is supported in ArkTS widgets.
**NOTE**
ArkTS widgets do not support the [ShadowStyle](#shadowstyle10) value type.| +| grayscale | number | 0.0 | Converts the input image to grayscale. The value indicates the grayscale conversion ratio. If the input value is **1.0**, the image is converted into a grayscale image. If the input value is **0.0**, the image does not change. If the input value is between **0.0** and **1.0**, the effect changes in linear mode. The unit is percentage.
Value range: [0, 1]
**NOTE**
A value less than 0 evaluates to the value **0**. A value greater than 1 evaluates to the value **1**.
Since API version 9, this API is supported in ArkTS widgets.| +| brightness | number | 1.0 | Applies a brightness to the current component. The input parameter is a brightness ratio. The value **1** indicates no effects. The value **0** indicates the complete darkness. If the value is less than **1**, the brightness decreases. If the value is greater than **1**, the brightness increases. A larger value indicates a higher brightness.
Value range: [0, +∞)
**NOTE**
A value less than 0 evaluates to the value **0**.
Since API version 9, this API is supported in ArkTS widgets.| +| saturate | number | 1.0 | Applies the saturation effect to the current component. The saturation is the ratio of the chromatic component to the achromatic component (gray) in a color. When the input value is **1**, the source image is displayed. When the input value is greater than **1**, a higher percentage of the chromatic component indicates a higher saturation. When the input value is less than **1**, a higher percentage of the achromatic component indicates a lower saturation. The unit is percentage.
Value range: [0, +∞)
**NOTE**
A value less than 0 evaluates to the value **0**.
Since API version 9, this API is supported in ArkTS widgets.| +| contrast | number | 1.0 | Applies the contrast effect to the current component. The input parameter is a contrast value. If the value is **1**, the source image is displayed. If the value is greater than 1, a larger value indicates a higher contrast and a clearer image. If the value is less than 1, a smaller value indicates a lower contrast is. If the value is **0**, the image becomes all gray. The unit is percentage.
Value range: [0, +∞)
**NOTE**
A value less than 0 evaluates to the value **0**.
Since API version 9, this API is supported in ArkTS widgets.| +| invert | number | 0 | Inverts the input image. The input parameter is an image inversion ratio. The value **1** indicates complete inversion, and **0** indicates that the image does not change. The unit is percentage.
Value range: [0, 1]
**NOTE**
A value less than 0 evaluates to the value **0**.
Since API version 9, this API is supported in ArkTS widgets.| +| sepia | number | 0 | Converts the image color to sepia. The input parameter is an image conversion ratio. The value **1** indicates the image is completely sepia, and **0** indicates that the image does not change. The unit is percentage.
Since API version 9, this API is supported in ArkTS widgets.| +| hueRotate | number \| string | '0deg' | Applies the hue rotation effect to the current component. The input parameter is a rotation angle.
Value range: (-∞, +∞)
**NOTE**
A rotation of 360 degrees leaves the color unchanged. A rotation of 180 degrees and then –180 degrees also leaves the color unchanged. When the data type is number, the value 90 is equivalent to **'90deg'**.
Since API version 9, this API is supported in ArkTS widgets.| | colorBlend 8+ | [Color](ts-appendix-enums.md#color) \| string \| [Resource](ts-types.md#resource) | - | Applies the color blend effect to the current component. The input parameter is the blended color.
Since API version 9, this API is supported in ArkTS widgets.| ## ShadowOptions @@ -32,8 +32,8 @@ Since API version 9, this API is supported in ArkTS widgets. | Name | Type | Mandatory | Description | | ------ | ------ | ---- | --------------- | -| radius | number \| [Resource](ts-types.md#resource) | Yes | Blur radius of the shadow. | -| color | [Color](ts-appendix-enums.md#color) \| string \| [Resource](ts-types.md#resource) | No | Color of the shadow.
The default value is gray.| +| radius | number \| [Resource](ts-types.md#resource) | Yes | Blur radius of the shadow.
Value range: [0, +∞)
**NOTE**
A value less than 0 evaluates to the value **0**.| +| color | [Color](ts-appendix-enums.md#color) \| string \| [Resource](ts-types.md#resource) | No | Color of the shadow.
The default color is black.| | offsetX | number \| [Resource](ts-types.md#resource) | No | Offset of the shadow along the x-axis.
The default value is **0**. | | offsetY | number \| [Resource](ts-types.md#resource) | No | Offset of the shadow along the y-axis.
The default value is **0**.| diff --git a/en/application-dev/reference/arkui-ts/ts-universal-attributes-location.md b/en/application-dev/reference/arkui-ts/ts-universal-attributes-location.md index 2c43828da9bc9d793b0fb75047e76cf862892712..37c96bd580acac247e9b7cbc51c7e30618ceb741 100644 --- a/en/application-dev/reference/arkui-ts/ts-universal-attributes-location.md +++ b/en/application-dev/reference/arkui-ts/ts-universal-attributes-location.md @@ -32,19 +32,15 @@ struct PositionExample1 { Column({ space: 10 }) { // When the component content is within the area specified by the component width and height, set the alignment mode of the content in the component. Text('align').fontSize(9).fontColor(0xCCCCCC).width('90%') - Text('top start') - .align(Alignment.TopStart) - .height(50) - .width('90%') - .fontSize(16) - .backgroundColor(0xFFE4C4) - - Text('Bottom end') - .align(Alignment.BottomEnd) - .height(50) - .width('90%') - .fontSize(16) - .backgroundColor(0xFFE4C4) + Stack() { + Text('First show in bottom end').height('65%').backgroundColor(0xD2B48C) + Text('Second show in bottom end').backgroundColor(0xF5DEB3).opacity(0.9) + }.width('90%').height(50).margin({ top: 5 }).backgroundColor(0xFFE4C4) + .align(Alignment.BottomEnd) + Stack() { + Text('top start') + }.width('90%').height(50).margin({ top: 5 }).backgroundColor(0xFFE4C4) + .align(Alignment.TopStart) // To arrange the child components from left to right, set direction of the parent container to Direction.Ltr. Text('direction').fontSize(9).fontColor(0xCCCCCC).width('90%') @@ -86,6 +82,7 @@ struct PositionExample2 { Text('position').fontSize(12).fontColor(0xCCCCCC).width('90%') Row() { Text('1').size({ width: '30%', height: '50' }).backgroundColor(0xdeb887).border({ width: 1 }).fontSize(16) + .textAlign(TextAlign.Center) Text('2 position(30, 10)') .size({ width: '60%', height: '30' }) .backgroundColor(0xbbb2cb) @@ -94,6 +91,7 @@ struct PositionExample2 { .align(Alignment.Start) .position({ x: 30, y: 10 }) Text('3').size({ width: '45%', height: '50' }).backgroundColor(0xdeb887).border({ width: 1 }).fontSize(16) + .textAlign(TextAlign.Center) Text('4 position(50%, 70%)') .size({ width: '50%', height: '50' }) .backgroundColor(0xbbb2cb) @@ -110,14 +108,20 @@ struct PositionExample2 { .size({ width: '100', height: '100' }) .backgroundColor(0xdeb887) Text('text') + .fontSize('30px') + .textAlign(TextAlign.Center) .size({ width: 25, height: 25 }) .backgroundColor(Color.Green) .markAnchor({ x: 25, y: 25 }) Text('text') + .fontSize('30px') + .textAlign(TextAlign.Center) .size({ width: 25, height: 25 }) .backgroundColor(Color.Green) .markAnchor({ x: -100, y: -25 }) Text('text') + .fontSize('30px') + .textAlign(TextAlign.Center) .size({ width: 25, height: 25 }) .backgroundColor(Color.Green) .markAnchor({ x: 25, y: -25 }) @@ -127,6 +131,7 @@ struct PositionExample2 { Text('offset').fontSize(12).fontColor(0xCCCCCC).width('90%') Row() { Text('1').size({ width: '15%', height: '50' }).backgroundColor(0xdeb887).border({ width: 1 }).fontSize(16) + .textAlign(TextAlign.Center) Text('2 offset(15, 30)') .size({ width: 120, height: '50' }) .backgroundColor(0xbbb2cb) @@ -135,6 +140,7 @@ struct PositionExample2 { .align(Alignment.Start) .offset({ x: 15, y: 30 }) Text('3').size({ width: '15%', height: '50' }).backgroundColor(0xdeb887).border({ width: 1 }).fontSize(16) + .textAlign(TextAlign.Center) Text('4 offset(-10%, 20%)') .size({ width: 100, height: '50' }) .backgroundColor(0xbbb2cb) diff --git a/en/application-dev/reference/arkui-ts/ts-universal-attributes-text-style.md b/en/application-dev/reference/arkui-ts/ts-universal-attributes-text-style.md index 3fe2fd67e04bb818ccc5625f7f7d9d61e9347ea2..bba053499cccf91804f860a217b78af3ace9c390 100644 --- a/en/application-dev/reference/arkui-ts/ts-universal-attributes-text-style.md +++ b/en/application-dev/reference/arkui-ts/ts-universal-attributes-text-style.md @@ -1,6 +1,6 @@ -# Text Style +# Universal Text Attributes -The text style attributes set the style for text in a component. +Universal text attributes include text style attributes applicable to text containers. > **NOTE** > @@ -18,6 +18,8 @@ The text style attributes set the style for text in a component. | fontStyle | [FontStyle](ts-appendix-enums.md#fontstyle) | Font style.
Default value: **FontStyle.Normal** | | fontWeight | number \| [FontWeight](ts-appendix-enums.md#fontweight) \| string | Font weight. For the number type, the value ranges from 100 to 900, at an interval of 100. The default value is **400**. A larger value indicates a larger font weight. The string type supports only the string of the number type, for example, **400**, **"bold"**, **"bolder"**, **"lighter"**, **"regular"**, and **"medium"**, which correspond to the enumerated values in **FontWeight**.
Default value: **FontWeight.Normal** | | fontFamily | string \| [Resource](ts-types.md#resource) | Font family.
Default value: **'HarmonyOS Sans'**
Currently, only the default font is supported. | +| lineHeight | string \| number \| [Resource](ts-types.md#resource) | Text line height. If the value is less than or equal to **0**, the line height is not limited and the font size is adaptive. If the value of the number type, the unit fp is used.| +| decoration | {
type: [TextDecorationType](ts-appendix-enums.md#textdecorationtype),
color?: [ResourceColor](ts-types.md#resourcecolor)
} | Style and color of the text decorative line.
Default value: {
type: TextDecorationType.None,
color: Color.Black
} | ## Example diff --git a/en/application-dev/reference/arkui-ts/ts-universal-events-drag-drop.md b/en/application-dev/reference/arkui-ts/ts-universal-events-drag-drop.md index 47d797b263a133c740bcf5864b6347ed76af30b6..64ff5cd450da4f88e462bdf3f6e80858adcda14e 100644 --- a/en/application-dev/reference/arkui-ts/ts-universal-events-drag-drop.md +++ b/en/application-dev/reference/arkui-ts/ts-universal-events-drag-drop.md @@ -10,7 +10,7 @@ A drag event is triggered when a component is dragged. | Name | Bubbling Supported| Description | | ------------------------------------------------------------ | -------- | ------------------------------------------------------------ | -| onDragStart(event: (event?: [DragEvent](#dragevent), extraParams?: string) => [CustomBuilder](ts-types.md#custombuilder8) \| [DragItemInfo](#dragiteminfo)) | No | Triggered when the component bound to the event is dragged for the first time.
- **event**: information about the drag event, including the coordinates of the item that is being dragged.
- **extraParams**: additional information about the drag event. For details, see **[extraParams](#extraparams)**.
Return value: object being dragged, which is used for prompts displayed when the object is dragged.
A drag event can be triggered by a 150 ms long press. If the duration of a long-press gesture is set to less than or equal to 150 ms, the callback for the long-press gesture takes precedence. Otherwise, the callback for the drag event takes precedence.| +| onDragStart(event: (event?: [DragEvent](#dragevent), extraParams?: string) => [CustomBuilder](ts-types.md#custombuilder8) \| [DragItemInfo](#dragiteminfo)) | No | Triggered when the component bound to the event is dragged for the first time.
- **event**: information about the drag event, including the coordinates of the item that is being dragged.
- **extraParams**: additional information about the drag event. For details, see **[extraParams](#extraparams)**.
Return value: object being dragged, which is used for prompts displayed when the object is dragged.
A drag event can be triggered by a 500 ms long press. If the duration of a long-press gesture is set to less than or equal to 500 ms, the callback for the long-press gesture takes precedence. Otherwise, the callback for the drag event takes precedence.| | onDragEnter(event: (event?: [DragEvent](#dragevent), extraParams?: string) => void) | No | Triggered when the dragged item enters a valid drop target.
- **event**: information about the drag event, including the coordinates of the item that is being dragged.
- **extraParams**: additional information about the drag event. For details, see **[extraParams](#extraparams)**.
This event is valid only when a listener for the **onDrop** event is enabled.| | onDragMove(event: (event?: [DragEvent](#dragevent), extraParams?: string) => void) | No | Triggered when the dragged item moves in a valid drop target.
- **event**: information about the drag event, including the coordinates of the item that is being dragged.
- **extraParams**: additional information about the drag event. For details, see **[extraParams](#extraparams)**.
This event is valid only when a listener for the **onDrop** event is enabled.| | onDragLeave(event: (event?: [DragEvent](#dragevent), extraParams?: string) => void) | No | Triggered when the dragged item leaves a valid drop target.
- **event**: information about the drag event, including the coordinates of the item that is being dragged.
- **extraParams**: additional information about the drag event. For details, see **[extraParams](#extraparams)**.
This event is valid only when a listener for the **onDrop** event is enabled.| @@ -67,7 +67,7 @@ struct DragExample { @State bananaVisible: Visibility = Visibility.Visible private dragList: string[] = ['apple', 'orange', 'banana'] @State fruitVisible: Visibility[] = [Visibility.Visible, Visibility.Visible, Visibility.Visible] - @State index: number = 0 + @State idx: number = 0 // Customize the content displayed during dragging. @Builder pixelMapBuilder() { @@ -104,7 +104,7 @@ struct DragExample { .onTouch((event: TouchEvent) => { if (event.type === TouchType.Down) { this.eventType = 'Down' - this.index = index + this.idx = index } if (event.type === TouchType.Up) { this.eventType = 'Up' @@ -157,7 +157,7 @@ struct DragExample { this.numbers.splice(jsonString.insertIndex, 0, this.text) this.bool = false } - this.fruitVisible[this.index] = Visibility.None + this.fruitVisible[this.idx] = Visibility.None }) }.width('100%').height('100%').padding({ top: 20 }).margin({ top: 20 }) } diff --git a/en/application-dev/reference/errorcodes/Readme-EN.md b/en/application-dev/reference/errorcodes/Readme-EN.md index 6af20aafd50cecbcc2a3a3ad51553d542cf428ae..769c7d3905a01f7709e6a47c14590b8658f91f9d 100644 --- a/en/application-dev/reference/errorcodes/Readme-EN.md +++ b/en/application-dev/reference/errorcodes/Readme-EN.md @@ -57,10 +57,11 @@ - [Network Sharing Error Codes](errorcode-net-sharing.md) - [Policy Management Error Codes](errorcode-net-policy.md) - Connectivity - - [Wi-Fi Error Codes](errorcode-wifi.md) + - [Bluetooth Error Codes](errorcode-bluetoothManager.md) + - [Wi-Fi Error Codes](errorcode-wifi.md) - [NFC Error Codes](errorcode-nfc.md) - [RPC Error Codes](errorcode-rpc.md) -- Basic Features + - Basic Features - [Accessibility Error Codes](errorcode-accessibility.md) - [FaultLogger Error Codes](errorcode-faultlogger.md) - [Application Event Logging Error Codes](errorcode-hiappevent.md) diff --git a/en/application-dev/reference/errorcodes/errorcode-bluetoothManager.md b/en/application-dev/reference/errorcodes/errorcode-bluetoothManager.md new file mode 100644 index 0000000000000000000000000000000000000000..8cbc0165968e394c886c332e1c432bace9d5f69b --- /dev/null +++ b/en/application-dev/reference/errorcodes/errorcode-bluetoothManager.md @@ -0,0 +1,131 @@ +# Bluetooth Error Codes + +> **NOTE** +> +> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](errorcode-universal.md). + +## 2900001 + +**Error Message** + +Service stopped. + +**Description** + +The Bluetooth service is stopped, and the APIs related to the Bluetooth service cannot be called. + +**Possible Causes** + +The Bluetooth service fails to start. + +**Solution** + +Start the Bluetooth service. + +## 2900003 + +**Error Message** + +Bluetooth switch is off. + +**Description** + +Bluetooth is disabled. + +**Possible Causes** + +Bluetooth is disabled. + +**Solution** + +Enable Bluetooth. + +## 2900004 + +**Error Message** + +Profile is not supported. + +**Description** + +The profile is not supported. + +**Possible Causes** + +The profile is not supported by the device. + +**Solution** + +Check whether the device supports the profile. Use a profile supported by the device. + +## 2900099 + +**Error Message** + +Operation failed. + +**Description** + +The operation failed. + +**Possible Causes** + +The profile is not supported by the device. + +**Solution** + +Perform this operation again. + +## 2901000 + +**Error Message** + +Read forbidden. + +**Description** + +The read operation is not allowed. + +**Possible Causes** + +The caller does not have the read permission. + +**Solution** + +Check whether the caller has the read permission. + +## 2901001 + +**Error Message** + +Write forbidden. + +**Description** + +The write operation is not allowed. + +**Possible Causes** + +The caller does not have the write permission. + +**Solution** + +Check whether the caller has the write permission. + +## 2901054 + +**Error Message** + +IO error. + +**Description** + +The I/O operation failed. + +**Possible Causes** + +The I/O transmission is abnormal. + +**Solution** + +Perform this operation again. diff --git a/en/application-dev/reference/errorcodes/errorcode-telephony.md b/en/application-dev/reference/errorcodes/errorcode-telephony.md index f90efffed3589a42344d27fcbbf641872e295a96..a39655b6cfb9183f32f99aae8e70023b8d35e4f4 100644 --- a/en/application-dev/reference/errorcodes/errorcode-telephony.md +++ b/en/application-dev/reference/errorcodes/errorcode-telephony.md @@ -165,7 +165,7 @@ This error code is reported if the UT is not connected. **Cause** -The current carrier does not support sending of UT requests over a Wi-Fi network, but the mobile phone is connected to the Wi-Fi network. +The current carrier does not support sending of UT requests over a Wi-Fi network, but the device is connected to the Wi-Fi network. **Solution** diff --git a/en/application-dev/security/accesstoken-guidelines.md b/en/application-dev/security/accesstoken-guidelines.md index 1a1f36e2a0d334d4c2564d66d4738cd5c83dab6e..4898235299bef9f194b70f20ae20dd48303aa915 100644 --- a/en/application-dev/security/accesstoken-guidelines.md +++ b/en/application-dev/security/accesstoken-guidelines.md @@ -2,14 +2,14 @@ ## When to Use -The [Ability Privilege Level (APL)](accesstoken-overview.md#app-apls) of an application can be **normal**, **system_basic**, or **system_core**. The default APL is **normal**. The [permission types](accesstoken-overview.md#permission-types) include **system_grant** and **user_grant**. For details about the permissions for applications, see the [Application Permission List](permission-list.md). +Application permissions are used to prevent unauthorized access to sensitive data or critical functions. The [Ability Privilege Level (APL)](accesstoken-overview.md#application-apls) of an application can be **normal** (default), **system_basic**, or **system_core**. The [permission types](accesstoken-overview.md#permission-types) include **system_grant** and **user_grant**. For details about the permissions for applications, see the [Application Permission List](permission-list.md). This document describes the following operations: - [Declaring Permissions in the Configuration File](#declaring-permissions-in-the-configuration-file) - [Declaring the ACL](#declaring-the-acl) - [Requesting User Authorization](#requesting-user-authorization) -- [Pre-Authorizing user_grant Permissions](#pre-authorizing-user_grant-permissions) +- [Pre-authorizing user_grant Permissions](#pre-authorizing-user_grant-permissions) ## Declaring Permissions in the Configuration File @@ -28,7 +28,7 @@ The following table describes the fields in the configuration file. | usedScene | No | Application scenario of the permission.
This parameter is mandatory when a user_grant permission is required.| | abilities | No | Abilities that require the permission. The value is an array.
**Applicable model**: stage| | ability | No | Abilities that require the permission. The value is an array.
**Applicable model**: FA| -| when | No | Time when the permission is used.
Value:
- **inuse**: The permission applies only to a foreground application.
- **always**: The permission applies to both the foreground and background applications.| +| when | No | Time when the permission is required.
Value:
- **inuse**: The permission is required only when the application is in use.
- **always**: The permission is required no matter whether the application is in use.| ### Stage Model @@ -118,14 +118,14 @@ For example, if an application needs to access audio clips of a user and capture ## Requesting User Authorization -The permissions for accessing user privacy information or using system abilities (for example, accessing Location or Calendar information or using the camera to take photos or record videos) request user authorization. Before an application that requires a **user_grant** permission is called, a verification is performed to check whether the user has granted the permission to the application. If the user has not granted the permission, a dialog box will be displayed to request user authorization. The following figure shows an example. +User authorization is required when an application needs to access user privacy information (such as Location or Calendar information) or using system abilities (such as the camera ability to take photos or record videos). In this case, the application requires a **user_grant** permission. Before the application accesses the data or using the system ability, a verification is performed to check whether the user has granted the permission to the application. If the user has not granted the permission, a dialog box will be displayed to request user authorization. The following figure shows an example. -**Figure 1** Requesting authorization from a user +**Figure 1** Requesting user authorization ![](figures/permission-read_calendar.png) > **NOTE** > -> Each time before an API protected by a **user_grant** permission is called, **requestPermissionsFromUser()** will be called to request user authorization. After the permission is granted, the user may revoke the authorization in **Settings**. Therefore, the previously granted authorization status cannot be persistent. +> Each time before an API protected by a **user_grant** permission is called, **requestPermissionsFromUser()** will be called to request user authorization. After the permission is granted, the user may revoke the authorization in **Settings**. Therefore, the previous authorization status cannot be persistent. ### Stage Model @@ -135,7 +135,7 @@ Example: Apply for the permission for an application to access the Calendar. 2. Check whether the user has granted the permission. - Use [checkAccessToken()](../reference/apis/js-apis-abilityAccessCtrl.md#checkaccesstoken9) to check whether the user has granted the permission. If yes, the application can access the Calendar. Otherwise, request authorization from the user. + Use [checkAccessToken()](../reference/apis/js-apis-abilityAccessCtrl.md#checkaccesstoken9) to check whether the user has granted the permission. If yes, the application can access the Calendar. Otherwise, user authorization is required. ```ts import bundleManager from '@ohos.bundle.bundleManager'; @@ -301,14 +301,14 @@ reqPermissions() { }); } ``` -## Pre-Authorizing user_grant Permissions -By default, the **user_grant** permissions must be dynamically authorized by the user through a dialog box. However, if you do not want the user authorization dialog box to display for pre-installed applications, you can pre-authorize the permissions, for example, the **ohos.permission.MICROPHONE** permission, in the [**install_list_permission.json**](https://gitee.com/openharmony/vendor_hihope/blob/master/rk3568/preinstall-config/install_list_permissions.json) file. The **install_list_permissions.json** file is in the **/system/etc/app/** directory on a device, and is loaded when the device starts. When the application is installed, the **user_grant** permissions in the file are granted.
The **install_list_permissions.json** file contains the following fields: +## Pre-authorizing user_grant Permissions +By default, the **user_grant** permissions must be dynamically authorized by the user through a dialog box. However, some pre-installed applications may require **user_grant** permissions, for example, the system camera application requires the **ohos.permission.MICROPHONE** permission. In this case, you can pre-authorize **user_grant** permissions for pre-installed applications in the [**install_list_permission.json**](https://gitee.com/openharmony/vendor_hihope/blob/master/rk3568/preinstall-config/install_list_permissions.json) file. The **install_list_permissions.json** file is in the **/system/etc/app/** directory on a device, and is loaded when the device starts. When the application is installed, the **user_grant** permissions in the file are granted.
The **install_list_permissions.json** file contains the following fields: - **bundleName**: bundle name of the application. -- **app_signature**: fingerprint information of the application. For details, see [Application Privilege Configuration Guide](../../device-dev/subsystems/subsys-app-privilege-config-guide.md#configuration-in-install_list_capabilityjson). -- **permissions**: **name** specifies the name of the **user_grant** permission to pre-authorize. **userCancellable** specifies whether the user can revoke the pre-authorization. The value **true** means the user can revoke the pre-authorization; the value **false** means the opposite. +- **app_signature**: fingerprint information of the application. For details, see **Configuration in install_list_capability.json** in the [Application Privilege Configuration Guide](../../device-dev/subsystems/subsys-app-privilege-config-guide.md). +- **permissions**: The **name** field specifies the name of the **user_grant** permission to pre-authorize. The **userCancellable** field specifies whether the user can revoke the pre-authorization. The value **true** means the user can revoke the pre-authorization; the value **false** means the opposite. -> **NOTE**
This file is available only for preinstalled applications. +> **NOTE**
The **install_list_permissions.json** file is available only for preinstalled applications. ```json [ diff --git a/en/application-dev/security/huks-guidelines.md b/en/application-dev/security/huks-guidelines.md index 59a9bc546ad1db93e6568f1a13d0dcfc8ece4876..c23e9146f3f9e1a10206a003001339efa63f7444 100644 --- a/en/application-dev/security/huks-guidelines.md +++ b/en/application-dev/security/huks-guidelines.md @@ -7,14 +7,16 @@ The HUKS provides the capability of randomly generating keys for services. For a **How to Develop** -Use [huks.generateKeyItem(keyAlias,options,callback)](../reference/apis/js-apis-huks.md#huksgeneratekeyitem9) to generate a key. You need to pass in the key alias in **keyAlias**, key attributes in **options**, and **callback** to return the result asynchronously. For details about the APIs, see [HUKS](../reference/apis/js-apis-huks.md). +Use [huks.generateKeyItem(keyAlias,options,callback)](../reference/apis/js-apis-huks.md#huksgeneratekeyitem9) to generate a key. You need to pass in the key alias in **keyAlias**, key property set in **options**, and **callback** to return the result asynchronously. For details about the APIs, see [HUKS](../reference/apis/js-apis-huks.md). -Procedure: +**Procedure** 1. Determine the key alias. -2. Initialize the key attributes.
Use [HuksParam](../reference/apis/js-apis-huks.md#huksparam) to encapsulate key attributes and use a **HuksParam** array to assign values to the **properties** field of [HuksOptions](../reference/apis/js-apis-huks.md#huksoptions). The parameters [HuksKeyAlg](../reference/apis/js-apis-huks.md#hukskeyalg), [HuksKeySize](../reference/apis/js-apis-huks.md#hukskeysize), and [HuksKeyPurpose](../reference/apis/js-apis-huks.md#hukskeypurpose) are mandatory. +2. Initialize the key property set.
Use [HuksParam](../reference/apis/js-apis-huks.md#huksparam) to encapsulate key properties and use a **HuksParam** array to assign values to the **properties** field of [HuksOptions](../reference/apis/js-apis-huks.md#huksoptions). The parameters [HuksKeyAlg](../reference/apis/js-apis-huks.md#hukskeyalg), [HuksKeySize](../reference/apis/js-apis-huks.md#hukskeysize), and [HuksKeyPurpose](../reference/apis/js-apis-huks.md#hukskeypurpose) are mandatory. 3. Pass in the key alias and key parameter set to generate a key. + + > **NOTE** > > The key alias cannot exceed 64 bytes. @@ -28,7 +30,7 @@ Procedure: import huks from '@ohos.security.huks'; /* - * Determine the key alias and encapsulate the key attributes. + * Determine the key alias and encapsulate the key properties. */ let keyAlias = 'dh_key'; let properties = new Array(); @@ -103,11 +105,11 @@ Once a key is imported to the HUKS, its plaintext will not be exposed outside th ### Importing a Key in Plaintext -Use [huks.importKeyItem(keyAlias,options,callback)](../reference/apis/js-apis-huks.md#huksimportkeyitem9) to import a key in plaintext. You need to pass in the key alias in **keyAlias**, key material and attributes in **options**, and **callback** to return the result asynchronously. For details about the APIs, see [HUKS](../reference/apis/js-apis-huks.md). +Use [huks.importKeyItem(keyAlias,options,callback)](../reference/apis/js-apis-huks.md#huksimportkeyitem9) to import a key in plaintext. You need to pass in the key alias in **keyAlias**, key material and property set in **options**, and **callback** to return the result asynchronously. For details about the APIs, see [HUKS](../reference/apis/js-apis-huks.md). 1. Determine the key alias. -2. Encapsulate the key material and key attributes.
The key material must comply with [HUKS key material formats](./huks-appendix.md#key-material-formats). The **inData** value of [HuksOptions](../reference/apis/js-apis-huks.md#huksoptions) must be in the Uint8Array format. Encapsulate key attributes in [HuksParam](../reference/apis/js-apis-huks.md#huksparam), and use a **HuksParam** array to assign values to the **properties** field. The key attributes must contain [HuksKeyAlg](../reference/apis/js-apis-huks.md#hukskeyalg), [HuksKeySize](../reference/apis/js-apis-huks.md#hukskeysize), and [HuksKeyPurpose](../reference/apis/js-apis-huks.md#hukskeypurpose). +2. Encapsulate the key material and key property set.
The key material must comply with [HUKS key material formats](./huks-appendix.md#key-material-formats). The **inData** value of [HuksOptions](../reference/apis/js-apis-huks.md#huksoptions) must be in the Uint8Array format. Encapsulate key properties in [HuksParam](../reference/apis/js-apis-huks.md#huksparam), and use a **HuksParam** array to assign values to the **properties** field. The key properties must contain [HuksKeyAlg](../reference/apis/js-apis-huks.md#hukskeyalg), [HuksKeySize](../reference/apis/js-apis-huks.md#hukskeysize), and [HuksKeyPurpose](../reference/apis/js-apis-huks.md#hukskeypurpose). 3. Import the key. @@ -131,7 +133,7 @@ let plainTextSize32 = new Uint8Array([ let keyAlias = 'AES256Alias_sample'; /* - * Encapsulate the key attributes and key material. + * Encapsulate the key properties and key material. */ let properties = new Array(); properties[0] = { @@ -223,7 +225,7 @@ You need to use the APIs for generating a key, exporting a public key, importing | -------------------------------------- | ----------------------------| |generateKeyItem(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void| Generates a key.| |exportKeyItem(keyAlias: string, options: HuksOptions, callback: AsyncCallback) : void| Exports the public key of a key pair.| -|importWrappedKeyItem(keyAlias: string, wrappingKeyAlias: string, options: HuksOptions, callback: AsyncCallback) : void|Imports an wrapped key.| +|importWrappedKeyItem(keyAlias: string, wrappingKeyAlias: string, options: HuksOptions, callback: AsyncCallback) : void|Imports a wrapped key.| |deleteKeyItem(keyAlias: string, options: HuksOptions, callback: AsyncCallback) : void|Deletes a key.| >**NOTE**
The public key plaintext material returned by **exportKeyItem()** is encapsulated in X.509 format, and the key material to be imported by **importWrappedKeyItem()** must be encapsulated in **LengthData-Data** format. Specifically, the application needs to request a Uint8Array and encapsulate the Uint8Array in the sequence listed in the following table. @@ -286,9 +288,9 @@ let inputEccPair = new Uint8Array([ ]); /* - * Encapsulate the key attributes. + * Encapsulate the key properties. */ -// Attributes for the key used for secure import. +// Property set for the key used for secure import. let properties = new Array(); properties[0] = { tag: huks.HuksTag.HUKS_TAG_ALGORITHM, @@ -315,7 +317,7 @@ let huksOptions = { inData: inputEccPair }; -// Attribute set of the AES256 key to be imported. +// Property set of the key to be imported: AES256 let importProperties = new Array(); importProperties[0] = { tag: huks.HuksTag.HUKS_TAG_ALGORITHM, @@ -595,7 +597,7 @@ Check whether the key exists. If yes, the key is imported successfully. import huks from '@ohos.security.huks'; /* - * Determine the key alias and encapsulate the key attributes. + * Determine the key alias and encapsulate the key properties. */ let keyAlias = 'importAlias'; let isKeyExist; @@ -635,94 +637,429 @@ To ensure data confidentiality and integrity, you may need to encrypt or decrypt **General Development Process** The HUKS operates data based on key sessions. The general process is as follows: -1. (Mandatory) Use [huks.initSession()](../reference/apis/js-apis-huks.md#huksinitsession9) to initialize a key session.
You need to pass in the key alias and key operation parameters to initialize a key session, and obtain a session handle. The key operation parameters must contain the parameters required by the cipher algorithm, including the cipher algorithm, key size, key purpose, working mode, padding mode, hash mode, IV, nonce, and AAD. If access control is set for the key, other parameters are required. For details, see [Key Access Control](#key-access-control). -2. (Optional) Use [huks.updateSession()](../reference/apis/js-apis-huks.md#huksupdatesession9) to pass in data by segment.
Perform this step only if the data exceeds 100 KB or the cipher algorithm requires operations by data segment. Otherwise, skip this step. -3. (Mandatory) Use [huks.finishSession()](../reference/apis/js-apis-huks.md#huksfinishsession9) to finalize the key session operation.
Pass in the last data segment and perform the key session operation. If an error occurs during the process or the data passed in is not required, use [huks.abortSession()](../reference/apis/js-apis-huks.md#huksabortsession9) to abort the session. +1. (Mandatory) Use [huks.initSession()](../reference/apis/js-apis-huks.md#huksinitsession9) to initialize a key session.
You need to pass in the key alias and key operation parameters to initialize a key session, and obtain the session handle. The key operation parameters must contain the parameters required by the cipher algorithm, including the cipher algorithm, key size, key purpose, working mode, padding mode, hash mode, IV, nonce, and AAD. If access control is set for the key, other parameters are required. For details, see [Key Access Control](#key-access-control). This step is mandatory. +2. (Optional) Use [huks.updateSession()](../reference/apis/js-apis-huks.md#huksupdatesession9) to pass in data by segment. Perform this step only if the data exceeds 100 KB or the cryptographic algorithm requires operations by data segment. Otherwise, skip this step. This step is optional. +3. (Mandatory) Use [huks.finishSession()](../reference/apis/js-apis-huks.md#huksfinishsession9) to finalize the key session operation.
Pass in the last data segment and perform the key session operation. If an error occurs during the process or the data passed in is not required, use [huks.abortSession()](../reference/apis/js-apis-huks.md#huksabortsession9) to abort the session. This step is mandatory. ### Encryption and Decryption ```ts /* - * Encrypt and decrypt data using an SM4 128-bit key and return the result in a callback. + * The following uses an AES 128-bit key and callback-based APIs as an example. + */ +import huks from '@ohos.security.huks'; +import promptAction from '@ohos.promptAction'; + + +let aesKeyAlias = 'test_aesKeyAlias'; +let handle; +let plainText = '123456'; +let IV = '001122334455'; +let cipherData:Uint8Array; +let plainData:Uint8Array; + +function StringToUint8Array(str) { + let arr = []; + for (let i = 0, j = str.length; i < j; ++i) { + arr.push(str.charCodeAt(i)); + } + return new Uint8Array(arr); +} + +function Uint8ArrayToString(fileData) { + let dataString = ''; + for (let i = 0; i < fileData.length; i++) { + dataString += String.fromCharCode(fileData[i]); + } + return dataString; +} + +function GetAesGenerateProperties() { + var properties = new Array(); + var index = 0; + properties[index++] = { + tag: huks.HuksTag.HUKS_TAG_ALGORITHM, + value: huks.HuksKeyAlg.HUKS_ALG_AES + }; + properties[index++] = { + tag: huks.HuksTag.HUKS_TAG_KEY_SIZE, + value: huks.HuksKeySize.HUKS_AES_KEY_SIZE_128 + }; + properties[index++] = { + tag: huks.HuksTag.HUKS_TAG_PURPOSE, + value: huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_ENCRYPT | + huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_DECRYPT + } + return properties; +} + +function GetAesEncryptProperties() { + var properties = new Array(); + var index = 0; + properties[index++] = { + tag: huks.HuksTag.HUKS_TAG_ALGORITHM, + value: huks.HuksKeyAlg.HUKS_ALG_AES + }; + properties[index++] = { + tag: huks.HuksTag.HUKS_TAG_KEY_SIZE, + value: huks.HuksKeySize.HUKS_AES_KEY_SIZE_128 + }; + properties[index++] = { + tag: huks.HuksTag.HUKS_TAG_PURPOSE, + value: huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_ENCRYPT + } + properties[index++] = { + tag: huks.HuksTag.HUKS_TAG_PADDING, + value: huks.HuksKeyPadding.HUKS_PADDING_PKCS7 + } + properties[index++] = { + tag: huks.HuksTag.HUKS_TAG_BLOCK_MODE, + value: huks.HuksCipherMode.HUKS_MODE_CBC + } + properties[index++] = { + tag: huks.HuksTag.HUKS_TAG_IV, + value: StringToUint8Array(IV) + } + return properties; +} + +function GetAesDecryptProperties() { + var properties = new Array(); + var index = 0; + properties[index++] = { + tag: huks.HuksTag.HUKS_TAG_ALGORITHM, + value: huks.HuksKeyAlg.HUKS_ALG_AES + }; + properties[index++] = { + tag: huks.HuksTag.HUKS_TAG_KEY_SIZE, + value: huks.HuksKeySize.HUKS_AES_KEY_SIZE_128 + }; + properties[index++] = { + tag: huks.HuksTag.HUKS_TAG_PURPOSE, + value: huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_DECRYPT + } + properties[index++] = { + tag: huks.HuksTag.HUKS_TAG_PADDING, + value: huks.HuksKeyPadding.HUKS_PADDING_PKCS7 + } + properties[index++] = { + tag: huks.HuksTag.HUKS_TAG_BLOCK_MODE, + value: huks.HuksCipherMode.HUKS_MODE_CBC + } + properties[index++] = { + tag: huks.HuksTag.HUKS_TAG_IV, + value: StringToUint8Array(IV) + } + return properties; +} + +async function GenerateAesKey() { + var genProperties = GetAesGenerateProperties(); + var options = { + properties: genProperties + } + await huks.generateKeyItem(aesKeyAlias, options).then((data) => { + promptAction.showToast({ + message: "An AES key is generated.", + duration: 2500, + }) + }).catch((err)=>{ + promptAction.showToast({ + message: "Failed to generate the key. Error code: "+ err.code +" Error message: "+ err.message, + duration: 6500, + }) + }) +} + +async function EncryptData() { + var encryptProperties = GetAesEncryptProperties(); + var options = { + properties:encryptProperties, + inData: StringToUint8Array(plainText) + } + await huks.initSession(aesKeyAlias, options).then((data) => { + handle = data.handle; + }).catch((err)=>{ + promptAction.showToast({ + message: "Failed to initialize the key operation. Error code: "+ err.code +" Error message: "+ err.message, + duration: 6500, + }) + }) + await huks.finishSession(handle, options).then((data) => { + promptAction.showToast({ + message: "Data encrypted successfully. Ciphertext: " + Uint8ArrayToString(data.outData), + duration: 6500, + }) + cipherData = data.outData + }).catch((err)=>{ + promptAction.showToast({ + message: "An exception is captured in the encryption process. Error code: " + err.code +" Error message: "+ err.message, + duration: 6500, + }) + }) +} + +async function DecryptData() { + var decryptOptions = GetAesDecryptProperties() + var options = { + properties:decryptOptions, + inData: cipherData + } + await huks.initSession(aesKeyAlias, options).then((data) => { + handle = data.handle; + }).catch((err)=>{ + promptAction.showToast({ + message: "Failed to initialize the key operation. Error code: "+ err.code +" Error message: "+ err.message, + duration: 6500, + }) + }) + await huks.finishSession(handle, options).then((data) => { + promptAction.showToast({ + message: "Data is decrypted. Plaintext: " + Uint8ArrayToString(data.outData), + duration: 6500, + }) + }).catch((err)=>{ + promptAction.showToast({ + message: "An exception is captured in the decryption process. Error code: " + err.code +" Error message: "+ err.message, + duration: 6500, + }) + }) +} + +async function DeleteKey() { + let emptyOptions = { + properties:[] + } + await huks.deleteKeyItem(aesKeyAlias, emptyOptions).then((data) => { + promptAction.showToast({ + message: "Key is deleted.", + duration: 6500, + }) + }).catch((err)=>{ + promptAction.showToast({ + message: "Failed to delete the key. Error code: "+ err.code +" Error message: "+ err.message, + duration: 6500, + }) + }) +} + +@Entry +@Component +struct Index { + @State message: string = 'Hello Huks' + controller: TextInputController = new TextInputController(); + build() { + Column() { + Row() { + Text('Enter the content to be encrypted.').fontSize(20).margin({ left: 2, top: 10 }) + } + + Row() { + TextInput({placeholder: 'Encrypt 123456 by default', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width(400) + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .type(InputType.Normal) + .onChange((value: string) => { + This.message +='Plaintext entered: ' + value + '\n' + plainText = value + }) + .margin({ top: 10 }) + } + + Row() { + Text('Encryption or decryption result') .fontSize(20).margin({ left: 2, top: 10 }) + } + + Row() { + TextInput({placeholder: 'Encryption and decryption result', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width(400) + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .type(InputType.Normal) + .onChange((value: string) => { + This.message +='Plaintext entered: ' + value + '\n' + plainText = value + }) + .margin({ top: 10 }) + } + + Row() { + Button({ type: ButtonType.Normal, stateEffect: true }) { + Text('generateAesKey') + .fontColor(Color.White) + .fontSize(20) + } + .borderRadius(8) + .width('45%') + .height('5%') + .backgroundColor(0x317aff) + .onClick(() => { + GenerateAesKey() + }) + .margin(10) + + Button({ type: ButtonType.Normal, stateEffect: true }) { + Text('deleteAesKey') + .fontColor(Color.White) + .fontSize(20) + } + .borderRadius(8) + .width('45%') + .height('5%') + .backgroundColor(0x317aff) + .onClick(() => { + DeleteKey() + }) + .margin(10) + } + + Row() { + Button({ type: ButtonType.Normal, stateEffect: true }) { + Text('EncryptData') + .fontColor(Color.White) + .fontSize(20) + } + .borderRadius(8) + .width('45%') + .height('5%') + .backgroundColor(0x317aff) + .onClick(() => { + EncryptData() + }) + .margin(10) + + Button({ type: ButtonType.Normal, stateEffect: true }) { + Text('DecryptData') + .fontColor(Color.White) + .fontSize(20) + } + .borderRadius(8) + .width('45%') + .height('5%') + .backgroundColor(0x317aff) + .onClick(() => { + DecryptData() + }) + .margin(10) + } + } + } +} +``` + +### Key Agreement +```ts +/* + * Perform key agreement using an X25519 256-bit TEMP key and return the result in a callback. */ import huks from '@ohos.security.huks'; /* - * Determine the key alias and encapsulate the key attributes. + * Determine the key alias and encapsulate the key properties. */ -let srcKeyAlias = 'sm4_Key'; -let IV = '0000000000000000'; -let cipherInData = 'Hks_SM4_Cipher_Test_101010101010101010110_string'; -let encryptUpdateResult = new Array(); -let handle; -let updateResult = new Array(); +let srcKeyAliasFirst = "AgreeX25519KeyFirstAlias"; +let srcKeyAliasSecond = "AgreeX25519KeySecondAlias"; +let agreeX25519InData = 'AgreeX25519TestIndata'; let finishOutData; +let handle; +let exportKey; +let exportKeyFrist; +let exportKeySecond; -/* Configure the key generation parameter set and key encryption parameter set. */ +/* Configure the parameter set used for generating the key. */ let properties = new Array(); properties[0] = { tag: huks.HuksTag.HUKS_TAG_ALGORITHM, - value: huks.HuksKeyAlg.HUKS_ALG_SM4, + value: huks.HuksKeyAlg.HUKS_ALG_X25519, } properties[1] = { tag: huks.HuksTag.HUKS_TAG_PURPOSE, - value: huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_ENCRYPT | huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_DECRYPT, + value: huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_AGREE, } properties[2] = { tag: huks.HuksTag.HUKS_TAG_KEY_SIZE, - value: huks.HuksKeySize.HUKS_SM4_KEY_SIZE_128, + value: huks.HuksKeySize.HUKS_CURVE25519_KEY_SIZE_256, } properties[3] = { - tag: huks.HuksTag.HUKS_TAG_BLOCK_MODE, - value: huks.HuksCipherMode.HUKS_MODE_CBC, + tag: huks.HuksTag.HUKS_TAG_DIGEST, + value: huks.HuksKeyDigest.HUKS_DIGEST_NONE, } properties[4] = { tag: huks.HuksTag.HUKS_TAG_PADDING, value: huks.HuksKeyPadding.HUKS_PADDING_NONE, } -let huksOptions = { +properties[5] = { + tag: huks.HuksTag.HUKS_TAG_BLOCK_MODE, + value: huks.HuksCipherMode.HUKS_MODE_CBC, +} +let HuksOptions = { properties: properties, inData: new Uint8Array(new Array()) } -let propertiesEncrypt = new Array(); -propertiesEncrypt[0] = { +/* Configure parameters for the first key agreement. */ +let finishProperties = new Array(); +finishProperties[0] = { + tag: huks.HuksTag.HUKS_TAG_KEY_STORAGE_FLAG, + value: huks.HuksKeyStorageType.HUKS_STORAGE_TEMP, +} +finishProperties[1] = { + tag: huks.HuksTag.HUKS_TAG_IS_KEY_ALIAS, + value: true +} +finishProperties[2] = { tag: huks.HuksTag.HUKS_TAG_ALGORITHM, - value: huks.HuksKeyAlg.HUKS_ALG_SM4, + value: huks.HuksKeyAlg.HUKS_ALG_AES, } -propertiesEncrypt[1] = { +finishProperties[3] = { + tag: huks.HuksTag.HUKS_TAG_KEY_SIZE, + value: huks.HuksKeySize.HUKS_AES_KEY_SIZE_256, +} +finishProperties[4] = { tag: huks.HuksTag.HUKS_TAG_PURPOSE, - value: huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_ENCRYPT, + value: + huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_ENCRYPT | + huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_DECRYPT, } -propertiesEncrypt[2] = { - tag: huks.HuksTag.HUKS_TAG_KEY_SIZE, - value: huks.HuksKeySize.HUKS_SM4_KEY_SIZE_128, +finishProperties[5] = { + tag: huks.HuksTag.HUKS_TAG_DIGEST, + value: huks.HuksKeyDigest.HUKS_DIGEST_NONE, } -propertiesEncrypt[3] = { +finishProperties[6] = { + tag: huks.HuksTag.HUKS_TAG_KEY_ALIAS, + value: StringToUint8Array(srcKeyAliasFirst+ 'final'), +} +finishProperties[7] = { tag: huks.HuksTag.HUKS_TAG_PADDING, value: huks.HuksKeyPadding.HUKS_PADDING_NONE, } -propertiesEncrypt[4] = { +finishProperties[8] = { tag: huks.HuksTag.HUKS_TAG_BLOCK_MODE, - value: huks.HuksCipherMode.HUKS_MODE_CBC, -} -propertiesEncrypt[5] = { - tag: huks.HuksTag.HUKS_TAG_IV, - value: StringToUint8Array(IV), + value: huks.HuksCipherMode.HUKS_MODE_ECB, } -let encryptOptions = { - properties: propertiesEncrypt, - inData: new Uint8Array(new Array()) +let finishOptionsFrist = { + properties: finishProperties, + inData: StringToUint8Array(agreeX25519InData) } - -/* Modify the key encryption parameter set to the decryption parameter set. */ -propertiesEncrypt.splice(1, 1, { - tag: huks.HuksTag.HUKS_TAG_PURPOSE, - value: huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_DECRYPT, -}); -let decryptOptions = { - properties: propertiesEncrypt, - inData: new Uint8Array(new Array()) +/* Configure parameters for the second key agreement. */ +let finishOptionsSecond = { + properties: finishProperties, + inData: StringToUint8Array(agreeX25519InData) } +finishOptionsSecond.properties.splice(6, 1, { + tag: huks.HuksTag.HUKS_TAG_KEY_ALIAS, + value: StringToUint8Array(srcKeyAliasSecond + 'final'), +}) function StringToUint8Array(str) { let arr = []; @@ -732,14 +1069,6 @@ function StringToUint8Array(str) { return new Uint8Array(arr); } -function Uint8ArrayToString(fileData) { - let dataString = ''; - for (let i = 0; i < fileData.length; i++) { - dataString += String.fromCharCode(fileData[i]); - } - return dataString; -} - function generateKeyItem(keyAlias:string, huksOptions:huks.HuksOptions, throwObject) { return new Promise((resolve, reject) => { try { @@ -890,6 +1219,44 @@ async function publicFinishFunc(handle:number, huksOptions:huks.HuksOptions) { } } +function exportKeyItem(keyAlias:string, huksOptions:huks.HuksOptions, throwObject) : Promise { + return new Promise((resolve, reject) => { + try { + huks.exportKeyItem(keyAlias, huksOptions, function (error, data) { + if (error) { + reject(error); + } else { + resolve(data); + } + }); + } catch (error) { + throwObject.isThrow = true; + throw(error); + } + }); +} + +async function publicExportKeyFunc(keyAlias:string, huksOptions:huks.HuksOptions) { + console.info(`enter callback export`); + let throwObject = {isThrow: false}; + try { + await exportKeyItem(keyAlias, huksOptions, throwObject) + .then ((data) => { + console.info(`callback: exportKeyItem success, data = ${JSON.stringify(data)}`); + exportKey = data.outData; + }) + .catch(error => { + if (throwObject.isThrow) { + throw(error); + } else { + console.error(`callback: exportKeyItem failed, code: ${error.code}, msg: ${error.message}`); + } + }); + } catch (error) { + console.error(`callback: exportKeyItem input arg invalid, code: ${error.code}, msg: ${error.message}`); + } +} + function deleteKeyItem(keyAlias:string, huksOptions:huks.HuksOptions, throwObject) { return new Promise((resolve, reject) => { try { @@ -927,839 +1294,62 @@ async function publicDeleteKeyFunc(keyAlias:string, huksOptions:huks.HuksOptions } } -async function testSm4Cipher() { - /* Generate a key. */ - await publicGenKeyFunc(srcKeyAlias, huksOptions); - - /* Encrypt the key. */ - await publicInitFunc(srcKeyAlias, encryptOptions); - - encryptOptions.inData = StringToUint8Array(cipherInData); - await publicUpdateFunc(handle, encryptOptions); - encryptUpdateResult = updateResult; - - encryptOptions.inData = new Uint8Array(new Array()); - await publicFinishFunc(handle, encryptOptions); - if (finishOutData === cipherInData) { - console.info('test finish encrypt err '); - } else { - console.info('test finish encrypt success'); - } +async function testAgree() { + /* 1. Generate two keys and export them. */ + await publicGenKeyFunc(srcKeyAliasFirst, HuksOptions); + await publicGenKeyFunc(srcKeyAliasSecond, HuksOptions); - /* Decrypt the key. */ - await publicInitFunc(srcKeyAlias, decryptOptions); + await publicExportKeyFunc(srcKeyAliasFirst, HuksOptions); + exportKeyFrist = exportKey; + await publicExportKeyFunc(srcKeyAliasFirst, HuksOptions); + exportKeySecond = exportKey; - decryptOptions.inData = new Uint8Array(encryptUpdateResult); - await publicUpdateFunc(handle, decryptOptions); + /* Perform key agreement for the first. */ + await publicInitFunc(srcKeyAliasFirst, HuksOptions); + HuksOptions.inData = exportKeySecond; + await publicUpdateFunc(handle, HuksOptions); + await publicFinishFunc(handle, finishOptionsFrist); - decryptOptions.inData = new Uint8Array(new Array()); - await publicFinishFunc(handle, decryptOptions); - if (finishOutData === cipherInData) { - console.info('test finish decrypt success '); - } else { - console.info('test finish decrypt err'); - } + /* Perform key agreement for the second key. */ + await publicInitFunc(srcKeyAliasSecond, HuksOptions); + HuksOptions.inData = exportKeyFrist; + await publicUpdateFunc(handle, HuksOptions); + await publicFinishFunc(handle, finishOptionsSecond); - await publicDeleteKeyFunc(srcKeyAlias, huksOptions); + await publicDeleteKeyFunc(srcKeyAliasFirst, HuksOptions); + await publicDeleteKeyFunc(srcKeyAliasSecond, HuksOptions); } ``` -### Signing and Signature Verification +### Key Derivation ```ts /* - * Generate and verify a signature using an SM2 key and return the result in a callback. + * The following uses an HKDF256 key and promise-based APIs as an example. */ import huks from '@ohos.security.huks'; /* - * Determine the key alias and encapsulate the key attributes. + * Determine the key alias and encapsulate the key properties. */ -let generateKeyAlias = 'sm2_Key'; -let importKeyAlias = 'importKeyAlias'; -let signVerifyInData1 = 'signVerifyInDataForTestFirstText'; -let signVerifyInData2 = 'signVerifyInDataForTestSecondText'; -let signVerifyInData = [signVerifyInData1, signVerifyInData2]; +let srcKeyAlias = "hkdf_Key"; +let deriveHkdfInData = "deriveHkdfTestIndata"; let handle; -let exportKey; let finishOutData; +let HuksKeyDeriveKeySize = 32; /* Configure the parameter set used for generating the key. */ -let generateKeyProperties = new Array(); -generateKeyProperties[0] = { +let properties = new Array(); +properties[0] = { tag: huks.HuksTag.HUKS_TAG_ALGORITHM, - value: huks.HuksKeyAlg.HUKS_ALG_SM2, + value: huks.HuksKeyAlg.HUKS_ALG_AES, } -generateKeyProperties[1] = { +properties[1] = { tag: huks.HuksTag.HUKS_TAG_PURPOSE, - value: - huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_SIGN | - huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_VERIFY, -} -generateKeyProperties[2] = { - tag: huks.HuksTag.HUKS_TAG_KEY_SIZE, - value: huks.HuksKeySize.HUKS_SM2_KEY_SIZE_256, + value: huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_DERIVE, } -generateKeyProperties[3] = { +properties[2] = { tag: huks.HuksTag.HUKS_TAG_DIGEST, - value: huks.HuksKeyDigest.HUKS_DIGEST_SM3, -} -let genrateKeyOptions = { - properties: generateKeyProperties, - inData: new Uint8Array(new Array()) -} - -/* Configure the parameter set used for signing. */ -let signProperties = new Array(); -signProperties[0] = { - tag: huks.HuksTag.HUKS_TAG_ALGORITHM, - value: huks.HuksKeyAlg.HUKS_ALG_SM2, -} -signProperties[1] = { - tag: huks.HuksTag.HUKS_TAG_PURPOSE, - value: - huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_SIGN -} -signProperties[2] = { - tag: huks.HuksTag.HUKS_TAG_DIGEST, - value: huks.HuksKeyDigest.HUKS_DIGEST_SM3, -} -signProperties[3] = { - tag: huks.HuksTag.HUKS_TAG_KEY_SIZE, - value: huks.HuksKeySize.HUKS_SM2_KEY_SIZE_256, -} -let signOptions = { - properties: signProperties, - inData: new Uint8Array(new Array()) -} - -/* Configure the parameter set used for signature verification. */ -let verifyProperties = new Array(); -verifyProperties[0] = { - tag: huks.HuksTag.HUKS_TAG_ALGORITHM, - value: huks.HuksKeyAlg.HUKS_ALG_SM2, -} -verifyProperties[1] = { - tag: huks.HuksTag.HUKS_TAG_PURPOSE, - value: huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_VERIFY -} -verifyProperties[2] = { - tag: huks.HuksTag.HUKS_TAG_DIGEST, - value: huks.HuksKeyDigest.HUKS_DIGEST_SM3, -} -verifyProperties[3] = { - tag: huks.HuksTag.HUKS_TAG_KEY_SIZE, - value: huks.HuksKeySize.HUKS_SM2_KEY_SIZE_256, -} -let verifyOptions = { - properties: verifyProperties, - inData: new Uint8Array(new Array()) -} - -function StringToUint8Array(str) { - let arr = []; - for (let i = 0, j = str.length; i < j; ++i) { - arr.push(str.charCodeAt(i)); - } - return new Uint8Array(arr); -} - -function generateKeyItem(keyAlias:string, huksOptions:huks.HuksOptions, throwObject) { - return new Promise((resolve, reject) => { - try { - huks.generateKeyItem(keyAlias, huksOptions, function (error, data) { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - } catch (error) { - throwObject.isThrow = true; - throw(error); - } - }); -} - -async function publicGenKeyFunc(keyAlias:string, huksOptions:huks.HuksOptions) { - console.info(`enter callback generateKeyItem`); - let throwObject = {isThrow: false}; - try { - await generateKeyItem(keyAlias, huksOptions, throwObject) - .then((data) => { - console.info(`callback: generateKeyItem success, data = ${JSON.stringify(data)}`); - }) - .catch(error => { - if (throwObject.isThrow) { - throw(error); - } else { - console.error(`callback: generateKeyItem failed, code: ${error.code}, msg: ${error.message}`); - } - }); - } catch (error) { - console.error(`callback: generateKeyItem input arg invalid, code: ${error.code}, msg: ${error.message}`); - } -} - -function initSession(keyAlias:string, huksOptions:huks.HuksOptions, throwObject) : Promise { - return new Promise((resolve, reject) => { - try { - huks.initSession(keyAlias, huksOptions, function (error, data) { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - } catch (error) { - throwObject.isThrow = true; - throw(error); - } - }); -} - -async function publicInitFunc(keyAlias:string, huksOptions:huks.HuksOptions) { - console.info(`enter callback doInit`); - let throwObject = {isThrow: false}; - try { - await initSession(keyAlias, huksOptions, throwObject) - .then ((data) => { - console.info(`callback: doInit success, data = ${JSON.stringify(data)}`); - handle = data.handle; - }) - .catch((error) => { - if (throwObject.isThrow) { - throw(error); - } else { - console.error(`callback: doInit failed, code: ${error.code}, msg: ${error.message}`); - } - }); - } catch (error) { - console.error(`callback: doInit input arg invalid, code: ${error.code}, msg: ${error.message}`); - } -} - -function updateSession(handle:number, huksOptions:huks.HuksOptions, throwObject) : Promise { - return new Promise((resolve, reject) => { - try { - huks.updateSession(handle, huksOptions, function (error, data) { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - } catch (error) { - throwObject.isThrow = true; - throw(error); - } - }); -} - -async function publicUpdateFunc(handle:number, huksOptions:huks.HuksOptions) { - console.info(`enter callback doUpdate`); - let throwObject = {isThrow: false}; - try { - await updateSession(handle, huksOptions, throwObject) - .then ((data) => { - console.info(`callback: doUpdate success, data = ${JSON.stringify(data)}`); - }) - .catch(error => { - if (throwObject.isThrow) { - throw(error); - } else { - console.error(`callback: doUpdate failed, code: ${error.code}, msg: ${error.message}`); - } - }); - } catch (error) { - console.error(`callback: doUpdate input arg invalid, code: ${error.code}, msg: ${error.message}`); - } -} - -function finishSession(handle:number, huksOptions:huks.HuksOptions, throwObject) : Promise { - return new Promise((resolve, reject) => { - try { - huks.finishSession(handle, huksOptions, function (error, data) { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - } catch (error) { - throwObject.isThrow = true; - throw(error); - } - }); -} - -async function publicFinishFunc(handle:number, huksOptions:huks.HuksOptions) { - console.info(`enter callback doFinish`); - let throwObject = {isThrow: false}; - try { - await finishSession(handle, huksOptions, throwObject) - .then ((data) => { - finishOutData = data.outData; - console.info(`callback: doFinish success, data = ${JSON.stringify(data)}`); - }) - .catch(error => { - if (throwObject.isThrow) { - throw(error); - } else { - console.error(`callback: doFinish failed, code: ${error.code}, msg: ${error.message}`); - } - }); - } catch (error) { - console.error(`callback: doFinish input arg invalid, code: ${error.code}, msg: ${error.message}`); - } -} - -function exportKeyItem(keyAlias:string, huksOptions:huks.HuksOptions, throwObject) : Promise { - return new Promise((resolve, reject) => { - try { - huks.exportKeyItem(keyAlias, huksOptions, function (error, data) { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - } catch (error) { - throwObject.isThrow = true; - throw(error); - } - }); -} - -async function publicExportKeyFunc(keyAlias:string, huksOptions:huks.HuksOptions) { - console.info(`enter callback export`); - let throwObject = {isThrow: false}; - try { - await exportKeyItem(keyAlias, huksOptions, throwObject) - .then ((data) => { - console.info(`callback: exportKeyItem success, data = ${JSON.stringify(data)}`); - exportKey = data.outData; - }) - .catch(error => { - if (throwObject.isThrow) { - throw(error); - } else { - console.error(`callback: exportKeyItem failed, code: ${error.code}, msg: ${error.message}`); - } - }); - } catch (error) { - console.error(`callback: exportKeyItem input arg invalid, code: ${error.code}, msg: ${error.message}`); - } -} - -function importKeyItem(keyAlias:string, huksOptions:huks.HuksOptions, throwObject) { - return new Promise((resolve, reject) => { - try { - huks.importKeyItem(keyAlias, huksOptions, function (error, data) { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - } catch (error) { - throwObject.isThrow = true; - throw(error); - } - }); -} - -async function publicImportKeyFunc(keyAlias:string, huksOptions:huks.HuksOptions) { - console.info(`enter promise importKeyItem`); - let throwObject = {isThrow: false}; - try { - await importKeyItem(keyAlias, huksOptions, throwObject) - .then ((data) => { - console.info(`callback: importKeyItem success, data = ${JSON.stringify(data)}`); - }) - .catch(error => { - if (throwObject.isThrow) { - throw(error); - } else { - console.error(`callback: importKeyItem failed, code: ${error.code}, msg: ${error.message}`); - } - }); - } catch (error) { - console.error(`callback: importKeyItem input arg invalid, code: ${error.code}, msg: ${error.message}`); - } -} - -function deleteKeyItem(keyAlias:string, huksOptions:huks.HuksOptions, throwObject) { - return new Promise((resolve, reject) => { - try { - huks.deleteKeyItem(keyAlias, huksOptions, function (error, data) { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - } catch (error) { - throwObject.isThrow = true; - throw(error); - } - }); -} - -async function publicDeleteKeyFunc(keyAlias:string, huksOptions:huks.HuksOptions) { - console.info(`enter callback deleteKeyItem`); - let throwObject = {isThrow: false}; - try { - await deleteKeyItem(keyAlias, huksOptions, throwObject) - .then ((data) => { - console.info(`callback: deleteKeyItem key success, data = ${JSON.stringify(data)}`); - }) - .catch(error => { - if (throwObject.isThrow) { - throw(error); - } else { - console.error(`callback: deleteKeyItem failed, code: ${error.code}, msg: ${error.message}`); - } - }); - } catch (error) { - console.error(`callback: deletKeeyItem input arg invalid, code: ${error.code}, msg: ${error.message}`); - } -} - -async function testSm2SignVerify() { - /* Generate a key. */ - await publicGenKeyFunc(generateKeyAlias, genrateKeyOptions); - - /* Generate a signature. */ - let signHandle; - let signFinishOutData; - await publicInitFunc(generateKeyAlias, signOptions); - - signHandle = handle; - for (var index = 0; index < signVerifyInData.length; index++) { - signOptions.inData = StringToUint8Array(signVerifyInData[index]); - await publicUpdateFunc(signHandle, signOptions); - } - signOptions.inData = new Uint8Array(new Array()); - await publicFinishFunc(signHandle, signOptions); - signFinishOutData = finishOutData; - - /* Export the key. */ - await publicExportKeyFunc(generateKeyAlias, genrateKeyOptions); - - /* Import the key. */ - verifyOptions.inData = exportKey; - await publicImportKeyFunc(importKeyAlias, verifyOptions); - - /* Verify the signature. */ - let verifyHandle; - await publicInitFunc(importKeyAlias, verifyOptions); - - verifyHandle = handle; - for (var index = 0; index < signVerifyInData.length; index++) { - verifyOptions.inData = StringToUint8Array(signVerifyInData[index]); - await publicUpdateFunc(verifyHandle, verifyOptions); - } - verifyOptions.inData = signFinishOutData; - await publicFinishFunc(verifyHandle, verifyOptions); - - await publicDeleteKeyFunc(generateKeyAlias, genrateKeyOptions); - await publicDeleteKeyFunc(importKeyAlias, genrateKeyOptions); -} -``` - -### Key Agreement -```ts -/* - * Perform key agreement using an X25519 256-bit TEMP key and return the result in a callback. - */ -import huks from '@ohos.security.huks'; - -/* - * Determine the key alias and encapsulate the key attributes. - */ -let srcKeyAliasFirst = "AgreeX25519KeyFirstAlias"; -let srcKeyAliasSecond = "AgreeX25519KeySecondAlias"; -let agreeX25519InData = 'AgreeX25519TestIndata'; -let finishOutData; -let handle; -let exportKey; -let exportKeyFrist; -let exportKeySecond; - -/* Configure the parameter set used for generating the key. */ -let properties = new Array(); -properties[0] = { - tag: huks.HuksTag.HUKS_TAG_ALGORITHM, - value: huks.HuksKeyAlg.HUKS_ALG_X25519, -} -properties[1] = { - tag: huks.HuksTag.HUKS_TAG_PURPOSE, - value: huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_AGREE, -} -properties[2] = { - tag: huks.HuksTag.HUKS_TAG_KEY_SIZE, - value: huks.HuksKeySize.HUKS_CURVE25519_KEY_SIZE_256, -} -properties[3] = { - tag: huks.HuksTag.HUKS_TAG_DIGEST, - value: huks.HuksKeyDigest.HUKS_DIGEST_NONE, -} -properties[4] = { - tag: huks.HuksTag.HUKS_TAG_PADDING, - value: huks.HuksKeyPadding.HUKS_PADDING_NONE, -} -properties[5] = { - tag: huks.HuksTag.HUKS_TAG_BLOCK_MODE, - value: huks.HuksCipherMode.HUKS_MODE_CBC, -} -let HuksOptions = { - properties: properties, - inData: new Uint8Array(new Array()) -} - -/* Configure parameters for the first key agreement. */ -let finishProperties = new Array(); -finishProperties[0] = { - tag: huks.HuksTag.HUKS_TAG_KEY_STORAGE_FLAG, - value: huks.HuksKeyStorageType.HUKS_STORAGE_TEMP, -} -finishProperties[1] = { - tag: huks.HuksTag.HUKS_TAG_IS_KEY_ALIAS, - value: true -} -finishProperties[2] = { - tag: huks.HuksTag.HUKS_TAG_ALGORITHM, - value: huks.HuksKeyAlg.HUKS_ALG_AES, -} -finishProperties[3] = { - tag: huks.HuksTag.HUKS_TAG_KEY_SIZE, - value: huks.HuksKeySize.HUKS_AES_KEY_SIZE_256, -} -finishProperties[4] = { - tag: huks.HuksTag.HUKS_TAG_PURPOSE, - value: - huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_ENCRYPT | - huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_DECRYPT, -} -finishProperties[5] = { - tag: huks.HuksTag.HUKS_TAG_DIGEST, - value: huks.HuksKeyDigest.HUKS_DIGEST_NONE, -} -finishProperties[6] = { - tag: huks.HuksTag.HUKS_TAG_KEY_ALIAS, - value: StringToUint8Array(srcKeyAliasFirst+ 'final'), -} -finishProperties[7] = { - tag: huks.HuksTag.HUKS_TAG_PADDING, - value: huks.HuksKeyPadding.HUKS_PADDING_NONE, -} -finishProperties[8] = { - tag: huks.HuksTag.HUKS_TAG_BLOCK_MODE, - value: huks.HuksCipherMode.HUKS_MODE_ECB, -} -let finishOptionsFrist = { - properties: finishProperties, - inData: StringToUint8Array(agreeX25519InData) -} -/* Configure parameters for the second key agreement. */ -let finishOptionsSecond = { - properties: finishProperties, - inData: StringToUint8Array(agreeX25519InData) -} -finishOptionsSecond.properties.splice(6, 1, { - tag: huks.HuksTag.HUKS_TAG_KEY_ALIAS, - value: StringToUint8Array(srcKeyAliasSecond + 'final'), -}) - -function StringToUint8Array(str) { - let arr = []; - for (let i = 0, j = str.length; i < j; ++i) { - arr.push(str.charCodeAt(i)); - } - return new Uint8Array(arr); -} - -function generateKeyItem(keyAlias:string, huksOptions:huks.HuksOptions, throwObject) { - return new Promise((resolve, reject) => { - try { - huks.generateKeyItem(keyAlias, huksOptions, function (error, data) { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - } catch (error) { - throwObject.isThrow = true; - throw(error); - } - }); -} - -async function publicGenKeyFunc(keyAlias:string, huksOptions:huks.HuksOptions) { - console.info(`enter callback generateKeyItem`); - let throwObject = {isThrow: false}; - try { - await generateKeyItem(keyAlias, huksOptions, throwObject) - .then((data) => { - console.info(`callback: generateKeyItem success, data = ${JSON.stringify(data)}`); - }) - .catch(error => { - if (throwObject.isThrow) { - throw(error); - } else { - console.error(`callback: generateKeyItem failed, code: ${error.code}, msg: ${error.message}`); - } - }); - } catch (error) { - console.error(`callback: generateKeyItem input arg invalid, code: ${error.code}, msg: ${error.message}`); - } -} - -function initSession(keyAlias:string, huksOptions:huks.HuksOptions, throwObject) : Promise { - return new Promise((resolve, reject) => { - try { - huks.initSession(keyAlias, huksOptions, function (error, data) { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - } catch (error) { - throwObject.isThrow = true; - throw(error); - } - }); -} - -async function publicInitFunc(keyAlias:string, huksOptions:huks.HuksOptions) { - console.info(`enter callback doInit`); - let throwObject = {isThrow: false}; - try { - await initSession(keyAlias, huksOptions, throwObject) - .then ((data) => { - console.info(`callback: doInit success, data = ${JSON.stringify(data)}`); - handle = data.handle; - }) - .catch((error) => { - if (throwObject.isThrow) { - throw(error); - } else { - console.error(`callback: doInit failed, code: ${error.code}, msg: ${error.message}`); - } - }); - } catch (error) { - console.error(`callback: doInit input arg invalid, code: ${error.code}, msg: ${error.message}`); - } -} - -function updateSession(handle:number, huksOptions:huks.HuksOptions, throwObject) : Promise { - return new Promise((resolve, reject) => { - try { - huks.updateSession(handle, huksOptions, function (error, data) { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - } catch (error) { - throwObject.isThrow = true; - throw(error); - } - }); -} - -async function publicUpdateFunc(handle:number, huksOptions:huks.HuksOptions) { - console.info(`enter callback doUpdate`); - let throwObject = {isThrow: false}; - try { - await updateSession(handle, huksOptions, throwObject) - .then ((data) => { - console.info(`callback: doUpdate success, data = ${JSON.stringify(data)}`); - }) - .catch(error => { - if (throwObject.isThrow) { - throw(error); - } else { - console.error(`callback: doUpdate failed, code: ${error.code}, msg: ${error.message}`); - } - }); - } catch (error) { - console.error(`callback: doUpdate input arg invalid, code: ${error.code}, msg: ${error.message}`); - } -} - -function finishSession(handle:number, huksOptions:huks.HuksOptions, throwObject) : Promise { - return new Promise((resolve, reject) => { - try { - huks.finishSession(handle, huksOptions, function (error, data) { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - } catch (error) { - throwObject.isThrow = true; - throw(error); - } - }); -} - -async function publicFinishFunc(handle:number, huksOptions:huks.HuksOptions) { - console.info(`enter callback doFinish`); - let throwObject = {isThrow: false}; - try { - await finishSession(handle, huksOptions, throwObject) - .then ((data) => { - finishOutData = data.outData; - console.info(`callback: doFinish success, data = ${JSON.stringify(data)}`); - }) - .catch(error => { - if (throwObject.isThrow) { - throw(error); - } else { - console.error(`callback: doFinish failed, code: ${error.code}, msg: ${error.message}`); - } - }); - } catch (error) { - console.error(`callback: doFinish input arg invalid, code: ${error.code}, msg: ${error.message}`); - } -} - -function exportKeyItem(keyAlias:string, huksOptions:huks.HuksOptions, throwObject) : Promise { - return new Promise((resolve, reject) => { - try { - huks.exportKeyItem(keyAlias, huksOptions, function (error, data) { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - } catch (error) { - throwObject.isThrow = true; - throw(error); - } - }); -} - -async function publicExportKeyFunc(keyAlias:string, huksOptions:huks.HuksOptions) { - console.info(`enter callback export`); - let throwObject = {isThrow: false}; - try { - await exportKeyItem(keyAlias, huksOptions, throwObject) - .then ((data) => { - console.info(`callback: exportKeyItem success, data = ${JSON.stringify(data)}`); - exportKey = data.outData; - }) - .catch(error => { - if (throwObject.isThrow) { - throw(error); - } else { - console.error(`callback: exportKeyItem failed, code: ${error.code}, msg: ${error.message}`); - } - }); - } catch (error) { - console.error(`callback: exportKeyItem input arg invalid, code: ${error.code}, msg: ${error.message}`); - } -} - -function deleteKeyItem(keyAlias:string, huksOptions:huks.HuksOptions, throwObject) { - return new Promise((resolve, reject) => { - try { - huks.deleteKeyItem(keyAlias, huksOptions, function (error, data) { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - } catch (error) { - throwObject.isThrow = true; - throw(error); - } - }); -} - -async function publicDeleteKeyFunc(keyAlias:string, huksOptions:huks.HuksOptions) { - console.info(`enter callback deleteKeyItem`); - let throwObject = {isThrow: false}; - try { - await deleteKeyItem(keyAlias, huksOptions, throwObject) - .then ((data) => { - console.info(`callback: deleteKeyItem key success, data = ${JSON.stringify(data)}`); - }) - .catch(error => { - if (throwObject.isThrow) { - throw(error); - } else { - console.error(`callback: deleteKeyItem failed, code: ${error.code}, msg: ${error.message}`); - } - }); - } catch (error) { - console.error(`callback: deletKeeyItem input arg invalid, code: ${error.code}, msg: ${error.message}`); - } -} - -async function testAgree() { - /* 1. Generate two keys and export them. */ - await publicGenKeyFunc(srcKeyAliasFirst, HuksOptions); - await publicGenKeyFunc(srcKeyAliasSecond, HuksOptions); - - await publicExportKeyFunc(srcKeyAliasFirst, HuksOptions); - exportKeyFrist = exportKey; - await publicExportKeyFunc(srcKeyAliasFirst, HuksOptions); - exportKeySecond = exportKey; - - /* Perform key agreement for the first. */ - await publicInitFunc(srcKeyAliasFirst, HuksOptions); - HuksOptions.inData = exportKeySecond; - await publicUpdateFunc(handle, HuksOptions); - await publicFinishFunc(handle, finishOptionsFrist); - - /* Perform key agreement for the second key. */ - await publicInitFunc(srcKeyAliasSecond, HuksOptions); - HuksOptions.inData = exportKeyFrist; - await publicUpdateFunc(handle, HuksOptions); - await publicFinishFunc(handle, finishOptionsSecond); - - await publicDeleteKeyFunc(srcKeyAliasFirst, HuksOptions); - await publicDeleteKeyFunc(srcKeyAliasSecond, HuksOptions); -} -``` - -### Key Derivation -```ts -/* - * The following uses the Promise() operation of an HKDF256 key as an example. - */ -import huks from '@ohos.security.huks'; - -/* - * Determine the key alias and encapsulate the key attributes. - */ -let srcKeyAlias = "hkdf_Key"; -let deriveHkdfInData = "deriveHkdfTestIndata"; -let handle; -let finishOutData; -let HuksKeyDeriveKeySize = 32; - -/* Configure the parameter set used for generating the key. */ -let properties = new Array(); -properties[0] = { - tag: huks.HuksTag.HUKS_TAG_ALGORITHM, - value: huks.HuksKeyAlg.HUKS_ALG_AES, -} -properties[1] = { - tag: huks.HuksTag.HUKS_TAG_PURPOSE, - value: huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_DERIVE, -} -properties[2] = { - tag: huks.HuksTag.HUKS_TAG_DIGEST, - value: huks.HuksKeyDigest.HUKS_DIGEST_SHA256, + value: huks.HuksKeyDigest.HUKS_DIGEST_SHA256, } properties[3] = { tag: huks.HuksTag.HUKS_TAG_KEY_SIZE, @@ -2060,7 +1650,7 @@ The HUKS also restricts the key usage. For example, the AES keys can only be use When generating or importing a key, you can enable user identity authentication for the key use. You can specify a subset of credentials (lock screen password, fingerprint, and face) for user identity authentication. After a key is generated or imported, unauthorized key access can be prevented even if the application process is attacked. Key access control applies to security-sensitive scenarios, such as password-free login, password-free payment, and automatic password filling. -In addition to user identity authentication, the HUKS provides the following modes ([HuksAuthAccessType](../reference/apis/js-apis-huks.md#huksauthaccesstype9)) for automatically invalidating a key: +In addition to user identity authentication, the HUKS provides the following modes for automatically invalidating a key: - Invalidate the key when the screen lock password is cleared.
This mode takes effect only when a screen lock password has been set. If the screen lock password is cleared, the key becomes invalid permanently. The key will not be invalidated if the screen lock password is modified. This mode applies to user-related data protection and access based on screen lock passwords. - Invalidate the key when new biometric enrollments are added.
This mode takes effect only when at least one biometric feature (such as fingerprint) has been enrolled. The key becomes invalid permanently once a new biometric feature is enrolled. The key will not be invalidated if the biometric feature is deleted. This mode applies to scenarios, such as password-free login or payment. @@ -2074,24 +1664,23 @@ If secondary user identity authentication is enabled for a key, initialize the k **Available APIs** -When a key is generated or imported, [HuksUserAuthType](../reference/apis/js-apis-huks.md#huksuserauthtype9), [HuksAuthAccessType](../reference/apis/js-apis-huks.md#huksauthaccesstype9), and [HuksChallengeType](../reference/apis/js-apis-huks.md#hukschallengetype9) in the key attributes are mandatory. +When a key is generated or imported, [HuksUserAuthType](../reference/apis/js-apis-huks.md#huksuserauthtype9), [HuksAuthAccessType](../reference/apis/js-apis-huks.md#huksauthaccesstype9), and [HuksChallengeType](../reference/apis/js-apis-huks.md#hukschallengetype9) in the key properties are mandatory. **Table 3** User authentication types | Name | Value | Description | | ------------------------------- |---|------------------------ | | HUKS_USER_AUTH_TYPE_FINGERPRINT |0x0001 | Fingerprint authentication.
Fingerprint authentication, facial authentication, and PIN authentication can be enabled at the same time. | -| HUKS_USER_AUTH_TYPE_FACE |0x0002 | Facial authentication.
Fingerprint authentication, facial authentication, and PIN authentication can be enabled at the same time. | -| HUKS_USER_AUTH_TYPE_PIN |0x0004 | PIN authentication.
Fingerprint authentication, facial authentication, and PIN authentication can be enabled at the same time. | +| HUKS_USER_AUTH_TYPE_FACE |0x0002 | Facial authentication.
Fingerprint authentication, facial authentication, and PIN authentication can be enabled at the same time.| +| HUKS_USER_AUTH_TYPE_PIN |0x0004 | PIN authentication.
Fingerprint authentication, facial authentication, and PIN authentication can be enabled at the same time.| **Table 4** Secure access types | Name | Value | Description | | --------------------------------------- | ---- | ------------------------------------------------ | | HUKS_AUTH_ACCESS_INVALID_CLEAR_PASSWORD | 1 | Invalidate the key after the screen lock password is cleared. | -| HUKS_AUTH_ACCESS_INVALID_NEW_BIO_ENROLL | 2 | Invalidate the key after a biometric enrollment is added. The user authentication types must include the biometric authentication. | +| HUKS_AUTH_ACCESS_INVALID_NEW_BIO_ENROLL | 2 | Invalidate the key after a biometric enrollment is added. The user authentication types must include the biometric authentication.| **Table 5** Challenge types - | Name | Value | Description | | ------------------------------- | ---- | ------------------------------ | | HUKS_CHALLENGE_TYPE_NORMAL | 0 | Normal challenge, which requires an independent user authentication for each use of the key.| @@ -2103,13 +1692,15 @@ When a key is generated or imported, [HuksUserAuthType](../reference/apis/js-api > - The three challenge types are mutually exclusive. > - If the challenge type is **HUKS_CHALLENGE_TYPE_NONE**, no challenge is required. However, the key can be accessed within a specified time period (set by **HUKS_TAG_AUTH_TIMEOUT**) after a successful authentication. The maximum value of **HUKS_TAG_AUTH_TIMEOUT** is 60 seconds. -To use a key, initialize the key session and determine whether a challenge is required based on the challenge type specified when the key is generated or imported. + +To use a key, initialize the key session, and determine whether a challenge is required based on the challenge type specified when the key is generated or imported. + **Table 6** APIs for using a key | API | Description | | -------------------------------------- | ----------------------------| -|initSession(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void| Initializes a key session and obtains the challenge. | +|initSession(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void| Initializes the key session and obtains the challenge.| |updateSession(handle: number, options: HuksOptions, token: Uint8Array, callback: AsyncCallback\) : void| Operates data by segment and passes the authentication token.| |finishSession(handle: number, options: HuksOptions, token: Uint8Array, callback: AsyncCallback\) : void| Finalizes the key session operation. | @@ -2117,12 +1708,12 @@ To use a key, initialize the key session and determine whether a challenge is re **How to Develop** -1. Generate a key and specify user authentication attributes. +1. Generate a key and specify user authentication properties. ```ts import huks from '@ohos.security.huks'; /* - * Determine the key alias and encapsulate the key attributes. + * Determine the key alias and encapsulate the key properties. */ let keyAlias = 'dh_key_fingerprint_access'; let properties = new Array(); @@ -2218,7 +1809,7 @@ import huks from '@ohos.security.huks'; import userIAM_userAuth from '@ohos.userIAM.userAuth'; /* - * Determine the key alias and encapsulate the key attributes. + * Determine the key alias and encapsulate the key properties. */ let srcKeyAlias = 'sm4_key_fingerprint_access'; let handle; @@ -2341,7 +1932,7 @@ async function testInitAndAuthFinger() { import huks from '@ohos.security.huks'; /* - * Determine the key alias and encapsulate the key attributes. + * Determine the key alias and encapsulate the key properties. */ let srcKeyAlias = 'sm4_key_fingerprint_access'; let IV = '1234567890123456'; @@ -2487,7 +2078,7 @@ async function testSm4Cipher() { The HUKS provides attestation for the public keys of asymmetric key pairs. The HUKS can issue a certificate for the public key of an asymmetric key pair stored in the HUKS using the public key infrastructure (PKI) certificate chain technology. The certificate can prove the validity of the public key. The service can use the root CA certificate provided by the OpenHarmony to verify the key certificate issued by the HUKS level by level to ensure that the public key and private key in the certificate are from a trusted hardware device and stored in the HUKS. **How to Develop** -1. Pass in the key alias and the attribute tag of the key to be attested. +1. Pass in the key alias and the property tag of the key to be attested. 2. Call a HUKS API to generate an X.509 certificate chain, which consists of the root CA certificate, device CA certificate, device certificate, and key certificate in sequence, for the application. 3. Send the certificate chain to a trusted server. The server parses and verifies the validity of the certificate chain and whether a single certificate is revoked. @@ -2508,7 +2099,7 @@ The HUKS provides attestation for the public keys of asymmetric key pairs. The H import huks from '@ohos.security.huks'; /* - * Determine the key alias and encapsulate the key attributes. + * Determine the key alias and encapsulate the key properties. */ let keyAliasString = "key attest"; let aliasString = keyAliasString; diff --git a/en/application-dev/telephony/telephony-call.md b/en/application-dev/telephony/telephony-call.md index 8fc44ed193a78137b73a29854e539494147b9bc2..2f87fb62656f10b9185ebcd94b46c70fc3bd32e6 100644 --- a/en/application-dev/telephony/telephony-call.md +++ b/en/application-dev/telephony/telephony-call.md @@ -108,9 +108,3 @@ This permission is of the **system\_basic** level. Before applying for the permi console.log("call state change, data is:" + JSON.stringify(data)); }); ``` - -## Samples - -The following sample is provided to help you better understand how to develop the call service: - -- [Call](https://gitee.com/openharmony/applications_app_samples/tree/master/Telephony/Call) diff --git a/en/application-dev/telephony/telephony-sms.md b/en/application-dev/telephony/telephony-sms.md index a8cf16532ae4537e2628821d2af933f7d0a0a176..714d2f182b9e5452065db19f171b5dc45e522f73 100644 --- a/en/application-dev/telephony/telephony-sms.md +++ b/en/application-dev/telephony/telephony-sms.md @@ -110,9 +110,3 @@ The Short Messaging Service (SMS) module provides basic SMS management functions } } ``` - - -## Samples - -The following sample is provided to help you better understand how to develop the SMS service: -- [SMS](https://gitee.com/openharmony/applications_app_samples/tree/master/Telephony/Message) diff --git a/en/application-dev/ui/ui-ts-animation-feature.md b/en/application-dev/ui/ui-ts-animation-feature.md index f7933b9555ff6fb6312c4e8fabc1d2a5be30d168..3d6467e08cc112b6b9a953aa4d0a649486042bd2 100644 --- a/en/application-dev/ui/ui-ts-animation-feature.md +++ b/en/application-dev/ui/ui-ts-animation-feature.md @@ -132,7 +132,7 @@ The splash screen animation refers to the fade-in and fade-out of the logo. Afte .onAppear(() => { animateTo({ - duration: 2000, + duration: 1000, curve: this.curve1, delay: 100, onFinish: () => { @@ -199,7 +199,7 @@ The splash screen animation refers to the fade-in and fade-out of the logo. Afte .opacity(this.opacityValue) .onAppear(() => { animateTo({ - duration: 2000, + duration: 1000, curve: this.curve1, delay: 100, onFinish: () => { diff --git a/en/application-dev/ui/ui-ts-layout-mediaquery.md b/en/application-dev/ui/ui-ts-layout-mediaquery.md index 205265a30d244ad6100e0f1fc0a19c81859ae3d3..c37468c67f14b37878f22c9138612aebba805975 100644 --- a/en/application-dev/ui/ui-ts-layout-mediaquery.md +++ b/en/application-dev/ui/ui-ts-layout-mediaquery.md @@ -10,32 +10,32 @@ ## Usage -Invoke the **mediaquery** API to set the media query condition and the callback, and change the page layout or implement service logic in the callback corresponding to the condition. +Invoke the **mediaquery** API to set the media query condition and the callback, and change the page layout or implement service logic in the callback corresponding to the condition. The procedure is as follows: -First, import the **mediaquery** module, as shown below: +1. Import the **mediaquery** module, as shown below: -```ts -import mediaquery from '@ohos.mediaquery' -``` + ```ts + import mediaquery from '@ohos.mediaquery' + ``` -Then, use the **matchMediaSync** API to set the media query condition and save the returned listener, as shown below: +2. Use the **matchMediaSync** API to set the media query condition and save the returned listener, as shown below: -```ts -listener = mediaquery.matchMediaSync('(orientation: landscape)') -``` + ```ts + listener = mediaquery.matchMediaSync('(orientation: landscape)') + ``` -Finally, register the **onPortrait** callback using the saved listener, and change the page layout or implement service logic in the callback. When the media query condition is matched, the callback is triggered. The sample code is as follows: +3. Register the **onPortrait** callback using the saved listener, and change the page layout or implement service logic in the callback. When the media query condition is matched, the callback is triggered. The sample code is as follows: -```ts -onPortrait(mediaQueryResult) { - if (mediaQueryResult.matches) { - // do something here - } else { - // do something here - } -} -listener.on('change', onPortrait) -``` + ```ts + onPortrait(mediaQueryResult) { + if (mediaQueryResult.matches) { + // do something here + } else { + // do something here + } + } + listener.on('change', onPortrait) + ``` ## Media Query Conditions @@ -95,10 +95,10 @@ At MediaQuery Level 4, range query is imported so that you can use the operators | height | Height of the display area on the application page. | | min-height | Minimum height of the display area on the application page. | | max-height | Maximum height of the display area on the application page. | -| width | Width of the display area on the app page. | +| 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.
- **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. (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.| +| 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 in each 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
- orientation: landscape| @@ -106,7 +106,7 @@ At MediaQuery Level 4, range query is imported so that you can use the operators | min-device-height | Minimum height of the device. | | max-device-height | Maximum height of the device. | | device-width | Width of the device. | -| device-type | Type of the device.
Value range: **default** | +| device-type | Type of the device.
Options: **default** and tablet | | min-device-width | Minimum width of the device. | | max-device-width | Maximum width of the device. | | round-screen | Screen type. The value **true** means that the screen is round, and **false** means the opposite. | diff --git a/en/contribute/documentation-contribution.md b/en/contribute/documentation-contribution.md index 8901080d124e33855949e5594f1a0e2fb3fd5a46..936327860ae68817d01c716a8714033ede45a5a0 100755 --- a/en/contribute/documentation-contribution.md +++ b/en/contribute/documentation-contribution.md @@ -26,15 +26,15 @@ Your feedback matters. Submit issues and leave as detailed information as possib 1. On the Gitee page, click the **Issues** tab. On the displayed page, click **New issue**. Then enter the issue title and issue details. 2. Click **New** to submit the issue. The Docs team will confirm the issue. ->![](public_sys-resources/icon-note.gif) **NOTE** +> **NOTE** +> +> **How can I provide a high-quality issue?** > ->**How can I provide a high-quality issue?** -> ->- Provide a clear description of the issue, including the missing, outdated, incorrect, or to-be-improved content. ->- Explain the impact of this issue on users. ->- Limit the scope of the given issue to a specific task. If multiple fields are involved, break the issue down into smaller ones. For example, "Documents need to be optimized" is a broad issue, whereas "XX development guide lacks introduction to step XXX" is specific and operable. ->- Search the list of existing issues to see if any related or similar issues have been submitted. ->- If an issue is associated with another issue or a pull request (PR), you can use its full URL or the combination of the number sign (#) and PR number to reference it. +> - Provide a clear description of the issue, including the missing, outdated, incorrect, or to-be-improved content. +> - Explain the impact of this issue on users. +> - Limit the scope of the given issue to a specific task. If multiple fields are involved, break the issue down into smaller ones. For example, "Documents need to be optimized" is a broad issue, whereas "XX development guide lacks introduction to step XXX" is specific and operable. +> - Search the list of existing issues to see if any related or similar issues have been submitted. +> - If an issue is associated with another issue or a pull request (PR), you can use its full URL or the combination of the number sign (#) and PR number to reference it. ### Editing Existing Documents diff --git a/en/contribute/writing-instructions.md b/en/contribute/writing-instructions.md index f1ff49c6bd1e3e066a5883c5d65e2e0aad7a7dbf..f98e1ea7eb6cfba9c43e4092886997d5bfa7618c 100755 --- a/en/contribute/writing-instructions.md +++ b/en/contribute/writing-instructions.md @@ -60,8 +60,8 @@ Pictures used in **OpenHarmony\_DOCUMENTS/docs/quick-start/writing-instructions Use relative paths to reference pictures in the document. ->![](public_sys-resources/icon-caution.gif) **CAUTION:** ->Use the original pictures to avoid intellectual property infringement risks. +> **CAUTION** +> Use the original pictures to avoid intellectual property infringement risks. - Pictures are clear and complete. For example, a flowchart has a start and an end. - The graphics has clear logic and are provided with text descriptions. Do not separate the graphics from the text. @@ -69,9 +69,9 @@ Use relative paths to reference pictures in the document. - The text on pictures should be Chinese in Chinese documents and English in English documents. - It is recommended that pictures be named based on the content. Using only a number is difficult for picture inheritance. ->![](public_sys-resources/icon-note.gif) **NOTE:** ->Reference: ->!\[\]\(./pic/pic-standard.png\) +> **NOTE:** +> Reference: +> !\[\]\(./pic/pic-standard.png\) If a self-made picture is used, refer to the following figure to configure the color. The format can be **png**, **jpg**, **gif**, and so on. diff --git a/en/device-dev/subsystems/Readme-EN.md b/en/device-dev/subsystems/Readme-EN.md index 3c97fc6d362ffb32a79bab32490658047cde7aad..48abe9e925388d38780f85266985ff7532988f89 100644 --- a/en/device-dev/subsystems/Readme-EN.md +++ b/en/device-dev/subsystems/Readme-EN.md @@ -50,10 +50,6 @@ - [Sensor Overview](subsys-sensor-overview.md) - [Sensor Usage Guidelines](subsys-sensor-guide.md) - [Sensor Usage Example](subsys-sensor-demo.md) -- USB - - [USB Overview](subsys-usbservice-overview.md) - - [USB Usage Guidelines](subsys-usbservice-guide.md) - - [USB Usage Example](subsys-usbservice-demo.md) - Application Framework - [Application Framework Overview](subsys-application-framework-overview.md) - [Setting Up a Development Environment](subsys-application-framework-envbuild.md) diff --git a/en/device-dev/subsystems/figures/call-chain-trace-in-synchronous-communication.png b/en/device-dev/subsystems/figures/call-chain-trace-in-synchronous-communication.png new file mode 100644 index 0000000000000000000000000000000000000000..585d8aac7b4857645b78ab11effbe900e5350f9d Binary files /dev/null and b/en/device-dev/subsystems/figures/call-chain-trace-in-synchronous-communication.png differ diff --git a/en/device-dev/subsystems/figures/process_crash_handling_flowchart.png b/en/device-dev/subsystems/figures/process_crash_handling_flowchart.png new file mode 100644 index 0000000000000000000000000000000000000000..65774b41cd4b6bc3c4f03c271fd0cefb9aec6d8d Binary files /dev/null and b/en/device-dev/subsystems/figures/process_crash_handling_flowchart.png differ diff --git a/en/device-dev/subsystems/subsys-build-all.md b/en/device-dev/subsystems/subsys-build-all.md index 7e5d6702fb86c41b8cc62193772bd68912a810c6..a7111d5c13621490a871197a5e55f7bcb6ff3c43 100644 --- a/en/device-dev/subsystems/subsys-build-all.md +++ b/en/device-dev/subsystems/subsys-build-all.md @@ -143,28 +143,28 @@ To ensure that chipset and product solutions are decoupled from OpenHarmony, you ```shell -/build # Directory for build +/build # Directory for build ├── __pycache__ -├── build_scripts/ # Python scripts for build +├── build_scripts/ # Python scripts for build ├── common/ -├── config/ # Build-related configuration +├── config/ # Build-related configuration ├── core -│ └── gn/ # BUILD.gn configuration +│ └── gn/ # BUILD.gn configuration └── build_scripts/ ├── docs gn_helpers.py* -lite/ # hb and preloader entry +lite/ # hb and preloader entry misc/ -├── ohos # Configuration of OpenHarmony build and packaging -│ ├── kits # Kits build and packaging templates and processing -│ ├── ndk # NDK templates and processing -│ ├── notice # Notice templates and processing -│ ├── packages # Distribution packaging templates and processing -│ ├── sa_profile # SA profiles and processing -│ ├── sdk # SDK templates and processing, which contains the module configuration in the SDK -│ └── testfwk # Testing-related processing -├── ohos.gni* # Common .gni files (facilitating one-time import of each module) +├── ohos # Configuration of OpenHarmony build and packaging +│ ├── kits # Kits build and packaging templates and processing +│ ├── ndk # NDK templates and processing +│ ├── notice # Notice templates and processing +│ ├── packages # Distribution packaging templates and processing +│ ├── sa_profile # SA profiles and processing +│ ├── sdk # SDK templates and processing, which contains the module configuration in the SDK +│ └── testfwk # Testing-related processing +├── ohos.gni* # Common .gni files (facilitating one-time import of each module) ├── ohos_system.prop ├── ohos_var.gni* ├── prebuilts_download.sh* @@ -172,10 +172,10 @@ misc/ ├── scripts/ ├── subsystem_config.json ├── subsystem_config_example.json -├── templates/ # C/C++ build templates +├── templates/ # C/C++ build templates ├── test.gni* -├── toolchain # Build toolchain configuration -├── tools # Common tools +├── toolchain # Build toolchain configuration +├── tools # Common tools ├── version.gni ├── zip.py* @@ -222,25 +222,25 @@ Then, run the build commands in command line (CLI) mode or hb mode. - The **./build.sh** command supports the following options: ```shell - -h, --help # Display help information and exit. - --source-root-dir=SOURCE_ROOT_DIR # Specify the path. - --product-name=PRODUCT_NAME # Specify the product name. - --device-name=DEVICE_NAME # Specify the device name. - --target-cpu=TARGET_CPU # Specify the CPU. - --target-os=TARGET_OS # Specify the operating system. - -T BUILD_TARGET, --build-target=BUILD_TARGET # Specify one or more targets to build. - --gn-args=GN_ARGS # Specify GN parameters. - --ninja-args=NINJA_ARGS # Specify Ninja parameters. - -v, --verbose # Display all commands used. - --keep-ninja-going # Keep Ninja going until 1,000,000 jobs fail. + -h, --help # Display help information and exit. + --source-root-dir=SOURCE_ROOT_DIR # Specify the path. + --product-name=PRODUCT_NAME # Specify the product name. + --device-name=DEVICE_NAME # Specify the device name. + --target-cpu=TARGET_CPU # Specify the CPU. + --target-os=TARGET_OS # Specify the operating system. + -T BUILD_TARGET, --build-target=BUILD_TARGET # Specify one or more targets to build. + --gn-args=GN_ARGS # Specify GN parameters. + --ninja-args=NINJA_ARGS # Specify Ninja parameters. + -v, --verbose # Display all commands used. + --keep-ninja-going # Keep Ninja going until 1,000,000 jobs fail. --jobs=JOBS --export-para=EXPORT_PARA - --build-only-gn # Perform GN parsing and do not run Ninja. - --ccache # (Optional) Use ccache for build. You need to install ccache locally. - --fast-rebuild # Specify whether to allow fast rebuild. The default value is False. - --log-level=LOG_LEVEL # Specify the log level used in the build process. The options are debug, info, and error. The default value is info. - --device-type=DEVICE_TYPE # Specify the device type. The default value is default. - --build-variant=BUILD_VARIANT # Specify the device operation mode. The default value is user. + --build-only-gn # Perform GN parsing and do not run Ninja. + --ccache # (Optional) Use ccache for build. You need to install ccache locally. + --fast-rebuild # Specify whether to allow fast rebuild. The default value is False. + --log-level=LOG_LEVEL # Specify the log level used in the build process. The options are debug, info, and error. The default value is info. + --device-type=DEVICE_TYPE # Specify the device type. The default value is default. + --build-variant=BUILD_VARIANT #Specify the device operation mode. The default value is user. ``` 2. Using the hb tool @@ -381,4 +381,4 @@ You can add and build a product, component, chipset solution, and module. For de - [Information Collected by the Open Source Software Notice](subsys-build-reference.md#information-collected-by-the-open-source-software-notice) - [Parameters for Accelerating Local Build](subsys-build-reference.md#parameters-for-accelerating-local-build) - [Viewing Ninja Build Information](subsys-build-reference.md#viewing-ninja-build-information) - +- [Customizing the chip_prod Image](subsys-build-reference.md#customizing-the-chip_prod-image) diff --git a/en/device-dev/subsystems/subsys-build-reference.md b/en/device-dev/subsystems/subsys-build-reference.md index 49c37d67c3498862732e94bcaf3baedad8b3080f..1d8d95250294bb955316441667630904e73f4611 100644 --- a/en/device-dev/subsystems/subsys-build-reference.md +++ b/en/device-dev/subsystems/subsys-build-reference.md @@ -55,8 +55,8 @@ The dependency between modules can be classified into **deps** (left in the figu external_deps = [ "part1:module1", ... - ] # Inter-component dependency. The dependent module must be declared in inner_kits by the dependent component. - part_name = "part2" # (Mandatory) Name of the component to which the module belongs. + ] # Inter-component dependency. The dependent module must be declared in inner_kits by the dependent component. + part_name = "part2" # (Mandatory) Name of the component to which the module belongs. } ``` @@ -71,14 +71,14 @@ Sanitizer configuration example: ``` shell ohos_shared_library("example") { sanitize = { - cfi = true # Enable the CFI check. - cfi_cross_dso = true # Enable the cross-DSO CFI check. - integer_overflow = true # Enable the integer overflow check. - boundary_sanitize = true # Enable the bounds check. - ubsan = true # Enable some UBSAN options. - all_ubsan = true # Enable all UBSAN options. - debug = true # Enable the debug mode, which is disabled by default. - blocklist = "./blocklist.txt" # Path of the blocklist. + cfi = true # Enable the CFI check. + cfi_cross_dso = true # Enable the cross-DSO CFI check. + integer_overflow = true # Enable the integer overflow check. + boundary_sanitize = true # Enable the bounds check. + ubsan = true # Enable some UBSAN options. + all_ubsan = true # Enable all UBSAN options. + debug = true # Enable the debug mode, which is disabled by default. + blocklist = "./blocklist.txt" # Path of the blocklist. } ... } @@ -198,3 +198,69 @@ You can graphically display the build time as follows: 1. Click **Success** under **Static Check**. 2. Click **Output** in the **Output** column. The **build.trace.html** file is displayed in the **build_trace** column on the left. Click the file to open it. + +## Customizing the chip_prod Image + +### When to Use + +The different capabilities for the products in the same chip solution are placed in the **chip_prod** partition. You need to generate the **chip_prod.img** specific to the product. + +### Procedure +1. Configure the **config.json** file. + + In the **config.json** file, add **chipprod_config_path**, which specifies the path of the product definition file. + The file is named **chip_product_list.gni**, and in the **chip_product_list = ["productA", "productB", ...]** format. + + Example: + + To customize **chip_prod.img** for **MyProduct**, modify the **//vendor/Product vendor/MyProduct/config.json** as follows: + + ```shell + { + "product_name": "MyProduct", # Product name. + "version": "3.0", # config.json version, which is 3.0. + "chipprod_config_path": "", # (Optional) Path of the chipprod configuration file. + "subsystems": [ + { + "subsystem": "arkui", # Subsystem of the product. + "components": [ + { + "component": "ace_engine", + "features":[ "ace_engine_feature_enable_web = true", + "ace_engine_feature_enable_accessibility = true" ] } + ] + }, + { + ... + } + ... + More subsystems and components. + } + } + ``` + +2. Configure the module. + + If the configuration file has different product configurations, for example, to generate **chip_prod.img** for product A, you need to configure **install_images** and **module_install_dir** for module compilation. + + The following uses **ohos_prebuilt_executable** as an example: + + ```shell + ohos_prebuilt_executable("moduleXXX"){ + install_images = [ "chip_prod" ] + module_install_dir = "productA/etc/***" # The path must start with productA. + } + ``` + +3. Run the build command. +```shell +./build.sh --product-name {product_name} --build-target chip_prod_image +``` + +4. Generate the images. + If products A and B are defined (**chip_product_list = ["productA", "productB"]**) and a module is installed in the products, the following images are generated: + + ``` + images/productA/chip_prod.img + images/productB/chip_prod.img + ``` diff --git a/en/device-dev/subsystems/subsys-dfx-faultlogger.md b/en/device-dev/subsystems/subsys-dfx-faultlogger.md index 209734174320846cc68004b82dfff89447df453b..21513ea9cf913eff37a626c7e74294e95fde69ed 100644 --- a/en/device-dev/subsystems/subsys-dfx-faultlogger.md +++ b/en/device-dev/subsystems/subsys-dfx-faultlogger.md @@ -4,108 +4,121 @@ ## Overview -### Function +### Function Introduction FaultLogger is a maintenance and debugging log framework provided by OpenHarmony. It enables unified detection, log collection, log storage, and log reporting for application, ability, and system service process crashes. It is available for the standard system and the Linux kernel-based small system. FaultLogger is responsible for fault recording of OpenHarmony. It runs on the following two components based on the service object: -- HiView: serves functional modules at the application layer and native layer. It manages various fault information in the system and provides APIs for modules to query faults. +- Hiview: serves functional modules at the application layer and native layer. It manages various fault information in the system and provides APIs for modules to query faults. -- FaultLoggerd: serves the crash process. It collects information about abnormal daemon processes in C/C++ and obtains the process call stack. +- Faultloggerd: serves the crash process. It collects information about the abnormal daemon process in C/C++ and obtains call stack information of the process. The following figure shows the process of handling a process crash based on the FaultLogger service. **Figure 1** Process crash handling flowchart -![process_crash_handling](figures/process_crash_handling.png) +![Process crash handling flowchart](figures/process_crash_handling_flowchart.png) -1. After the signal processor is installed, the **DFX_SignalHandler** function detects and responds to the process crash exception signal. +1. After the signal processor is installed, SignalHandler uses the **DFX_SignalHandler** function to detect and respond to the process crash exception signal thrown by the kernel. -2. **SignalHandler** forks a child process after detecting the exception signal and runs **ProcessDump** to dump the stack information of the crashed process and thread. +2. When detecting a process crash exception signal, SignalHandler forks a child process and runs ProcessDump to dump the stack information of the crashed process and thread. -3. **ProcessDump** then writes a log to the temporary storage directory in FaultLoggerd, generating a full crash log. +3. ProcessDump applies to Faultloggerd for a file handle for storing fault logs. After reading the exception stack information, ProcessDump writes the information to the file to generate a complete crash log. -4. FaultLoggerd reports the fault through the **AddFaultLog()** API provided by HiView. HiView handles the fault, generates a simple crash log, and reports a HiSysEvent. +4. After collecting the complete crash log, ProcessDump reports the log to Hiview by using the **AddFaultLog()** API. Hiview generates a simplified crash log and reports a system event through HiSysEvent. -With this design, a small-system with limited resources can obtain logs for locating crash faults as long as FaultLoggerd is deployed. +With this design, a small-system with limited resources can obtain logs for locating crash faults as long as Faultloggerd is deployed. ### Use Cases -FaultLoggerd provides a lightweight approach for you to locate crash or suspension problems during development and testing. +Faultloggerd provides a lightweight approach for you to locate crash or suspension problems during development and testing. -It is applicable to the following scenarios: +The following table describes the application scenarios. **Table 1** Application scenarios of the Faultloggerd module -| Scenario| Tool| Usage| +| Scenario| Tool| Usage| | -------- | -------- | -------- | -| To understand the function call sequence| DumpCatcher API | See [Using DumpCatcher to Obtain the Call Stack](#using-dumpcatcher-to-obtain-the-call-stack).| -| Application suspension or high CPU usage| ProcessDump | See [Using ProcessDump to Obtain the Call Stack](#using-processdump-to-obtain-the-call-stack).| -| Signal crash not handled by the process| Crash log and addr2line tool| See [Locating Faults Based on Crash Logs](#locating-faults-based-on-crash-logs).| +| Understanding of the function call sequence| DumpCatcher API | See [Using DumpCatcher APIs to Obtain Call Stack Information](#using-dumpcatcher-apis-to-obtain-call-stack-information).| +| Application suspension or high CPU usage| DumpCatcher Command Tool | See [Using DumpCatcher Commands to Obtain Call Stack Information](#using-dumpcatcher-commands-to-obtain-call-stack-information).| +| Crash fault location| Crash log and addr2line tool| For details, see [Locating Faults Based on the Crash Log](#locating-faults-based-on-the-crash-log).| -## Using DumpCatcher to Obtain the Call Stack +## Using DumpCatcher APIs to Obtain Call Stack Information ### Available APIs -DumpCatcher can capture the call stack of a specified process (thread) on OpenHarmony. +DumpCatcher can capture the call stack information of the specified process (thread) on OpenHarmony. - Table 2 DumpCatcher APIs + **Table 2** DumpCatcher APIs -| Class| API| Description| +| Class| API| Description| | -------- | -------- | -------- | -| DfxDumpCatcher | bool DumpCatch(const int pid, const int tid, std::string& msg) | Return value:
**true**: Back trace is successful. Related information is stored in the **msg** string object.
**false**: Back trace failed.
Input arguments:
**pid**: target process ID.
**tid**: target thread ID. If all threads in the process need to be back traced, set **tid** to **0**.
Output argument:
**msg**: return message. If back trace is successful, the call stack information is returned through **msg**.| +| DfxDumpCatcher | bool DumpCatch(const int pid, const int tid, std::string& msg) | Return value:
- **true**: Dumping of stack information is successful. Related information is stored in the msg string object.
- **false**: Dumping of stack information has failed.
Input arguments:
- **pid**: target process ID.
- **tid**: target thread ID. If all threads in the process need to be back traced, set **tid** to **0**.
Output arguments:
- **msg**: If back trace is successful, call stack information is returned through **msg**.| +| DfxDumpCatcher | bool DumpCatchMix(const int pid, const int tid, std::string& msg) | Return value:
- **true**: Dumping of stack information is successful. Related information is stored in the msg string object.
- **false**: Dumping of stack information has failed.
Input arguments:
**pid**: target process ID.
- **tid**: target thread ID. If all threads in the process need to be back traced, set **tid** to **0**.
Output arguments:
- **msg**: If back trace is successful, hybrid stack information is returned through **msg**.| +| DfxDumpCatcher | bool DumpCatchFd(const int pid, const int tid, std::string& msg, int fd) | Return value:
- **true**: Dumping of stack information is successful. Related information is stored in the msg string object.
- **false**: Dumping of stack information has failed.
Input arguments:
**pid**: target process ID.
- **tid**: target thread ID. If all threads in the process need to be back traced, set **tid** to **0**.
- **fd**: handle of the file to be written.
Output parameters:
- **msg**: If back trace is successful, call stack information is returned through **msg**.| +| DfxDumpCatcher | bool DumpCatchMultiPid(const std::vector\ pidV, std::string& msg) | Return value:
- **true**: Dumping of stack information is successful. Related information is stored in the msg string object.
- **false**: Dumping of stack information has failed.
Input arguments:
- **pidV**: target process ID list.
Output arguments:
- **msg**: If back trace is successful, call stack information is returned through **msg**.| -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
-> If the PID that calls this API is different from the target PID, the caller must be the **system** or **root** user. To capture the call stack of a process that does not belong to the current user group, ensure that you have permissions to read **/proc/pid/maps** and implement **ptrace** on the peer process. +> **NOTE** +> If the PID that calls this API is different from the target PID, the caller must be the **system** or **root** user. -### Development Example +### How to Develop + +You can use DumpCatcher to obtain call stack information for the specified process (thread) of an application. The following uses the **dumpcatcherdemo** module as an example to describe how to use the DumpCatcher APIs to obtain the call stack information. -You can use DumpCatcher to obtain the call stack of a specified process (thread) in your applications. The following uses the **dumpcatcherdemo** module as an example to describe how to use the DumpCatcher API to obtain the call stack. +1. Add the DumpCatcher dependency to the build file. Take /base/hiviewdfx/faultloggerd/example/BUILD.gn as an example. Add the **dump_catcher.h** file path to **include_dirs** and add the required **//base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher:lib_dfx_dump_catcher** module to **deps**. -1. Add the DumpCatcher dependency to the build file. Take /base/hiviewdfx/faultloggerd/example/BUILD.gn as an example. Add the **dfx_dump_catcher.h** file path to **include_dirs** and add the required **//base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher:lib_dfx_dump_catcher** module to **deps**. - ``` import("//base/hiviewdfx/faultloggerd/faultloggerd.gni") import("//build/ohos.gni") - + config("dumpcatcherdemo_config") { visibility = [ ":*" ] - + include_dirs = [ ".", "//utils/native/base/include", "//base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher/include/", # Add the path of the dump_catcher header file. ] } - - ohos_executable("dumpcatcherdemo") { sources = [ "dump_catcher_demo.cpp" ] configs = [ ":dumpcatcherdemo_config" ] deps = [ "//base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher:lib_dfx_dump_catcher", # Add the DumpCatcher module dependency. "//utils/native/base:utils", ] external_deps = [ "hilog_native:libhilog" ] install_enable = true part_name = "faultloggerd" subsystem_name = "hiviewdfx" + + ohos_executable("dumpcatcherdemo") { + sources = [ "dump_catcher_demo.cpp" ] + configs = [ ":dumpcatcherdemo_config" ] + deps = [ + "//base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher:lib_dfx_dump_catcher", # Add the DumpCatcher module dependency. + "//utils/native/base:utils", + ] + external_deps = [ "hilog_native:libhilog" ] + install_enable = true + part_name = "faultloggerd" + subsystem_name = "hiviewdfx" } ``` 2. Define the header file. Take **/base/hiviewdfx/faultloggerd/example/dump_catcher_demo.h** as an example. In the sample code, the function of the stack depth test is called to construct a call stack with a specified depth. - + ``` #ifndef DUMP_CATCHER_DEMO_H #define DUMP_CATCHER_DEMO_H - + #include - + #define NOINLINE __attribute__((noinline)) - + // Define the macro function to automatically generate a function call chain. #define GEN_TEST_FUNCTION(FuncNumA, FuncNumB) \ __attribute__((noinline)) int TestFunc##FuncNumA() \ { \ return TestFunc##FuncNumB(); \ } - + // Call the function of the stack depth test. int TestFunc0(void); int TestFunc1(void); @@ -118,33 +131,33 @@ You can use DumpCatcher to obtain the call stack of a specified process (thread) int TestFunc8(void); int TestFunc9(void); int TestFunc10(void); - + #endif // DUMP_CATCHER_DEMO_H ``` 3. Call the **DumpCatch** API in the source file. Take **/base/hiviewdfx/faultloggerd/example/dump_catcher_demo.cpp** as an example. Include the **dfx_dump_catcher.h** file, declare the **DfxDumpCatcher** object, use the macro function to construct a function call chain, call the **DumpCatch** method, and pass the required process ID and thread ID of the call stack into this method. - + ``` #include "dump_catcher_demo.h" - + #include #include #include // Include the dfx_dump_catcher.h file. #include "dfx_dump_catcher.h" using namespace std; - + NOINLINE int TestFunc10(void) { OHOS::HiviewDFX::DfxDumpCatcher dumplog; string msg = ""; - bool ret = dumplog.DumpCatch(getpid(), gettid(), msg); // Call the DumpCatch API to obtain the call stack. + bool ret = dumplog.DumpCatch(getpid(), gettid(), msg); // Call the DumpCatch API to obtain the call stack information. if (ret) { cout << msg << endl; } return 0; } - + // Use the macro function to automatically generate a function call chain. GEN_TEST_FUNCTION(0, 1) GEN_TEST_FUNCTION(1, 2) @@ -156,7 +169,7 @@ You can use DumpCatcher to obtain the call stack of a specified process (thread) GEN_TEST_FUNCTION(7, 8) GEN_TEST_FUNCTION(8, 9) GEN_TEST_FUNCTION(9, 10) - + int main(int argc, char *argv[]) { TestFunc0(); @@ -165,55 +178,57 @@ You can use DumpCatcher to obtain the call stack of a specified process (thread) ``` -## Using ProcessDump to Obtain the Call Stack +## Using DumpCatcher Commands to Obtain Call Stack Information ### Tool Description -ProcessDump is a command line interface (CLI) based tool for capturing call stacks on OpenHarmony. It uses the **-p** and **-t** parameters to specify the process and thread. After the command is executed, the thread stack information of the specified process is displayed in the CLI window. +DumpCatcher Command Tool is a command line interface (CLI)-based tool for capturing call stack information on OpenHarmony. It uses the **-p** and **-t** parameters to specify the process and thread. After the command is executed, the thread stack information of the specified process is displayed in the CLI window. By specifying the **-m** parameter, you can also capture the JS and Native hybrid stack information of an application process. - **Table 3** Usage of the CLI-based ProcessDump + **Table 3** Usage of the DumpCatcher Command Tool -| Tool| Path| Command| Description| +| Tool| Path| Command| Description| | -------- | -------- | -------- | -------- | -| processdump | /system/bin | - processdump -p [pid]
- processdump -p [pid] -t [tid] | **Arguments:**
**- -p [pid]**: prints stack information for all threads of the specified process.
**- -p [pid] -t [tid]**: prints information for the specified thread of the specified process.
**Return value:**
If the stack information is parsed successfully, the information is displayed in the standard output. If the stack information fails to be parsed, error information is displayed.| - +| dumpcatcher | /system/bin | - dumpcatcher -p [pid]
- dumpcatcher -p [pid] -t [tid]
- dumpcatcher -m -p [pid]
- dumpcatcher -m -p [pid] -t [tid]
| **Description:**
- **-p [pid]**: prints all thread stack information of the specified process.
- **-p [pid] -t [tid]**: prints stack information for the specified thread of the specified process.
- **-m -p [pid]**: prints hybrid stack information for all threads of the specified process.
- **-m -p [pid] -t [tid]**: prints hybrid stack information for the specified thread of the specified process.
**Return value:**
If the stack information is parsed successfully, the information is displayed in the standard output. If the stack information fails to be parsed, error information is displayed.| -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
-> This tool must be used by the **root** user, or the caller must have the permission to ptrace the target process and read the smaps of the target process. +### Development Example -### Example +Print call stack information of the **hiview** process. -Use ProcessDump to print the call stack of the **hiview** process. - ``` -# ps -A | grep hiview - 114 ? 00:00:00 hiview -# processdump -p 114 -t 114 -Tid:114, Name:hiview -#00 pc 0000000000089824(00000000b6f44824) /system/lib/ld-musl-arm.so.1(ioctl+68) -#01 pc 000000000002a709(00000000b6c56709) /system/lib/libipc_core.z.so(_ZN4OHOS15BinderConnector11WriteBinderEmPv+16) -#02 pc 000000000002ba75(00000000b6c57a75) /system/lib/libipc_core.z.so(_ZN4OHOS13BinderInvoker18TransactWithDriverEb+224) -#03 pc 000000000002bb37(00000000b6c57b37) /system/lib/libipc_core.z.so(_ZN4OHOS13BinderInvoker13StartWorkLoopEv+22) -#04 pc 000000000002c211(00000000b6c58211) /system/lib/libipc_core.z.so(_ZN4OHOS13BinderInvoker10JoinThreadEb+36) -#05 pc 0000000000038d07(00000000004bcd07) /system/bin/hiview(_ZNSt3__h6vectorINS_9sub_matchINS_11__wrap_iterIPKcEEEENS_9allocatorIS6_EEE8__appendEj+596) -#06 pc 0000000000028655(00000000004ac655) /system/bin/hiview -#07 pc 00000000000c2b08(00000000b6f7db08) /system/lib/ld-musl-arm.so.1(__libc_start_main+116) -#08 pc 00000000000285f4(00000000004ac5f4) /system/bin/hiview -#09 pc 0000000000028580(00000000004ac580) /system/bin/hiview +# ps -ef |grep hiview +hiview 240 1 0 17:01:49 ? 00:00:14 hiview +root 1822 1560 7 20:56:36 pts/0 00:00:00 grep hiview +# dumpcatcher -p 240 -t 240 +Result: 0 ( no error ) +Timestamp:2017-08-05 20:56:43.000 +Pid:240 +Uid:1201 +Process name:/system/bin/hiview +Tid:240, Name:hiview +#00 pc 00098f8c /system/lib/ld-musl-arm.so.1(ioctl+68) +#01 pc 0000e2a1 /system/lib/chipset-pub-sdk/libipc_single.z.so +#02 pc 0000ed59 /system/lib/chipset-pub-sdk/libipc_single.z.so +#03 pc 0000ee1f /system/lib/chipset-pub-sdk/libipc_single.z.so +#04 pc 0000f745 /system/lib/chipset-pub-sdk/libipc_single.z.so +#05 pc 00037577 /system/bin/hiview +#06 pc 00025973 /system/bin/hiview +#07 pc 000db210 /system/lib/ld-musl-arm.so.1 +#08 pc 000258d8 /system/bin/hiview +#09 pc 0002587c /system/bin/hiview ``` -## Locating Faults Based on Crash Logs +## Locating Faults Based on the Crash Log -You can locate faults based on the crash stack logs generated by FaultLoggerd. This section describes how to use the addr2line tool to locate a crash fault. +You can locate faults based on the crash stack logs generated by Faultloggerd. This section describes how to use the addr2line tool to locate a crash fault. 1. Find a program crash or construct a crash. For example, insert the following code into your code to trigger an invalid memory access fault (SIGSEGV). - + ``` NOINLINE int TriggerSegmentFaultException() { @@ -228,40 +243,41 @@ You can locate faults based on the crash stack logs generated by FaultLoggerd. T 2. Obtain the crash function call stack log. The process generates a temporary log file in the** /data/log/faultlog/temp** directory due to an exception that is not handled. The naming rule of the temporary log file is as follows: - + ``` cppcrash-pid-time ``` - The generated call stack is as follows: + The generated call stack information is as follows: + - ``` + Timestamp:2017-08-05 17:35:03.000 Pid:816 Uid:0 - Process name:./crasher + Process name:./crasher_c Reason:Signal:SIGSEGV(SEGV_ACCERR)@0x0042d33d Fault thread Info: Tid:816, Name:crasher + #00 pc 0000332c /data/crasher(TriggerSegmentFaultException+15)(8bc37ceb8d6169e919d178fdc7f5449e) + #01 pc 000035c7 /data/crasher(ParseAndDoCrash+277)(8bc37ceb8d6169e919d178fdc7f5449e) + #02 pc 00003689 /data/crasher(main+39)(8bc37ceb8d6169e919d178fdc7f5449e) + #03 pc 000c3b08 /system/lib/ld-musl-arm.so.1(__libc_start_main+116) + #04 pc 000032f8 /data/crasher(_start_c+112)(8bc37ceb8d6169e919d178fdc7f5449e) + #05 pc 00003284 /data/crasher(_start+32)(8bc37ceb8d6169e919d178fdc7f5449e) + Registers: r0:0042d33d r1:0000000b r2:1725d4c4 r3:b6f9fa84 r4:bec97e69 r5:b6fc0268 r6:0042d661 r7:bec97d60 r8:00000000 r9:00000000 r10:00000000 fp:bec97d20 ip:00000020 sp:bec97cd0 lr:b6f9fae4 pc:0042d32c - - #00 pc 000000000000332c(000000000042d32c) /data/crasher(TriggerSegmentFaultException+15) - #01 pc 00000000000035c7(000000000042d5c7) /data/crasher(ParseAndDoCrash+277) - #02 pc 0000000000003689(000000000042d689) /data/crasher(main+39) - #03 pc 00000000000c3b08(00000000b6fbbb08) /system/lib/ld-musl-arm.so.1(__libc_start_main+116) - #04 pc 00000000000032f8(000000000042d2f8) /data/crasher(_start_c+112) - #05 pc 0000000000003284(000000000042d284) /data/crasher(_start+32) ``` -3. Use the addr2line tool to analyze the call stack. +3. Use the addr2line tool to analyze the call stack information. Then, parse the line number based on the offset address. - + ``` - root:~/OpenHarmony/out/hi3516dv300/exe.unstripped/hiviewdfx/faultloggerd$ addr2line -e crasher 000332c + root:~/OpenHarmony/out/hi3516dv300/exe.unstripped/hiviewdfx/faultloggerd$ addr2line -e crasher 0000332c base/hiviewdfx/faultloggerd/tools/crasher/dfx_crasher.c:57 ``` diff --git a/en/device-dev/subsystems/subsys-dfx-hisysevent-logging-config.md b/en/device-dev/subsystems/subsys-dfx-hisysevent-logging-config.md index e6c0316c22cf0f0988f032218e92543c9f7b3acc..940b8188945ffdc01c6b35a44a27019339a69768 100644 --- a/en/device-dev/subsystems/subsys-dfx-hisysevent-logging-config.md +++ b/en/device-dev/subsystems/subsys-dfx-hisysevent-logging-config.md @@ -28,8 +28,7 @@ Constraints on the event domain, event name, and parameter - Zero or more event names can be defined for one event domain. The event names in the same event domain must be unique. -- Multiple parameters can be defined for one event name. The parameters in the same event name must be unique. There must be only one parameter named **__BASE** in each event name. See Table 1 for the fields of this parameter and Table 2 for the fields of other custom parameters. - +- Multiple parameters can be defined for one event name. The parameters in the same event name must be unique. There must be only one parameter named **\__BASE** in each event name. See Table 1 for the fields of this parameter and Table 2 for the fields of other custom parameters. **Table 1** Fields in the \__BASE parameter | Field| Description| @@ -47,8 +46,10 @@ Constraints on the event domain, event name, and parameter | arrsize | Length of the parameter of the array type. This field is optional.
Value:
1-100| | desc | Parameter description. This field is mandatory.
Rule:
The description contains 3 to 128 characters, including a to z, A to Z, 0 to 9, and underscores (_).| + ## How to Develop + ### Writing a YAML File diff --git a/en/device-dev/subsystems/subsys-dfx-hisysevent-overview.md b/en/device-dev/subsystems/subsys-dfx-hisysevent-overview.md index efd5de904fcdeed3d2467eb3c1b2f215e1ef4521..e1c5a61544b9413e3c36d46b86f5a789bad2e178 100644 --- a/en/device-dev/subsystems/subsys-dfx-hisysevent-overview.md +++ b/en/device-dev/subsystems/subsys-dfx-hisysevent-overview.md @@ -1,4 +1,4 @@ -# HiSysEvent Overview +# HiSysEvent ## Introduction diff --git a/en/device-dev/subsystems/subsys-dfx-hitracechain.md b/en/device-dev/subsystems/subsys-dfx-hitracechain.md index 9b9b85b66a457a0653b12f7d450f13f7aaef2a4f..e58467e1ca4814649adfc40bad1f28be1b96f4d5 100644 --- a/en/device-dev/subsystems/subsys-dfx-hitracechain.md +++ b/en/device-dev/subsystems/subsys-dfx-hitracechain.md @@ -2,530 +2,237 @@ ## Overview -HiTraceChain tracks the call chain with the same **traceid** throughout the inter-device, inter-process, and inter-thread service processes. It associates and displays the call relationship and various output information during the entire process, helping you analyze and locate faults and optimize the system. +HiTraceChain tracks the call chain with the same **traceid** throughout the inter-device, inter-process, and inter-thread service processes. It associates and displays the call relationship and various output information during the entire process, helping you analyze and locate faults and optimize the system. -## Use Cases + +## When to Use HiTraceChain can be used for the following purposes: -- Associates and reports service process information \(such as logs and events\) on the device. +- Associates and reports service process information (such as logs and events) on the device. - Displays and analyzes reported information on the cloud to facilitate fault location. -- Works with the IDE to debug the detailed service process and time consumption distribution for system optimization. +- Works with the IDE to debug the detailed service process and time consumption distribution for system optimization. - **Figure 1** Use cases of HiTraceChain - + **Figure 1** Use cases of HiTraceChain ![](figures/use-cases-of-hitrace.png "use-cases-of-hitrace") ### Usage Example -**Figure 2** Service calling process \(inter-device and inter-process synchronous call\) + **Figure 2** Service calling process \(inter-device and inter-process synchronous call\) -![](figures/service-calling-process-(inter-device-and-inter-process-synchronous-call).png "service-calling-process-(inter-device-and-inter-process-synchronous-call)") + ![](figures/service-calling-process-(inter-device-and-inter-process-synchronous-call).png "service-calling-process-(inter-device-and-inter-process-synchronous-call)") 1. Display the call relationship in the service process, analyze key paths and function dependency, and determine the time consumption and call frequency at each call point to detect performance bottlenecks. - **Figure 3** Service calling process + **Figure 3** Service calling process + ![](figures/service-calling-process.png "service-calling-process") - ![](figures/service-calling-process.png "service-calling-process") - **Figure 4** Time delay in the service calling process + **Figure 4** Time delay in the service calling process + ![](figures/time-delay-in-the-service-calling-process.png "time-delay-in-the-service-calling-process") - ![](figures/time-delay-in-the-service-calling-process.png "time-delay-in-the-service-calling-process") +2. Add **traceid** to logs and events automatically to facilitate comprehensive analysis and quick fault location. -2. Add **traceid** to logs and events automatically to facilitate comprehensive analysis and quick fault location. ## Available APIs -HiTraceChain provides C++ and C APIs. The upper-layer services mainly use HiTraceChain to start and stop call chain tracing. +HiTraceChain provides C++ and C APIs. The upper-layer services mainly use HiTraceChain to start and stop call chain trace. + +HiTraceChain is implemented at layer C. It works by transferring **traceid** throughout the service calling process. Before service processing, HiTrace sets **traceid** in the thread local storage (TLS) of the calling thread. During service processing, HiTrace obtains **traceid** from the contextual TLS of the calling thread and automatically adds it to the log and event information. After service processing is complete, HiTrace clears **traceid** from the TLS of the calling thread. -HiTraceChain is implemented at layer C. It works by transferring **traceid** throughout the service calling process. Before service processing, HiTraceChain sets **traceid** in the thread local storage \(TLS\) of the calling thread. During service processing, HiTraceChain obtains **traceid** from the contextual TLS of the calling thread and automatically adds it to the log and event information. After service processing is complete, HiTraceChain clears **traceid** from the TLS of the calling thread. ### Java, C++, and C APIs -**Table 1** Description of C++ and C APIs - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  

C++

-

C

-

Class

-

API

-

API

-

HiTraceChain

-

-

-

-

-

-

-

-

HiTraceId Begin(const std::string& name, int flags)

-

HiTraceIdStruct HiTraceChainBegin(const char* name, int flags)

-

void End(const HiTraceId& id)

-

void HiTraceChainEnd(const HiTraceIdStruct* pId)

-

HiTraceId GetId();

-

HiTraceIdStruct HiTraceChainGetId()

-

void SetId(const HiTraceId& id)

-

void HiTraceChainSetId(const HiTraceIdStruct* pId)

-

void ClearId()

-

void HiTraceChainClearId()

-

HiTraceId CreateSpan()

-

HiTraceIdStruct HiTraceChainCreateSpan()

-

void Tracepoint(HiTraceTracepointType type, const HiTraceId& id, const char* fmt, ...)

-

void HiTraceChainTracepoint(HiTraceTracepointType type, const HiTraceIdStruct* pId, const char* fmt, ...)

-

void Tracepoint(HiTraceCommunicationMode mode, HiTraceTracepointType type, const HiTraceId& id, const char* fmt, ...)

-

void HiTraceChainTracepointEx(HiTraceCommunicationMode mode, HiTraceTracepointType type, const HiTraceIdStruct* pId, const char* fmt, ...)

-

HiTraceId

-

-

-

-

-

-

-

-

-

-

-

-

-

-

HiTraceId();

-

void HiTraceChainInitId(HiTraceIdStruct* pId)

-

HiTraceId(const uint8_t* pIdArray, int len)

-

HiTraceIdStruct HiTraceChainBytesToId(const uint8_t* pIdArray, int len)

-

bool IsValid()

-

int HiTraceChainIsValid(const HiTraceIdStruct* pId)

-

bool IsFlagEnabled(HiTraceFlag flag)

-

int HiTraceChainIsFlagEnabled(const HiTraceIdStruct* pId, HiTraceFlag flag)

-

void EnableFlag(HiTraceFlag flag)

-

void HiTraceChainEnableFlag(HiTraceIdStruct* pId, HiTraceFlag flag)

-

int GetFlags()

-

int HiTraceChainGetFlags(const HiTraceIdStruct* pId)

-

void SetFlags(int flags)

-

void HiTraceChainSetFlags(HiTraceIdStruct* pId, int flags)

-

uint64_t GetChainId()

-

uint64_t HiTraceChainGetChainId(const HiTraceIdStruct* pId)

-

void SetChainId(uint64_t chainId)

-

void HiTraceChainSetChainId(HiTraceIdStruct* pId, uint64_t chainId)

-

uint64_t GetSpanId()

-

uint64_t HiTraceChainGetSpanId(const HiTraceIdStruct* pId)

-

void SetSpanId(uint64_t spanId)

-

void HiTraceChainSetSpanId(HiTraceIdStruct* pId, uint64_t spanId)

-

uint64_t GetParentSpanId()

-

uint64_t HiTraceChainGetParentSpanId(const HiTraceIdStruct* pId)

-

void SetParentSpanId(uint64_t parentSpanId)

-

void HiTraceChainSetParentSpanId(HiTraceIdStruct* pId, uint64_t parentSpanId)

-

int ToBytes(uint8_t* pIdArray, int len)

-

int HiTraceChainIdToBytes(const HiTraceIdStruct* pId, uint8_t* pIdArray, int len)

-
+ **Table 1** Description of C++ and C APIs + +| | **C++** | **C** | +| -------- | -------- | -------- | +| **Class**| **Function**| **Function**| +| HiTraceChain | HiTraceId Begin(const std::string& name, int flags) | HiTraceIdStruct HiTraceChainBegin(const char* name, int flags) | +| | void End(const HiTraceId& id) | void HiTraceChainEnd(const HiTraceIdStruct* pId) | +| | HiTraceId GetId(); | HiTraceIdStruct HiTraceChainGetId() | +| | void SetId(const HiTraceId& id) | void HiTraceChainSetId(const HiTraceIdStruct* pId) | +| | void ClearId() | void HiTraceChainClearId() | +| | HiTraceId CreateSpan() | HiTraceIdStruct HiTraceChainCreateSpan() | +| | void Tracepoint(HiTraceTracepointType type, const HiTraceId& id, const char* fmt, ...) | void HiTraceChainTracepoint(HiTraceTracepointType type, const HiTraceIdStruct* pId, const char* fmt, ...) | +| | void Tracepoint(HiTraceCommunicationMode mode, HiTraceTracepointType type, const HiTraceId& id, const char* fmt, ...) | void HiTraceChainTracepointEx(HiTraceCommunicationMode mode, HiTraceTracepointType type, const HiTraceIdStruct* pId, const char* fmt, ...) | +| HiTraceId | HiTraceId(); | void HiTraceChainInitId(HiTraceIdStruct* pId) | +| | HiTraceId(const uint8_t* pIdArray, int len) | HiTraceIdStruct HiTraceChainBytesToId(const uint8_t* pIdArray, int len) | +| | bool IsValid() | int HiTraceChainIsValid(const HiTraceIdStruct* pId) | +| | bool IsFlagEnabled(HiTraceFlag flag) | int HiTraceChainIsFlagEnabled(const HiTraceIdStruct* pId, HiTraceFlag flag) | +| | void EnableFlag(HiTraceFlag flag) | void HiTraceChainEnableFlag(HiTraceIdStruct* pId, HiTraceFlag flag) | +| | int GetFlags() | int HiTraceChainGetFlags(const HiTraceIdStruct* pId) | +| | void SetFlags(int flags) | void HiTraceChainSetFlags(HiTraceIdStruct* pId, int flags) | +| | uint64_t GetChainId() | uint64_t HiTraceChainGetChainId(const HiTraceIdStruct* pId) | +| | void SetChainId(uint64_t chainId) | void HiTraceChainSetChainId(HiTraceIdStruct* pId, uint64_t chainId) | +| | uint64_t GetSpanId() | uint64_t HiTraceChainGetSpanId(const HiTraceIdStruct* pId) | +| | void SetSpanId(uint64_t spanId) | void HiTraceChainSetSpanId(HiTraceIdStruct* pId, uint64_t spanId) | +| | uint64_t GetParentSpanId() | uint64_t HiTraceChainGetParentSpanId(const HiTraceIdStruct* pId) | +| | void SetParentSpanId(uint64_t parentSpanId) | void HiTraceChainSetParentSpanId(HiTraceIdStruct* pId, uint64_t parentSpanId) | +| | int ToBytes(uint8_t* pIdArray, int len) | int HiTraceChainIdToBytes(const HiTraceIdStruct_ pId, uint8_t* pIdArray, int len) | + ### Parameters of C++ APIs -**Table 2** Parameters of C++ APIs - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Class

-

API

-

Description

-

HiTraceChain

-

-

-

-

-

-

-

-

HiTraceId Begin(const std::string& name, int flags)

-

Starts HiTraceChain, generates a HiTraceId object, and sets it in the TLS of the calling thread.

-

Input arguments:

-
  • name: Indicates the name of the service process.
  • flags: Indicates tracing flags, which can be used in combination.
    • HITRACE_FLAG_INCLUDE_ASYNC: Traces both synchronous and asynchronous calls. By default, only synchronous calls are traced.
    • HITRACE_FLAG_DONOT_CREATE_SPAN: Do not create a span. By default, a span is created.
    • HITRACE_FLAG_TP_INFO: Outputs the tracepoint information. By default, the information is not output.
    • HITRACE_FLAG_NO_BE_INFO: Do not output the start and end information. By default, the information is output.
    • HITRACE_FLAG_DONOT_ENABLE_LOG: Do not associate logs for output. By default, logs are associated for output.
    • HITRACE_FLAG_FAULT_TRIGGER: Triggers tracing by fault. By default, tracing is triggered normally.
    • HITRACE_FLAG_D2D_TP_INFO: Outputs the device-to-device tracepoint information. By default, the information is not output.
    • HITRCE_FLAG_DEFAULT: Indicates the default flag.
    -
  • Output arguments: none
  • Return value: Returns a valid HiTraceId object if call chain tracing is triggered successfully; returns an invalid object otherwise.
-

Note: In nested tracing mode, an invalid object will be returned if tracing is started at the nested layer.

-

void End(const HiTraceId& id)

-

Stops HiTraceChain based on the HiTraceId object returned by the Begin API, and clears the HiTraceId object in the TLS of the calling thread.

-

Input arguments:

-
  • id: Indicates the HiTraceId object.
-

Output arguments: none

-

Return value: none

-

HiTraceId GetId();

-

Obtains the HiTraceId object from the TLS of the calling thread.

-

Input arguments: none

-

Output arguments: none

-

Return value: Returns the HiTraceId object in the contextual TLS of the calling thread.

-

void SetId(const HiTraceId& id)

-

Purpose: Sets the HiTraceId object in the TLS of the calling thread.

-

Input arguments:

-
  • id: Indicates the HiTraceId object.
-

Output arguments: none

-

Return value: none

-

void ClearId()

-

Clears the HiTraceId object in the TLS of the current thread.

-

Input arguments: none

-

Output arguments: none

-

Return value: none

-

HiTraceId CreateSpan()

-

Obtains the span ID from the current HiTraceId object.

-

Input arguments: none

-

Output arguments: none

-

Return value: Returns the current span ID.

-

void Tracepoint(HiTraceTracepointType type, const HiTraceId& id, const char* fmt, ...)

-

Outputs HiTraceChain call chain information based on the information type. The information includes the timestamp and HiTraceId object information of the span.

-

Input arguments:

-
  • type: Indicates the information type. The options are as follows:
    • HITRACE_TP_CS: Client Send, which indicates the messages sent by the synchronous/asynchronous communication client.
    • HITRACE_TP_SR: Server Receive, which indicates the messages received by the server in synchronous/asynchronous communication.
    • HITRACE_TP_SS: Server Send, which indicates the response messages sent by the server in synchronous communication.
    • HITRACE_TP_CR: Client Receive, which indicates the response messages received by the synchronous communication client.
    • HITRACE_TP_GENERAL: Indicates the common output information.
    -
  • id: Indicates the ID of the current span.
  • fmt: Indicates the string describing the format variable parameter.
  • args: Indicates the variable parameter.
-

Output arguments: none

-

Return value: none

-

void Tracepoint(HiTraceCommunicationMode mode, HiTraceTracepointType type, const HiTraceId& id, const char* fmt, ...)

-

Outputs HiTraceChain call chain information based on the communication mode and information type. The information includes the timestamp and HiTraceId object information of the span.

-

Input arguments:

-
  • mode: Indicates the communication mode. The options are as follows:
    • HITRACE_CM_DEFAULT: default communication mode used when no communication mode is specified
    • HITRACE_CM_THREAD: inter-thread communication
    • HITRACE_CM_PROCESS: inter-process communication
    • HITRACE_CM_DEVICE: inter-device communication
    -
  • type: Indicates the information type. The options are as follows:
    • HITRACE_TP_CS: Client Send, which indicates the messages sent by the synchronous/asynchronous communication client.
    • HITRACE_TP_SR: Server Receive, which indicates the messages received by the server in synchronous/asynchronous communication.
    • HITRACE_TP_SS: Server Send, which indicates the response messages sent by the server in synchronous communication.
    • HITRACE_TP_CR: Client Receive, which indicates the response messages received by the synchronous communication client.
    • HITRACE_TP_GENERAL: Indicates the common output information.
    -
  • id: Indicates the ID of the current span.
  • fmt: Indicates the string describing the format variable parameter.
  • args: Indicates the variable parameter.
-

Output arguments: none

-

Return value: none

-

HiTraceId

-

-

-

-

-

-

-

-

-

-

-

-

-

-

HiTraceId();

-

Represents the default constructor used to generate an invalid HiTraceId object.

-

Input arguments: none

-

Output arguments: none

-

Return value: none

-

HiTraceId(const uint8_t* pIdArray, int len)

-

Represents the constructor used to create a HiTraceId object based on the specified byte array.

-
Input arguments:
  • pIdArray: Indicates the pointer to a byte array.
  • len: Indicates the length of the byte array.
-
-

Output arguments: none

-

Return value: none

-

bool IsValid()

-

Checks whether the HiTraceId object is valid.

-

Input arguments: none

-

Output arguments: none

-

Return value: Returns true if the HiTraceId object is valid; returns false otherwise.

-

bool IsFlagEnabled(HiTraceFlag flag)

-

Checks whether the tracing flag of the HiTraceId object is enabled.

-

Input arguments:

-
  • flag: Indicates the tracing flag. For details, see the description in the Begin function.
-

Output arguments: none

-

Return value: Returns true if the tracing flag is enabled; returns false otherwise.

-

void EnableFlag(HiTraceFlag flag)

-

Enables the tracing flag of the HiTraceId object.

-

Input arguments:

-
  • flag: Indicates the tracing flag. For details, see the description in the Begin function.
-

Output arguments: none

-

Return value: none

-

int GetFlags()

-

Obtains the tracing flag set in the HiTraceId object.

-

Input arguments: none

-

Output arguments: none

-

Return value: Returns the combination of tracing flags. For details, see the description in the Begin function.

-

void SetFlags(int flags)

-

Sets a tracing flag in the HiTraceId object.

-

Input arguments:

-
  • flags: Indicates the combination of tracing flags. For details, see the description in the Begin function.
-

Output arguments: none

-

Return value: none

-

uint64_t GetChainId()

-

Obtains the call chain ID.

-

Input arguments: none

-

Output arguments: none

-

Return value: Returns the call chain ID.

-

void SetChainId(uint64_t chainId)

-

Sets the call chain ID in the HiTraceId object.

-

Input arguments:

-
  • chainId: Indicates the call chain ID.
-

Output arguments: none

-

Return value: none

-

uint64_t GetSpanId()

-

Obtains the span ID from the current HiTraceId object.

-

Input arguments: none

-

Output arguments: none

-

Return value: Returns the current span ID.

-

void SetSpanId(uint64_t spanId)

-

Sets the span ID in the HiTraceId object.

-

Input arguments:

-
  • spanId: Indicates the span ID.
-

Output arguments: none

-

Return value: none

-

uint64_t GetParentSpanId()

-

Obtains the parent span ID from the current HiTraceId object.

-

Input arguments: none

-

Output arguments: none

-

Return value: Returns the parent span ID.

-

void SetParentSpanId(uint64_t parentSpanId)

-

Sets the parent span ID in the HiTraceId object.

-

Input arguments:

-
  • parentSpanId: Indicates the parent span ID.
-

Output arguments: none

-

Return value: none

-

int ToBytes(uint8_t* pIdArray, int len)

-

Converts the HiTraceId object into a byte array to facilitate caching or communication transfer.

-

Input arguments:

-
  • pIdArray: Indicates the pointer to a byte array. The minimum length of the byte array is HITRACE_ID_LEN.
  • len: Indicates the length of the byte array.
-

Output arguments

-
  • pIdArray: Indicates the pointer to a byte array. If the object is valid, the object data after conversion is stored.
-

Return value: Returns a value greater than 0 (indicating a valid array of object data) if the conversion is successful; returns 0 otherwise.

-
- -## Call Chain Processing - -Inter-device, inter-process, and inter-thread calls are implemented through the communication mechanism. **HiTraceChain** requires transfer of **traceid** in the communication mechanism. - -Some built-in communication mechanisms \(such as ZIDL\) of OpenHarmony already support the transfer of **traceid**. - -The following figure shows the process of transferring **traceid** in synchronous call. The process of transferring **traceid** in asynchronous call is similar. - -Extended communication mechanisms can also follow this implementation. - -**Figure 5** Call chain tracing in synchronous communication - -![](figures/call-chain-tracing-in-synchronous-communication.png "call-chain-tracing-in-synchronous-communication") + **Table 2** Trace flag combination types + +| **Name**| **Value**| **Description**| +| -------- | -------- | -------- | +| HITRACE_FLAG_DEFAULT | 0 | Default flag. | +| HITRACE_FLAG_INCLUDE_ASYNC | 1 | Asynchronous call flag. By default, only synchronous calls are traced. If this flag is set, both synchronous and asynchronous calls will be traced. | +| HITRACE_FLAG_DONOT_CREATE_SPAN | 1 << 1 | No span flag. By default, spans are created within a trace of synchronous and asynchronous service calls. If this flag is set, no spans are created. | +| HITRACE_FLAG_TP_INFO | 1 << 2 | Trace point flag. By default, no trace point is added when trace is enabled. This flag is used for debugging. If this flag is set, trace points will be automatically added on the TX and RX sides of synchronous and asynchronous calls to output trace point and timestamp information. Trace points are classified into four types: client send (CS), server receive (SR), server send (SS), and client receive (CR). For a synchronous call, the output trace points are CS, SR, SS, and CR; for an asynchronous call, the output trace points are CS, SR, and SS. | +| HITRACE_FLAG_NO_BE_INFO | 1 << 3 | No begin/end flag. By default, information about the start and end of the trace task is printed. If this flag is set, information about the start and end of the trace task will not be printed.| +| HITRACE_FLAG_DONOT_ENABLE_LOG | 1 << 4 | Log association flag. If this flag is set, information about the trace task will not be printed. | +| HITRACE_FLAG_FAULT_TRIGGER | 1 << 5 | Failure trigger flag. This flag is reserved for future use. | +| HITRACE_FLAG_D2D_TP_INFO | 1 << 6 | Device-to-device trace point flag. It is a subset of **TP_INFO**. If this flag is set, trace points are added only for call chain trace between devices.| + + **Table 3** Trace point types + +| **Name**| **Value**| **Description**| +| -------- | -------- | -------- | +| HITRACE_TP_CS | 0 | CS trace point. | +| HITRACE_TP_CR | 1 | CR trace point. | +| HITRACE_TP_SS | 2 | SS trace point. | +| HITRACE_TP_SR | 3 | SR trace point. | +| HITRACE_TP_GENERAL | 4 | General trace points except CS, CR, SS, and SR.| + + **Table 4** Communication modes + +| **Name**| **Value**| **Description**| +| -------- | -------- | -------- | +| HITRACE_CM_DEFAULT | 0 | Default communication mode. | +| HITRACE_CM_THREAD | 1 | Inter-thread communication. | +| HITRACE_CM_PROCESS | 2 | Inter-process communication. | +| HITRACE_CM_DEVICE | 3 | Inter-device communication. | + + **Table 5** Description of C++ APIs + +| **Class**| **API**| **Description**| +| -------- | -------- | -------- | +| HiTraceChain | HiTraceId Begin(const std::string& name, int flags) | Starts HiTraceChain, generates a **HiTraceId** object, and sets it in the TLS of the calling thread.
Input arguments:
- **name**: name of the service process.
- **flags**: trace flags, which can be used in combination. For details, see Table 2.
Output arguments: none
Return value: a valid **HiTraceId** object if call chain trace is triggered successfully; returns an invalid object otherwise.
Note: In nested trace mode, an invalid object will be returned if trace is started at the nested layer.| +| | void End(const HiTraceId& id) | Stops HiTraceChain based on the **HiTraceId** object returned by the **Begin** API, and clears the **HiTraceId** object in the TLS of the calling thread.
Input arguments:
- **id**: **HiTraceId** object.
Output arguments: none
Return value: none| +| | HiTraceId GetId(); | Obtains the **HiTraceId** object from the TLS of the calling thread.
Input arguments: none
Output arguments: none
Return value: **HiTraceId** object in the contextual TLS of the calling thread.| +| | void SetId(const HiTraceId& id) | Purpose: Sets the **HiTraceId** object in the TLS of the calling thread.
Input arguments:
- **id**: **HiTraceId** object.
Output arguments: none
Return value: none| +| | void ClearId() | Clears the **HiTraceId** object in the TLS of the calling thread.
Input arguments: none
Output arguments: none
Return value: none| +| | HiTraceId CreateSpan() | Obtains the span ID from the current **HiTraceId** object.
Input arguments: none
Output arguments: none
Return value: current span ID.| +| | void Tracepoint(HiTraceTracepointType type, const HiTraceId& id, const char* fmt, ...) | Outputs HiTraceChain trace point information based on the information type. The information includes the timestamp and **HiTraceId** object of the span.
Input arguments:
- **type**: trace point type. For details, see Table 3.
- **id**: ID of the current span.
- **fmt**: string describing the format variable parameter.
- **args**: variable parameter.
Output arguments: none
Return value: none| +| | void Tracepoint(HiTraceCommunicationMode mode, HiTraceTracepointType type, const HiTraceId& id, const char* fmt, ...) | Outputs HiTraceChain trace point information based on the communication mode and information type. The information includes the timestamp and **HiTraceId** object of the span.
Input arguments:
- **mode**: communication mode. For details, see Table 4.
- **type**: trace point type. For details, see Table 3.
- **id**: ID of the current span.
- **fmt**: string describing the format variable parameter.
- **args**: variable parameter.
Output arguments: none
Return value: none| +| HiTraceId | HiTraceId(); | Represents the default constructor used to generate an invalid **HiTraceId** object.
Input arguments: none
Output arguments: none
Return value: none| +| | HiTraceId(const uint8_t* pIdArray, int len) | Represents the constructor used to create a **HiTraceId** object based on the specified byte array.
Input arguments:
- **pIdArray**: pointer to a byte array.
- **len**: length of the byte array.
Output arguments: none
Return value: none| +| | bool IsValid() | Checks whether the **HiTraceId** object is valid.
Input arguments: none
Output arguments: none
Return value: **true** if the **HiTraceId** object is valid; **false** otherwise.| +| | bool IsFlagEnabled(HiTraceFlag flag) | Checks whether the trace flag of the **HiTraceId** object is enabled.
Input arguments:
- **flag**: trace flag. For details, see the description in the **Begin** function.
Output arguments: none
Return value: **true** if the trace flag is enabled; **false** otherwise.| +| | void EnableFlag(HiTraceFlag flag) | Enables the trace flag of the **HiTraceId** object.
Input arguments:
- **flag**: trace flag. For details, see the description in the **Begin** function.
Output arguments: none
Return value: none| +| | int GetFlags() | Obtains the trace flag set in the **HiTraceId** object.
Input arguments: none
Output arguments: none
Return value: Returns the combination of trace flags. For details, see the description in the **Begin** function.| +| | void SetFlags(int flags) | Sets a trace flag in the **HiTraceId** object.
Input arguments:
- **flags**: combination of trace flags. For details, see the description in the **Begin** function.
Output arguments: none
Return value: none| +| | uint64_t GetChainId() | Obtains the call chain ID.
Input arguments: none
Output arguments: none
Return value: call chain ID.| +| | void SetChainId(uint64_t chainId) | Sets the call chain ID in the **HiTraceId** object.
Input arguments:
- **chainId**: call chain ID.
Output arguments: none
Return value: none| +| | uint64_t GetSpanId() | Obtains the span ID from the current **HiTraceId** object.
Input arguments: none
Output arguments: none
Return value: current span ID.| +| | void SetSpanId(uint64_t spanId) | Sets the span ID in the **HiTraceId** object.
Input arguments:
- **spanId**: span ID.
Output arguments: none
Return value: none| +| | uint64_t GetParentSpanId() | Obtains the parent span ID from the current **HiTraceId** object.
Input arguments: none
Output arguments: none
Return value: parent span ID.| +| | void SetParentSpanId(uint64_t parentSpanId) | Sets the parent span ID in the **HiTraceId** object.
Input arguments:
- **parentSpanId**: parent span ID.
Output arguments: none
Return value: none| +| | int ToBytes(uint8_t* pIdArray, int len) | Converts the **HiTraceId** object into a byte array to facilitate caching or communication transfer.
Input arguments:
- **pIdArray**: pointer to a byte array. The minimum length of the byte array is **HITRACE_ID_LEN**.
- **len**: length of the byte array.
Output parameters:
- **pIdArray**: pointer to a byte array. If the object is valid, the object data after conversion is stored.
Return value: a value greater than **0** (indicating a valid array of object data) if the conversion is successful; **0** otherwise.| + + +### Call Chain Processing + +Inter-device, inter-process, and inter-thread calls are implemented through the communication mechanism. HiTraceChain requires transfer of **traceid** in the communication mechanism. + +Some built-in communication mechanisms (such as ZIDL) of OpenHarmony already support the transfer of **traceid**. + +The following figure shows the process of transferring **traceid** in synchronous call. The process of transferring **traceid** in asynchronous call is similar. + + Extended communication mechanisms can also follow this implementation. + + **Figure 5** Call chain trace in synchronous communication + + ![](figures/call-chain-trace-in-synchronous-communication.png "call-chain-trace-in-synchronous-communication") The process is as follows: -1. The service module on the client calls the **begin\(\)** function to start call chain tracing. -2. The service module on the client synchronously calls the **transact** function to the communication component on the client. -3. The communication component on the client performs the following: - 1. Obtains **traceid** from the TLS of the calling thread. - 2. Generates child **traceid**. - 3. Writes child **traceid** into the transaction data \(synchronous communication data\). - 4. Performs Client Send \(CS\) tracing. - 5. Sends communication data to the communication component on the server. - -4. On receiving the communication data, the communication component on the server performs the following: - 1. Obtains **traceid** from the data message package. - 2. Sets **traceid** in the TLS of the calling thread. - 3. Performs Server Receive \(SR\) tracing. - 4. Synchronously call the **onTransact** callback to the service module on the server. - -5. The service module on the server processes the service and sends the transact reply message carrying the processing result to the communication component. -6. The communication component on the server performs the following: - 1. Performs Server Send \(SS\) tracing. - 2. Sends communication data to the communication component on the client. - 3. Clears **traceid** from the TLS of the calling thread. - -7. On receiving the communication data, the communication component on the client performs the following: - 1. Performs Client Receive \(CR\) tracing. - 2. Sends a transact reply response to the service module on the client. - -8. The service module on the client processes the transact reply response. -9. When the process ends, the service module on the client calls the **end\(\)** function to stop call chain tracing. - -## How to Develop - -### C++ - -1. Develop the source code. +1. The service module on the client calls the **begin()** function to start call chain trace. - Include the **hitracechain** header file in the class definition header file or class implementation source file. For example: +2. The service module on the client synchronously calls the **transact** function to the communication component on the client. - ``` - #include "hitrace/tracechain.h" - ``` +3. The communication component on the client performs the following: + 1. Obtains **traceid** from the TLS of the calling thread. + 2. Generates child **traceid**. + 3. Writes child **traceid** into the transaction data (synchronous communication data). + 4. Performs CS trace. + 5. Sends communication data to the communication component on the server. - Add the code to start and stop call chain tracing in the class implementation source file. +4. On receiving the communication data, the communication component on the server performs the following: + 1. Obtains **traceid** from the data message package. + 2. Sets **traceid** in the TLS of the calling thread. + 3. Performs SR trace. + 4. Synchronously calls the **onTransact** callback to the service module on the server. - ``` - using namespace OHOS::HiviewDFX; - auto traceId = HiTraceChain::Begin("MyServiceFlow", HITRACE_FLAG_DEFAULT); - ... - HiTraceChain::End(traceId); - ``` +5. The service module on the server processes the service and sends the transact reply message carrying the processing result to the communication component. -2. Configure compilation information. Specifically, add the subsystem SDK dependency to **BUILD.gn**. +6. The communication component on the server performs the following: + 1. Performs SS trace. + 2. Sends communication data to the communication component on the client. + 3. Clears **traceid** from the TLS of the calling thread. - ``` - external_deps = [ "hiviewdfx:libhitracechain" ] - ``` +7. On receiving the communication data, the communication component on the client performs the following: + 1. Performs CR trace. + 2. Sends a transact reply response to the service module on the client. +8. The service module on the client processes the transact reply response. -### C +9. When the process ends, the service module on the client calls the **end()** function to stop call chain trace. -1. Develop the source code. - Include the **hitracechain** header file in the source file. - - ``` - #include "hitrace/tracechain.h" - ``` - - Add the code to start and stop call chain tracing in the class implementation source file. - - ``` - HiTraceIdStruct traceId = HiTraceChainBegin("MyServiceFlow", HITRACE_FLAG_DEFAULT); - ... - HiTraceChainEnd(traceId); - ``` - -2. Configure compilation information. Specifically, add the subsystem SDK dependency to **BUILD.gn**. - - ``` - external_deps = [ "hiviewdfx:libhitracechain" ] - ``` +## How to Develop +### **C++** + +1. Develop the source code. + Include the **hitracechain** header file in the class definition header file or class implementation source file. For example: + + ``` + #include "hitrace/tracechain.h" + ``` + + Add the code to start and stop call chain trace in the class implementation source file. + + ``` + using namespace OHOS::HiviewDFX; + auto traceId = HiTraceChain::Begin("MyServiceFlow", HITRACE_FLAG_DEFAULT); + ...... + HiTraceChain::End(traceId); + ``` + +2. Configure compilation information. Specifically, add the subsystem SDK dependency to **BUILD.gn**. + + ``` + external_deps = [ "hiviewdfx:libhitracechain" ] + ``` + + +### **C** + +1. Develop the source code. + Include the **hitracechain** header file in the source file. + + ``` + #include "hitrace/tracechain.h" + ``` + + Add the code to start and stop call chain trace in the class implementation source file. + + ``` + HiTraceIdStruct traceId = HiTraceChainBegin("MyServiceFlow", HITRACE_FLAG_DEFAULT); + ...... + HiTraceChainEnd(traceId); + ``` + +2. Configure compilation information. Specifically, add the subsystem SDK dependency to **BUILD.gn**. + + ``` + external_deps = [ "hiviewdfx:libhitracechain" ] + ``` diff --git a/en/device-dev/subsystems/subsys-dfx-hitracemeter.md b/en/device-dev/subsystems/subsys-dfx-hitracemeter.md index e80731582852658e6a65c6fc8f8d7cb66ca746a0..bb609b7369d03ae82b7782421c3ec96344bcc840 100644 --- a/en/device-dev/subsystems/subsys-dfx-hitracemeter.md +++ b/en/device-dev/subsystems/subsys-dfx-hitracemeter.md @@ -2,7 +2,7 @@ ## Introduction -HiTraceMeter is the OpenHarmony subsystem that provides APIs to implement call chain trace throughout a service process. With HiTraceMeter, you can quickly obtain the run log specific to the call chain of a service process and locate faults in inter-device, inter-process, or inter-thread communications. HiTraceMeter supports event logging in user mode and can collect trace data in user mode and kernel mode for performance tracing and analysis. +HiTraceMeter is the OpenHarmony subsystem that provides APIs to implement call chain trace throughout a service process. With HiTraceMeter, you can quickly obtain the run log specific to the call chain of a service process and locate faults in inter-device, inter-process, or inter-thread communications. HiTraceMeter supports event logging in user mode and can collect trace data in user mode and kernel mode for performance trace and analysis. ## Basic Concepts @@ -12,7 +12,7 @@ The HiTraceMeter subsystem consists of three parts: - hitrace CLI tool for data collection - smartperf tool for graphical data analysis -Wherein, HiTraceMeter APIs and the hitrace CLI tool run on the device side, and the smartperf tool runs on the PC side. HiTraceMeter APIs are provided in C++ and JS for event logging, which aims to generate the trace data necessary for performance tracing and analysis during the development process. +Wherein, HiTraceMeter APIs and the hitrace CLI tool run on the device side, and the smartperf tool runs on the PC side. HiTraceMeter APIs are provided in C++ and JS for event logging, which aims to generate the trace data necessary for performance trace and analysis during the development process. The hitrace CLI tool is used to collect trace data. It captures trace data flows and saves the data as a text file. @@ -348,4 +348,4 @@ You can set **-t** to **60** and **-b** to **204800** to increase the trace time # Reference -For details about HiTraceMeter, see [hiviewdfx_hitrace: Lightweight Distributed Tracing](https://gitee.com/openharmony/hiviewdfx_hitrace). +For details about HiTraceMeter, see [hiviewdfx_hitrace: Lightweight Distributed Trace](https://gitee.com/openharmony/hiviewdfx_hitrace). diff --git a/en/device-dev/subsystems/subsys-dfx-overview.md b/en/device-dev/subsystems/subsys-dfx-overview.md index b7487c10632d95533a94b29c78a340fbb808d17c..623ed60d365a662b8e11bb6b8489128481eabe2f 100644 --- a/en/device-dev/subsystems/subsys-dfx-overview.md +++ b/en/device-dev/subsystems/subsys-dfx-overview.md @@ -1,36 +1,47 @@ -# DFX Overview +# DFX Overview -[Design for X](https://en.wikipedia.org/wiki/Design_for_X) \(DFX\) refers to the software design that aims to improve the quality attributes in OpenHarmony. It mainly consists of two parts: design for reliability \(DFR\) and design for testability \(DFT\). + +## Introduction + +[Design for X](https://en.wikipedia.org/wiki/Design_for_X) \(DFX\) refers to the software design that aims to improve the quality attributes in OpenHarmony. It mainly consists of two parts: design for reliability \(DFR\) and design for testability \(DFT\). The DFX subsystem provides the following functions: -- HiLog: implements the logging function. It is applicable to mini-system devices \(reference memory ≥ 128 KiB\), small-system devices \(reference memory ≥ 1 MiB\), and standard-system devices \(reference memory ≥ 128 MB\). -- HiTraceChain: implements distributed call chain tracing. It is applicable to standard-system devices \(reference memory ≥ 128 MiB\). +- HiLog: implements the logging function. It is applicable to mini-system devices \(reference memory ≥ 128 KiB\), small-system devices \(reference memory ≥ 1 MiB\), and standard-system devices \(reference memory ≥ 128 MiB\). + +- HiTraceChain: implements distributed call chain trace. It is applicable to standard-system devices \(reference memory ≥ 128 MiB\). + - HiTraceMeter: implements performance trace. It is applicable to standard-system devices \(reference memory ≥ 128 MiB\). + - HiCollie: implements thread suspension detection. It is applicable to standard-system devices \(reference memory ≥ 128 MiB\). + - HiSysEvent: implements system event logging. It is applicable to standard-system devices \(reference memory ≥ 128 MiB\). + - HiDumper: exports system information. It is applicable to standard-system devices \(reference memory ≥ 128 MiB\). -- FaultLogger: implements crash detection. It is applicable to standard-system devices \(reference memory ≥ 128 MiB\). + +- Faultlogger: implements crash detection. It is applicable to standard-system devices \(reference memory ≥ 128 MiB\). + - Hiview: implements device maintenance across different platforms. It is applicable to standard-system devices \(reference memory ≥ 128 MiB\). -- HiAppEvent and HiChecker are only hap developer oriented。 + +- HiAppEvent and HiChecker are applicable only for HAP developers. ![dfx features overview](figure/dfx-overview.png) -## Basic Concepts +## Basic Concepts **Logging** Logging means to record the log information generated during system running so you can understand the running process and status of the system or applications. -**Distributed call chain tracing** +**Distributed call chain trace** -In a distributed system, the initiation of a service may involve multiple software modules, with control commands and data transmitted over intra-process, inter-process, and inter-device communication interfaces. To help you understand such complex communication processes and locate service faults efficiently, the DFX subsystem provides a distributed call chain tracing framework. +In a distributed system, the initiation of a service may involve multiple software modules, with control commands and data transmitted over intra-process, inter-process, and inter-device communication interfaces. To help you understand such complex communication processes and locate service faults efficiently, the DFX subsystem provides a distributed call chain trace framework. **Thread suspension detection** -If a thread is trapped in an infinite loop or the kernel state \(for example, Uninterruptable Sleep, Traced, Zombie, or synchronous wait\) when it is running, the thread cannot respond to normal service requests and cannot detect and recover from faults by itself. To detect and locate this type of faults, the DFX subsystem provides a simple watchdog mechanism by inserting detection probes to the process nodes that are prone to suspension. This ensures that suspension faults can be detected and logs can be collected. +If a thread is trapped in an infinite loop or the kernel state (for example, Uninterruptable Sleep, Traced, Zombie, or synchronous wait) when it is running, the thread cannot respond to normal service requests and cannot detect and recover from faults by itself. To detect and locate this type of faults, the DFX subsystem provides a simple watchdog mechanism by inserting detection probes to the process nodes that are prone to suspension. This ensures that suspension faults can be detected and logs can be collected. -**Event logging** +**Logging** Event logging means to collect and log events reported during system running. The log information will help you better analyze the product usage. diff --git a/en/device-dev/subsystems/subsys-usbservice-demo.md b/en/device-dev/subsystems/subsys-usbservice-demo.md deleted file mode 100644 index e78028f32a2f5b20d27267809d35b6bdcd1a0369..0000000000000000000000000000000000000000 --- a/en/device-dev/subsystems/subsys-usbservice-demo.md +++ /dev/null @@ -1,185 +0,0 @@ -# USB Usage Example - - -```cpp -#include -#include -#include -#include -#include -#include -#include "if_system_ability_manager.h" -#include "ipc_skeleton.h" -#include "iremote_object.h" -#include "iservice_registry.h" -#include "iusb_srv.h" -#include "string_ex.h" -#include "system_ability_definition.h" -#include "usb_common.h" -#include "usb_device.h" -#include "usb_errors.h" -#include "usb_request.h" -#include "usb_server_proxy.h" -#include "usb_srv_client.h" - -const int32_t REQUESTYPE = ((1 << 7) | (0 << 5) | (0 & 0x1f)); -const int32_t REQUESTCMD = 6; -const int32_t VALUE = (2 << 8) + 0; -const int32_t TIMEOUT = 5000; -const int32_t ITFCLASS = 10; -const int32_t PRAMATYPE = 2; -const int32_t BUFFERLENGTH = 21; - -void GetType(OHOS::USB::USBEndpoint &tep, OHOS::USB::USBEndpoint &outEp, bool &outEpFlg) -{ - if ((tep.GetType() == PRAMATYPE)) { - if (tep.GetDirection() == 0) { - outEp = tep; - outEpFlg = true; - } - } -} - -bool SelectEndpoint(OHOS::USB::USBConfig config, - std::vector interfaces, - OHOS::USB::UsbInterface &interface, - OHOS::USB::USBEndpoint &outEp, - bool &outEpFlg) -{ - for (int32_t i = 0; i < config.GetInterfaceCount(); ++i) { - OHOS::USB::UsbInterface tif = interfaces[i]; - std::vector mEndpoints = tif.GetEndpoints(); - for (int32_t j = 0; j < tif.GetEndpointCount(); ++j) { - OHOS::USB::USBEndpoint tep = mEndpoints[j]; - if ((tif.GetClass() == ITFCLASS) && (tif.GetSubClass() == 0) && (tif.GetProtocol() == PRAMATYPE)) { - GetType(tep, outEp, outEpFlg); - } - } - if (outEpFlg) { - interface = interfaces[i]; - return true; - } - std::cout << std::endl; - } - return false; -} - -int OpenDeviceTest(OHOS::USB::UsbSrvClient &Instran, OHOS::USB::UsbDevice device, OHOS::USB::USBDevicePipe &pip) -{ - int ret = Instran.RequestRight(device.GetName()); - std::cout << "device RequestRight ret = " << ret << std::endl; - if (0 != ret) { - std::cout << "device RequestRight failed = " << ret << std::endl; - } - ret = Instran.OpenDevice(device, pip); - return ret; -} - -int CtrTransferTest(OHOS::USB::UsbSrvClient &Instran, OHOS::USB::USBDevicePipe &pip) -{ - std::cout << "usb_device_test : << Control Transfer >> " << std::endl; - std::vector vData; - const OHOS::USB::UsbCtrlTransfer tctrl = {REQUESTYPE, REQUESTCMD, VALUE, 0, TIMEOUT}; - int ret = Instran.ControlTransfer(pip, tctrl, vData); - if (ret != 0) { - std::cout << "control message read failed width ret = " << ret << std::endl; - } else { - } - std::cout << "control message read success" << std::endl; - - return ret; -} - -int ClaimTest(OHOS::USB::UsbSrvClient &Instran, - OHOS::USB::USBDevicePipe &pip, - OHOS::USB::UsbInterface &interface, - bool interfaceFlg) -{ - if (interfaceFlg) { - std::cout << "ClaimInterface InterfaceInfo:" << interface.ToString() << std::endl; - int ret = Instran.ClaimInterface(pip, interface, true); - if (ret != 0) { - std::cout << "ClaimInterface failed width ret = " << ret << std::endl; - } else { - std::cout << "ClaimInterface success" << std::endl; - } - } - return 0; -} - -int BulkTransferTest(OHOS::USB::UsbSrvClient &Instran, - OHOS::USB::USBDevicePipe &pip, - OHOS::USB::USBEndpoint &outEp, - bool interfaceFlg, - bool outEpFlg) -{ - if (interfaceFlg) { - std::cout << "usb_device_test : << Bulk transfer start >> " << std::endl; - if (outEpFlg) { - uint8_t buffer[50] = "hello world 123456789"; - std::vector vData(buffer, buffer + BUFFERLENGTH); - int ret = Instran.BulkTransfer(pip, outEp, vData, TIMEOUT); - if (ret != 0) { - std::cout << "Bulk transfer write failed width ret = " << ret << std::endl; - } else { - std::cout << "Bulk transfer write success" << std::endl; - } - return ret; - } - } - return 0; -} - -int main(int argc, char **argv) -{ - std::cout << "usb_device_test " << std::endl; - static OHOS::USB::UsbSrvClient &Instran = OHOS::USB::UsbSrvClient::GetInstance(); - // GetDevices - std::vector deviceList; - int32_t ret = Instran.GetDevices(deviceList); - if (ret != 0) { - return OHOS::USB::UEC_SERVICE_INVALID_VALUE; - } - if (deviceList.empty()) { - return OHOS::USB::UEC_SERVICE_INVALID_VALUE; - } - - OHOS::USB::UsbDevice device = deviceList[0]; - std::vector configs = device.GetConfigs(); - OHOS::USB::USBConfig config = configs[0]; - std::vector interfaces = config.GetInterfaces(); - OHOS::USB::UsbInterface interface; - OHOS::USB::USBEndpoint outEp; - bool interfaceFlg = false; - bool outEpFlg = false; - interfaceFlg = SelectEndpoint(config, interfaces, interface, outEp, outEpFlg); - - // OpenDevice - std::cout << "usb_device_test : << OpenDevice >> test begin -> " << std::endl; - OHOS::USB::USBDevicePipe pip; - ret = OpenDeviceTest(Instran, device, pip); - if (ret != 0) { - return OHOS::USB::UEC_SERVICE_INVALID_VALUE; - } - - // ControlTransfer - CtrTransferTest(Instran, pip); - - // ClaimInterface - ClaimTest(Instran, pip, interface, interfaceFlg); - - // BulkTransferWrite - BulkTransferTest(Instran, pip, outEp, interfaceFlg, outEpFlg); - - // CloseDevice - std::cout << "usb_device_test : << Close Device >> " << std::endl; - ret = Instran.Close(pip); - if (ret == 0) { - std::cout << "Close device failed width ret = " << ret << std::endl; - return OHOS::USB::UEC_SERVICE_INVALID_VALUE; - } else { - std::cout << "Close Device success" << std::endl; - } - return 0; -} -``` diff --git a/en/device-dev/subsystems/subsys-usbservice-guide.md b/en/device-dev/subsystems/subsys-usbservice-guide.md deleted file mode 100644 index 8f95d32cb3f671474f961ffc728729a86585c6dd..0000000000000000000000000000000000000000 --- a/en/device-dev/subsystems/subsys-usbservice-guide.md +++ /dev/null @@ -1,55 +0,0 @@ -# USB Usage Guidelines - - -The following procedure uses bulk transfer as an example. - -## Procedure - -1. Obtain a USB service instance. - -```cpp -static OHOS::USB::UsbSrvClient &g_usbClient = OHOS::USB::UsbSrvClient::GetInstance(); -``` - -2. Obtain the USB device list. - -```cpp -std::vector deviceList; -int32_t ret = g_usbClient.GetDevices(deviceList); -``` - -3. Apply for device access permissions. - -```cpp -int32_t ret = g_usbClient.RequestRight(device.GetName()); -``` - -4. Open the USB device. - -```cpp -USBDevicePipe pip; -int32_t et = g_usbClient.OpenDevice(device, pip); -``` - -5. Configure the USB interface. - -```cpp -ret = g_usbClient.ClaimInterface(pip, interface, true); // **interface** indicates an interface of the USB device in **deviceList**. -``` - -6. Transfer data. - -```cpp -srvClient.BulkTransfer(pipe, endpoint, vdata, timeout); -``` -Parameter description: -- **pipe**: pipe for data transfer of the USB device opened. -- **endpoint**: endpoint for data transfer on the USB device. -- **vdata**: binary data block to be transferred or read. -- **timeout**: timeout duration of data transfer. - -7. Close the USB device. - -```cpp -ret = g_usbClient.Close(pip); -``` diff --git a/en/device-dev/subsystems/subsys-usbservice-overview.md b/en/device-dev/subsystems/subsys-usbservice-overview.md deleted file mode 100644 index e4cc9c9ccd95ee4f8d72f949b778360cae860c1a..0000000000000000000000000000000000000000 --- a/en/device-dev/subsystems/subsys-usbservice-overview.md +++ /dev/null @@ -1,338 +0,0 @@ -# USB - -## Introduction - -### Function Description - -USB devices are classified into two types: USB host and USB device. On OpenHarmony, you can use the port service to switch between the host mode and device mode. In host mode, you can obtain the list of connected USB devices, manage device access permissions, and perform bulk transfer or control transfer between the host and connected devices. In device mode, you can switch between functions including HDC (debugging), ACM (serial port), and ECM (Ethernet port). - -### Basic Concepts - -- USB service - - An abstraction of underlying hardware-based USB devices. Your application can access the USB devices via the USB service. With the APIs provided by the USB service, you can obtain the list of connected USB devices, manage device access permissions, and perform data transfer or control transfer between the host and connected devices. - -- USB API - - A collection of JS APIs provided for the upper layer through NAPI. Your application can use USB APIs to implement various basic functions, for example, query of the USB device list, USB device plug notification, USB host and device mode switching, bulk transfer, control transfer, right management, and function switching in device mode. - -- USB Service layer - - A layer implemented by using the C++ programming language. It consists of four modules: Host, Device, Port, and Right. HDI-based APIs provided by USB Service are mainly used to implement management of USB device list, USB functions, USB ports, and USB device access permissions. The USB Service layer interacts with the HAL layer to receive, parse, and distribute data, manages foreground and background policies, and performs USB device management and right control. - -- USB HAL layer - - A layer implemented by using the C programming language. Based on the Host Driver Development Kit (SDK) and Device DDK, USB HAL encapsulates basic USB device operations, provides C++ APIs for the upper layer, and receives information from the kernel through the Hardware Driver Foundation (HDF) framework. - -### Working Principles - -The USB subsystem logically consists of three parts: USB API, USB Service, and USB HAL. The following figure shows how the USB service is implemented. - - **Figure 1** USB service architecture - ![USB service architecture](figures/en-us_image_0000001267088285.png) - -- USB API: provides USB APIs that implement various basic functions, for example, query of the USB device list, bulk data transfer, control transfer, and right management. - -- USB Service: receives, parses, and distributes Hardware Abstraction Layer (HAL) data, manages and controls foreground and background policies, and manages devices. - -- USB HAL: provides driver capability APIs that can be directly called in user mode. - -## Usage Guidelines - -### When to Use - -In Host mode, you can obtain the list of connected devices, enable or disable the devices, manage device access permissions, and perform data transfer or control transfer. - -### APIs - - **Table 1** Host-specific APIs - -| API | Description | -| ------------------------------------------------------------ | ------------------------------------------------------------ | -| int32_t OpenDevice(const UsbDevice &device, USBDevicePipe &pip); | Opens a USB device to set up a connection. | -| bool HasRight(std::string deviceName); | Checks whether the application has the permission to access the device. | -| int32_t RequestRight(std::string deviceName); | Requests the temporary permission for a given application to access the USB device. | -| int32_t GetDevices(std::vector &deviceList); | Obtains the USB device list. | -| int32_t ClaimInterface(USBDevicePipe &pip, const UsbInterface &interface, bool force); | Claims a USB interface exclusively. This must be done before data transfer. | -| int32_t ReleaseInterface(USBDevicePipe &pip, const UsbInterface &interface); | Releases a USB interface. This is usually done after data transfer. | -| int32_t BulkTransfer(USBDevicePipe &pip, const USBEndpoint &endpoint, std::vector &vdata, int32_t timeout); | Performs a bulk transfer on a specified endpoint. The data transfer direction is determined by the endpoint direction.| -| int32_t ControlTransfer(USBDevicePipe &pip, const UsbCtrlTransfer &ctrl, std::vector &vdata); | Performs control transfer for endpoint 0 of the device. The data transfer direction is determined by the request type. | -| int32_t SetConfiguration(USBDevicePipe &pip, const USBConfig &config); | Sets the current configuration of the USB device. | -| int32_t SetInterface(USBDevicePipe &pipe, const UsbInterface &interface); | Sets the alternate settings for the specified USB interface. This allows you to switch between two interfaces with the same ID but different alternate settings.| -| int32_t GetRawDescriptors(std::vector &vdata); | Obtains the raw USB descriptor. | -| int32_t GetFileDescriptor(); | Obtains the file descriptor. | -| bool Close(const USBDevicePipe &pip); | Closes a USB device to release all system resources related to the device. | -| int32_t PipeRequestWait(USBDevicePipe &pip, int64_t timeout, UsbRequest &req); | Obtains the isochronous transfer result. | -| int32_t RequestInitialize(UsbRequest &request); | Initializes the isochronous transfer request. | -| int32_t RequestFree(UsbRequest &request); | Frees the isochronous transfer request. | -| int32_t RequestAbort(UsbRequest &request); | Cancels the data transfer request to be processed. | -| int32_t RequestQueue(UsbRequest &request); | Sends or receives requests for isochronous transfer on a specified endpoint. The data transfer direction is determined by the endpoint direction.| -| int32_t RegBulkCallback(USBDevicePipe &pip, const USBEndpoint &endpoint, const sptr &cb); | Registers an asynchronous callback for bulk transfer. | -| int32_t UnRegBulkCallback(USBDevicePipe &pip, const USBEndpoint &endpoint); | Unregisters the asynchronous callback for bulk transfer. | -| int32_t BulkRead(USBDevicePipe &pip, const USBEndpoint &endpoint, sptr &ashmem); | Reads data asynchronously during bulk transfer. | -| int32_t BulkWrite(USBDevicePipe &pip, const USBEndpoint &endpoint, sptr &ashmem); | Writes data asynchronously during bulk transfer. | -| int32_t BulkCancel(USBDevicePipe &pip, const USBEndpoint &endpoint); | Cancels bulk transfer. The asynchronous read and write operations on the current USB interface will be cancelled. | - - **Table 2** Device-specific APIs - -| API | Description | -| -------------------------------------------------- | ------------------------------------------------------ | -| int32_t GetCurrentFunctions(int32_t &funcs); | Obtains the numeric mask combination for the current USB function list in Device mode. | -| int32_t SetCurrentFunctions(int32_t funcs); | Sets the current USB function list in Device mode. | -| int32_t UsbFunctionsFromString(std::string funcs); | Converts the string descriptor of a given USB function list to a numeric mask combination.| -| std::string UsbFunctionsToString(int32_t funcs); | Converts the numeric mask combination of a given USB function list to a string descriptor.| - - **Table 3** Port-specific APIs - -| API | Description | -| ------------------------------------------------------------ | -------------------------------------------------------- | -| int32_t GetSupportedModes(int32_t portId, int32_t &supportedModes); | Obtains the mask combination for the supported mode list of a given port. | -| int32_t SetPortRole(int32_t portId, int32_t powerRole, int32_t dataRole); | Sets the role types supported by a specified port, which can be **powerRole** (for charging) and **dataRole** (for data transfer).| -| int32_t GetPorts(std::vector &usbPorts); | Obtains the USB port descriptor list. | - -### How to Use - -The following uses bulk transfer as an example to illustrate the development procedure. - -1. Obtain a USB service instance. - - ```cpp - static OHOS::USB::UsbSrvClient &g_usbClient = OHOS::USB::UsbSrvClient::GetInstance(); - ``` - -2. Obtain the USB device list. - - ```cpp - std::vector deviceList; - int32_t ret = g_usbClient.GetDevices(deviceList); - ``` - -3. Apply for device access permissions. - - ```cpp - int32_t ret = g_usbClient.RequestRight(device.GetName()); - ``` - -4. Open a camera device. - - ```cpp - USBDevicePipe pip; - int32_t et = g_usbClient.OpenDevice(device, pip); - ``` - -5. Configure the USB interface. - - ```cpp - // interface indicates an interface of the USB device in deviceList. - ret = g_usbClient.ClaimInterface(pip, interface, true); - ``` - -6. Perform data transfer. - - ```cpp - // pipe indicates the pipe for data transfer after the USB device is opened. endpoint indicates the endpoint for data transfer on the USB device. vdata indicates the binary data block to be transferred or read. timeout indicates the timeout duration of data transfer. - srvClient.BulkTransfer(pipe, endpoint, vdata, timeout); - ``` - -7. Closes a device. - - ```cpp - ret = g_usbClient.Close(pip); - ``` - -### Sample Code - -```cpp -#include -#include -#include -#include -#include -#include -#include "if_system_ability_manager.h" -#include "ipc_skeleton.h" -#include "iremote_object.h" -#include "iservice_registry.h" -#include "iusb_srv.h" -#include "string_ex.h" -#include "system_ability_definition.h" -#include "usb_common.h" -#include "usb_device.h" -#include "usb_errors.h" -#include "usb_request.h" -#include "usb_server_proxy.h" -#include "usb_srv_client.h" - -const int32_t REQUESTYPE = ((1 << 7) | (0 << 5) | (0 & 0x1f)); -const int32_t REQUESTCMD = 6; -const int32_t VALUE = (2 << 8) + 0; -const int32_t TIMEOUT = 5000; -const int32_t ITFCLASS = 10; -const int32_t PRAMATYPE = 2; -const int32_t BUFFERLENGTH = 21; - -void GetType(OHOS::USB::USBEndpoint &tep, OHOS::USB::USBEndpoint &outEp, bool &outEpFlg) -{ - if ((tep.GetType() == PRAMATYPE)) { - if (tep.GetDirection() == 0) { - outEp = tep; - outEpFlg = true; - } - } -} - -bool SelectEndpoint(OHOS::USB::USBConfig config, - std::vector interfaces, - OHOS::USB::UsbInterface &interface, - OHOS::USB::USBEndpoint &outEp, - bool &outEpFlg) -{ - for (int32_t i = 0; i < config.GetInterfaceCount(); ++i) { - OHOS::USB::UsbInterface tif = interfaces[i]; - std::vector mEndpoints = tif.GetEndpoints(); - for (int32_t j = 0; j < tif.GetEndpointCount(); ++j) { - OHOS::USB::USBEndpoint tep = mEndpoints[j]; - if ((tif.GetClass() == ITFCLASS) && (tif.GetSubClass() == 0) && (tif.GetProtocol() == PRAMATYPE)) { - GetType(tep, outEp, outEpFlg); - } - } - if (outEpFlg) { - interface = interfaces[i]; - return true; - } - std::cout << std::endl; - } - return false; -} - -int OpenDeviceTest(OHOS::USB::UsbSrvClient &Instran, OHOS::USB::UsbDevice device, OHOS::USB::USBDevicePipe &pip) -{ - int ret = Instran.RequestRight(device.GetName()); - std::cout << "device RequestRight ret = " << ret << std::endl; - if (0 != ret) { - std::cout << "device RequestRight failed = " << ret << std::endl; - } - ret = Instran.OpenDevice(device, pip); - return ret; -} - -int CtrTransferTest(OHOS::USB::UsbSrvClient &Instran, OHOS::USB::USBDevicePipe &pip) -{ - std::cout << "usb_device_test : << Control Transfer >> " << std::endl; - std::vector vData; - const OHOS::USB::UsbCtrlTransfer tctrl = {REQUESTYPE, REQUESTCMD, VALUE, 0, TIMEOUT}; - int ret = Instran.ControlTransfer(pip, tctrl, vData); - if (ret != 0) { - std::cout << "control message read failed width ret = " << ret << std::endl; - } else { - } - std::cout << "control message read success" << std::endl; - - return ret; -} - -int ClaimTest(OHOS::USB::UsbSrvClient &Instran, - OHOS::USB::USBDevicePipe &pip, - OHOS::USB::UsbInterface &interface, - bool interfaceFlg) -{ - if (interfaceFlg) { - std::cout << "ClaimInterface InterfaceInfo:" << interface.ToString() << std::endl; - int ret = Instran.ClaimInterface(pip, interface, true); - if (ret != 0) { - std::cout << "ClaimInterface failed width ret = " << ret << std::endl; - } else { - std::cout << "ClaimInterface success" << std::endl; - } - } - return 0; -} - -int BulkTransferTest(OHOS::USB::UsbSrvClient &Instran, - OHOS::USB::USBDevicePipe &pip, - OHOS::USB::USBEndpoint &outEp, - bool interfaceFlg, - bool outEpFlg) -{ - if (interfaceFlg) { - std::cout << "usb_device_test : << Bulk transfer start >> " << std::endl; - if (outEpFlg) { - uint8_t buffer[50] = "hello world 123456789"; - std::vector vData(buffer, buffer + BUFFERLENGTH); - int ret = Instran.BulkTransfer(pip, outEp, vData, TIMEOUT); - if (ret != 0) { - std::cout << "Bulk transfer write failed width ret = " << ret << std::endl; - } else { - std::cout << "Bulk transfer write success" << std::endl; - } - return ret; - } - } - return 0; -} - -int main(int argc, char **argv) -{ - std::cout << "usb_device_test " << std::endl; - static OHOS::USB::UsbSrvClient &Instran = OHOS::USB::UsbSrvClient::GetInstance(); - // GetDevices - std::vector deviceList; - int32_t ret = Instran.GetDevices(deviceList); - if (ret != 0) { - return OHOS::USB::UEC_SERVICE_INVALID_VALUE; - } - if (deviceList.empty()) { - return OHOS::USB::UEC_SERVICE_INVALID_VALUE; - } - - OHOS::USB::UsbDevice device = deviceList[0]; - std::vector configs = device.GetConfigs(); - OHOS::USB::USBConfig config = configs[0]; - std::vector interfaces = config.GetInterfaces(); - OHOS::USB::UsbInterface interface; - OHOS::USB::USBEndpoint outEp; - bool interfaceFlg = false; - bool outEpFlg = false; - interfaceFlg = SelectEndpoint(config, interfaces, interface, outEp, outEpFlg); - - // OpenDevice - std::cout << "usb_device_test : << OpenDevice >> test begin -> " << std::endl; - OHOS::USB::USBDevicePipe pip; - ret = OpenDeviceTest(Instran, device, pip); - if (ret != 0) { - return OHOS::USB::UEC_SERVICE_INVALID_VALUE; - } - - // ControlTransfer - CtrTransferTest(Instran, pip); - - // ClaimInterface - ClaimTest(Instran, pip, interface, interfaceFlg); - - // BulkTransferWrite - BulkTransferTest(Instran, pip, outEp, interfaceFlg, outEpFlg); - - // CloseDevice - std::cout << "usb_device_test : << Close Device >> " << std::endl; - ret = Instran.Close(pip); - if (ret == 0) { - std::cout << "Close device failed width ret = " << ret << std::endl; - return OHOS::USB::UEC_SERVICE_INVALID_VALUE; - } else { - std::cout << "Close Device success" << std::endl; - } - return 0; -} -``` - -### Repositories Involved - -[Driver subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/driver.md) - -[drivers\_peripheral](https://gitee.com/openharmony/drivers_peripheral/blob/master/README_zh.md) - -[drivers\_framework](https://gitee.com/openharmony/drivers_framework/blob/master/README_zh.md) - -[drivers\_adapter](https://gitee.com/openharmony/drivers_adapter/blob/master/README_zh.md) - -[drivers\_adapter\_khdf\_linux](https://gitee.com/openharmony/drivers_adapter_khdf_linux/blob/master/README_zh.md) diff --git a/en/readme/kernel.md b/en/readme/kernel.md index 752b237edbcd39c18862cae44cb97707846e22f8..e5067ef2bb218ecc970c5f2aaf5cdcec9b546230 100644 --- a/en/readme/kernel.md +++ b/en/readme/kernel.md @@ -219,6 +219,4 @@ Linux: [kernel\_linux\_build](https://gitee.com/openharmony/kernel_linux_build/blob/master/README.md) -[kernel\_linux\_4.19](https://gitee.com/openharmony/kernel_linux_4.19/blob/master/README) - [kernel\_linux\_5.10](https://gitee.com/openharmony/kernel_linux_5.10/blob/master/README) diff --git a/en/readme/xts.md b/en/readme/xts.md index 042f4e197ce6d59cfda94e0cd7c72d22fc0ecc79..c317bc53e5f7335fe3d2f2911812db99bc8aad7d 100644 --- a/en/readme/xts.md +++ b/en/readme/xts.md @@ -195,9 +195,9 @@ The HCTest framework is used to support test cases developed with the C language Test suites are built along with version build. The ACTS is built together with the debug version. - >![](public_sys-resources/icon-note.gif) **NOTE** - > - >The ACTS build middleware is a static library, which will be linked to the image. + > **NOTE** + > + > The ACTS build middleware is a static library, which will be linked to the image. ### C-based Test Case Execution \(for the Mini System\) @@ -334,9 +334,9 @@ The HCPPTest framework is enhanced and adapted based on the open-source framewor Test suites are built along with the version build. The ACTS is built together with the debug version. - >![](public_sys-resources/icon-note.gif) **NOTE** - > - >The ACTS for the small system is independently built to an executable file \(.bin\) and archived in the **suites\\acts** directory of the build result. + > **NOTE** + > + > The ACTS for the small system is independently built to an executable file \(.bin\) and archived in the **suites\\acts** directory of the build result. ### C++-based Test Case Execution \(for Standard and Small Systems\) diff --git a/en/release-notes/OpenHarmony-1-0.md b/en/release-notes/OpenHarmony-1-0.md index 59bad423d7a587ef7c23f49b58bec58bb93faea7..2a8b3fb7408bdbeb822d157867e1064ff76a07d7 100644 --- a/en/release-notes/OpenHarmony-1-0.md +++ b/en/release-notes/OpenHarmony-1-0.md @@ -1,4 +1,4 @@ -# OpenHarmony 1.0 \(2020-09-10) +# OpenHarmony 1.0 \(2020-09-10) (EOL) ## Overview diff --git a/en/release-notes/OpenHarmony-1-1-0-LTS.md b/en/release-notes/OpenHarmony-1-1-0-LTS.md index 2876c8a94fa57750f5a66e688e6e3f86bcf5cef7..5c80392132f61db0f9a4869e36a9f128042e0dc2 100644 --- a/en/release-notes/OpenHarmony-1-1-0-LTS.md +++ b/en/release-notes/OpenHarmony-1-1-0-LTS.md @@ -1,4 +1,4 @@ -# OpenHarmony 1.1.0 LTS \(2021-04-01\) +# OpenHarmony 1.1.0 LTS \(2021-04-01\) (EOL) ## Overview diff --git a/en/release-notes/OpenHarmony-1-1-1-LTS.md b/en/release-notes/OpenHarmony-1-1-1-LTS.md index 03653f2552a5ad06e7d326fc5adbeb459d3d4618..5d414849d3185be9aa7bb3425657b3944eb8bbe4 100644 --- a/en/release-notes/OpenHarmony-1-1-1-LTS.md +++ b/en/release-notes/OpenHarmony-1-1-1-LTS.md @@ -1,4 +1,4 @@ -# OpenHarmony 1.1.1 LTS \(2021-06-22) +# OpenHarmony 1.1.1 LTS \(2021-06-22) (EOL) ## Version Description diff --git a/en/release-notes/OpenHarmony-v1-1-3-LTS.md b/en/release-notes/OpenHarmony-v1-1-3-LTS.md index de7054e735c4fafcc872aad6834c4715d6fc1c85..1561a988fbb066eb4f5398776face7455774678c 100644 --- a/en/release-notes/OpenHarmony-v1-1-3-LTS.md +++ b/en/release-notes/OpenHarmony-v1-1-3-LTS.md @@ -1,4 +1,4 @@ -# OpenHarmony v1.1.3 LTS +# OpenHarmony v1.1.3 LTS (EOL) ## Overview diff --git a/en/release-notes/OpenHarmony-v1-1-4-LTS.md b/en/release-notes/OpenHarmony-v1-1-4-LTS.md index 1854f89a4084873937bb7540fbe5afe1484916b4..7d79ea43af25bdcc49d22bd4ad06707f4a2ec75f 100644 --- a/en/release-notes/OpenHarmony-v1-1-4-LTS.md +++ b/en/release-notes/OpenHarmony-v1-1-4-LTS.md @@ -1,4 +1,4 @@ -# OpenHarmony 1.1.4 LTS +# OpenHarmony 1.1.4 LTS (EOL) ## Version Description diff --git a/en/release-notes/OpenHarmony-v1.1.2-LTS.md b/en/release-notes/OpenHarmony-v1.1.2-LTS.md index 8f897f2d83e546c6b31fc1e86e23284a831728c6..618b579d7a30f965ad9231e4ed26e001e76f5341 100644 --- a/en/release-notes/OpenHarmony-v1.1.2-LTS.md +++ b/en/release-notes/OpenHarmony-v1.1.2-LTS.md @@ -1,4 +1,4 @@ -# OpenHarmony v1.1.2 LTS +# OpenHarmony v1.1.2 LTS (EOL) ## Overview diff --git a/en/release-notes/OpenHarmony-v1.1.5-LTS.md b/en/release-notes/OpenHarmony-v1.1.5-LTS.md index 29819a02acd4bed740a156a68860ee24e0cc521a..3659590bbf77490c05c34d70ff711e3946c993e2 100644 --- a/en/release-notes/OpenHarmony-v1.1.5-LTS.md +++ b/en/release-notes/OpenHarmony-v1.1.5-LTS.md @@ -1,4 +1,4 @@ -# OpenHarmony 1.1.5 LTS +# OpenHarmony 1.1.5 LTS (EOL) ## Version Description diff --git a/en/release-notes/OpenHarmony-v3.1.2-release.md b/en/release-notes/OpenHarmony-v3.1.2-release.md index b474dfb8cd8c18b126368c3945b51ecec7f5ae9f..589aa08e513f33b296a416ce82e1a2f02601ca7f 100644 --- a/en/release-notes/OpenHarmony-v3.1.2-release.md +++ b/en/release-notes/OpenHarmony-v3.1.2-release.md @@ -87,8 +87,8 @@ repo forall -c 'git lfs pull' | Hi3516 standard system solution (binary)| 3.1.2 Release | [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/standard_hi3516.tar.gz)| [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/standard_hi3516.tar.gz.sha256)| | RK3568 standard system solution (binary)| 3.1.2 Release | [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/standard_rk3568.tar.gz)| [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/standard_rk3568.tar.gz.sha256)| | Hi3861 mini system solution (binary)| 3.1.2 Release | [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/hispark_pegasus.tar.gz)| [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/hispark_pegasus.tar.gz.sha256)| -| Hi3516 mini system solution - LiteOS (binary)| 3.1.2 Release | [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/hispark_taurus.tar.gz)| [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/hispark_taurus.tar.gz.sha256)| -| Hi3516 mini system solution - Linux (binary)| 3.1.2 Release | [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/hispark_taurus_linux.tar.gz)| [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/hispark_taurus_linux.tar.gz.sha256)| +| Hi3516 small system solution - LiteOS (binary)| 3.1.2 Release | [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/hispark_taurus.tar.gz)| [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/hispark_taurus.tar.gz.sha256)| +| Hi3516 small system solution - Linux (binary)| 3.1.2 Release | [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/hispark_taurus_linux.tar.gz)| [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/hispark_taurus_linux.tar.gz.sha256)| | Full SDK package for the standard system (macOS)| 3.1.7.5 | [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/ohos-sdk-mac-full.tar.gz)| [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/ohos-sdk-mac-full.tar.gz.sha256)| | Full SDK package for the standard system (Windows/Linux)| 3.1.7.5 | [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/ohos-sdk-full.tar.gz)| [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/ohos-sdk-full.tar.gz.sha256)| | Public SDK package for the standard system (macOS)| 3.1.7.5 | [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/ohos-sdk-mac-public.tar.gz)| [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/ohos-sdk-mac-public.tar.gz.sha256)| diff --git a/en/release-notes/OpenHarmony-v3.1.3-release.md b/en/release-notes/OpenHarmony-v3.1.3-release.md index 8029072be5610bf4b065f4295c44dc54183c33b8..e1735530034ffc05b9239944563351d812bf261a 100644 --- a/en/release-notes/OpenHarmony-v3.1.3-release.md +++ b/en/release-notes/OpenHarmony-v3.1.3-release.md @@ -77,7 +77,7 @@ repo forall -c 'git lfs pull' | -------- | -------- | -------- | -------- | | Full code base (for mini, small, and standard systems)| 3.1.3 Release | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/code-v3.1.3-Release.tar.gz)| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/code-v3.1.3-Release.tar.gz.sha256)| | Hi3516 standard system solution (binary)| 3.1.3 Release| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/standard_hi3516.tar.gz)| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/standard_hi3516.tar.gz.sha256)| -| RK3568 standard system solution (binary)| 3.1.3 Release| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/code-v3.1.3-Release.tar.gz)| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/standard_rk3568.tar.gz.sha256)| +| RK3568 standard system solution (binary)| 3.1.3 Release| [Download](https://mirrors.huaweicloud.com/harmonyos/os/3.1.3/standard_rk3568.tar.gz)| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/standard_rk3568.tar.gz.sha256)| | Hi3861 mini system solution (binary)| 3.1.3 Release| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/hispark_pegasus.tar.gz)| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/hispark_pegasus.tar.gz.sha256)| | Hi3516 small system solution - LiteOS (binary)| 3.1.3 Release| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/hispark_taurus.tar.gz)| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/hispark_taurus.tar.gz.sha256)| | Hi3516 small system solution - Linux (binary)| 3.1.3 Release| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/hispark_taurus_linux.tar.gz)| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/hispark_taurus_linux.tar.gz.sha256)| diff --git a/en/release-notes/Readme.md b/en/release-notes/Readme.md index de2478b990ec99ec4eeb16ad5117796ad1baee82..cea8e3824c0ca7db33af76ed089a1140e4802b17 100644 --- a/en/release-notes/Readme.md +++ b/en/release-notes/Readme.md @@ -7,6 +7,8 @@ - [OpenHarmony v3.2 Beta2 (2022-07-30)](OpenHarmony-v3.2-beta2.md) - [OpenHarmony v3.2 Beta1 (2022-05-31)](OpenHarmony-v3.2-beta1.md) - [OpenHarmony v3.1 Release (2022-03-30)](OpenHarmony-v3.1-release.md) +- [OpenHarmony v3.1.6 Release (2023-01-30)](OpenHarmony-v3.1.6-release.md) +- [OpenHarmony v3.1.5 Release (2022-12-30)](OpenHarmony-v3.1.5-release.md) - [OpenHarmony v3.1.4 Release (2022-11-02)](OpenHarmony-v3.1.4-release.md) - [OpenHarmony v3.1.3 Release (2022-09-30)](OpenHarmony-v3.1.3-release.md) - [OpenHarmony v3.1.2 Release (2022-08-24)](OpenHarmony-v3.1.2-release.md) @@ -25,7 +27,7 @@ - [OpenHarmony v2.2 beta2 (2021-08-04)](OpenHarmony-v2.2-beta2.md) - [OpenHarmony 2.0 Canary (2021-06-01)](OpenHarmony-2-0-Canary.md) -## OpenHarmony 1.x Releases +## OpenHarmony 1.x Releases(EOL) - [OpenHarmony v1.0 (2020-09-10)](OpenHarmony-1-0.md) - [OpenHarmony v1.1.5 LTS (2022-08-24)](OpenHarmony-v1.1.5-LTS.md) diff --git a/zh-cn/application-dev/IDL/idl-guidelines.md b/zh-cn/application-dev/IDL/idl-guidelines.md index 5ac5f5edba32523a93f65c2c2b4d21faa62a24ff..c9c92172d7154c7e24d48256b1d8577aafaf4577 100644 --- a/zh-cn/application-dev/IDL/idl-guidelines.md +++ b/zh-cn/application-dev/IDL/idl-guidelines.md @@ -158,9 +158,9 @@ OpenHarmony IDL容器数据类型与Ts数据类型、C++数据类型的对应关 > **注意**:请保证使用最新版的SDK,版本老旧可能导致部分语句报错。 -若不存在,可对应版本前往[docs仓版本目录](https://gitee.com/openharmony/docs/tree/master/zh-cn/release-notes)下载SDK包,以[3.2Beta3版本](https://gitee.com/openharmony/docs/blob/master/zh-cn/release-notes/OpenHarmony-v3.2-beta3.md)为例,可通过镜像站点获取。 +若不存在,可对应版本前往[docs仓版本目录](../../release-notes)下载SDK包,以[3.2Beta3版本](../../release-notes/OpenHarmony-v3.2-beta3.md)为例,可通过镜像站点获取。 -关于如何替换DevEco Studio的SDK包具体操作,参考[full-SDK替换指南](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/full-sdk-compile-guide.md)中的替换方法。 +关于如何替换DevEco Studio的SDK包具体操作,参考[full-SDK替换指南](../quick-start/full-sdk-compile-guide.md)中的替换方法。 得到idl工具的可执行文件后,根据具体场景进行后续开发步骤。 diff --git a/zh-cn/application-dev/ability-deprecated/stage-ability.md b/zh-cn/application-dev/ability-deprecated/stage-ability.md index 6c01bfd65ab80f3928f36dca6d9462d373528872..caea71e25fe63b7e1ad19b1a18b05473f3792dcf 100644 --- a/zh-cn/application-dev/ability-deprecated/stage-ability.md +++ b/zh-cn/application-dev/ability-deprecated/stage-ability.md @@ -39,7 +39,7 @@ AbilityStage功能如下(AbilityStage类,拥有context属性,具体的API |onAcceptWant(want: Want): string|启动指定Ability时被调用。| |onConfigurationUpdated(config: Configuration): void|全局配置发生变更时被调用。| -Ability功能如下(Ability类,具体的API详见[接口文档](../reference/apis/js-apis-application-ability.md)): +Ability功能如下(Ability类,具体的API详见[接口文档](../reference/apis/js-apis-app-ability-uiAbility.md)): **表2** Ability API接口功能介绍 @@ -190,7 +190,7 @@ export default class EntryAbility extends UIAbility { ``` ## 启动Ability ### 接口说明 -Ability类拥有context属性,context属性为AbilityContext类,AbilityContext类拥有abilityInfo、currentHapModuleInfo等属性,启动Ability等方法。具体的API详见[接口文档](../reference/apis/js-apis-ability-context.md)。 +Ability类拥有context属性,context属性为AbilityContext类,AbilityContext类拥有abilityInfo、currentHapModuleInfo等属性,启动Ability等方法。具体的API详见[接口文档](../reference/apis/js-apis-inner-application-uiAbilityContext.md)。 **表3** AbilityContext API接口功能介绍 |接口名|描述| @@ -207,7 +207,7 @@ Ability类拥有context属性,context属性为AbilityContext类,AbilityConte 应用可以通过`this.context`获取Ability实例的上下文,进而使用AbilityContext中的StartAbility相关接口启动Ability。启动Ability可指定Want、StartOptions、accountId,通过callback形式或promise形式实现。具体示例代码如下: ```ts let context = this.context -var want = { +let want = { "deviceId": "", "bundleName": "com.example.MyApplication", "abilityName": "EntryAbility" @@ -224,7 +224,7 @@ context.startAbility(want).then(() => { 跨设备场景下,需指定对端设备deviceId,具体示例代码如下: ```ts let context = this.context -var want = { +let want = { "deviceId": getRemoteDeviceId(), "bundleName": "com.example.MyApplication", "abilityName": "EntryAbility" @@ -239,9 +239,9 @@ context.startAbility(want).then(() => { ```ts import deviceManager from '@ohos.distributedHardware.deviceManager'; function getRemoteDeviceId() { - if (typeof dmClass === 'object' && dmClass != null) { - var list = dmClass.getTrustedDeviceListSync(); - if (typeof (list) == 'undefined' || typeof (list.length) == 'undefined') { + if (typeof dmClass === 'object' && dmClass !== null) { + let list = dmClass.getTrustedDeviceListSync(); + if (typeof (list) === 'undefined' || typeof (list.length) === 'undefined') { console.log("EntryAbility onButtonClick getRemoteDeviceId err: list is null"); return; } diff --git a/zh-cn/application-dev/application-dev-guide.md b/zh-cn/application-dev/application-dev-guide.md index 4febc5121809eda48ffcb612229db596840f0907..000525a35348eed5f6dc4f6d08862f2186569555 100644 --- a/zh-cn/application-dev/application-dev-guide.md +++ b/zh-cn/application-dev/application-dev-guide.md @@ -4,7 +4,7 @@ 在应用开发的文档中,您可以获取到如下几方面的内容: -### 入门 +## 入门 [入门](quick-start/start-overview.md)可以帮助开发者了解应用开发的基本方法。 @@ -12,7 +12,7 @@ 开发的基础知识包含了OpenHarmony应用程序的包结构配置文件说明,以及资源文件的使用指导。 -### 开发 +## 开发 为了帮助开发者更好的理解OpenHarmony提供的能力,我们对重点功能提供了开发指导,辅助开发者完成应用的开发。 @@ -32,39 +32,38 @@ - [网络与连接](connectivity/ipc-rpc-overview.md) - [电话服务](telephony/telephony-overview.md) - [数据管理](database/database-mdds-overview.md) +- [文件管理](file-management/medialibrary-overview.md) - [任务管理](task-management/background-task-overview.md) - [设备管理](device/usb-overview.md) - [设备使用信息统计](device-usage-statistics/device-usage-statistics-overview.md) - [DFX](dfx/hiappevent-guidelines.md) - [国际化](internationalization/international-overview.md) - [应用测试](application-test/arkxtest-guidelines.md) +- [一次开发,多端部署](key-features/multi-device-app-dev/foreword.md) - [IDL工具规格及使用说明书](IDL/idl-guidelines.md) - [Native API的相关指导](napi/napi-guidelines.md) -- [文件管理](file-management/medialibrary-overview.md) -- [一次开发,多端部署](key-features/multi-device-app-dev/foreword.md) - -### 工具 +## 工具 DevEco Studio工具是OpenHarmony应用开发的推荐IDE工具。 在[工具](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-deveco-studio-overview-0000001263280421)部分,讲解了DevEco Studio工具的详细用法,包括使用该工具进行工程创建、应用签名、应用调试、应用安装运行的指导。 -### 示例教程 +## 示例教程 我们提供了[Sample工程](https://gitee.com/openharmony/applications_app_samples/blob/master/README_zh.md)和[Codelab](https://gitee.com/openharmony/codelabs/blob/master/README.md)这两种形式的示例教程,为开发者提供更丰富的开发参考,辅助开发者理解功能逻辑,提升开发效率。 -### API参考 +## API参考 API参考提供了OpenHarmony全量组件和接口的参考文档,可以帮助开发者快速查找到指定接口的详细描述和调用方法。 内容包括: -- [组件参考(基于TS扩展的声明式开发范式)](reference/arkui-ts/Readme-CN.md) -- [组件参考(兼容JS的类Web开发范式-ArkUI.Full)](reference/arkui-js/Readme-CN.md) -- [组件参考(兼容JS的类Web开发范式-ArkUI.Lite)](reference/arkui-js-lite/Readme-CN.md) -- [JS服务卡片UI组件参考](reference/js-service-widget-ui/Readme-CN.md) -- [接口参考(JS及TS API)](reference/apis/js-apis-ability-dataUriUtils.md) +- [组件参考(基于TS扩展的声明式开发范式)](reference/arkui-ts/ts-components-summary.md) +- [组件参考(兼容JS的类Web开发范式-ArkUI.Full)](reference/arkui-js/js-components-common-attributes.md) +- [组件参考(兼容JS的类Web开发范式-ArkUI.Lite)](reference/arkui-js-lite/js-framework-file.md) +- [JS服务卡片UI组件参考](reference/js-service-widget-ui/js-service-widget-file.md) +- [接口参考(ArkTS及JS API)](reference/apis/development-intro.md) - 接口参考(Native API) - - [OpenHarmony Native API](reference/native-apis/_o_h___native_x_component.md) - - [Native API标准库](reference/native-lib/third_party_libc/musl.md) - - [Node_API](reference/native-lib/third_party_napi/napi.md) + - [OpenHarmony Native API](reference/native-apis/_o_h___native_x_component.md) + - [Native API标准库](reference/native-lib/third_party_libc/musl.md) + - [Node_API](reference/native-lib/third_party_napi/napi.md) 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 c8cd6dd7620c101ce7aaeba78223a29dae8835be..ac6af46ca51c5798877dbc834103f4eb4c977805 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 @@ -27,8 +27,7 @@ "host": "www.test.com", "port": "8080", // prefix matching - "pathStartWith": "query", - "type": "text/*" + "pathStartWith": "query" }, { "scheme": "http", @@ -53,12 +52,11 @@ function implicitStartAbility() { let context = getContext(this) as common.UIAbilityContext; let wantInfo = { // uncomment line below if wish to implicitly query only in the specific bundle. - // bundleName: "com.example.myapplication", - "action": "ohos.want.action.viewData", + // bundleName: 'com.example.myapplication', + 'action': 'ohos.want.action.viewData', // entities can be omitted. - "entities": ["entity.system.browsable"], - "uri": "https://www.test.com:8080/query/student", - "type": "text/plain" + 'entities': ['entity.system.browsable'], + 'uri': 'https://www.test.com:8080/query/student' } context.startAbility(wantInfo).then(() => { // ... @@ -75,5 +73,5 @@ function implicitStartAbility() { 3. 待匹配Ability的skills配置中内uris拼接为`https://www.test.com:8080/query*` (其中*表示通配符),包含调用方传入的want参数的uri,uri匹配成功。 4. 调用方传入的want参数的type不为空,待匹配Ability的skills配置中的type不为空且包含调用方传入的want参数的type,type匹配成功。 -当有多个匹配应用时,会被应用选择器展示给用户进行选择。 示意效果如下图所示。 +当存在多个匹配的应用时,系统将弹出应用选择框供用户选择。示意效果如下图所示。 ![](figures/ability-startup-with-implicit-want1.png) 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 6b034680947fff1b9218b3672a6197a7939e1c9a..b734131b18246d0ec6ce82399cca6957dd91dd45 100644 --- a/zh-cn/application-dev/application-models/application-context-stage.md +++ b/zh-cn/application-dev/application-models/application-context-stage.md @@ -19,10 +19,10 @@ ```ts import UIAbility from '@ohos.app.ability.UIAbility'; export default class EntryAbility extends UIAbility { - onCreate(want, launchParam) { - let uiAbilityContext = this.context; - // ... - } + onCreate(want, launchParam) { + let uiAbilityContext = this.context; + // ... + } } ``` @@ -34,21 +34,21 @@ ```ts import ServiceExtensionAbility from '@ohos.app.ability.ServiceExtensionAbility'; export default class MyService extends ServiceExtensionAbility { - onCreate(want) { - let serviceExtensionContext = this.context; - // ... - } + onCreate(want) { + let serviceExtensionContext = this.context; + // ... + } } ``` - 获取[AbilityStageContext](../reference/apis/js-apis-inner-application-abilityStageContext.md)。Module级别的Context,和基类Context相比,额外提供HapModuleInfo、Configuration等信息。 ```ts - import AbilityStage from "@ohos.app.ability.AbilityStage"; + import AbilityStage from '@ohos.app.ability.AbilityStage'; export default class MyAbilityStage extends AbilityStage { - onCreate() { - let abilityStageContext = this.context; - // ... - } + onCreate() { + let abilityStageContext = this.context; + // ... + } } ``` - 获取[ApplicationContext](../reference/apis/js-apis-inner-application-applicationContext.md)。应用级别的Context。ApplicationContext在基类Context的基础上提供了订阅应用内应用组件的生命周期的变化、订阅系统内存变化和订阅应用内系统环境的变化的能力,在UIAbility、ExtensionAbility、AbilityStage中均可以获取。 @@ -56,10 +56,10 @@ ```ts import UIAbility from '@ohos.app.ability.UIAbility'; export default class EntryAbility extends UIAbility { - onCreate(want, launchParam) { - let applicationContext = this.context.getApplicationContext(); - // ... - } + onCreate(want, launchParam) { + let applicationContext = this.context.getApplicationContext(); + // ... + } } ``` @@ -80,17 +80,17 @@ 从Context中获取的应用开发路径如下表所示。 - **表1** 应用开发路径说明 +**表1** 应用开发路径说明 | 属性名称 | 参数类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | -| cacheDir | string | 是 | 否 | 应用在内部存储上的缓存路径。
对应于"设置 > 应用管理",找到对应应用的"存储"中的缓存内容。 | -| tempDir | string | 是 | 否 | 应用的临时文件路径。
在应用卸载后,系统会删除存储在此目录中的文件。 | -| filesDir | string | 是 | 否 | 应用在内部存储上的文件路径。
本目录下存放的文件可能会被应用迁移或者备份的时候同步到其他目录中。 | -| databaseDir | string | 是 | 否 | 获取本地数据库存储路径。 | -| bundleCodeDir | string | 是 | 否 | 应用在内部存储上的安装路径。 | -| distributedFilesDir | string | 是 | 否 | 应用的分布式文件路径。 | -| preferencesDir | string | 是 | 是 | 指示应用程序首选项目录。 | +| bundleCodeDir | string | 是 | 否 | 安装文件路径。应用在内部存储上的安装路径。 | +| cacheDir | string | 是 | 否 | 应用缓存文件路径。应用在内部存储上的缓存路径。
对应于“设置 > 应用管理”,找到对应应用的“存储”中的缓存内容。 | +| filesDir | string | 是 | 否 | 应用通用文件路径。应用在内部存储上的文件路径。
本目录下存放的文件可能会被应用迁移或者备份的时候同步到其他目录中。 | +| preferencesDir | string | 是 | 是 | 应用首选项文件路径。指示应用程序首选项目录。 | +| tempDir | string | 是 | 否 | 应用临时文件路径。
在应用卸载后,系统会删除存储在此目录中的文件。 | +| databaseDir | string | 是 | 否 | 数据库路径。获取本地数据库存储路径。 | +| distributedFilesDir | string | 是 | 否 | 应用分布式文件路径。 | 获取路径的能力是基类Context中提供的能力,因此在ApplicationContext、AbilityStageContext、UIAbilityContext和ExtensionContext中均可以获取,在各类Context中获取到的路径会有一些差别,具体差别如下图所示。 @@ -127,16 +127,16 @@ import UIAbility from '@ohos.app.ability.UIAbility'; export default class EntryAbility extends UIAbility { - onCreate(want, launchParam) { - let cacheDir = this.context.cacheDir; - let tempDir = this.context.tempDir; - let filesDir = this.context.filesDir; - let databaseDir = this.context.databaseDir; - let bundleCodeDir = this.context.bundleCodeDir; - let distributedFilesDir = this.context.distributedFilesDir; - let preferencesDir = this.context.preferencesDir; - // ... - } + onCreate(want, launchParam) { + let cacheDir = this.context.cacheDir; + let tempDir = this.context.tempDir; + let filesDir = this.context.filesDir; + let databaseDir = this.context.databaseDir; + let bundleCodeDir = this.context.bundleCodeDir; + let distributedFilesDir = this.context.distributedFilesDir; + let preferencesDir = this.context.preferencesDir; + // ... + } } ``` @@ -146,36 +146,42 @@ export default class EntryAbility extends UIAbility { ### 获取和修改加密分区 -上一个场景中,引入了加密等级的概念,通过对[Context的area属性](../reference/apis/js-apis-inner-application-context.md)的读写来实现获取和设置当前加密分区,支持如下两种加密等级: +应用文件加密是一种保护数据安全的方法,可以使得文件在未经授权访问的情况下得到保护。在不同的场景下,应用需要不同程度的文件保护。对于私有文件,如闹铃、壁纸等,应用需要将这些文件放到设备级加密分区(EL1)中,以保证在用户输入密码前就可以被访问;对于更敏感的文件,如个人隐私信息等,应用需要将这些文件放到更高级别的加密分区(EL2)中,以保证更高的安全性。 + +在实际应用中,开发者需要根据不同场景的需求选择合适的加密分区,从而保护应用数据的安全。通过合理使用EL1和EL2加密分区,可以有效提高应用数据的安全性。 -- AreaMode.EL1:设备级加密区,设备开机后可访问的数据区。 +> **说明:** +> +> - AreaMode.EL1:设备级加密区,设备开机后可访问的数据区。 +> +> - AreaMode.EL2:用户级加密区,设备开机,首次输入密码后才能够访问的数据区。 -- AreaMode.EL2:用户级加密区,设备开机,首次输入密码后才能够访问的数据区。 +要实现获取和设置当前加密分区,可以通过读写[Context的area属性](../reference/apis/js-apis-inner-application-context.md)来实现。 ```ts import UIAbility from '@ohos.app.ability.UIAbility'; export default class EntryAbility extends UIAbility { - onCreate(want, launchParam) { - // 存储普通信息前,切换到EL1设备机加密 - if (this.context.area === 1) { // 获取area - this.context.area = 0; // 修改area - } - // 存储普通信息 - - // 存储敏感信息前,切换到EL2用户级加密 - if (this.context.area === 0) { // 获取area - this.context.area = 1; // 修改area - } - // 存储敏感信息 + onCreate(want, launchParam) { + // 存储普通信息前,切换到EL1设备机加密 + if (this.context.area === 1) { // 获取area + this.context.area = 0; // 修改area } + // 存储普通信息 + + // 存储敏感信息前,切换到EL2用户级加密 + if (this.context.area === 0) { // 获取area + this.context.area = 1; // 修改area + } + // 存储敏感信息 + } } ``` ### 创建其他应用或其他Module的Context -基类Context提供创建其他应用或其他Module的Context的方法有[createBundleContext(bundleName:string)](../reference/apis/js-apis-inner-application-context.md#contextcreatebundlecontext)、[createModuleContext(moduleName:string)](../reference/apis/js-apis-inner-application-context.md#contextcreatemodulecontext)和[createModuleContext(bundleName:string, moduleName:string)](../reference/apis/js-apis-inner-application-context.md#contextcreatemodulecontext-1)接口,创建其他应用或者其他Module的Context,从而通过该Context获取相应的资源信息(例如获取其他Module的[获取应用开发路径](#获取应用开发路径)信息)。 +基类Context提供创建其他应用或其他Module的Context的方法有[createBundleContext(bundleName: string)](../reference/apis/js-apis-inner-application-context.md#contextcreatebundlecontext)、[createModuleContext(moduleName: string)](../reference/apis/js-apis-inner-application-context.md#contextcreatemodulecontext)和[createModuleContext(bundleName: string, moduleName: string)](../reference/apis/js-apis-inner-application-context.md#contextcreatemodulecontext-1)接口,创建其他应用或者其他Module的Context,从而通过该Context获取相应的资源信息(例如获取其他Module的[获取应用开发路径](#获取应用开发路径)信息)。 - 调用createBundleContext(bundleName:string)方法,创建其他应用的Context信息。 > **说明:** @@ -191,33 +197,34 @@ export default class EntryAbility extends UIAbility { import UIAbility from '@ohos.app.ability.UIAbility'; export default class EntryAbility extends UIAbility { - onCreate(want, launchParam) { - let bundleName2 = "com.example.application"; - let context2 = this.context.createBundleContext(bundleName2); - let label2 = context2.applicationInfo.label; - // ... - } + onCreate(want, launchParam) { + let bundleName2 = 'com.example.application'; + let context2 = this.context.createBundleContext(bundleName2); + let label2 = context2.applicationInfo.label; + // ... + } } ``` - 调用createModuleContext(bundleName:string, moduleName:string)方法,获取指定应用指定Module的上下文信息。获取到指定应用指定Module的Context之后,即可获取到相应应用Module的资源信息。 > **说明:** + > > 当获取的是其他应用的指定Module的Context时: - > - > - 申请`ohos.permission.GET_BUNDLE_INFO_PRIVILEGED`权限,配置方式请参见[访问控制授权申请](../security/accesstoken-guidelines.md#配置文件权限声明)。 - > + > + > - 申请`ohos.permission.GET_BUNDLE_INFO_PRIVILEGED`权限,配置方式请参见[配置文件权限声明](../security/accesstoken-guidelines.md#配置文件权限声明)。 + > > - 接口为系统接口,三方应用不支持调用。 - + ```ts import UIAbility from '@ohos.app.ability.UIAbility'; export default class EntryAbility extends UIAbility { - onCreate(want, launchParam) { - let bundleName2 = "com.example.application"; - let moduleName2 = "module1"; - let context2 = this.context.createModuleContext(bundleName2, moduleName2); - // ... - } + onCreate(want, launchParam) { + let bundleName2 = 'com.example.application'; + let moduleName2 = 'module1'; + let context2 = this.context.createModuleContext(bundleName2, moduleName2); + // ... + } } ``` @@ -227,77 +234,90 @@ export default class EntryAbility extends UIAbility { import UIAbility from '@ohos.app.ability.UIAbility'; export default class EntryAbility extends UIAbility { - onCreate(want, launchParam) { - let moduleName2 = "module1"; - let context2 = this.context.createModuleContext(moduleName2); - // ... - } + onCreate(want, launchParam) { + let moduleName2 = 'module1'; + let context2 = this.context.createModuleContext(moduleName2); + // ... + } } ``` ### 订阅进程内UIAbility生命周期变化 -在应用内的DFX统计场景,如需要统计对应页面停留时间和访问频率等信息,可以使用订阅进程内UIAbility生命周期变化功能。 +在应用内的DFX统计场景中,如需要统计对应页面停留时间和访问频率等信息,可以使用订阅进程内UIAbility生命周期变化功能。 -[ApplicationContext](../reference/apis/js-apis-inner-application-applicationContext)提供了订阅进程内UIAbility生命周期变化的能力。在进程内UIAbility生命周期变化时,如创建、可见/不可见、获焦/失焦、销毁等,会触发进入相应的回调,其中返回的此次注册监听生命周期的ID(每次注册该ID会自增+1,当超过监听上限数量2^63-1时,返回-1),以在[UIAbilityContext](../reference/apis/js-apis-inner-application-uiAbilityContext.md)中使用为例进行说明。 +通过[ApplicationContext](../reference/apis/js-apis-inner-application-applicationContext)提供的能力,可以订阅进程内UIAbility生命周期变化。当进程内的UIAbility生命周期变化时,如创建、可见/不可见、获焦/失焦、销毁等,会触发相应的回调函数。每次注册回调函数时,都会返回一个监听生命周期的ID,此ID会自增+1。当超过监听上限数量2^63-1时,会返回-1。以[UIAbilityContext](../reference/apis/js-apis-inner-application-uiAbilityContext.md)中的使用为例进行说明。 ```ts import UIAbility from '@ohos.app.ability.UIAbility'; import window from '@ohos.window'; -const TAG: string = "[Example].[Entry].[EntryAbility]"; +const TAG: string = '[Example].[Entry].[EntryAbility]'; export default class EntryAbility extends UIAbility { - lifecycleId: number; - - onCreate(want, launchParam) { - let abilityLifecycleCallback = { - onAbilityCreate(uiability) { - console.info(TAG, "onAbilityCreate uiability:" + JSON.stringify(uiability)); - }, - onWindowStageCreate(uiability, windowStage) { - console.info(TAG, "onWindowStageCreate uiability:" + JSON.stringify(uiability)); - console.info(TAG, "onWindowStageCreate windowStage:" + JSON.stringify(windowStage)); - }, - onWindowStageActive(uiability, windowStage) { - console.info(TAG, "onWindowStageActive uiability:" + JSON.stringify(uiability)); - console.info(TAG, "onWindowStageActive windowStage:" + JSON.stringify(windowStage)); - }, - onWindowStageInactive(uiability, windowStage) { - console.info(TAG, "onWindowStageInactive uiability:" + JSON.stringify(uiability)); - console.info(TAG, "onWindowStageInactive windowStage:" + JSON.stringify(windowStage)); - }, - onWindowStageDestroy(uiability, windowStage) { - console.info(TAG, "onWindowStageDestroy uiability:" + JSON.stringify(uiability)); - console.info(TAG, "onWindowStageDestroy windowStage:" + JSON.stringify(windowStage)); - }, - onAbilityDestroy(uiability) { - console.info(TAG, "onAbilityDestroy uiability:" + JSON.stringify(uiability)); - }, - onAbilityForeground(uiability) { - console.info(TAG, "onAbilityForeground uiability:" + JSON.stringify(uiability)); - }, - onAbilityBackground(uiability) { - console.info(TAG, "onAbilityBackground uiability:" + JSON.stringify(uiability)); - }, - onAbilityContinue(uiability) { - console.info(TAG, "onAbilityContinue uiability:" + JSON.stringify(uiability)); - } - } - // 1. 通过context属性获取applicationContext - let applicationContext = this.context.getApplicationContext(); - // 2. 通过applicationContext注册监听应用内生命周期 - this.lifecycleId = applicationContext.on("abilityLifecycle", abilityLifecycleCallback); - console.info(TAG, "register callback number: " + JSON.stringify(this.lifecycleId)); + // 定义生命周期ID + lifecycleId: number; + + onCreate(want, launchParam) { + // 定义生命周期回调对象 + let abilityLifecycleCallback = { + // 当UIAbility创建时被调用 + onAbilityCreate(uiAbility) { + console.log(TAG, `onAbilityCreate uiAbility.launchWant: ${JSON.stringify(uiAbility.launchWant)}`); + }, + // 当窗口创建时被调用 + onWindowStageCreate(uiAbility, windowStage: window.WindowStage) { + console.log(TAG, `onWindowStageCreate uiAbility.launchWant: ${JSON.stringify(uiAbility.launchWant)}`); + console.log(TAG, `onWindowStageCreate windowStage: ${JSON.stringify(windowStage)}`); + }, + // 当窗口处于活动状态时被调用 + onWindowStageActive(uiAbility, windowStage: window.WindowStage) { + console.log(TAG, `onWindowStageActive uiAbility.launchWant: ${JSON.stringify(uiAbility.launchWant)}`); + console.log(TAG, `onWindowStageActive windowStage: ${JSON.stringify(windowStage)}`); + }, + // 当窗口处于非活动状态时被调用 + onWindowStageInactive(uiAbility, windowStage: window.WindowStage) { + console.log(TAG, `onWindowStageInactive uiAbility.launchWant: ${JSON.stringify(uiAbility.launchWant)}`); + console.log(TAG, `onWindowStageInactive windowStage: ${JSON.stringify(windowStage)}`); + }, + // 当窗口被销毁时被调用 + onWindowStageDestroy(uiAbility, windowStage: window.WindowStage) { + console.log(TAG, `onWindowStageDestroy uiAbility.launchWant: ${JSON.stringify(uiAbility.launchWant)}`); + console.log(TAG, `onWindowStageDestroy windowStage: ${JSON.stringify(windowStage)}`); + }, + // 当UIAbility被销毁时被调用 + onAbilityDestroy(uiAbility) { + console.log(TAG, `onAbilityDestroy uiAbility.launchWant: ${JSON.stringify(uiAbility.launchWant)}`); + }, + // 当UIAbility从后台转到前台时触发回调 + onAbilityForeground(uiAbility) { + console.log(TAG, `onAbilityForeground uiAbility.launchWant: ${JSON.stringify(uiAbility.launchWant)}`); + }, + // 当UIAbility从前台转到后台时触发回调 + onAbilityBackground(uiAbility) { + console.log(TAG, `onAbilityBackground uiAbility.launchWant: ${JSON.stringify(uiAbility.launchWant)}`); + }, + // 当UIAbility迁移时被调用 + onAbilityContinue(uiAbility) { + console.log(TAG, `onAbilityContinue uiAbility.launchWant: ${JSON.stringify(uiAbility.launchWant)}`); + } } + // 获取应用上下文 + let applicationContext = this.context.getApplicationContext(); + // 注册应用内生命周期回调 + this.lifecycleId = applicationContext.on('abilityLifecycle', abilityLifecycleCallback); + console.log(TAG, `register callback number: ${this.lifecycleId}`); + } - onDestroy() { - let applicationContext = this.context.getApplicationContext(); - applicationContext.off("abilityLifecycle", this.lifecycleId, (error, data) => { - console.info(TAG, "unregister callback success, err: " + JSON.stringify(error)); - }); - } + // ... + + onDestroy() { + // 获取应用上下文 + let applicationContext = this.context.getApplicationContext(); + // 取消应用内生命周期回调 + applicationContext.off('abilityLifecycle', this.lifecycleId); + } } ``` diff --git a/zh-cn/application-dev/application-models/common-event-overview.md b/zh-cn/application-dev/application-models/common-event-overview.md index 2872dc9e07423dca819c7dc62d959e08585927ce..b68fdc86e1e9179da08fcaf7fdc48f8c109edc0c 100644 --- a/zh-cn/application-dev/application-models/common-event-overview.md +++ b/zh-cn/application-dev/application-models/common-event-overview.md @@ -19,11 +19,10 @@ OpenHarmony通过CES(Common Event Service,公共事件服务)为应用程 - 有序公共事件:CES转发公共事件时,根据订阅者设置的优先级等级,在接收到优先级较高的一个订阅者回复后,再向下一个优先级较低的订阅者转发公共事件。具有相同优先级的订阅者将按随机顺序收到公共事件。 -- 粘性公共事件:能够让订阅者收到在订阅前已经发送的公共事件就是粘性公共事件。普通的公共事件只能在订阅后发送才能收到,而粘性公共事件的特殊性就是可以先发送后订阅,同时也支持先订阅后发送。发送粘性事件必须是系统应用或系统服务,粘性事件发送后会一直存在系统中,且发送者需要申请`ohos.permission.COMMONEVENT_STICKY`权限,配置方式请参见[访问控制授权申请](../security/accesstoken-guidelines.md#配置文件权限声明)。 +- 粘性公共事件:能够让订阅者收到在订阅前已经发送的公共事件就是粘性公共事件。普通的公共事件只能在订阅后发送才能收到,而粘性公共事件的特殊性就是可以先发送后订阅,同时也支持先订阅后发送。发送粘性事件必须是系统应用或系统服务,粘性事件发送后会一直存在系统中,且发送者需要申请`ohos.permission.COMMONEVENT_STICKY`权限,配置方式请参见[配置文件权限声明](../security/accesstoken-guidelines.md#配置文件权限声明)。 每个应用都可以按需订阅公共事件,订阅成功,当公共事件发布时,系统会将其发送给对应的应用。这些公共事件可能来自系统、其他应用和应用自身。 - - **图1** 公共事件示意图 + **图1** 公共事件示意图 ![common-event](figures/common-event.png) diff --git a/zh-cn/application-dev/application-models/create-pageability.md b/zh-cn/application-dev/application-models/create-pageability.md index 75ab7e6cac005796a2156e48db577400b2e61ed6..c653379c1c938e6fd595f3acd4f66b5061be577b 100644 --- a/zh-cn/application-dev/application-models/create-pageability.md +++ b/zh-cn/application-dev/application-models/create-pageability.md @@ -76,22 +76,22 @@ FA模型中,可以通过featureAbility的getContext接口获取应用上下文 通过getContext获取应用上下文并获取分布式目录的示例如下: ```ts -import featureAbility from '@ohos.ability.featureAbility' -import fileIo from '@ohos.fileio' +import featureAbility from '@ohos.ability.featureAbility'; +import fs from '@ohos.file.fs'; (async () => { - let dir: string + let dir: string; try { - console.info('Begin to getOrCreateDistributedDir') - dir = await featureAbility.getContext().getOrCreateDistributedDir() + console.info('Begin to getOrCreateDistributedDir'); + dir = await featureAbility.getContext().getOrCreateDistributedDir(); console.info('distribute dir is ' + dir) } catch (error) { - console.error('getOrCreateDistributedDir failed with ' + error) + console.error('getOrCreateDistributedDir failed with ' + error); } let fd: number; let path = dir + "/a.txt"; - fd = fileIo.openSync(path, 0o2 | 0o100, 0o666); - fileIo.close(fd); + fd = fs.openSync(path, fs.OpenMode.READ_WRITE).fd; + fs.close(fd); })() ``` 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 82173c8d066192ec738f515b191fa27494ffae1b..e23e11d2404c97a1cb7e9a57cd4aaf1487f51e75 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 @@ -2,20 +2,20 @@ 在应用使用场景中,用户经常需要将应用内的数据(如文字、图片等)分享至其他应用以供进一步处理。以分享PDF文件为例,本文将介绍如何使用Want来实现应用间的数据分享。 -数据分享需要使用两个UIAbility组件(分享方和被分享方)以及一个系统组件(应用选择框)。当分享方使用`startAbility()`方法发起数据分享时,系统会隐式匹配所有支持接收分享数据类型的应用,并将其展示给用户以供选择。用户选择应用后,系统将启动该应用来完成数据分享操作。 +数据分享需要使用两个UIAbility组件(分享方和被分享方)以及一个系统组件(应用分享框)。当分享方使用`startAbility()`方法发起数据分享时,系统会隐式匹配所有支持接收分享数据类型的应用,并将其展示给用户以供选择。用户选择应用后,系统将启动该应用来完成数据分享操作。 在本文中,我们将使用按钮的形式触发分享操作,但实际开发中并不限于此。本文主要介绍如何配置Want以实现数据分享的功能。 本文中涉及的两个Action为: -- `ohos.want.action.select`:用于启动应用选择框。 +- `ohos.want.action.select`:用于启动应用分享框。 - `ohos.want.action.sendData`:用于发送单个数据记录。此Action用于将数据传递给分享方应用。 ## 分享方 -为了实现数据分享功能,分享方需要先拉起应用选择框并将要分享的数据传递给被分享方应用。因此,在分享方的代码中需要嵌套使用两层Want。在第一层中,使用隐式Want和`ohos.want.action.select`的action来启动应用选择框。在第二层Want中,声明要传递给被分享方应用的数据。 +为了实现数据分享功能,分享方需要先拉起应用分享框并将要分享的数据传递给被分享方应用。因此,在分享方的代码中需要嵌套使用两层Want。在第一层中,使用隐式Want和`ohos.want.action.select`的action来启动应用分享框。在第二层Want中,声明要传递给被分享方应用的数据。 -具体来说,可以将要分享的数据放在自定义字段`parameters`中,然后将包含`ohos.want.action.sendData`的action和`parameters`字段的Want作为第二层Want传递给应用选择框。被分享方应用可以通过获取参数`parameters`来获取分享的数据。 +具体来说,可以将要分享的数据放在自定义字段`parameters`中,然后将包含`ohos.want.action.sendData`的action和`parameters`字段的Want作为第二层Want传递给应用分享框。被分享方应用可以通过获取参数`parameters`来获取分享的数据。 ```ts import common from '@ohos.app.ability.common'; @@ -34,15 +34,15 @@ function implicitStartAbility() { // which is intended to add info to application selector. parameters: { // The MIME type of pdf - "ability.picker.type": fileType, - "ability.picker.fileNames": [fileName], - "ability.picker.fileSizes": [fileSize], + 'ability.picker.type': fileType, + 'ability.picker.fileNames': [fileName], + 'ability.picker.fileSizes': [fileSize], // This a nested want which will be directly send to the user selected application. - "ability.want.params.INTENT": { - "action": "ohos.want.action.sendData", - "type": "application/pdf", - "parameters": { - "keyFd": { "type": "FD", "value": fileFd } + 'ability.want.params.INTENT': { + 'action': 'ohos.want.action.sendData', + 'type': 'application/pdf', + 'parameters': { + 'keyFd': { 'type': 'FD', 'value': fileFd } } } } diff --git a/zh-cn/application-dev/application-models/enterprise-extensionAbility.md b/zh-cn/application-dev/application-models/enterprise-extensionAbility.md index 158b3eb4801466805d8261919edc479a96f3b7b1..44a6d72a90593c6a04a34f94f9b714c20aa2cbbf 100644 --- a/zh-cn/application-dev/application-models/enterprise-extensionAbility.md +++ b/zh-cn/application-dev/application-models/enterprise-extensionAbility.md @@ -17,17 +17,17 @@ onAdminEnabled:由企业管理员或者员工部署MDM应用,激活设备管 onAdminDisabled:由系统或者员工去激活设备管理器,通知去激活DeviceAdmin权限,应用可以通知企业管理员设备已脱管。 -onBundleAdded: 企业应用管理场景下,企业管理员订阅应用安装卸载事件,端侧应用安装和卸载事件通知MDM应用,MDM应用可以在回调函数中进行事件上报,通知企业管理员。 +onBundleAdded: 企业应用管理场景下,企业管理员订阅应用安装事件,端侧应用安装和卸载事件通知MDM应用,MDM应用可以在回调函数中进行事件上报,通知企业管理员。 -onBundleRemoved: 企业应用管理场景下,企业管理员取消订阅应用安装卸载事件。 +onBundleRemoved: 企业应用管理场景下,企业管理员订阅应用卸载事件,端侧应用安装和卸载事件通知MDM应用,MDM应用可以在回调函数中进行事件上报,通知企业管理员。 ### 接口说明 | 类名 | 接口名称 | 描述 | | :------------------------------ | ----------------------------------------- | ---------------------------- | +| EnterpriseAdminExtensionAbility | onAdminEnabled(): void | 设备管理器应用激活回调方法 | | EnterpriseAdminExtensionAbility | onAdminDisabled(): void | 设备管理器应用去激活回调方法 | | EnterpriseAdminExtensionAbility | onBundleAdded(bundleName: string): void | 应用安装回调方法 | -| EnterpriseAdminExtensionAbility | onAdminEnabled(): void | 设备管理器应用激活回调方法 | | EnterpriseAdminExtensionAbility | onBundleRemoved(bundleName: string): void | 应用卸载回调方法 | ### 开发步骤 @@ -76,10 +76,9 @@ export default class EnterpriseAdminAbility extends EnterpriseAdminExtensionAbil ## 使用示例 -通过@ohos.enterprise.adminManager模块中的subscribeManagedEvent接口和unsubscribeManagedEvent接口进行企业设备管理事件的订阅,订阅应用安装、卸载事件。当订阅成功后,端侧应用安装和卸载事件通知MDM应用,MDM应用可以在回调函数中进行事件上报,通知企业管理员。 +通过@ohos.enterprise.adminManager模块中的subscribeManagedEvent接口进行企业设备管理事件的订阅,订阅应用安装、卸载事件。当订阅成功后,端侧应用安装和卸载事件通知MDM应用,MDM应用可以在回调函数中进行事件上报,通知企业管理员。并可以通过unsubscribeManagedEvent接口进行企业设备管理事件的去订阅。 ```ts - @State managedEvents: Array = [0,1] @State subscribeManagedEventMsg: string = "" @State unsubscribeManagedEventMsg: string = "" 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 067419b0acce2d711705ece7587e3cd77a879b59..f7a39ebf2ea7b80ab710c475c14c92ab438c097c 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 @@ -88,10 +88,6 @@ 调用方传入的want参数中设置uri和type参数发起组件启动请求,系统会遍历当前系统已安装的组件列表,并逐个匹配待匹配Ability的skills配置中的uris数组,如果待匹配Ability的skills配置中的uris数组中只要有一个可以匹配调用方传入的want参数中设置的uri和type即为匹配成功。 -**图3** want参数中uri和type皆不为空时的匹配规则 - -![want-uri-type1](figures/want-uri-type1.png) - 实际应用中,uri和type共存在四种情况,下面将讲解四种情况的具体匹配规则: - 调用方传入的want参数的uri和type都为空。 @@ -111,6 +107,13 @@ 1. 如果待匹配Ability的skills配置中的uris数组为空,匹配失败。 2. 如果待匹配Ability的skills配置中的uris数组存在一条数据[uri匹配](#uri匹配规则)和[type匹配](#type匹配规则)需要均匹配成功,则匹配成功,否则匹配失败。 +最左uri匹配:当配置文件待匹配Ability的skills配置中的uris数组中只配置scheme;或者只配置scheme和host;或者只配置scheme,host和port时。 +传入want参数的uri的最左边依次需要和scheme;或者scheme和host;或者scheme,host,port都匹配,才满足最左uri匹配。 + + **图3** want参数中uri和type皆不为空时的匹配规则 + + ![want-uri-type1](figures/want-uri-type1.png) + 下图为了简化描述,称want中传入的uri为w_uri,称want中传入的type为w_type, 待匹配Ability的skills配置中uris为s_uris,其中每个元素为s_uri;按自上而下顺序匹配。 @@ -128,7 +131,9 @@ - 如果s_uri的host为空,当w_uri和s_uri的scheme相同时匹配成功,否则匹配失败; -- 如果s_uri的path、pathStartWith和pathRegex都为空,当w_uri和s_uri完全相同时匹配成功,否则匹配失败; +- 如果s_uri的port为空,当w_uri和s_uri中的scheme和host相同时匹配成功,否则匹配失败; + +- 如果s_uri的path、pathStartWith和pathRegex都为空,当w_uri和s_uri中的scheme,host和port相同时匹配成功,否则匹配失败; - 如果s_uri的path不为空,当w_uri和s_uri**全路径表达式**相同时匹配成功,否则继续进行pathStartWith的匹配; @@ -144,6 +149,11 @@ > - **前缀表达式**:`scheme://host:port/pathStartWith` > > - **正则表达式**:`scheme://host:port/pathRegex` +> +> - **前缀uri表达式**:当配置文件只配置scheme,或者只配置scheme和host,或者只配置scheme,host和port时,参数传入以配置文件为前缀的Uri +> * `scheme://` +> * `scheme://host` +> * `scheme://host:port` ### type匹配规则 diff --git a/zh-cn/application-dev/application-models/figures/want-uri-type1.png b/zh-cn/application-dev/application-models/figures/want-uri-type1.png index 6dd4117fb44fb8010e4fdbffff5739634680bcd7..3282188c0fa241cbe484394e14597c7cd928941a 100644 Binary files a/zh-cn/application-dev/application-models/figures/want-uri-type1.png and b/zh-cn/application-dev/application-models/figures/want-uri-type1.png differ diff --git a/zh-cn/application-dev/application-models/hop-cross-device-migration.md b/zh-cn/application-dev/application-models/hop-cross-device-migration.md index ae9eb5bd2f164f527441958c57ddb6544e02061a..cf25e93206af9f1f131d415f480c6be920d3e4f4 100644 --- a/zh-cn/application-dev/application-models/hop-cross-device-migration.md +++ b/zh-cn/application-dev/application-models/hop-cross-device-migration.md @@ -47,60 +47,38 @@ ## 开发步骤 -1. 在module.json5配置数据同步权限,示例代码如下。 - +1. 需要申请`ohos.permission.DISTRIBUTED_DATASYNC`权限,配置方式请参见[配置文件权限声明](../security/accesstoken-guidelines.md#配置文件权限声明)。 + +2. 同时需要在应用首次启动时弹窗向用户申请授权,使用方式请参见[向用户申请授权](../security/accesstoken-guidelines.md#向用户申请授权)。 + +3. 在配置文件中配置跨端迁移相关标签字段。 + + 配置应用支持迁移 + 在module.json5中配置continuable标签:true表示支持迁移,false表示不支持,默认为false。配置为false的UIAbility将被系统识别为无法迁移。 + + ```json { "module": { - "requestPermissions":[ - { - "name" : "ohos.permission.DISTRIBUTED_DATASYNC", + // ... + "abilities": [ + { + // ... + "continuable": true, } ] } } ``` -2. 在配置文件中配置跨端迁移相关标签字段。 - - 配置应用支持迁移 - 在module.json5中配置continuable标签:true表示支持迁移,false表示不支持,默认为false。配置为false的UIAbility将被系统识别为无法迁移。 - - - ```json - { - "module": { - // ... - "abilities": [ - { - // ... - "continuable": true, - } - ] - } - } - ``` - - 根据需要配置应用启动模式类型,配置详情请参照[UIAbility组件启动模式](uiability-launch-type.md)。 - -3. 申请数据同步权限,弹框示例代码。 - - ```ts - requestPermission() { - let context = this.context - let permissions: Array = ['ohos.permission.DISTRIBUTED_DATASYNC'] - context.requestPermissionsFromUser(permissions).then((data) => { - console.info("Succeed to request permission from user with data: "+ JSON.stringify(data)) - }).catch((error) => { - console.info("Failed to request permission from user with error: "+ JSON.stringify(error)) - }) - } - ``` + 根据需要配置应用启动模式类型,配置详情请参照[UIAbility组件启动模式](uiability-launch-type.md)。 4. 在发起端UIAbility中实现[onContinue()](../reference/apis/js-apis-app-ability-uiAbility.md#abilityoncontinue)接口。 - 当应用触发迁移时,[onContinue()](../reference/apis/js-apis-app-ability-uiAbility.md#abilityoncontinue)接口在发起端被调用,开发者可以在该接口中保存迁移数据,实现应用兼容性检测,决定是否支持此次迁移。 + 当应用触发迁移时,[onContinue()](../reference/apis/js-apis-app-ability-uiAbility.md#abilityoncontinue)接口在发起端被调用,开发者可以在该接口中保存迁移数据,实现应用兼容性检测,决定是否支持此次迁移。 - 保存迁移数据:开发者可以将要迁移的数据通过键值对的方式保存在wantParam中。 - + - 应用兼容性检测:开发者可以通过从wantParam中获取目标应用的版本号与本应用版本号做兼容性校验。 - + - 迁移决策:开发者可以通过onContinue接口的返回值决定是否支持此次迁移,返回值信息见[接口说明](#接口说明)。 示例如下: diff --git a/zh-cn/application-dev/application-models/hop-multi-device-collaboration.md b/zh-cn/application-dev/application-models/hop-multi-device-collaboration.md index 4e8851aca08ad2ed5906db94af9fc24f25f281d6..c7d4a8c3860cbb4396a519bce9627e6c67109c78 100644 --- a/zh-cn/application-dev/application-models/hop-multi-device-collaboration.md +++ b/zh-cn/application-dev/application-models/hop-multi-device-collaboration.md @@ -47,24 +47,12 @@ ### 开发步骤 -1. 申请`ohos.permission.DISTRIBUTED_DATASYNC`权限,配置方式请参见[访问控制授权申请](../security/accesstoken-guidelines.md#配置文件权限声明)。 +1. 需要申请`ohos.permission.DISTRIBUTED_DATASYNC`权限,配置方式请参见[配置文件权限声明](../security/accesstoken-guidelines.md#配置文件权限声明)。 -2. 申请数据同步权限,弹框示例代码。 - - ```ts - requestPermission() { - let context = this.context; - let permissions: Array = ['ohos.permission.DISTRIBUTED_DATASYNC']; - context.requestPermissionsFromUser(permissions).then((data) => { - console.info("Succeed to request permission from user with data: "+ JSON.stringify(data)); - }).catch((error) => { - console.info("Failed to request permission from user with error: "+ JSON.stringify(error)); - }) - } - ``` +2. 同时需要在应用首次启动时弹窗向用户申请授权,使用方式请参见[向用户申请授权](../security/accesstoken-guidelines.md#向用户申请授权)。 3. 获取目标设备的设备ID。 - + ```ts import deviceManager from '@ohos.distributedHardware.deviceManager'; @@ -94,7 +82,7 @@ ``` 4. 设置目标组件参数,调用[startAbility()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartability)接口,启动UIAbility或ServiceExtensionAbility。 - + ```ts let want = { deviceId: getRemoteDeviceId(), @@ -129,24 +117,12 @@ ### 开发步骤 -1. 申请`ohos.permission.DISTRIBUTED_DATASYNC`权限,配置方式请参见[访问控制授权申请](../security/accesstoken-guidelines.md#配置文件权限声明)。 +1. 需要申请`ohos.permission.DISTRIBUTED_DATASYNC`权限,配置方式请参见[配置文件权限声明](../security/accesstoken-guidelines.md#配置文件权限声明)。 -2. 申请数据同步权限,弹框示例代码。 - - ```ts - requestPermission() { - let context = this.context; - let permissions: Array = ['ohos.permission.DISTRIBUTED_DATASYNC']; - context.requestPermissionsFromUser(permissions).then((data) => { - console.info("Succeed to request permission from user with data: "+ JSON.stringify(data)); - }).catch((error) => { - console.info("Failed to request permission from user with error: "+ JSON.stringify(error)); - }) - } - ``` +2. 同时需要在应用首次启动时弹窗向用户申请授权,使用方式请参见[向用户申请授权](../security/accesstoken-guidelines.md#向用户申请授权)。 3. 在发起端设置目标组件参数,调用startAbilityForResult()接口启动目标端UIAbility,异步回调中的data用于接收目标端UIAbility停止自身后返回给调用方UIAbility的信息。getRemoteDeviceId方法参照[通过跨设备启动uiability和serviceextensionability组件实现多端协同无返回数据](#通过跨设备启动uiability和serviceextensionability组件实现多端协同无返回数据)。 - + ```ts let want = { deviceId: getRemoteDeviceId(), @@ -163,7 +139,7 @@ ``` 4. 在目标端UIAbility任务完成后,调用terminateSelfWithResult()方法,将数据返回给发起端的UIAbility。 - + ```ts const RESULT_CODE: number = 1001; let abilityResult = { @@ -181,7 +157,7 @@ ``` 5. 发起端UIAbility接收到目标端UIAbility返回的信息,对其进行处理。 - + ```ts const RESULT_CODE: number = 1001; @@ -218,21 +194,9 @@ ### 开发步骤 -1. 申请`ohos.permission.DISTRIBUTED_DATASYNC`权限,配置方式请参见[访问控制授权申请](../security/accesstoken-guidelines.md#配置文件权限声明)。 - -2. 申请数据同步权限,弹框示例代码。 - - ```ts - requestPermission() { - let context = this.context; - let permissions: Array = ['ohos.permission.DISTRIBUTED_DATASYNC']; - context.requestPermissionsFromUser(permissions).then((data) => { - console.info("Succeed to request permission from user with data: "+ JSON.stringify(data)); - }).catch((error) => { - console.info("Failed to request permission from user with error: "+ JSON.stringify(error)); - }) - } - ``` +1. 需要申请`ohos.permission.DISTRIBUTED_DATASYNC`权限,配置方式请参见[配置文件权限声明](../security/accesstoken-guidelines.md#配置文件权限声明)。 + +2. 同时需要在应用首次启动时弹窗向用户申请授权,使用方式请参见[向用户申请授权](../security/accesstoken-guidelines.md#向用户申请授权)。 3. 如果已有后台服务,请直接进入下一步;如果没有,则[实现一个后台服务](serviceextensionability.md#实现一个后台服务仅对系统应用开放)。 @@ -292,7 +256,7 @@ getRemoteDeviceId方法参照[通过跨设备启动uiability和serviceextensionability组件实现多端协同无返回数据](#通过跨设备启动uiability和serviceextensionability组件实现多端协同无返回数据)。 5. 断开连接。调用disconnectServiceExtensionAbility()断开与后台服务的连接。 - + ```ts let connectionId = 1 // 在通过connectServiceExtensionAbility绑定服务时返回的Id this.context.disconnectServiceExtensionAbility(connectionId).then((data) => { @@ -327,116 +291,104 @@ ### 开发步骤 -1. 申请`ohos.permission.DISTRIBUTED_DATASYNC`权限,配置方式请参见[访问控制授权申请](../security/accesstoken-guidelines.md#配置文件权限声明)。 - -2. 申请数据同步权限,弹框示例代码。 - - ```ts - requestPermission() { - let context = this.context; - let permissions: Array = ['ohos.permission.DISTRIBUTED_DATASYNC']; - context.requestPermissionsFromUser(permissions).then((data) => { - console.info("Succeed to request permission from user with data: "+ JSON.stringify(data)); - }).catch((error) => { - console.info("Failed to request permission from user with error: "+ JSON.stringify(error)); - }) - } - ``` +1. 需要申请`ohos.permission.DISTRIBUTED_DATASYNC`权限,配置方式请参见[配置文件权限声明](../security/accesstoken-guidelines.md#配置文件权限声明)。 + +2. 同时需要在应用首次启动时弹窗向用户申请授权,使用方式请参见[向用户申请授权](../security/accesstoken-guidelines.md#向用户申请授权)。 3. 创建被调用端UIAbility。 - 被调用端UIAbility需要实现指定方法的数据接收回调函数、数据的序列化及反序列化方法。在需要接收数据期间,通过on接口注册监听,无需接收数据时通过off接口解除监听。 + 被调用端UIAbility需要实现指定方法的数据接收回调函数、数据的序列化及反序列化方法。在需要接收数据期间,通过on接口注册监听,无需接收数据时通过off接口解除监听。 - 1. 配置UIAbility的启动模式。 - 配置module.json5,将CalleeAbility配置为单实例"singleton"。 + 1. 配置UIAbility的启动模式。 + 配置module.json5,将CalleeAbility配置为单实例"singleton"。 - | Json字段 | 字段说明 | - | -------- | -------- | - | “launchType” | Ability的启动模式,设置为"singleton"类型。 | + | Json字段 | 字段说明 | + | -------- | -------- | + | “launchType” | Ability的启动模式,设置为"singleton"类型。 | - UIAbility配置标签示例如下: + UIAbility配置标签示例如下: - - ```json - "abilities":[{ - "name": ".CalleeAbility", - "srcEntrance": "./ets/CalleeAbility/CalleeAbility.ts", - "launchType": "singleton", - "description": "$string:CalleeAbility_desc", - "icon": "$media:icon", - "label": "$string:CalleeAbility_label", - "visible": true - }] - ``` - 2. 导入UIAbility模块。 - - ```ts - import Ability from '@ohos.app.ability.UIAbility'; - ``` - 3. 定义约定的序列化数据。 - 调用端及被调用端发送接收的数据格式需协商一致,如下示例约定数据由number和string组成。 + + ```json + "abilities":[{ + "name": ".CalleeAbility", + "srcEntrance": "./ets/CalleeAbility/CalleeAbility.ts", + "launchType": "singleton", + "description": "$string:CalleeAbility_desc", + "icon": "$media:icon", + "label": "$string:CalleeAbility_label", + "visible": true + }] + ``` + 2. 导入UIAbility模块。 + + ```ts + import Ability from '@ohos.app.ability.UIAbility'; + ``` + 3. 定义约定的序列化数据。 + 调用端及被调用端发送接收的数据格式需协商一致,如下示例约定数据由number和string组成。 - - ```ts - export default class MyParcelable { - num: number = 0; - str: string = ""; - - constructor(num, string) { - this.num = num; - this.str = string; - } - - marshalling(messageSequence) { - messageSequence.writeInt(this.num); - messageSequence.writeString(this.str); - return true; - } - - unmarshalling(messageSequence) { - this.num = messageSequence.readInt(); - this.str = messageSequence.readString(); - return true; - } - } - ``` - 4. 实现Callee.on监听及Callee.off解除监听。 - 如下示例在Ability的onCreate注册MSG_SEND_METHOD监听,在onDestroy取消监听,收到序列化数据后作相应处理并返回。应用开发者根据实际业务需要做相应处理。 - ```ts - const TAG: string = '[CalleeAbility]'; - const MSG_SEND_METHOD: string = 'CallSendMsg'; - - function sendMsgCallback(data) { - console.info('CalleeSortFunc called'); - - // 获取Caller发送的序列化数据 - let receivedData = new MyParcelable(0, ''); - data.readParcelable(receivedData); - console.info(`receiveData[${receivedData.num}, ${receivedData.str}]`); - - // 作相应处理 - // 返回序列化数据result给Caller - return new MyParcelable(receivedData.num + 1, `send ${receivedData.str} succeed`); - } - - export default class CalleeAbility extends Ability { - onCreate(want, launchParam) { - try { - this.callee.on(MSG_SEND_METHOD, sendMsgCallback); - } catch (error) { - console.info(`${MSG_SEND_METHOD} register failed with error ${JSON.stringify(error)}`); - } - } - - onDestroy() { - try { - this.callee.off(MSG_SEND_METHOD); - } catch (error) { - console.error(TAG, `${MSG_SEND_METHOD} unregister failed with error ${JSON.stringify(error)}`); - } - } - } - ``` + ```ts + export default class MyParcelable { + num: number = 0; + str: string = ""; + + constructor(num, string) { + this.num = num; + this.str = string; + } + + marshalling(messageSequence) { + messageSequence.writeInt(this.num); + messageSequence.writeString(this.str); + return true; + } + + unmarshalling(messageSequence) { + this.num = messageSequence.readInt(); + this.str = messageSequence.readString(); + return true; + } + } + ``` + 4. 实现Callee.on监听及Callee.off解除监听。 + 如下示例在Ability的onCreate注册MSG_SEND_METHOD监听,在onDestroy取消监听,收到序列化数据后作相应处理并返回。应用开发者根据实际业务需要做相应处理。 + + ```ts + const TAG: string = '[CalleeAbility]'; + const MSG_SEND_METHOD: string = 'CallSendMsg'; + + function sendMsgCallback(data) { + console.info('CalleeSortFunc called'); + + // 获取Caller发送的序列化数据 + let receivedData = new MyParcelable(0, ''); + data.readParcelable(receivedData); + console.info(`receiveData[${receivedData.num}, ${receivedData.str}]`); + + // 作相应处理 + // 返回序列化数据result给Caller + return new MyParcelable(receivedData.num + 1, `send ${receivedData.str} succeed`); + } + + export default class CalleeAbility extends Ability { + onCreate(want, launchParam) { + try { + this.callee.on(MSG_SEND_METHOD, sendMsgCallback); + } catch (error) { + console.info(`${MSG_SEND_METHOD} register failed with error ${JSON.stringify(error)}`); + } + } + + onDestroy() { + try { + this.callee.off(MSG_SEND_METHOD); + } catch (error) { + console.error(TAG, `${MSG_SEND_METHOD} unregister failed with error ${JSON.stringify(error)}`); + } + } + } + ``` 4. 获取Caller接口,访问被调用端UIAbility。 1. 导入UIAbility模块。 @@ -512,8 +464,8 @@ ``` 6. 释放Caller通信接口。 - Caller不再使用后,应用开发者可以通过release接口释放Caller。 - + Caller不再使用后,应用开发者可以通过release接口释放Caller。 + ```ts releaseCall() { try { diff --git a/zh-cn/application-dev/application-models/inputmethodextentionability.md b/zh-cn/application-dev/application-models/inputmethodextentionability.md index 329bbf970b9e3c755c108598347e7352e2ab8e1e..a671f1e3bc49f0147cc8f752985f75f2ff83f1db 100644 --- a/zh-cn/application-dev/application-models/inputmethodextentionability.md +++ b/zh-cn/application-dev/application-models/inputmethodextentionability.md @@ -29,7 +29,7 @@ InputMethodExtensionAbility通过[InputMethodExtensionContext](../reference/apis 在工程Module对应的ets目录下,右键选择“New > Extention Ability > InputMethod”,即可创建出InputMethodExtensionAbility的最小化模板。 > **说明:** -> 在编译输入法应用时,要使用system_core级别的签名,否则无法拉起输入法键盘。 +> 在编译输入法应用时,要使用system_basic级别的签名,否则无法拉起输入法键盘。 > [签名指导](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-auto-configuring-signature-information-0000001271659465) 最小化模板为一个最基本的输入法应用,包含软键盘拉起以及输入删除功能。后续开发者可在此基础上添加功能,如隐藏键盘等,实现自己的输入法应用。 diff --git a/zh-cn/application-dev/application-models/mission-management-overview.md b/zh-cn/application-dev/application-models/mission-management-overview.md index 527a00d8dcca4221251bf2bbb9ec4e6ecc7baa75..fa7835d59990e941c5aa33ef633b265b4b54270d 100644 --- a/zh-cn/application-dev/application-models/mission-management-overview.md +++ b/zh-cn/application-dev/application-models/mission-management-overview.md @@ -30,102 +30,100 @@ 一个UIAbility实例对应一个单独的任务,因此应用调用[startAbility()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartability)方法启动一个UIAbility时,就是创建了一个任务。 - -桌面应用调用[missionManager](../reference/apis/js-apis-application-missionManager.md)的接口管理任务,需要申请`ohos.permission.MANAGE_MISSIONS`权限,配置方式请参见[访问控制授权申请](../security/accesstoken-guidelines.md#配置文件权限声明)。 - - -利用missionManager进行任务管理(监听任务变化、获取任务信息、获取任务快照、清理任务、任务加锁/解锁等),示例代码如下: - - - -```ts -import missionManager from '@ohos.app.ability.missionManager' - -let listener = { - // 任务创建 - onMissionCreated: function (mission) { - console.info("--------onMissionCreated-------") - }, - // 任务销毁 - onMissionDestroyed: function (mission) { - console.info("--------onMissionDestroyed-------") - }, - // 任务快照变化 - onMissionSnapshotChanged: function (mission) { - console.info("--------onMissionSnapshotChanged-------") - }, - // 任务被移动到前台 - onMissionMovedToFront: function (mission) { - console.info("--------onMissionMovedToFront-------") - }, - // 任务图标变化 - onMissionIconUpdated: function (mission, icon) { - console.info("--------onMissionIconUpdated-------") - }, - // 任务名称变化 - onMissionLabelUpdated: function (mission) { - console.info("--------onMissionLabelUpdated-------") - }, - // 任务实例被关闭 - onMissionClosed: function (mission) { - console.info("--------onMissionClosed-------") - } -}; - -// 1.注册任务变化通知 -let listenerId = missionManager.on('mission', listener); - -// 2.获取系统最近20个任务 -missionManager.getMissionInfos("", 20, (error, missions) => { - console.info("getMissionInfos is called, error.code = " + error.code); - console.info("size = " + missions.length); - console.info("missions = " + JSON.stringify(missions)); -}); - -// 3.获取单个任务的详细信息() -let missionId = 11; // 11只是示例,实际是从系统中获取的任务id,下面类似 -let mission = missionManager.getMissionInfo("", missionId).catch(function (err) { - console.info(err); -}); - -// 4.获取任务快照 -missionManager.getMissionSnapShot("", missionId, (error, snapshot) => { - console.info("getMissionSnapShot is called, error.code = " + error.code); - console.info("bundleName = " + snapshot.ability.bundleName); -}) - -// 5.获取低分辨任务快照 -missionManager.getLowResolutionMissionSnapShot("", missionId, (error, snapshot) => { - console.info("getLowResolutionMissionSnapShot is called, error.code = " + error.code); - console.info("bundleName = " + snapshot.ability.bundleName); -}) - -// 6.加锁/解锁任务 -missionManager.lockMission(missionId).then(() => { - console.info("lockMission is called "); -}); - -missionManager.unlockMission(missionId).then(() => { - console.info("unlockMission is called "); -}); - -// 7.把任务切到前台 -missionManager.moveMissionToFront(missionId).then(() => { - console.info("moveMissionToFront is called "); -}); - -// 8.删除单个任务 -missionManager.clearMission(missionId).then(() => { - console.info("clearMission is called "); -}); - -// 9.删除全部任务 -missionManager.clearAllMissions().catch(function (err) { - console.info(err); -}); - -// 10.解注册任务变化通知 -missionManager.off('mission', listenerId, (error) => { - console.info("unregisterMissionListener"); -}) -``` +1. 桌面应用调用[missionManager](../reference/apis/js-apis-application-missionManager.md)的接口管理任务,需要申请`ohos.permission.MANAGE_MISSIONS`权限,配置方式请参见[配置文件权限声明](../security/accesstoken-guidelines.md#配置文件权限声明)。 + +2. 利用missionManager进行任务管理(监听任务变化、获取任务信息、获取任务快照、清理任务、任务加锁/解锁等)。 + + ```ts + import missionManager from '@ohos.app.ability.missionManager' + + let listener = { + // 任务创建 + onMissionCreated: function (mission) { + console.info("--------onMissionCreated-------") + }, + // 任务销毁 + onMissionDestroyed: function (mission) { + console.info("--------onMissionDestroyed-------") + }, + // 任务快照变化 + onMissionSnapshotChanged: function (mission) { + console.info("--------onMissionSnapshotChanged-------") + }, + // 任务被移动到前台 + onMissionMovedToFront: function (mission) { + console.info("--------onMissionMovedToFront-------") + }, + // 任务图标变化 + onMissionIconUpdated: function (mission, icon) { + console.info("--------onMissionIconUpdated-------") + }, + // 任务名称变化 + onMissionLabelUpdated: function (mission) { + console.info("--------onMissionLabelUpdated-------") + }, + // 任务实例被关闭 + onMissionClosed: function (mission) { + console.info("--------onMissionClosed-------") + } + }; + + // 1.注册任务变化通知 + let listenerId = missionManager.on('mission', listener); + + // 2.获取系统最近20个任务 + missionManager.getMissionInfos("", 20, (error, missions) => { + console.info("getMissionInfos is called, error.code = " + error.code); + console.info("size = " + missions.length); + console.info("missions = " + JSON.stringify(missions)); + }); + + // 3.获取单个任务的详细信息() + let missionId = 11; // 11只是示例,实际是从系统中获取的任务id,下面类似 + let mission = missionManager.getMissionInfo("", missionId).catch(function (err) { + console.info(err); + }); + + // 4.获取任务快照 + missionManager.getMissionSnapShot("", missionId, (error, snapshot) => { + console.info("getMissionSnapShot is called, error.code = " + error.code); + console.info("bundleName = " + snapshot.ability.bundleName); + }) + + // 5.获取低分辨任务快照 + missionManager.getLowResolutionMissionSnapShot("", missionId, (error, snapshot) => { + console.info("getLowResolutionMissionSnapShot is called, error.code = " + error.code); + console.info("bundleName = " + snapshot.ability.bundleName); + }) + + // 6.加锁/解锁任务 + missionManager.lockMission(missionId).then(() => { + console.info("lockMission is called "); + }); + + missionManager.unlockMission(missionId).then(() => { + console.info("unlockMission is called "); + }); + + // 7.把任务切到前台 + missionManager.moveMissionToFront(missionId).then(() => { + console.info("moveMissionToFront is called "); + }); + + // 8.删除单个任务 + missionManager.clearMission(missionId).then(() => { + console.info("clearMission is called "); + }); + + // 9.删除全部任务 + missionManager.clearAllMissions().catch(function (err) { + console.info(err); + }); + + // 10.解注册任务变化通知 + missionManager.off('mission', listenerId, (error) => { + console.info("unregisterMissionListener"); + }) + ``` + + diff --git a/zh-cn/application-dev/application-models/request-permissions.md b/zh-cn/application-dev/application-models/request-permissions.md index f37c6ba9442f2ee813204982fef1c0a98eb77ec4..e9b8ff5b090c1c3d983b9285e4d49bffe777569e 100644 --- a/zh-cn/application-dev/application-models/request-permissions.md +++ b/zh-cn/application-dev/application-models/request-permissions.md @@ -9,37 +9,7 @@ 在config.json声明需要的权限,在module下添加"reqPermissions",并写入对应权限。 +例如申请访问日历权限: -如申请访问日历权限,需要申请`ohos.permission.READ_CALENDAR`权限,配置方式请参见[访问控制授权申请](../security/accesstoken-guidelines.md#配置文件权限声明)。 - - - 对应config.json文件的示例代码如下所示: - -```json -{ - "module": { - // ... - "reqPermissions": [ - { - "name": "ohos.permission.READ_CALENDAR" - // ... - } - ] - } -} -``` - - -通过动态弹窗向用户申请授权: - -```ts -import featureAbility from '@ohos.ability.featureAbility'; - -let context = featureAbility.getContext(); -let permissions: Array = ['ohos.permission.READ_CALENDAR'] -context.requestPermissionsFromUser(permissions, 1).then((data) => { - console.info("Succeed to request permission from user with data: " + JSON.stringify(data)) -}).catch((error) => { - console.info("Failed to request permission from user with error: " + JSON.stringify(error)) -}) -``` +1. 需要申请`ohos.permission.DISTRIBUTED_DATASYNC`权限,配置方式请参见[配置文件权限声明](../security/accesstoken-guidelines.md#配置文件权限声明)。 +2. 同时需要在应用首次启动时弹窗向用户申请授权,使用方式请参见[向用户申请授权](../security/accesstoken-guidelines.md#向用户申请授权)。 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 e90966c58eb9b963f88411127db3cc6890e60e76..3af7d1991cfba406a9fa988c8eb739aa8f548366 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 @@ -240,10 +240,6 @@ Stage模型上同名对象覆盖导致问题的场景举例说明。 struct Index { onPageShow() { let ctx = globalThis.context; // 页面中从globalThis中取出context并使用 - let permissions = ['com.example.permission'] - ctx.requestPermissionsFromUser(permissions,(result) => { - // ... - }); } // 页面展示 build() { @@ -251,7 +247,7 @@ Stage模型上同名对象覆盖导致问题的场景举例说明。 } } ``` - + 3. 在UIAbilityB文件中使用globalThis中存放了[UIAbilityContext](../reference/apis/js-apis-inner-application-uiAbilityContext.md),并且命名为相同的名称。 ```ts @@ -274,10 +270,6 @@ Stage模型上同名对象覆盖导致问题的场景举例说明。 struct Index { onPageShow() { let ctx = globalThis.context; // Page中从globalThis中取出context并使用 - let permissions = ['com.example.permission'] - ctx.requestPermissionsFromUser(permissions,(result) => { - console.info('requestPermissionsFromUser result:' + JSON.stringify(result)); - }); } // 页面展示 build() { @@ -285,7 +277,7 @@ Stage模型上同名对象覆盖导致问题的场景举例说明。 } } ``` - + 5. 在UIAbilityB实例切换至后台,将UIAbilityA实例从后台切换回到前台。此时UIAbilityA的onCreate生命周期不会再次进入。 ```ts @@ -307,10 +299,6 @@ Stage模型上同名对象覆盖导致问题的场景举例说明。 struct Index { onPageShow() { let ctx = globalThis.context; // 这时候globalThis中的context是UIAbilityB的context - let permissions=['com.example.permission']; - ctx.requestPermissionsFromUser(permissions,(result) => { // 使用这个对象就会导致进程崩溃 - console.info('requestPermissionsFromUser result:' + JSON.stringify(result)); - }); } // 页面展示 build() { 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 298ec3f6bf415a2a5e036969df20452877a8c5b4..fafbe6935b781117851968f32e87ad339fcfc252 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 @@ -31,45 +31,52 @@ UIAbility是系统调度的最小单元。在设备内的功能模块之间跳 1. 在EntryAbility中,通过调用[startAbility()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartability)方法启动UIAbility,[want](../reference/apis/js-apis-app-ability-want.md)为UIAbility实例启动的入口参数,其中bundleName为待启动应用的Bundle名称,abilityName为待启动的Ability名称,moduleName在待启动的UIAbility属于不同的Module时添加,parameters为自定义信息参数。示例中的context的获取方式请参见[获取UIAbility的上下文信息](uiability-usage.md#获取uiability的上下文信息)。 ```ts + let context = ...; // UIAbilityContext let wantInfo = { - deviceId: '', // deviceId为空表示本设备 - bundleName: 'com.example.myapplication', - abilityName: 'FuncAbility', - moduleName: 'module1', // moduleName非必选 - parameters: { // 自定义信息 - info: '来自EntryAbility Index页面', - }, + deviceId: '', // deviceId为空表示本设备 + bundleName: 'com.example.myapplication', + abilityName: 'FuncAbility', + moduleName: 'module1', // moduleName非必选 + parameters: { // 自定义信息 + info: '来自EntryAbility Index页面', + }, } // context为调用方UIAbility的UIAbilityContext - this.context.startAbility(wantInfo).then(() => { - // ... + context.startAbility(wantInfo).then(() => { + // ... }).catch((err) => { - // ... + // ... }) ``` - -2. 在FuncAbility的生命周期回调文件中接收EntryAbility传递过来的参数。 + +2. 在FuncAbility的[onCreate()](../reference/apis/js-apis-app-ability-uiAbility.md#uiabilityoncreate)或者[onNewWant()](../reference/apis/js-apis-app-ability-uiAbility.md#uiabilityonnewwant)生命周期回调文件中接收EntryAbility传递过来的参数。 ```ts import UIAbility from '@ohos.app.ability.UIAbility'; import window from '@ohos.window'; export default class FuncAbility extends UIAbility { - onCreate(want, launchParam) { - // 接收调用方UIAbility传过来的参数 - let funcAbilityWant = want; - let info = funcAbilityWant?.parameters?.info; - // ... - } + onCreate(want, launchParam) { + // 接收调用方UIAbility传过来的参数 + let funcAbilityWant = want; + let info = funcAbilityWant?.parameters?.info; + // ... + } } ``` + > **说明:** + > + > 在被拉起的FuncAbility中,可以通过获取传递过来的`want`参数的`parameters`来获取拉起方UIAbility的PID、Bundle Name等信息。 + 3. 在FuncAbility业务完成之后,如需要停止当前UIAbility实例,在FuncAbility中通过调用[terminateSelf()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextterminateself)方法实现。 ```ts + let context = ...; // UIAbilityContext + // context为需要停止的UIAbility实例的AbilityContext - this.context.terminateSelf((err) => { - // ... + context.terminateSelf((err) => { + // ... }); ``` @@ -87,60 +94,63 @@ UIAbility是系统调度的最小单元。在设备内的功能模块之间跳 1. 在EntryAbility中,调用[startAbilityForResult()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextterminateselfwithresult)接口启动FuncAbility,异步回调中的data用于接收FuncAbility停止自身后返回给EntryAbility的信息。示例中的context的获取方式请参见[获取UIAbility的上下文信息](uiability-usage.md#获取uiability的上下文信息)。 ```ts + let context = ...; // UIAbilityContext let wantInfo = { - deviceId: '', // deviceId为空表示本设备 - bundleName: 'com.example.myapplication', - abilityName: 'FuncAbility', - moduleName: 'module1', // moduleName非必选 - parameters: { // 自定义信息 - info: '来自EntryAbility Index页面', - }, + deviceId: '', // deviceId为空表示本设备 + bundleName: 'com.example.myapplication', + abilityName: 'FuncAbility', + moduleName: 'module1', // moduleName非必选 + parameters: { // 自定义信息 + info: '来自EntryAbility Index页面', + }, } // context为调用方UIAbility的UIAbilityContext - this.context.startAbilityForResult(wantInfo).then((data) => { - // ... + context.startAbilityForResult(wantInfo).then((data) => { + // ... }).catch((err) => { - // ... + // ... }) ``` - + 2. 在FuncAbility停止自身时,需要调用[terminateSelfWithResult()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextterminateselfwithresult)方法,入参abilityResult为FuncAbility需要返回给EntryAbility的信息。 ```ts + let context = ...; // UIAbilityContext const RESULT_CODE: number = 1001; let abilityResult = { - resultCode: RESULT_CODE, - want: { - bundleName: 'com.example.myapplication', - abilityName: 'FuncAbility', - moduleName: 'module1', - parameters: { - info: '来自FuncAbility Index页面', - }, + resultCode: RESULT_CODE, + want: { + bundleName: 'com.example.myapplication', + abilityName: 'FuncAbility', + moduleName: 'module1', + parameters: { + info: '来自FuncAbility Index页面', }, + }, } // context为被调用方UIAbility的AbilityContext - this.context.terminateSelfWithResult(abilityResult, (err) => { - // ... + context.terminateSelfWithResult(abilityResult, (err) => { + // ... }); ``` - + 3. FuncAbility停止自身后,EntryAbility通过[startAbilityForResult()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextterminateselfwithresult)方法回调接收被FuncAbility返回的信息,RESULT_CODE需要与前面的数值保持一致。 ```ts + let context = ...; // UIAbilityContext const RESULT_CODE: number = 1001; // ... // context为调用方UIAbility的UIAbilityContext - this.context.startAbilityForResult(want).then((data) => { - if (data?.resultCode === RESULT_CODE) { - // 解析被调用方UIAbility返回的信息 - let info = data.want?.parameters?.info; - // ... - } - }).catch((err) => { + context.startAbilityForResult(wantInfo).then((data) => { + if (data?.resultCode === RESULT_CODE) { + // 解析被调用方UIAbility返回的信息 + let info = data.want?.parameters?.info; // ... + } + }).catch((err) => { + // ... }) ``` @@ -186,32 +196,35 @@ UIAbility是系统调度的最小单元。在设备内的功能模块之间跳 2. 在调用方want参数中的entities和action需要被包含在待匹配UIAbility的skills配置的entities和actions中。系统匹配到符合entities和actions参数条件的UIAbility后,会弹出选择框展示匹配到的UIAbility实例列表供用户选择使用。示例中的context的获取方式请参见[获取UIAbility的上下文信息](uiability-usage.md#获取uiability的上下文信息)。 ```ts + let context = ...; // UIAbilityContext let wantInfo = { - deviceId: '', // deviceId为空表示本设备 - // uncomment line below if wish to implicitly query only in the specific bundle. - // bundleName: 'com.example.myapplication', - action: 'ohos.want.action.viewData', - // entities can be omitted. - entities: ['entity.system.default'], + deviceId: '', // deviceId为空表示本设备 + // uncomment line below if wish to implicitly query only in the specific bundle. + // bundleName: 'com.example.myapplication', + action: 'ohos.want.action.viewData', + // entities can be omitted. + entities: ['entity.system.default'], } // context为调用方UIAbility的UIAbilityContext - this.context.startAbility(wantInfo).then(() => { - // ... + context.startAbility(wantInfo).then(() => { + // ... }).catch((err) => { - // ... + // ... }) ``` - + 效果示意如下图所示,点击“打开PDF文档”时,会弹出选择框供用户选择。 ![](figures/uiability-intra-device-interaction.png) 3. 在文档应用使用完成之后,如需要停止当前UIAbility实例,通过调用[terminateSelf()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextterminateself)方法实现。 ```ts + let context = ...; // UIAbilityContext + // context为需要停止的UIAbility实例的AbilityContext - this.context.terminateSelf((err) => { - // ... + context.terminateSelf((err) => { + // ... }); ``` @@ -249,47 +262,50 @@ UIAbility是系统调度的最小单元。在设备内的功能模块之间跳 2. 调用方使用[startAbilityForResult()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextterminateselfwithresult)方法启动支付应用的UIAbility,在调用方want参数中的entities和action需要被包含在待匹配UIAbility的skills配置的entities和actions中。异步回调中的data用于后续接收支付UIAbility停止自身后返回给调用方的信息。系统匹配到符合entities和actions参数条件的UIAbility后,会弹出选择框展示匹配到的UIAbility实例列表供用户选择使用。 ```ts + let context = ...; // UIAbilityContext let wantInfo = { - deviceId: '', // deviceId为空表示本设备 - // uncomment line below if wish to implicitly query only in the specific bundle. - // bundleName: 'com.example.myapplication', - action: 'ohos.want.action.editData', - // entities can be omitted. - entities: ['entity.system.default'], + deviceId: '', // deviceId为空表示本设备 + // uncomment line below if wish to implicitly query only in the specific bundle. + // bundleName: 'com.example.myapplication', + action: 'ohos.want.action.editData', + // entities can be omitted. + entities: ['entity.system.default'], } // context为调用方UIAbility的UIAbilityContext - this.context.startAbilityForResult(wantInfo).then((data) => { - // ... + context.startAbilityForResult(wantInfo).then((data) => { + // ... }).catch((err) => { - // ... + // ... }) ``` - + 3. 在支付UIAbility完成支付之后,需要调用[terminateSelfWithResult()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextterminateselfwithresult)方法实现停止自身,并将abilityResult参数信息返回给调用方。 ```ts + let context = ...; // UIAbilityContext const RESULT_CODE: number = 1001; let abilityResult = { - resultCode: RESULT_CODE, - want: { - bundleName: 'com.example.myapplication', - abilityName: 'EntryAbility', - moduleName: 'entry', - parameters: { - payResult: 'OKay', - }, + resultCode: RESULT_CODE, + want: { + bundleName: 'com.example.myapplication', + abilityName: 'EntryAbility', + moduleName: 'entry', + parameters: { + payResult: 'OKay', }, + }, } // context为被调用方UIAbility的AbilityContext - this.context.terminateSelfWithResult(abilityResult, (err) => { - // ... + context.terminateSelfWithResult(abilityResult, (err) => { + // ... }); ``` - + 4. 在调用方[startAbilityForResult()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextterminateselfwithresult)方法回调中接收支付应用返回的信息,RESULT_CODE需要与前面[terminateSelfWithResult()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextterminateselfwithresult)返回的数值保持一致。 ```ts + let context = ...; // UIAbilityContext const RESULT_CODE: number = 1001; let want = { @@ -297,14 +313,14 @@ UIAbility是系统调度的最小单元。在设备内的功能模块之间跳 }; // context为调用方UIAbility的UIAbilityContext - this.context.startAbilityForResult(want).then((data) => { - if (data?.resultCode === RESULT_CODE) { - // 解析被调用方UIAbility返回的信息 - let payResult = data.want?.parameters?.payResult; - // ... - } - }).catch((err) => { + context.startAbilityForResult(want).then((data) => { + if (data?.resultCode === RESULT_CODE) { + // 解析被调用方UIAbility返回的信息 + let payResult = data.want?.parameters?.payResult; // ... + } + }).catch((err) => { + // ... }) ``` @@ -335,6 +351,7 @@ UIAbility是系统调度的最小单元。在设备内的功能模块之间跳 ```ts import AbilityConstant from '@ohos.app.ability.AbilityConstant'; +let context = ...; // UIAbilityContext let wantInfo = { deviceId: '', // deviceId为空表示本设备 bundleName: 'com.example.myapplication', @@ -348,7 +365,7 @@ let options = { windowMode: AbilityConstant.WindowMode.WINDOW_MODE_FLOATING } // context为调用方UIAbility的UIAbilityContext -this.context.startAbility(wantInfo, options).then(() => { +context.startAbility(wantInfo, options).then(() => { // ... }).catch((err) => { // ... @@ -369,6 +386,7 @@ this.context.startAbility(wantInfo, options).then(() => { ```ts +let context = ...; // UIAbilityContext let wantInfo = { deviceId: '', // deviceId为空表示本设备 bundleName: 'com.example.myapplication', @@ -379,7 +397,7 @@ let wantInfo = { }, } // context为调用方UIAbility的UIAbilityContext -this.context.startAbility(wantInfo).then(() => { +context.startAbility(wantInfo).then(() => { // ... }).catch((err) => { // ... @@ -397,25 +415,25 @@ import UIAbility from '@ohos.app.ability.UIAbility' import Window from '@ohos.window' export default class FuncAbility extends UIAbility { - funcAbilityWant; - - onCreate(want, launchParam) { - // 接收调用方UIAbility传过来的参数 - this.funcAbilityWant = want; - } - - onWindowStageCreate(windowStage: Window.WindowStage) { - // Main window is created, set main page for this ability - let url = 'pages/Index'; - if (this.funcAbilityWant?.parameters?.router) { - if (this.funcAbilityWant.parameters.router === 'funA') { - url = 'pages/Second'; - } - } - windowStage.loadContent(url, (err, data) => { - // ... - }); + funcAbilityWant; + + onCreate(want, launchParam) { + // 接收调用方UIAbility传过来的参数 + this.funcAbilityWant = want; + } + + onWindowStageCreate(windowStage: Window.WindowStage) { + // Main window is created, set main page for this ability + let url = 'pages/Index'; + if (this.funcAbilityWant?.parameters?.router) { + if (this.funcAbilityWant.parameters.router === 'funA') { + url = 'pages/Second'; + } } + windowStage.loadContent(url, (err, data) => { + // ... + }); + } } ``` @@ -434,11 +452,11 @@ export default class FuncAbility extends UIAbility { import UIAbility from '@ohos.app.ability.UIAbility' export default class FuncAbility extends UIAbility { - onNewWant(want, launchParam) { - // 接收调用方UIAbility传过来的参数 - globalThis.funcAbilityWant = want; - // ... - } + onNewWant(want, launchParam) { + // 接收调用方UIAbility传过来的参数 + globalThis.funcAbilityWant = want; + // ... + } } ``` @@ -468,12 +486,12 @@ export default class FuncAbility extends UIAbility { ``` > **说明:** -> 当被调用方[Ability的启动模式](uiability-launch-type.md)设置为standard启动模式时,每次启动都会创建一个新的实例,那么[onNewWant()](../reference/apis/js-apis-app-ability-uiAbility.md#abilityonnewwant)回调就不会被用到。 +> 当被调用方[UIAbility组件启动模式](uiability-launch-type.md)设置为standard启动模式时,每次启动都会创建一个新的实例,那么[onNewWant()](../reference/apis/js-apis-app-ability-uiAbility.md#abilityonnewwant)回调就不会被用到。 ## 通过Call调用实现UIAbility交互(仅对系统应用开放) -Call调用是UIAbility能力的扩展,它为UIAbility提供一种能够被外部调用并与外部进行通信的能力。Call调用支持前台与后台两种启动方式,使UIAbility既能被拉起到前台展示UI,也可以在后台被创建并运行。Call调用在调用方与被调用方间建立了IPC通信,因此应用开发者可通过Call调用实现不同Ability之间的数据共享。 +Call调用是UIAbility能力的扩展,它为UIAbility提供一种能够被外部调用并与外部进行通信的能力。Call调用支持前台与后台两种启动方式,使UIAbility既能被拉起到前台展示UI,也可以在后台被创建并运行。Call调用在调用方与被调用方间建立了IPC通信,因此应用开发者可通过Call调用实现不同UIAbility之间的数据共享。 Call调用的核心接口是startAbilityByCall方法,与startAbility接口的不同之处在于: @@ -541,32 +559,14 @@ Call功能主要接口如下表所示。具体的API详见[接口文档](../refe 在Callee被调用端,需要实现指定方法的数据接收回调函数、数据的序列化及反序列化方法。在需要接收数据期间,通过on接口注册监听,无需接收数据时通过off接口解除监听。 -1. 配置Ability的启动模式。 - 配置module.json5,将CalleeAbility配置为单实例"singleton"。 - - | Json字段 | 字段说明 | - | -------- | -------- | - | "launchType" | Ability的启动模式,设置为"singleton"类型。 | - - Ability配置标签示例如下: - +1. 配置UIAbility的启动模式。 + + 例如将CalleeAbility配置为单实例模式`singleton`,配置方式请参见[UIAbility组件启动模式](uiability-launch-type.md)。 - ```json - "abilities":[{ - "name": ".CalleeAbility", - "srcEntrance": "./ets/CalleeAbility/CalleeAbility.ts", - "launchType": "singleton", - "description": "$string:CalleeAbility_desc", - "icon": "$media:icon", - "label": "$string:CalleeAbility_label", - "visible": true - }] - ``` - 2. 导入UIAbility模块。 ```ts - import Ability from '@ohos.app.ability.UIAbility'; + import UIAbility from '@ohos.app.ability.UIAbility'; ``` 3. 定义约定的序列化数据。 @@ -575,30 +575,30 @@ Call功能主要接口如下表所示。具体的API详见[接口文档](../refe ```ts export default class MyParcelable { - num: number = 0 - str: string = "" + num: number = 0; + str: string = ''; - constructor(num, string) { - this.num = num - this.str = string - } + constructor(num, string) { + this.num = num; + this.str = string; + } - marshalling(messageSequence) { - messageSequence.writeInt(this.num) - messageSequence.writeString(this.str) - return true - } + marshalling(messageSequence) { + messageSequence.writeInt(this.num); + messageSequence.writeString(this.str); + return true + } - unmarshalling(messageSequence) { - this.num = messageSequence.readInt() - this.str = messageSequence.readString() - return true - } + unmarshalling(messageSequence) { + this.num = messageSequence.readInt(); + this.str = messageSequence.readString(); + return true; + } } ``` 4. 实现Callee.on监听及Callee.off解除监听。 - 被调用端Callee的监听函数注册时机,取决于应用开发者。注册监听之前的数据不会被处理,取消监听之后的数据不会被处理。如下示例在Ability的onCreate注册'MSG_SEND_METHOD'监听,在onDestroy取消监听,收到序列化数据后作相应处理并返回,应用开发者根据实际需要做相应处理。具体示例代码如下: + 被调用端Callee的监听函数注册时机,取决于应用开发者。注册监听之前的数据不会被处理,取消监听之后的数据不会被处理。如下示例在UIAbility的onCreate注册'MSG_SEND_METHOD'监听,在onDestroy取消监听,收到序列化数据后作相应处理并返回,应用开发者根据实际需要做相应处理。具体示例代码如下: ```ts @@ -606,34 +606,34 @@ Call功能主要接口如下表所示。具体的API详见[接口文档](../refe const MSG_SEND_METHOD: string = 'CallSendMsg'; function sendMsgCallback(data) { - console.info('CalleeSortFunc called'); + console.info('CalleeSortFunc called'); - // 获取Caller发送的序列化数据 - let receivedData = new MyParcelable(0, ''); - data.readParcelable(receivedData); - console.info(`receiveData[${receivedData.num}, ${receivedData.str}]`); + // 获取Caller发送的序列化数据 + let receivedData = new MyParcelable(0, ''); + data.readParcelable(receivedData); + console.info(`receiveData[${receivedData.num}, ${receivedData.str}]`); - // 作相应处理 - // 返回序列化数据result给Caller - return new MyParcelable(receivedData.num + 1, `send ${receivedData.str} succeed`); + // 作相应处理 + // 返回序列化数据result给Caller + return new MyParcelable(receivedData.num + 1, `send ${receivedData.str} succeed`); } - export default class CalleeAbility extends Ability { - onCreate(want, launchParam) { - try { - this.callee.on(MSG_SEND_METHOD, sendMsgCallback); - } catch (error) { - console.info(`${MSG_SEND_METHOD} register failed with error ${JSON.stringify(error)}`); - } + export default class CalleeAbility extends UIAbility { + onCreate(want, launchParam) { + try { + this.callee.on(MSG_SEND_METHOD, sendMsgCallback); + } catch (error) { + console.info(`${MSG_SEND_METHOD} register failed with error ${JSON.stringify(error)}`); } + } - onDestroy() { - try { - this.callee.off(MSG_SEND_METHOD); - } catch (error) { - console.error(TAG, `${MSG_SEND_METHOD} unregister failed with error ${JSON.stringify(error)}`); - } + onDestroy() { + try { + this.callee.off(MSG_SEND_METHOD); + } catch (error) { + console.error(TAG, `${MSG_SEND_METHOD} unregister failed with error ${JSON.stringify(error)}`); } + } } ``` @@ -643,40 +643,40 @@ Call功能主要接口如下表所示。具体的API详见[接口文档](../refe 1. 导入UIAbility模块。 ```ts - import Ability from '@ohos.app.ability.UIAbility'; + import UIAbility from '@ohos.app.ability.UIAbility'; ``` 2. 获取Caller通信接口。 - Ability的context属性实现了startAbilityByCall方法,用于获取指定通用组件的Caller通信接口。如下示例通过this.context获取Ability实例的context属性,使用startAbilityByCall拉起Callee被调用端并获取Caller通信接口,注册Caller的onRelease监听。应用开发者根据实际需要做相应处理。 + UIAbilityContext属性实现了startAbilityByCall方法,用于获取指定通用组件的Caller通信接口。如下示例通过this.context获取UIAbility实例的context属性,使用startAbilityByCall拉起Callee被调用端并获取Caller通信接口,注册Caller的onRelease监听。应用开发者根据实际需要做相应处理。 ```ts // 注册caller的release监听 private regOnRelease(caller) { - try { - caller.on("release", (msg) => { - console.info(`caller onRelease is called ${msg}`); - }) - console.info('caller register OnRelease succeed'); - } catch (error) { - console.info(`caller register OnRelease failed with ${error}`); - } + try { + caller.on('release', (msg) => { + console.info(`caller onRelease is called ${msg}`); + }) + console.info('caller register OnRelease succeed'); + } catch (error) { + console.info(`caller register OnRelease failed with ${error}`); + } } async onButtonGetCaller() { - try { - this.caller = await context.startAbilityByCall({ - bundleName: 'com.samples.CallApplication', - abilityName: 'CalleeAbility' - }) - if (this.caller === undefined) { - console.info('get caller failed') - return - } - console.info('get caller success') - this.regOnRelease(this.caller) - } catch (error) { - console.info(`get caller failed with ${error}`) + try { + this.caller = await context.startAbilityByCall({ + bundleName: 'com.samples.CallApplication', + abilityName: 'CalleeAbility' + }) + if (this.caller === undefined) { + console.info('get caller failed') + return } + console.info('get caller success') + this.regOnRelease(this.caller) + } catch (error) { + console.info(`get caller failed with ${error}`) + } } ``` diff --git a/zh-cn/application-dev/connectivity/http-request.md b/zh-cn/application-dev/connectivity/http-request.md index 8c4c663fcc800a1998168aed065fd3e568a5e329..cec44400b724fc3ca43edc77a37e63d4e9ffc0d0 100644 --- a/zh-cn/application-dev/connectivity/http-request.md +++ b/zh-cn/application-dev/connectivity/http-request.md @@ -90,6 +90,78 @@ httpRequest.request( ); ``` +## request2接口开发步骤 + +1. 从@ohos.net.http.d.ts中导入http命名空间。 +2. 调用createHttp()方法,创建一个HttpRequest对象。 +3. 调用该对象的on()方法,可以根据业务需要订阅HTTP响应头事件、HTTP流式响应数据接收事件、HTTP流式响应数据接收进度事件和HTTP流式响应数据接收完毕事件。 +4. 调用该对象的request2()方法,传入http请求的url地址和可选参数,发起网络请求。 +5. 按照实际业务需要,可以解析返回的响应码。 +6. 调用该对象的off()方法,取消订阅相应事件。 +7. 当该请求使用完毕时,调用destroy()方法主动销毁。 + +```js +// 引入包名 +import http from '@ohos.net.http' + +// 每一个httpRequest对应一个HTTP请求任务,不可复用 +let httpRequest = http.createHttp(); +// 用于订阅HTTP响应头事件 +httpRequest.on('headersReceive', (header) => { + console.info('header: ' + JSON.stringify(header)); +}); +// 用于订阅HTTP流式响应数据接收事件 +let res = ''; +httpRequest.on('dataReceive', (data) => { + res += data; + console.info('res: ' + res); +}); +// 用于订阅HTTP流式响应数据接收完毕事件 +httpRequest.on('dataEnd', () => { + console.info('No more data in response, data receive end'); +}); +// 用于订阅HTTP流式响应数据接收进度事件 +httpRequest.on('dataProgress', (data) => { + console.log("dataProgress receiveSize:" + data.receiveSize+ ", totalSize:" + data.totalSize); +}); + +httpRequest.request2( + // 填写HTTP请求的URL地址,可以带参数也可以不带参数。URL地址需要开发者自定义。请求的参数可以在extraData中指定 + "EXAMPLE_URL", + { + method: http.RequestMethod.POST, // 可选,默认为http.RequestMethod.GET + // 开发者根据自身业务需要添加header字段 + header: { + 'Content-Type': 'application/json' + }, + // 当使用POST请求时此字段用于传递内容 + extraData: { + "data": "data to send", + }, + expectDataType: http.HttpDataType.STRING, // 可选,指定返回数据的类型 + usingCache: true, // 可选,默认为true + priority: 1, // 可选,默认为1 + connectTimeout: 60000, // 可选,默认为60000ms + readTimeout: 60000, // 可选,默认为60000ms。若传输的数据较大,需要较长的时间,建议增大该参数以保证数据传输正常终止 + usingProtocol: http.HttpProtocol.HTTP1_1, // 可选,协议类型默认值由系统自动指定 + }, (err, data) => { + console.info('error:' + JSON.stringify(err)); + console.info('ResponseCode :' + JSON.stringify(data)); + // 取消订阅HTTP响应头事件 + httpRequest.off('headersReceive'); + // 取消订阅HTTP流式响应数据接收事件 + httpRequest.off('dataReceive'); + // 取消订阅HTTP流式响应数据接收进度事件 + httpRequest.off('dataProgress'); + // 取消订阅HTTP流式响应数据接收完毕事件 + httpRequest.off('dataEnd'); + // 当该请求使用完毕时,调用destroy方法主动销毁 + httpRequest.destroy(); + } +); + +``` + ## 相关实例 针对HTTP数据请求,有以下相关实例可供参考: - [`Http:`数据请求(ArkTS)(API9))](https://gitee.com/openharmony/applications_app_samples/tree/master/code/BasicFeature/Connectivity/Http) diff --git a/zh-cn/application-dev/database/database-datashare-guidelines.md b/zh-cn/application-dev/database/database-datashare-guidelines.md index cfd6410141c17dc3837f4d24068350e0bbaed263..3ed0ccedd53ccc1a959110440edb42232534266b 100644 --- a/zh-cn/application-dev/database/database-datashare-guidelines.md +++ b/zh-cn/application-dev/database/database-datashare-guidelines.md @@ -264,6 +264,38 @@ DataShare即数据共享模块,提供了向其他应用共享以及管理其 console.log('dsHelper delete result: ' + data); }); ``` +## 限制 + +为了降低DataShareExtensionAbility能力被三方应用滥用的风险,在DataShareExtensionAbility中限制以下接口的调用 +- ./application/UIAbilityContext +- @ohos.ability.featureAbility.d.ts +- @ohos.ability.particleAbility.d.ts +- @ohos.account.osAccount.d.ts +- @ohos.backgroundTaskManager.d.ts +- @ohos.bluetooth.d.ts +- @ohos.bluetoothManager.d.ts +- @ohos.connectedTag.d.ts +- @ohos.continuation.continuationManage.d.ts +- @ohos.mutilmedia.audio.d.ts +- @ohos.multimedia.carema.d.ts +- @ohos.nfc.cardEmulation.d.ts +- @ohos.nfc.controller.d.ts +- @ohos.nfc.tag.d.ts +- @ohos.request.d.ts +- @ohos.resourceschedule.backgroundTaskManager.d.ts +- @ohos.telephony.call.d.ts +- @ohos.telephony.data.d.ts +- @ohos.telephony.observer.d.ts +- @ohos.telephony.radio.d.ts +- @ohos.telephony.sim.d.ts +- @ohos.telephony.sms.d.ts +- @ohos.vibrator.d.ts +- @ohos.wallpaper.d.ts +- @ohos.wifi.d.ts +- @ohos.wifiext.d.ts +- @ohos.wifiManager.d.ts +- @ohos.wifiManagerExt.d.ts +- @ohos.window.d.ts ## 相关示例 diff --git a/zh-cn/application-dev/device/inputdevice-guidelines.md b/zh-cn/application-dev/device/inputdevice-guidelines.md index 81a808458a668734146a544c67e871913a0a8934..9e6722ab1f543241e2c3ba0557da47025eb165d9 100644 --- a/zh-cn/application-dev/device/inputdevice-guidelines.md +++ b/zh-cn/application-dev/device/inputdevice-guidelines.md @@ -29,7 +29,6 @@ import inputDevice from '@ohos.multimodalInput.inputDevice'; 1. 调用getDeviceList方法查询所有连接的输入设备,调用getKeyboardType方法遍历所有连接的设备,判断是否有物理键盘,若有则标记已有物理键盘连接,该步骤确保监听设备热插拔之前,检测所有插入的输入设备。 2. 调用on接口监听输入设备热插拔事件,若监听到有物理键盘插入,则标记已有物理键盘连接;若监听到有物理键盘拔掉,则标记没有物理键盘连接。 -3. 文本框进行输入时,判断是否有物理键盘连接,如果有物理键盘则不弹出虚拟键盘,如果没有物理键盘则弹出虚拟键盘。 ```js @@ -65,6 +64,4 @@ try { } catch (error) { console.log(`Execute failed, error: ${JSON.stringify(error, [`code`, `message`])}`); } - // 3.根据isPhysicalKeyboardExist的值决定虚拟键盘是否弹出 - // TODO ``` diff --git a/zh-cn/application-dev/dfx/apprecovery-guidelines.md b/zh-cn/application-dev/dfx/apprecovery-guidelines.md index 393083bb068e7f282675e166e24c012e2dd0e877..7733738e30e1f3dba3fa05c970fbf1869df2ee29 100644 --- a/zh-cn/application-dev/dfx/apprecovery-guidelines.md +++ b/zh-cn/application-dev/dfx/apprecovery-guidelines.md @@ -125,12 +125,12 @@ import AbilityConstant from '@ohos.app.ability.AbilityConstant'; #### 主动触发保存和恢复 -- 定义和注册[ErrorObserver](../reference/apis/js-apis-inner-application-errorObserver.md) callback +- 定义和注册[ErrorObserver](../reference/apis/js-apis-inner-application-errorObserver.md) callback,具体可参考[errorManager](../reference/apis/js-apis-app-ability-errorManager.md)里的使用方法。 ```ts var registerId = -1; var callback = { - onUnhandledException: function (errMsg) { + onUnhandledException(errMsg) { console.log(errMsg); appRecovery.saveAppState(); appRecovery.restartApp(); @@ -142,7 +142,7 @@ import AbilityConstant from '@ohos.app.ability.AbilityConstant'; console.log("[Demo] EntryAbility onWindowStageCreate") globalThis.registerObserver = (() => { - registerId = errorManager.registerErrorObserver(callback); + registerId = errorManager.on('error', callback); }) windowStage.loadContent("pages/index", null); @@ -158,7 +158,7 @@ callback触发appRecovery.saveAppState()调用后,会触发EntryAbility的onSa // Ability has called to save app data console.log("[Demo] EntryAbility onSaveState") wantParams["myData"] = "my1234567"; - return AbilityConstant.onSaveResult.ALL_AGREE; + return AbilityConstant.OnSaveResult.ALL_AGREE; } ``` @@ -188,8 +188,8 @@ onWindowStageDestroy() { console.log("[Demo] EntryAbility onWindowStageDestroy") globalThis.unRegisterObserver = (() => { - errorManager.unregisterErrorObserver(registerId, (result) => { - console.log("[Demo] result " + result.code + ";" + result.message) + errorManager.off('error', registerId, (err) => { + console.error("[Demo] err:", err); }); }) } @@ -217,7 +217,7 @@ export default class EntryAbility extends Ability { // Ability has called to save app data console.log("[Demo] EntryAbility onSaveState") wantParams["myData"] = "my1234567"; - return AbilityConstant.onSaveResult.ALL_AGREE; + return AbilityConstant.OnSaveResult.ALL_AGREE; } } ``` diff --git a/zh-cn/application-dev/dfx/errormanager-guidelines.md b/zh-cn/application-dev/dfx/errormanager-guidelines.md index 71d028e47de71f6eaf353cabc6382fea2e673843..8bd79d77319961077d84a5b63edb1962189fc669 100644 --- a/zh-cn/application-dev/dfx/errormanager-guidelines.md +++ b/zh-cn/application-dev/dfx/errormanager-guidelines.md @@ -24,6 +24,7 @@ | 接口名称 | 说明 | | ------------------------------ | ------------------------------------------------------------ | | onUnhandledException(errMsg: string): void | 系统回调接口,应用注册后,当应用产生未捕获的异常时的回调。 | +| onException?(errObject: Error): void | 系统回调接口,应用注册后,当应用产生异常上报js层时的回调。 | ### 解除注册结果码 @@ -43,6 +44,13 @@ let registerId = -1; let callback = { onUnhandledException: function (errMsg) { console.log(errMsg); + }, + onException: function (errorObj) { + console.log('onException, name: ', errorObj.name); + console.log('onException, message: ', errorObj.message); + if (typeof(errorObj.stack) === 'string') { + console.log('onException, stack: ', errorObj.stack); + } } } diff --git a/zh-cn/application-dev/dfx/hiappevent-guidelines.md b/zh-cn/application-dev/dfx/hiappevent-guidelines.md index c422b69f7589430d2b4e3eb12dc14d7f6f335e92..bcb7ad3d6bbe8355cc7d2b65f1e5b542db6bb533 100644 --- a/zh-cn/application-dev/dfx/hiappevent-guidelines.md +++ b/zh-cn/application-dev/dfx/hiappevent-guidelines.md @@ -45,7 +45,7 @@ HiAppEvent是在系统层面为应用开发者提供的一种事件打点机制 以实现对用户点击按钮行为的事件打点及订阅为例,说明开发步骤。 -1. 新建一个ets应用工程,编辑工程中的“entry > src > main > ets > entryability > EntryAbility.ts” 文件,在onCreate函数中添加对用户点击按钮事件的订阅,完整示例代码如下: +1. 新建一个ArkTS应用工程,编辑工程中的“entry > src > main > ets > entryability > EntryAbility.ts” 文件,在onCreate函数中添加对用户点击按钮事件的订阅,完整示例代码如下: ```js import hilog from '@ohos.hilog'; diff --git a/zh-cn/application-dev/key-features/multi-device-app-dev/case.md b/zh-cn/application-dev/key-features/multi-device-app-dev/case.md index f1dc34b9e0514708dca74b4e1f67889d730d57f7..0792abdeb6ecd0c060cdba2794501436a6563105 100644 --- a/zh-cn/application-dev/key-features/multi-device-app-dev/case.md +++ b/zh-cn/application-dev/key-features/multi-device-app-dev/case.md @@ -467,8 +467,8 @@ const globalMessageList:any[] = [ | 断点 | 窗口宽度(vp) | 栅格总列数 | 消息气泡占用的列数 | 接收场景偏移的列数 | 发送场景偏移的列数 | | -------- | -------- | -------- | -------- | -------- | -------- | -| sm | [320, 520) | 12 | 12 | 0 | 0 | -| md | [520, 840) | 12 | 8 | 0 | 4 | +| sm | [320, 600) | 12 | 12 | 0 | 0 | +| md | [600, 840) | 12 | 8 | 0 | 4 | | lg | [840, +∞) | 12 | 8 | 0 | 4 | | 默认设备 | 平板 | diff --git a/zh-cn/application-dev/key-features/multi-device-app-dev/design-delivery.md b/zh-cn/application-dev/key-features/multi-device-app-dev/design-delivery.md index 658db5e5e1a18a8a49be9f990a4badbddeb6f6d2..49f29e94a09f65410f508301464bebca900c51dc 100644 --- a/zh-cn/application-dev/key-features/multi-device-app-dev/design-delivery.md +++ b/zh-cn/application-dev/key-features/multi-device-app-dev/design-delivery.md @@ -35,8 +35,8 @@ | 设备类型 | 屏幕宽度 | 画板尺寸(vp) | | -------- | -------- | -------- | | 超小设备 | [0, 320) | 240\*320 | -| 小设备 | [320, 520) | 360\*780 | -| 中设备 | [520, 840) | 677\*763 | +| 小设备 | [320, 600) | 360\*780 | +| 中设备 | [600, 840) | 677\*763 | | 大设备 | [840, +) | 1280\*800 | 多设备效果示意图 diff --git a/zh-cn/application-dev/key-features/multi-device-app-dev/responsive-layout.md b/zh-cn/application-dev/key-features/multi-device-app-dev/responsive-layout.md index 270181beca5a233e31e91b90958b0a79174426f7..5bd5144d57b201b20310a141a8fed69ee55d6528 100644 --- a/zh-cn/application-dev/key-features/multi-device-app-dev/responsive-layout.md +++ b/zh-cn/application-dev/key-features/multi-device-app-dev/responsive-layout.md @@ -24,8 +24,8 @@ | 断点名称 | 取值范围(vp) | | -------- | -------- | | xs | [0, 320) | -| sm | [320, 520) | -| md | [520, 840) | +| sm | [320, 600) | +| md | [600, 840) | | lg | [840, +∞) | > **说明:** @@ -66,7 +66,7 @@ OpenHarmony提供了多种方法,判断应用当前处于何种断点,进而 let newBp: string = '' if (windowWidthVp < 320) { newBp = 'xs' - } else if (windowWidthVp < 520) { + } else if (windowWidthVp < 600) { newBp = 'sm' } else if (windowWidthVp < 840) { newBp = 'md' @@ -209,9 +209,9 @@ export class BreakpointSystem { } public register() { - this.smListener = mediaquery.matchMediaSync("(320vp **说明:** diff --git a/zh-cn/application-dev/media/avplayer-playback.md b/zh-cn/application-dev/media/avplayer-playback.md index 760064f23a825a03c0de41737d84f91760ec2b3d..900a193f3dd9743e5aaa0a6f9fa2b0d463a9279e 100644 --- a/zh-cn/application-dev/media/avplayer-playback.md +++ b/zh-cn/application-dev/media/avplayer-playback.md @@ -481,10 +481,4 @@ export class AVPlayerDemo { this.avPlayer.url = fdPath } } -``` - -## 相关示例 - -针对AVPlayer播放器开发,有以下相关示例可供参考: - -待补充 \ No newline at end of file +``` \ No newline at end of file diff --git a/zh-cn/application-dev/napi/drawing-guidelines.md b/zh-cn/application-dev/napi/drawing-guidelines.md index b746e15978646c5c9efed2cc24fc7ac1fac55768..4de946c8a781f1e3f5b16cc929b7cce5bd585ce9 100644 --- a/zh-cn/application-dev/napi/drawing-guidelines.md +++ b/zh-cn/application-dev/napi/drawing-guidelines.md @@ -189,7 +189,7 @@ Native Drawing模块提供了一系列的接口用于基本图形和字体的绘 OH_Drawing_CreateFontCollection()); OH_Drawing_TypographyHandlerPushTextStyle(handler, txtStyle); // 设置文字内容 - const char* text = "OpenHarmony\n"; + const char* text = "Hello World\n"; OH_Drawing_TypographyHandlerAddText(handler, text); OH_Drawing_TypographyHandlerPopTextStyle(handler); OH_Drawing_Typography* typography = OH_Drawing_CreateTypography(handler); diff --git a/zh-cn/application-dev/notification/notification-with-wantagent.md b/zh-cn/application-dev/notification/notification-with-wantagent.md index 83208e2f85841040a5f5c0008e1d766f900d8fff..d3ea33340bf8af7a738c2655abd892d1a67b6357 100644 --- a/zh-cn/application-dev/notification/notification-with-wantagent.md +++ b/zh-cn/application-dev/notification/notification-with-wantagent.md @@ -12,9 +12,8 @@ 具体接口描述,详见[WantAgent接口文档](../reference/apis/js-apis-app-ability-wantAgent.md)。 -| | | -| -------- | -------- | | **接口名** | **描述** | +| -------- | -------- | | getWantAgent(info: WantAgentInfo, callback: AsyncCallback<WantAgent>): void | 创建WantAgent。 | | trigger(agent: WantAgent, triggerInfo: TriggerInfo, callback?: Callback<CompleteData>): void | 触发WantAgent意图。 | | cancel(agent: WantAgent, callback: AsyncCallback<void>): void | 取消WantAgent。 | diff --git a/zh-cn/application-dev/quick-start/Readme-CN.md b/zh-cn/application-dev/quick-start/Readme-CN.md index ef1c7b868f3a4be8ee86d36c2c3109f0011a314b..7447243c41ecf4b6f0c3a73c18f51941802d0ece 100755 --- a/zh-cn/application-dev/quick-start/Readme-CN.md +++ b/zh-cn/application-dev/quick-start/Readme-CN.md @@ -27,6 +27,7 @@ - [应用间HSP开发指导(仅对系统应用开放)](cross-app-hsp.md) - 原子化服务 - [原子化服务开发指导](atomicService.md) + - [原子化服务空间管理(仅对系统应用开放)](atomicService-aging.md) - 应用程序包快速修复 - [快速修复概述](quickfix-principles.md) - [快速修复调试指导](quickfix-debug.md) diff --git a/zh-cn/application-dev/quick-start/application-package-structure-fa.md b/zh-cn/application-dev/quick-start/application-package-structure-fa.md index 3e75f3b114fc2865f54ebbcc70bd0f6e9d39ced6..a8fb2e327d19ad114f265994a07716ceb1d6ad72 100644 --- a/zh-cn/application-dev/quick-start/application-package-structure-fa.md +++ b/zh-cn/application-dev/quick-start/application-package-structure-fa.md @@ -11,7 +11,7 @@ FA模型与Stage模型不同之处在于HAP内部文件存放位置不同,FA - assets是HAP所有的资源文件、库文件和代码文件的集合,内部可以分为entry和js文件夹。entry文件夹中存放的是resources目录和resources.index文件。 -- resources目录用于存放应用的资源文件(字符串、图片等),便于开发者使用和维护,详见[资源文件的使用](../key-features/multi-device-app-dev/resource-usage.md)。 +- resources目录用于存放应用的资源文件(字符串、图片等),便于开发者使用和维护,详见[资源文件的使用](resource-categories-and-access.md)。 - resources.index是资源索引表,由IDE调用SDK工具生成。 diff --git a/zh-cn/application-dev/quick-start/application-package-structure-stage.md b/zh-cn/application-dev/quick-start/application-package-structure-stage.md index 41c5bc2431533a746a6367d2a90fa64809036ded..485f83c1a731e7b0697a1d2e1fe6358492eb2f02 100644 --- a/zh-cn/application-dev/quick-start/application-package-structure-stage.md +++ b/zh-cn/application-dev/quick-start/application-package-structure-stage.md @@ -21,7 +21,7 @@ - 打包后的HAP结构包括ets、libs、resources等文件夹和resources.index、module.json、pack.info等文件。 - ets目录用于存放应用代码编译后的字节码文件。 - libs目录用于存放库文件。库文件是OpenHarmony应用依赖的第三方代码(.so二进制文件)。 - - resources目录用于存放应用的资源文件(字符串、图片等),便于开发者使用和维护,详见[资源文件的使用](../key-features/multi-device-app-dev/resource-usage.md)。 + - resources目录用于存放应用的资源文件(字符串、图片等),便于开发者使用和维护,详见[资源文件的使用](resource-categories-and-access.md)。 - resources.index是资源索引表,由IDE编译工程时生成。 - module.json是HAP的配置文件,内容由工程配置中的module.json5和app.json5组成,该文件是HAP中必不可少的文件。IDE会自动生成一部分默认配置,开发者按需修改其中的配置。详细字段请参见[应用配置文件](application-configuration-file-overview-stage.md)。 - pack.info是Bundle中用于描述每个HAP属性的文件,例如app中的bundleName和versionCode信息、module中的name、type和abilities等信息,由IDE工具生成Bundle包时自动生成。 diff --git a/zh-cn/application-dev/quick-start/atomicService-aging.md b/zh-cn/application-dev/quick-start/atomicService-aging.md new file mode 100644 index 0000000000000000000000000000000000000000..6386a526006120cfd6c94bb18252137fedf03e78 --- /dev/null +++ b/zh-cn/application-dev/quick-start/atomicService-aging.md @@ -0,0 +1,72 @@ +# 原子化服务空间管理(仅对系统应用开放) + +从用户的角度,用户不感知原子化服务的安装,也不会主动的卸载原子化服务;从操作系统的角度,原子化服务使用[免安装特性](../reference/apis/js-apis-freeInstall.md),但并不是真的不安装。因此,为了减少系统空间占用,需要对原子化服务有序管理。 + +## 原子化服务数据目录配额管理 + +对原子化服务的数据沙箱目录设置存储配额上限,可通过系统参数persist.sys.bms.aging.policy.atomicservice.datasize.threshold获得,默认值1024MB,当超过该配额限制时,写入数据返回失败。 + +查看和设置系统参数可使用[param get/set](../../device-dev/subsystems/subsys-boot-init-plugin.md)命令 + +## 主动销毁原子化服务 + +可以通过[uninstall](../reference/apis/js-apis-installer.md#bundleinstalleruninstall)接口主动销毁原子化服务。 + +**示例:** + +```ts +import installer from '@ohos.bundle.installer'; +let bundleName = 'com.ohos.demo'; +let installParam = { + userId: 100 +}; + +try { + installer.getBundleInstaller().then(data => { + data.uninstall(bundleName, installParam, err => { + if (err) { + console.error('uninstall failed:' + err.message); + } else { + console.info('uninstall successfully.'); + } + }); + }).catch(error => { + console.error('getBundleInstaller failed. Cause: ' + error.message); + }); +} catch (error) { + console.error('getBundleInstaller failed. Cause: ' + error.message); +} +``` + +## 自动销毁原子化服务 + +### 自动销毁时机 + +- 定时器触发,其间隔可通过系统参数persist.sys.bms.aging.policy.timer.interval获得,默认8小时;要求剩余电量必须大于等于系统参数persist.sys.bms.aging.policy.battery.threshold,默认10% +- 安装原子化服务时触发 +- 修改原子化服务可清理标识时触发 + +### 销毁条件 + +#### 原子化服务可销毁 + +- 通过[isHapModuleRemovable](../reference/apis/js-apis-freeInstall.md#ishapmoduleremovable)返回true +- 非运行状态 + +#### 销毁开始条件 + +当前系统所有原子化服务占用空间(包含安装目录和数据目录)大于系统参数persist.sys.bms.aging.policy.data.size.threshold,默认500MB + +#### 销毁结束条件 + +当前系统所有原子化服务占用空间(包含安装目录和数据目录)小于系统参数persist.sys.bms.aging.policy.data.size.threshold的80% + +### 自动销毁顺序 + +- 将可销毁的原子化服务按照最近使用时间区分到不同时间区域内,如[0, 10), [10, 20), [20, 30), [30, ~), 可通过系统参数persist.sys.bms.aging.policy.recently.used.threshold获得时间区域单位,默认是1天; +- 对于两个可销毁的原子化服务,若处于同一时间区域内优先销毁使用频率低的原子化服务;若处于不同时间区域内优先销毁长时间未使用的原子化服务。 + +### 分级自动销毁 + +- 当满足自动销毁开始条件时,按照销毁顺序优先销毁原子化服务的cache目录,若满足销毁结束条件,则退出; +- 若不满足,则按照销毁顺序再次清理原子化服务的其他目录。 \ No newline at end of file diff --git a/zh-cn/application-dev/quick-start/figures/application_details.jpg b/zh-cn/application-dev/quick-start/figures/application_details.jpg new file mode 100644 index 0000000000000000000000000000000000000000..17b7172bc5bea2f4e16af8d385834930ca4bf49f Binary files /dev/null and b/zh-cn/application-dev/quick-start/figures/application_details.jpg differ diff --git a/zh-cn/application-dev/quick-start/full-sdk-compile-guide.md b/zh-cn/application-dev/quick-start/full-sdk-compile-guide.md index 4d53d2d7be083d5d8d15cb7168de4f9bfdde242b..fde6de851ef350257cde9f26cdc12b0ca2b524a7 100644 --- a/zh-cn/application-dev/quick-start/full-sdk-compile-guide.md +++ b/zh-cn/application-dev/quick-start/full-sdk-compile-guide.md @@ -26,5 +26,5 @@ ## 替换SDK -full-SDK编译完成后需要在DevEcoStudio替换使用,具体请参考[full-SDK替换指南](../../application-dev/quick-start/full-sdk-switch-guide.md)。 +full-SDK编译完成后需要在DevEcoStudio替换使用,具体请参考[full-SDK替换指南](full-sdk-switch-guide.md)。 diff --git a/zh-cn/application-dev/quick-start/module-configuration-file.md b/zh-cn/application-dev/quick-start/module-configuration-file.md index eebaf16f8cacf6f3b23f1914357fd7c2ac9053dc..399fb7f2641c92d5dd08f150a873b6b934961e2d 100644 --- a/zh-cn/application-dev/quick-start/module-configuration-file.md +++ b/zh-cn/application-dev/quick-start/module-configuration-file.md @@ -221,14 +221,15 @@ deviceTypes示例: abilities标签描述UIAbility组件的配置信息,标签值为数组类型,该标签下的配置只对当前UIAbility生效。 -**OpenHarmony中不允许应用隐藏启动图标** +**OpenHarmony中不允许应用隐藏入口图标** -OpenHarmony系统对无图标应用严格管控。如果HAP中没有配置启动图标,那么系统将应用app.json中的icon作为启动图标,并显示在桌面上。
-用户点击该图标,将跳转到Settings的应用管理中对应的应用详情页面中。
-如果应用想要隐藏启动图标,需要配置AllowAppDesktopIconHide应用特权,具体配置方式参考[应用特权配置指南](../../device-dev/subsystems/subsys-app-privilege-config-guide.md)。 +OpenHarmony系统对无图标应用严格管控。如果HAP中没有配置入口图标,那么系统将应用app.json中的icon作为入口图标,并显示在桌面上。
+用户点击该图标,将跳转到设置应用管理中对应的应用详情页面(图1)中。
+如果应用想要隐藏入口图标,需要配置AllowAppDesktopIconHide应用特权,具体配置方式参考[应用特权配置指南](../../device-dev/subsystems/subsys-app-privilege-config-guide.md)。 +**场景说明:** 该功能能防止一些恶意应用,故意配置无入口图标,导致用户找不到软件所在的位置,无法操作卸载应用,在一定程度上保证用户的手机安全 -**启动图标的设置:** 需要在配置文件(module.json5)中abilities配置下设置icon,label以及skills,而且skills的配置下的必须同时包含“ohos.want.action.home” 和 “entity.system.home”: +**入口图标的设置:** 需要在配置文件(module.json5)中abilities配置下设置icon,label以及skills,而且skills的配置下的必须同时包含“ohos.want.action.home” 和 “entity.system.home”: ``` { "module":{ @@ -250,32 +251,34 @@ OpenHarmony系统对无图标应用严格管控。如果HAP中没有配置启动 } ``` -**启动图标的查询** -* HAP中包含Ability - * 配置文件(module.json5)中abilities配置中设置了启动图标 +**入口图标及入口标签的显示规则** +* HAP中包含UIAbility + * 配置文件(module.json5)中abilities配置中设置了入口图标 * 该应用没有隐藏图标的特权 - * 返回的桌面图标为该Ability配置的图标 - * 返回的桌面Label为该Ability配置的Label(如果没有配置Label,返回包名) - * 返回的组件名为该Ability的组件名 - * 用户点击该桌面图标,页面跳转到该Ability首页 + * 显示桌面图标为该UIAbility配置的图标 + * 显示桌面Label为该UIAbility配置的Label(如果没有配置Label,返回包名) + * 显示组件名为该UIAbility的组件名 + * 用户点击该桌面图标,页面跳转到该UIAbility首页 * 该应用具有隐藏图标的特权 * 桌面查询时不返回应用信息,不会在桌面上显示对应的图标。 - * 配置文件(module.json5)中abilities配置中未设置启动图标 + * 配置文件(module.json5)中abilities配置中未设置入口图标 * 该应用没有隐藏图标的特权 - * 返回的桌面图标为app配置下的图标(app.json中icon为必填项) - * 返回的桌面Label为app配置下的label(app.json中label为必填项) - * 返回的组件名为应用详情页面的组件名(该组件为系统内置) - * 用户点击该桌面图标,页面跳转到该应用的详情页面 + * 显示桌面图标为app配置下的图标(app.json中icon为必填项) + * 显示桌面Label为app配置下的label(app.json中label为必填项) + * 用户点击该桌面图标,页面跳转到该应用的详情页面(图1) * 该应用具有隐藏图标的特权 * 桌面查询时不返回应用信息,不会在桌面上显示对应的图标。 -* HAP中不包含Ability +* HAP中不包含UIAbility * 该应用没有隐藏图标的特权 - * 返回的桌面图标为app配置下的图标(app.json中icon为必填项) - * 返回的桌面Label为app配置下的label(app.json中label为必填项) - * 返回的组件名为应用详情页面的组件名(该组件为系统内置) - * 用户点击该桌面图标,页面跳转到该应用的详情页面 + * 显示桌面图标为app配置下的图标(app.json中icon为必填项) + * 显示桌面Label为app配置下的label(app.json中label为必填项) + * 用户点击该桌面图标,页面跳转到该应用的详情页面(图1) * 该应用具有隐藏图标的特权 * 桌面查询时不返回应用信息,不会在桌面上显示对应的图标。

+ +应用的详情页例图 + +![应用的详情页例图](figures/application_details.jpg) **表6** **abilities标签说明** @@ -411,39 +414,6 @@ skills示例: } ``` -**增强隐式查询功能** - -支持Uri级别的前缀匹配。 -当配置文件只配置scheme,或者只配置scheme和host,或者只配置scheme,host和port时,参数传入以配置文件为前缀的Uri,配置成功。 - - - * 查询功能增强涉及以下接口
- [@ohos.bundle.bundleManager](../reference/apis/js-apis-bundleManager.md#bundlemanagerqueryabilityinfo)
- 1. function queryAbilityInfo(want: Want, abilityFlags: number, callback: AsyncCallback>): void;
- 2. function queryAbilityInfo(want: Want, abilityFlags: number, userId: number, callback: AsyncCallback>): void;
- 3. function queryAbilityInfo(want: Want, abilityFlags: number, userId?: number): Promise>; - * 配置要求
- abilities -> skills -> uris对象
- 配置1: 只配置 scheme = 'http'
- 配置2: 只配置 ( scheme = 'http' ) + ( host = 'example.com' )
- 配置3: 只配置 ( scheme = 'http' ) + ( host = 'example.com' ) + ( port = '8080' ) - * 前缀匹配
- 参数[want](../application-models/want-overview.md)下uri,调用queryAbilityInfo查询接口
- 1. uri = 'https://' 无匹配
- 2. uri = 'http://' 可以匹配 配置1
- 3. uri = 'https://example.com' 无匹配
- 4. uri = 'https://exa.com' 无匹配
- 5. uri = 'http://exa.com' 可以匹配 配置1
- 6. uri = 'http://example.com' 可以匹配 配置1 配置2
- 7. uri = 'https://example.com:8080' 无匹配
- 8. uri = 'http://exampleaa.com:8080' 可以匹配 配置1
- 9. uri = 'http://example.com:9180' 可以匹配 配置1 配置2
- 10. uri = 'http://example.com:8080' 可以匹配 配置1 配置2 配置3
- 11. uri = 'https://example.com:9180/path' 无匹配
- 12. uri = 'http://exampleap.com:8080/path' 可以匹配 配置1
- 13. uri = 'http://example.com:9180/path' 可以匹配 配置1 配置2
- 14. uri = 'http://example.com:8080/path' 可以匹配 配置1 配置2 配置3
- ## extensionAbilities标签 描述extensionAbilities的配置信息,标签值为数组类型,该标签下的配置只对当前extensionAbilities生效。 diff --git a/zh-cn/application-dev/quick-start/module-structure.md b/zh-cn/application-dev/quick-start/module-structure.md index 5da4b2204179728ef1ddfd900fcaf75066256d98..69afd5d9b435430d8ca9d1b014be649e5de0c700 100644 --- a/zh-cn/application-dev/quick-start/module-structure.md +++ b/zh-cn/application-dev/quick-start/module-structure.md @@ -190,14 +190,15 @@ metadata对象示例: ## abilities对象的内部结构 -**OpenHarmony中不允许应用隐藏启动图标** +**OpenHarmony中不允许应用隐藏入口图标** -OpenHarmony系统对无图标应用严格管控。如果HAP中没有配置启动图标,那么系统会给该应用创建一个默认的图标显示在桌面上;
-用户点击该图标,将跳转到Settings的应用管理中对应的应用详情页面中。
-如果应用想要隐藏启动图标,需要配置AllowAppDesktopIconHide应用特权,具体配置方式参考[应用特权配置指南](../../device-dev/subsystems/subsys-app-privilege-config-guide.md)。 +OpenHarmony系统对无图标应用严格管控。如果HAP中没有配置入口图标,那么系统会给该应用创建一个默认的图标显示在桌面上;
+用户点击该图标,将跳转到Settings的应用管理中对应的应用详情页面(图1)中。
+如果应用想要隐藏入口图标,需要配置AllowAppDesktopIconHide应用特权,具体配置方式参考[应用特权配置指南](../../device-dev/subsystems/subsys-app-privilege-config-guide.md)。 +**场景说明:** 该功能能防止一些恶意应用,故意配置无入口图标,导致用户找不到软件所在的位置,无法操作卸载应用,在一定程度上保证用户的手机安全 -**启动图标的设置:** 需要在配置文件(config.json)中abilities配置下设置icon,label以及skills,而且skills的配置下必须同时包含“ohos.want.action.home” 和 “entity.system.home”: +**入口图标的设置:** 需要在配置文件(config.json)中abilities配置下设置icon,label以及skills,而且skills的配置下必须同时包含“ohos.want.action.home” 和 “entity.system.home”: ``` { "module":{ @@ -220,34 +221,36 @@ OpenHarmony系统对无图标应用严格管控。如果HAP中没有配置启动 } ``` -**启动图标的查询** -* HAP中包含Page类型的Ability - * 配置文件(config.json)中abilities配置中设置了启动图标 +**入口图标及入口标签的显示规则** +* HAP中包含Page类型的PageAbility + * 配置文件(config.json)中abilities配置中设置了入口图标 * 该应用没有隐藏图标的特权 - * 返回的桌面图标为该Ability配置的图标 - * 返回的桌面Label为该Ability配置的Label(如果没有配置Label,返回包名) - * 返回的组件名为该Ability的组件名 - * 用户点击该桌面图标,页面跳转到该Ability首页 + * 显示桌面图标为该PageAbility配置的图标 + * 显示桌面Label为该PageAbility配置的Label(如果没有配置Label,返回包名) + * 显示组件名为该PageAbility的组件名 + * 用户点击该桌面图标,页面跳转到该PageAbility首页 * 该应用具有隐藏图标的特权 * 桌面查询时不返回应用信息,不会在桌面上显示对应的图标。 - * 配置文件(config.json)中abilities配置中未设置启动图标 + * 配置文件(config.json)中abilities配置中未设置入口图标 * 该应用没有隐藏图标的特权 - * 返回的桌面图标为系统默认图标 - * 返回的桌面Label为该应用的包名 - * 返回的组件名为应用详情页面的组件名(该组件为系统内置) - * 用户点击该桌面图标,页面跳转到该应用的详情页面 + * 显示桌面图标为系统默认图标 + * 显示桌面Label为该应用的包名 + * 用户点击该桌面图标,页面跳转到该应用的详情页面(图1) * 该应用具有隐藏图标的特权 * 桌面查询时不返回应用信息,不会在桌面上显示对应的图标。 -* HAP中不包含Page类型的Ability +* HAP中不包含Page类型的PageAbility * 该应用没有隐藏图标的特权 - * 返回的桌面图标为系统默认图标 - * 返回的桌面Label为该应用的包名 - * 返回的组件名为应用详情页面的组件名(该组件为系统内置) - * 用户点击该桌面图标,页面跳转到该应用的详情页面 + * 显示桌面图标为系统默认图标 + * 显示桌面Label为该应用的包名 + * 用户点击该桌面图标,页面跳转到该应用的详情页面(图1) * 该应用具有隐藏图标的特权 * 桌面查询时不返回应用信息,不会在桌面上显示对应的图标。 -注:应用详情页面中显示的图标与label,可能与桌面上显示的不同。如果非Page类型的ability配置了入口图标和label,那么详情页中显示的即为配置的。

+注:应用详情页面(图1)中显示的label可能与桌面上显示的不同。如果非Page类型的PageAbility配置了入口图标和label,那么详情页中显示的即为配置的。

+ +图1 + +![应用的详情页例图](figures/application_details.jpg) **表8** **abilities对象的内部结构说明** @@ -411,40 +414,6 @@ skills示例: ] ``` -**增强隐式查询功能** - -支持Uri级别的前缀匹配。 -当配置文件只配置scheme,或者只配置scheme和host,或者只配置scheme,host和port时,参数传入以配置文件为前缀的Uri,配置成功。 - - * 查询功能增强涉及以下接口
- [@ohos.bundle.bundleManager](../reference/apis/js-apis-bundleManager.md#bundlemanagerqueryabilityinfo)
- 1. function queryAbilityInfo(want: Want, abilityFlags: number, callback: AsyncCallback>): void;
- 2. function queryAbilityInfo(want: Want, abilityFlags: number, userId: number, callback: AsyncCallback>): void;
- 3. function queryAbilityInfo(want: Want, abilityFlags: number, userId?: number): Promise>; - * 配置要求
- abilities -> skills -> uris对象
- 配置1: 只配置 scheme = 'http'
- 配置2: 只配置 ( scheme = 'http' ) + ( host = 'www.example.com' )
- 配置3: 只配置 ( scheme = 'http' ) + ( host = 'www.example.com' ) + ( port = '8080' ) - * 前缀匹配
- [want](../application-models/want-overview.md)下uri,调用queryAbilityInfo查询接口
- 1. uri = 'https://' 无匹配
- 2. uri = 'http://' 可以匹配 配置1
- 3. uri = 'https://www.example.com' 无匹配
- 4. uri = 'https://www.exa.com' 无匹配
- 5. uri = 'http://www.exa.com' 可以匹配 配置1
- 6. uri = 'http://www.example.com' 可以匹配 配置1 配置2
- 7. uri = 'https://www.example.com:8080' 无匹配
- 8. uri = 'http://www.exampleaa.com:8080' 可以匹配 配置1
- 9. uri = 'http://www.example.com:9180' 可以匹配 配置1 配置2
- 10. uri = 'http://www.example.com:8080' 可以匹配 配置1 配置2 配置3
- 11. uri = 'https://www.example.com:9180/query/student/name' 无匹配
- 12. uri = 'http://www.exampleap.com:8080/query/student/name' 可以匹配 配置1
- 13. uri = 'http://www.example.com:9180/query/student/name' 可以匹配 配置1 配置2
- 14. uri = 'http://www.example.com:8080/query/student/name' 可以匹配 配置1 配置2 配置3
- - - ## reqPermissions权限申请 **表12** **reqPermissions权限申请字段说明** diff --git a/zh-cn/application-dev/reference/apis/Readme-CN.md b/zh-cn/application-dev/reference/apis/Readme-CN.md index 07d9d19b88f139b835a153c436013f92f3257148..c128daff39dbe566fb49eb253d268a237b405b68 100755 --- a/zh-cn/application-dev/reference/apis/Readme-CN.md +++ b/zh-cn/application-dev/reference/apis/Readme-CN.md @@ -233,10 +233,11 @@ - [@ohos.data.ValuesBucket (数据集)](js-apis-data-valuesBucket.md) - 文件管理 + - [@ohos.file.cloudSyncManager (端云同步管理)](js-apis-file-cloudsyncmanager.md) - [@ohos.file.environment (目录环境能力)](js-apis-file-environment.md) - [@ohos.file.fileAccess (公共文件访问与管理)](js-apis-fileAccess.md) - [@ohos.file.fileExtensionInfo (公共文件访问与管理属性信息)](js-apis-fileExtensionInfo.md) - - [@ohos.file.fileUri (文件URI)](js-apis-file-fileUri.md) + - [@ohos.file.fileuri (文件URI)](js-apis-file-fileuri.md) - [@ohos.file.fs (文件管理)](js-apis-file-fs.md) - [@ohos.file.hash (文件哈希处理)](js-apis-file-hash.md) - [@ohos.file.picker (选择器)](js-apis-file-picker.md) @@ -267,7 +268,8 @@ - [@ohos.request (上传下载)](js-apis-request.md) - 通信与连接 - - [@ohos.bluetooth (蓝牙)](js-apis-bluetooth.md) + - [@ohos.bluetooth (蓝牙)(待停用)](js-apis-bluetooth.md) + - [@ohos.bluetoothManager (蓝牙)(推荐)](js-apis-bluetoothManager.md) - [@ohos.connectedTag (有源标签)](js-apis-connectedTag.md) - [@ohos.nfc.cardEmulation (标准NFC-cardEmulation)](js-apis-cardEmulation.md) - [@ohos.nfc.controller (标准NFC)](js-apis-nfcController.md) @@ -352,6 +354,7 @@ - 定制管理 - [@ohos.configPolicy (配置策略)](js-apis-configPolicy.md) - [@ohos.enterprise.accountManager (帐户管理)](js-apis-enterprise-accountManager.md) + - [@ohos.enterprise.bundleManager (包管理)](js-apis-enterprise-bundleManager.md) - [@ohos.enterprise.adminManager (企业设备管理)](js-apis-enterprise-adminManager.md) - [@ohos.enterprise.dateTimeManager (系统时间管理)](js-apis-enterprise-dateTimeManager.md) - [@ohos.enterprise.deviceControl (设备控制管理)](js-apis-enterprise-deviceControl.md) diff --git a/zh-cn/application-dev/reference/apis/commonEventManager-definitions.md b/zh-cn/application-dev/reference/apis/commonEventManager-definitions.md index 53019c39c737c2a0fa6badf67d3f501eb3ffea8c..0cdb577fbcb8129ea13191797dd2b394450bd093 100644 --- a/zh-cn/application-dev/reference/apis/commonEventManager-definitions.md +++ b/zh-cn/application-dev/reference/apis/commonEventManager-definitions.md @@ -60,10 +60,13 @@ - 值: usual.event.THERMAL_LEVEL_CHANGED - 订阅者所需权限: 无 -## COMMON_EVENT_USER_PRESENT +## COMMON_EVENT_USER_PRESENT(deprecated) (预留事件,暂未支持)用户解锁设备的公共事件的动作。 - 值: usual.event.USER_PRESENT - 订阅者所需权限: 无 +> 说明: +> +> 从API Version 10 开始废弃。 ## COMMON_EVENT_TIME_TICK 表示系统时间更改的公共事件的动作。 @@ -789,3 +792,116 @@ Wi-Fi P2P群组信息已更改。 表示HTTP代理的配置信息发生变化。 - 值:usual.event.HTTP_PROXY_CHANGE - 订阅者所需权限:无 + +## COMMON_EVENT_SIM_STATE_CHANGED10+ +提示SIM卡状态更新。 +- 值:usual.event.SIM_STATE_CHANGED +- 订阅者所需权限:无 + +## COMMON_EVENT_SMS_RECEIVED_COMPLETED10+ +提示短信接收完成。 +- 值:usual.event.SMS_RECEIVED_COMPLETED +- 订阅者所需权限:ohos.permission.RECEIVE_SMS + +## COMMON_EVENT_SMS_EMERGENCY_CB_RECEIVE_COMPLETED10+ +提示紧急小区广播短信接收完成。 +- 值:usual.event.SMS_EMERGENCY_CB_RECEIVE_COMPLETED +- 订阅者所需权限:ohos.permission.RECEIVE_SMS + +## COMMON_EVENT_SMS_CB_RECEIVE_COMPLETED10+ +提示小区广播短信接收完成。 +- 值:usual.event.SMS_CB_RECEIVE_COMPLETED +- 订阅者所需权限:ohos.permission.RECEIVE_SMS + +## COMMON_EVENT_STK_COMMAND10+ +(预留事件,暂未支持)提示STK命令。 +- 值:usual.event.STK_COMMAND +- 订阅者所需权限:无 + +## COMMON_EVENT_STK_SESSION_END10+ +(预留事件,暂未支持)提示STK会话结束。 +- 值:usual.event.STK_SESSION_END +- 订阅者所需权限:无 + +## COMMON_EVENT_STK_CARD_STATE_CHANGED10+ +(预留事件,暂未支持)提示STK卡状态已更新。 +- 值:usual.event.STK_CARD_STATE_CHANGED +- 订阅者所需权限:ohos.permission. + +## COMMON_EVENT_STK_ALPHA_IDENTIFIER10+ +(预留事件,暂未支持)提示STK ALPHA标识符。 +- 值:usual.event.STK_ALPHA_IDENTIFIER +- 订阅者所需权限:无 + +## COMMON_EVENT_SMS_WAPPUSH_RECEIVE_COMPLETED10+ +提示服务信息短信接收完成。 +- 值:usual.event.SMS_WAPPUSH_RECEIVE_COMPLETED +- 订阅者所需权限:ohos.permission.RECEIVE_SMS + +## COMMON_EVENT_OPERATOR_CONFIG_CHANGED10+ +提示运营商配置已更新。 +- 值:usual.event.OPERATOR_CONFIG_CHANGED +- 订阅者所需权限:无 + +## COMMON_EVENT_SIM_CARD_DEFAULT_SMS_SUBSCRIPTION_CHANGED10+ +提示SIM卡默认短信主卡已更新。 +- 值:usual.event.DEFAULT_SMS_SUBSCRIPTION_CHANGED +- 订阅者所需权限:无 + +## COMMON_EVENT_SIM_CARD_DEFAULT_DATA_SUBSCRIPTION_CHANGED10+ +提示SIM卡默认数据主卡已更新。 +- 值:usual.event.DEFAULT_DATA_SUBSCRIPTION_CHANGED +- 订阅者所需权限:无 + +## COMMON_EVENT_SIM_CARD_DEFAULT_MAIN_SUBSCRIPTION_CHANGED10+ +提示SIM卡默认主卡已更新。 +- 值:usual.event.SIM.DEFAULT_MAIN_SUBSCRIPTION_CHANGED +- 订阅者所需权限:无 + +## COMMON_EVENT_SIM_CARD_DEFAULT_VOICE_SUBSCRIPTION_CHANGED10+ +提示SIM卡默认语音主卡已更新。 +- 值:usual.event.DEFAULT_VOICE_SUBSCRIPTION_CHANGED +- 订阅者所需权限:无 + +## COMMON_EVENT_CALL_STATE_CHANGED10+ +提示呼叫状态更新。 +- 值:usual.event.CALL_STATE_CHANGED +- 订阅者所需权限:ohos.permission.GET_TELEPHONY_STATE + +## COMMON_EVENT_CELLULAR_DATA_STATE_CHANGED10+ +提示蜂窝数据状态更新。 +- 值:usual.event.CELLULAR_DATA_STATE_CHANGED +- 订阅者所需权限:无 + +## COMMON_EVENT_NETWORK_STATE_CHANGED10+ +提示网络状态更新。 +- 值:usual.event.NETWORK_STATE_CHANGED +- 订阅者所需权限:无 + +## COMMON_EVENT_SIGNAL_INFO_CHANGED10+ +提示信号信息更新。 +- 值:usual.event.SIGNAL_INFO_CHANGED +- 订阅者所需权限:无 + +## COMMON_EVENT_INCOMING_CALL_MISSED10+ +提示未接来电。 +- 值:usual.event.INCOMING_CALL_MISSED +- 订阅者所需权限:ohos.permission.GET_TELEPHONY_STATE + +## COMMON_EVENT_RADIO_STATE_CHANGE10+ +提示设备modem上下电状态变化。 +- 值:usual.event.RADIO_STATE_CHANGE + +## COMMON_EVENT_SCREEN_LOCKED 10+ + +表示屏幕锁定的公共事件。 + +- 值: usual.event.SCREEN_LOCKED +- 订阅者所需权限: 无 + +## COMMON_EVENT_SCREEN_UNLOCKED10+ + +表示屏幕解锁的公共事件。 + +- 值:usual.event.SCREEN_UNLOCKED +- 订阅者所需权限:无 \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-Bundle-BundleStatusCallback.md b/zh-cn/application-dev/reference/apis/js-apis-Bundle-BundleStatusCallback.md index e67d24ae07803dcc71bfdf9b2ca9ded609919e5e..4150970237ce4ddf5ec4fc119513fb386d8ba26b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-Bundle-BundleStatusCallback.md +++ b/zh-cn/application-dev/reference/apis/js-apis-Bundle-BundleStatusCallback.md @@ -10,7 +10,7 @@ ## BundleStatusCallback(deprecated) > 从API version 9开始不再支持。建议使用[bundleMonitor](js-apis-bundleMonitor.md)替代。 -**系统API:** 此接口为系统接口,三方应用不支持调用。 +**系统API:** 此接口为系统接口。 **系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-Bundle-InnerBundleManager.md b/zh-cn/application-dev/reference/apis/js-apis-Bundle-InnerBundleManager.md index fb7cd3047e666fe09808f55857eb8e857811d8b1..841a7c9b0b786740baccc129749972f9cee567bc 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-Bundle-InnerBundleManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-Bundle-InnerBundleManager.md @@ -34,7 +34,7 @@ SystemCapability.BundleManager.BundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** @@ -62,7 +62,7 @@ SystemCapability.BundleManager.BundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** @@ -94,7 +94,7 @@ SystemCapability.BundleManager.BundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** @@ -121,7 +121,7 @@ SystemCapability.BundleManager.BundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** @@ -153,7 +153,7 @@ SystemCapability.BundleManager.BundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** @@ -179,7 +179,7 @@ SystemCapability.BundleManager.BundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** @@ -210,7 +210,7 @@ SystemCapability.BundleManager.BundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** @@ -236,7 +236,7 @@ SystemCapability.BundleManager.BundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** @@ -267,7 +267,7 @@ SystemCapability.BundleManager.BundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** @@ -293,7 +293,7 @@ SystemCapability.BundleManager.BundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-Bundle-distributedBundle.md b/zh-cn/application-dev/reference/apis/js-apis-Bundle-distributedBundle.md index 49db882be3b123b00dbb25f8a4ee70d406d10eac..76c621f40eeb31b7c60055e90e6035f59ce5292a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-Bundle-distributedBundle.md +++ b/zh-cn/application-dev/reference/apis/js-apis-Bundle-distributedBundle.md @@ -42,7 +42,7 @@ SystemCapability.BundleManager.DistributedBundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** @@ -71,7 +71,7 @@ SystemCapability.BundleManager.DistributedBundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** @@ -103,7 +103,7 @@ SystemCapability.BundleManager.DistributedBundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** @@ -132,7 +132,7 @@ SystemCapability.BundleManager.DistributedBundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** 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 997bf8437e729f08a341ec41029e61c0e06899d3..8d2a5e8afc6db4b729e64972cede9cb5862736c2 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-Bundle.md +++ b/zh-cn/application-dev/reference/apis/js-apis-Bundle.md @@ -426,7 +426,7 @@ SystemCapability.BundleManager.BundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **返回值:** @@ -462,7 +462,7 @@ SystemCapability.BundleManager.BundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** @@ -499,7 +499,7 @@ SystemCapability.BundleManager.BundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** @@ -540,7 +540,7 @@ SystemCapability.BundleManager.BundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** @@ -584,7 +584,7 @@ SystemCapability.BundleManager.BundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** @@ -626,7 +626,7 @@ SystemCapability.BundleManager.BundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** @@ -671,7 +671,7 @@ SystemCapability.BundleManager.BundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** @@ -699,7 +699,7 @@ SystemCapability.BundleManager.BundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** @@ -754,7 +754,7 @@ SystemCapability.BundleManager.BundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** @@ -794,7 +794,7 @@ SystemCapability.BundleManager.BundleFramework **系统API:** -此接口为系统接口,三方应用不支持调用 +此接口为系统接口。 **参数:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-abilityAccessCtrl.md b/zh-cn/application-dev/reference/apis/js-apis-abilityAccessCtrl.md index 65f7d28de041725febfd25cdac582e4b268476fb..8d77a5bffc1a5ccfa74c971c26f5eadf6e5e2b8d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-abilityAccessCtrl.md +++ b/zh-cn/application-dev/reference/apis/js-apis-abilityAccessCtrl.md @@ -206,8 +206,8 @@ grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permiss | 错误码ID | 错误信息 | | -------- | -------- | | 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256, or the flags value is invalid. | -| 12100002 | TokenId does not exist. | -| 12100003 | Permission does not exist. | +| 12100002 | The specified tokenID does not exist. | +| 12100003 | The specified permission does not exist. | | 12100006 | The application specified by the tokenID is not allowed to be granted with the specified permission. Either the application is a sandbox or the tokenID is from a remote device. | | 12100007 | Service is abnormal. | @@ -317,8 +317,8 @@ revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permis | 错误码ID | 错误信息 | | -------- | -------- | | 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256, or the flags value is invalid. | -| 12100002 | TokenId does not exist. | -| 12100003 | Permission does not exist. | +| 12100002 | The specified tokenID does not exist. | +| 12100003 | The specified permission does not exist. | | 12100006 | The application specified by the tokenID is not allowed to be revoked with the specified permission. Either the application is a sandbox or the tokenID is from a remote device. | | 12100007 | Service is abnormal. | @@ -503,7 +503,7 @@ off(type: 'permissionStateChange', tokenIDList: Array<number>, permissionL | 错误码ID | 错误信息 | | -------- | -------- | -| 12100001 | The parameter is invalid. The tokenID in list is all invalid, or the permissionName in list is all invalid. | +| 12100001 | The parameter is invalid. The tokenIDs or permissionNames in the list are all invalid. | | 12100004 | The interface is not used together with "on". | | 12100007 | Service is abnormal. | | 12100008 | Out of memory. | @@ -692,6 +692,44 @@ promise.then(data => { }); ``` +### checkAccessTokenSync10+ + +checkAccessTokenSync(tokenID: number, permissionName: Permissions): GrantStatus; + +校验应用是否被授予权限,同步返回结果。 + +**系统能力:** SystemCapability.Security.AccessToken + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------- | ---- | ------------------------------------------ | +| tokenID | number | 是 | 要校验应用的身份标识。可通过应用的[ApplicationInfo](js-apis-bundleManager-applicationInfo.md)获得。 | +| permissionName | Permissions | 是 | 需要校验的权限名称,合法的权限名取值可在[系统权限定义列表](../../security/permission-list.md)中查询。 | + +**返回值:** + +| 类型 | 说明 | +| :------------ | :---------------------------------- | +| [GrantStatus](#grantstatus) | 枚举实例,返回授权状态。 | + +**错误码:** + +以下错误码的详细介绍请参见[程序访问控制错误码](../errorcodes/errorcode-access-token.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------- | +| 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256. | + +**示例:** + +```js +let atManager = abilityAccessCtrl.createAtManager(); +let tokenID = 0; // 系统应用可以通过bundleManager.getApplicationInfo获取,普通应用可以通过bundleManager.getBundleInfoForSelf获取 +let data = atManager.checkAccessTokenSync(tokenID, "ohos.permission.GRANT_SENSITIVE_PERMISSIONS"); +console.log(`data->${JSON.stringify(data)}`); +``` + ### GrantStatus 表示授权状态的枚举。 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 d34d7553e15a5f606ccd3c5a7debb8f59a968b71..0e05272aa8e2c5f62656cd102326d2188eb685e2 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 @@ -39,6 +39,7 @@ Ability初次启动原因,该类型为枚举,可配合[Ability](js-apis-app- | CALL | 2 | 通过[startAbilityByCall](js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartabilitybycall)接口启动ability。 | | CONTINUATION | 3 | 跨端设备迁移启动ability。 | | APP_RECOVERY | 4 | 设置应用恢复后,应用故障时自动恢复启动ability。 | +| SHARE10+ | 5 | 通过[acquireShareData](js-apis-app-ability-abilityManager.md#acquiresharedata)接口启动ability。 | **示例:** 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 0a51605b8cba3b3501ab5ee6b2f517be6f5b94bc..a55df44d265784d78e092607c61e1a01a048f565 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 @@ -382,4 +382,76 @@ abilityManager.getTopAbility().then((data) => { }).catch((err) => { console.error('getTopAbility fail, err: ${JSON.stringify(err)}'); }); +``` + +## acquireShareData10+ + +acquireShareData(missionId: number, callback: AsyncCallback<{[key: string]: Object}>): void; + +获取目标设备的分享数据(callback形式)。 + +**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core + +**参数**: + +| 参数名 | 类型 | 必填 | 说明 | +| --------- | ---------------------------------------- | ---- | -------------- | +| missionId | number | 是 | 目标设备的missionId,最大为231-1。 | +| callback | AsyncCallback<{[key: string]: Object}> | 是 | 以回调方式返回接口运行结果及分享得到的数据,可进行错误处理或其他自定义处理。 | + +**错误码**: + +| 错误码ID | 错误信息 | +| ------- | -------- | +| 16000050 | Internal error. | + +以上错误码详细介绍请参考[errcode-ability](../errorcodes/errorcode-ability.md)。 + +**示例**: + +```ts +import abilityManager from '@ohos.app.ability.abilityManager'; + +abilityManager.acquireShareData(1, (err, wantParam) => { + if (err && err.code !== 0) { + console.error('acquireShareData fail, err: ${JSON.stringify(err)}'); + } else { + console.log('acquireShareData success, data: ${JSON.stringify(data)}'); + } +}); + +``` + +## acquireShareData10+ + +acquireShareData(missionId: number): Promise<{[key: string]: Object}>; + +获取目标设备的分享数据(Promise形式)。 + +**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core + +**返回值:** + +| 类型 | 说明 | +| ---------------------------------------- | ------- | +| Promise<{[key: string]: Object}>| 以Promise方式返回接口运行结果及分享数据,可进行错误处理或其他自定义处理。 | + +**错误码**: + +| 错误码ID | 错误信息 | +| ------- | -------- | +| 16000050 | Internal error. | + +以上错误码详细介绍请参考[errcode-ability](../errorcodes/errorcode-ability.md)。 + +**示例**: + +```ts +import abilityManager from '@ohos.app.ability.abilityManager'; + +abilityManager.acquireShareData(1).then((wantParam) => { + console.log('acquireShareData success, data: ${JSON.stringify(data)}'); +}).catch((err) => { + console.error('acquireShareData fail, err: ${JSON.stringify(err)}'); +}); ``` \ No newline at end of file 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 8658417d06f5e70a9f87a3ae9555a6fa82a628fa..94ac177abec2771b0bda6c3f0413b97bea8f8ec8 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 @@ -158,6 +158,12 @@ saveAppState(context?: UIAbilityContext): boolean; **系统能力**:SystemCapability.Ability.AbilityRuntime.Core +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| context | [UIAbilityContext](js-apis-inner-application-uiAbilityContext.md)| 否 | UIAbility上下文环境。 | + **返回值:** | 类型 | 说明 | @@ -182,6 +188,12 @@ setRestartWant(want: Want): void; **系统能力**:SystemCapability.Ability.AbilityRuntime.Core +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| want | [Want](js-apis-application-want.md)| 是 | 通过设置Want中"bundleName"和"abilityName"字段来指定恢复重启的Ability。 | + **示例:** ```ts 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 a7323715d263ebdeb399927eedc1c336312c903f..3ffc94c818de97cc9b2c1e515f89ecd0265f239f 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 @@ -38,6 +38,13 @@ on(type: 'error', observer: ErrorObserver): number; let observer = { onUnhandledException(errorMsg) { console.log('onUnhandledException, errorMsg: ', errorMsg); + }, + onException(errorObj) { + console.log('onException, name: ', errorObj.name); + console.log('onException, message: ', errorObj.message); + if (typeof(errorObj.stack) === 'string') { + console.log('onException, stack: ', errorObj.stack); + } } }; let observerId = -1; diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-serviceExtensionAbility.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-serviceExtensionAbility.md index bc17ac5a0e514bfc1526eb5771399029faae9a24..8e521d379da256f91114d62f06a822f01903758c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-serviceExtensionAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-serviceExtensionAbility.md @@ -148,7 +148,7 @@ Extension生命周期回调,如果是connectAbility拉起的服务,会在onC ## ServiceExtensionAbility.onDisconnect -onDisconnect(want: Want): void | Promise; +onDisconnect(want: Want): void | Promise\; Extension的生命周期回调,客户端执行断开连接服务时回调。 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 dcdd97f4ab4e4b2b0d58d73c491e651309e7ce34..8b83fbb08dc2883a58a4d760449f913d1198efad 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 @@ -300,6 +300,33 @@ class MyUIAbility extends UIAbility { } ``` +## UIAbility.onShare10+ + +onShare(wantParam:{ [key: string]: Object }): void; + +ability分享数据。 + +**系统能力**:SystemCapability.Ability.AbilityRuntime.AbilityCore + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| wantParam | {[key: string]: Object} | 是 | want相关参数。 | + +**示例:** + + ```ts +import AbilityConstant from '@ohos.app.ability.AbilityConstant'; +class MyUIAbility extends UIAbility { + onShare(wantParams) { + console.log('onShare'); + wantParams['ohos.extra.param.key.contentTitle'] = {title: "W3"}; + wantParams['ohos.extra.param.key.shareAbstract'] = {abstract: "communication for huawei employee"}; + wantParams['ohos.extra.param.key.shareUrl'] = {url: "w3.huawei.com"}; + } +} + ``` ## Caller 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 1c5085195ca7703e0e9cdd76bc30b8dbe47f4423..ba737871aa6fb6434745828b4c551e6cf9cdae51 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-want.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-want.md @@ -26,7 +26,7 @@ import Want from '@ohos.app.ability.Want'; | entities | Array\ | 否 | 表示目标Ability额外的类别信息(如:浏览器、视频播放器)。在隐式Want中是对action字段的补充。在隐式Want中,您可以定义该字段,来过滤匹配Ability类型。 | | uri | string | 否 | 表示携带的数据,一般配合type使用,指明待处理的数据类型。如果在Want中指定了uri,则Want将匹配指定的Uri信息,包括`scheme`、`schemeSpecificPart`、`authority`和`path`信息。 | | type | string | 否 | 表示MIME type类型描述,打开文件的类型,主要用于文管打开文件。比如:'text/xml' 、 'image/*'等,MIME定义请参见https://www.iana.org/assignments/media-types/media-types.xhtml?utm_source=ld246.com。 | -| parameters | {[key: string]: any} | 否 | 表示WantParams描述,由开发者自行决定传入的键值对。默认会携带以下key值:
- ohos.aafwk.callerPid:表示拉起方的pid。
- ohos.aafwk.param.callerToken:表示拉起方的token。
- ohos.aafwk.param.callerUid:表示[BundleInfo](js-apis-bundleManager-bundleInfo.md#bundleinfo-1)中的uid,应用包里应用程序的uid。
- component.startup.newRules:表示是否启用新的管控规则。
- moduleName:表示拉起方的模块名,该字段的值即使定义成其他字符串,在传递到另一端时会被修改为正确的值。
- ohos.dlp.params.sandbox:表示dlp文件才会有。 | +| parameters | {[key: string]: any} | 否 | 表示WantParams描述,由开发者自行决定传入的键值对。默认会携带以下key值:
- ohos.aafwk.callerPid:表示拉起方的pid。
- ohos.aafwk.param.callerBundleName:表示拉起方的Bundle Name。
- ohos.aafwk.param.callerToken:表示拉起方的token。
- ohos.aafwk.param.callerUid:表示[BundleInfo](js-apis-bundleManager-bundleInfo.md#bundleinfo-1)中的uid,应用包里应用程序的uid。
- component.startup.newRules:表示是否启用新的管控规则。
- moduleName:表示拉起方的模块名,该字段的值即使定义成其他字符串,在传递到另一端时会被修改为正确的值。
- ohos.dlp.params.sandbox:表示dlp文件才会有。 | | [flags](js-apis-ability-wantConstant.md#wantconstantflags) | number | 否 | 表示处理Want的方式。默认传数字。
例如通过wantConstant.Flags.FLAG_ABILITY_CONTINUATION表示是否以设备间迁移方式启动Ability。 | **示例:** @@ -34,6 +34,7 @@ import Want from '@ohos.app.ability.Want'; - 基础用法:在UIAbility对象中调用,示例中的context的获取方式请参见[获取UIAbility的上下文信息](../../application-models/uiability-usage.md#获取uiability的上下文信息)。 ```ts + let context = ...; // UIAbilityContext let want = { 'deviceId': '', // deviceId为空表示本设备 'bundleName': 'com.example.myapplication', @@ -41,16 +42,17 @@ import Want from '@ohos.app.ability.Want'; 'moduleName': 'entry' // moduleName非必选 }; - this.context.startAbility(want, (err) => { + context.startAbility(want, (err) => { // 显式拉起Ability,通过bundleName、abilityName和moduleName可以唯一确定一个Ability - console.error(`startAbility failed, code is ${err.code}, message is ${err.message}`); + console.error(`Failed to startAbility. Code: ${err.code}, message: ${err.message}`); }); ``` -- 通过自定字段传递数据,以下为当前支持类型(在UIAbility对象中调用,示例中的context的获取方式请参见[获取UIAbility的上下文信息](../../application-models/uiability-usage.md#获取uiability的上下文信息))。 +- 目前支持的数据类型有:字符串、数字、布尔、对象、数组和文件描述符等。 * 字符串(String) ```ts + let context = ...; // UIAbilityContext let want = { bundleName: 'com.example.myapplication', abilityName: 'FuncAbility', @@ -59,12 +61,13 @@ import Want from '@ohos.app.ability.Want'; }, }; - this.context.startAbility(want, (err) => { - console.error(`startAbility failed, code is ${err.code}, message is ${err.message}`); + context.startAbility(want, (err) => { + console.error(`Failed to startAbility. Code: ${err.code}, message: ${err.message}`); }); ``` * 数字(Number) ```ts + let context = ...; // UIAbilityContext let want = { bundleName: 'com.example.myapplication', abilityName: 'FuncAbility', @@ -74,12 +77,13 @@ import Want from '@ohos.app.ability.Want'; }, }; - this.context.startAbility(want, (err) => { - console.error(`startAbility failed, code is ${err.code}, message is ${err.message}`); + context.startAbility(want, (err) => { + console.error(`Failed to startAbility. Code: ${err.code}, message: ${err.message}`); }); ``` * 布尔(Boolean) ```ts + let context = ...; // UIAbilityContext let want = { bundleName: 'com.example.myapplication', abilityName: 'FuncAbility', @@ -88,12 +92,13 @@ import Want from '@ohos.app.ability.Want'; }, }; - this.context.startAbility(want, (err) => { - console.error(`startAbility failed, code is ${err.code}, message is ${err.message}`); + context.startAbility(want, (err) => { + console.error(`Failed to startAbility. Code: ${err.code}, message: ${err.message}`); }); ``` * 对象(Object) ```ts + let context = ...; // UIAbilityContext let want = { bundleName: 'com.example.myapplication', abilityName: 'FuncAbility', @@ -107,12 +112,13 @@ import Want from '@ohos.app.ability.Want'; }, }; - this.context.startAbility(want, (err) => { - console.error(`startAbility failed, code is ${err.code}, message is ${err.message}`); + context.startAbility(want, (err) => { + console.error(`Failed to startAbility. Code: ${err.code}, message: ${err.message}`); }); ``` * 数组(Array) ```ts + let context = ...; // UIAbilityContext let want = { bundleName: 'com.example.myapplication', abilityName: 'FuncAbility', @@ -124,19 +130,21 @@ import Want from '@ohos.app.ability.Want'; }, }; - this.context.startAbility(want, (err) => { - console.error(`startAbility failed, code is ${err.code}, message is ${err.message}`); + context.startAbility(want, (err) => { + console.error(`Failed to startAbility. Code: ${err.code}, message: ${err.message}`); }); ``` * 文件描述符(FD) ```ts - import fileio from '@ohos.fileio'; + import fs from '@ohos.file.fs'; + + let context = ...; // UIAbilityContext let fd; try { - fd = fileio.openSync('/data/storage/el2/base/haps/pic.png'); - } catch(e) { - console.error('openSync fail: ${JSON.stringify(e)}'); + fd = fs.openSync('/data/storage/el2/base/haps/pic.png').fd; + } catch(err) { + console.error(`Failed to openSync. Code: ${err.code}, message: ${err.message}`); } let want = { 'deviceId': '', // deviceId为空表示本设备 @@ -148,8 +156,7 @@ import Want from '@ohos.app.ability.Want'; } }; - this.context.startAbility(want, (err) => { - console.error(`startAbility failed, code is ${err.code}, message is ${err.message}`); + context.startAbility(want, (err) => { + console.error(`Failed to startAbility. Code: ${err.code}, message: ${err.message}`); }); ``` - 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 c58fb7e7fb84761cb814b2d4892bcdd813586182..67da9ed4ddafd4f68b1adc2f2c0a8d1d3d2d162b 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 @@ -16,13 +16,16 @@ import wantConstant from '@ohos.app.ability.wantConstant'; want的Params操作的常量。 -| 名称 | 值 | 说明 | -| ----------------------- | --------------------------- | ------------------------------------------------------------ | -| DLP_PARAMS_SANDBOX | ohos.dlp.params.sandbox | 指示沙盒标志的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | -| DLP_PARAMS_BUNDLE_NAME | ohos.dlp.params.bundleName | 指示DLP Bundle名称的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | -| DLP_PARAMS_MODULE_NAME | ohos.dlp.params.moduleName | 指示DLP模块名称的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | -| DLP_PARAMS_ABILITY_NAME | ohos.dlp.params.abilityName | 指示DLP能力名称的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | -| DLP_PARAMS_INDEX | ohos.dlp.params.index | 指示DLP索引参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | +| 名称 | 值 | 说明 | +| ----------------------- | ---------------------------------- | ------------------------------------------------------------------------------ | +| DLP_PARAMS_SANDBOX | ohos.dlp.params.sandbox | 指示沙盒标志的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | +| DLP_PARAMS_BUNDLE_NAME | ohos.dlp.params.bundleName | 指示DLP Bundle名称的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | +| DLP_PARAMS_MODULE_NAME | ohos.dlp.params.moduleName | 指示DLP模块名称的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | +| DLP_PARAMS_ABILITY_NAME | ohos.dlp.params.abilityName | 指示DLP能力名称的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | +| DLP_PARAMS_INDEX | ohos.dlp.params.index | 指示DLP索引参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | +| CONTENT_TITLE_KEY | ohos.extra.param.key.contentTitle | 指示原子化服务支持分享标题的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | +| SHARE_ABSTRACT_KEY | ohos.extra.param.key.shareAbstract | 指示原子化服务支持分享内容的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | +| SHARE_URL_KEY | ohos.extra.param.key.shareUrl | 指示原子化服务支持分享链接的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | ## wantConstant.Flags diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-form-formInfo.md b/zh-cn/application-dev/reference/apis/js-apis-app-form-formInfo.md index 68c813640be97cb572079e41887ea6770949ee0b..55baab89a6a4390f48466b19e1f84ee177843081 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-form-formInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-form-formInfo.md @@ -47,7 +47,7 @@ import formInfo from '@ohos.app.form.formInfo'; | 名称 | 值 | 说明 | | ----------- | ---- | ------------ | | JS | 1 | 卡片类型为JS。 | -| eTS | 2 | 卡片类型为eTS。 | +| eTS | 2 | 卡片类型为ArkTS。 | ## ColorMode 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 719437c9913dc324003a2c9e030945f8f44f8db6..576ac1cb96871d0ff6bbd4b39072da650ca08f89 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-appAccount.md +++ b/zh-cn/application-dev/reference/apis/js-apis-appAccount.md @@ -148,7 +148,6 @@ createAccount(name: string, options?: CreateAccountOptions): Promise<void> | 12300002 | Invalid name or options. | | 12300004 | Account already exists. | | 12300007 | The number of accounts reaches the upper limit. | -| 12400003 | The number of custom data reaches the upper limit. | **示例:** @@ -248,7 +247,7 @@ createAccountImplicitly(owner: string, options: CreateAccountImplicitlyOptions, | 错误码ID | 错误信息 | | ------- | ------- | | 12300001 | System service exception. | -| 12300002 | Invalid name or options. | +| 12300002 | Invalid owner or options. | | 12300007 | The number of accounts reaches the upper limit. | | 12300010 | Account service busy. | | 12300113 | Authenticator service not found. | @@ -481,7 +480,6 @@ checkAppAccess(name: string, bundleName: string, callback: AsyncCallback<bool | 12300001 | System service exception. | | 12300002 | Invalid name or bundleName. | | 12300003 | Account not found. | -| 12400001 | Application not found. | **示例:** @@ -527,7 +525,6 @@ checkAppAccess(name: string, bundleName: string): Promise<boolean> | 12300001 | System service exception. | | 12300002 | Invalid name or bundleName. | | 12300003 | Account not found. | -| 12400001 | Application not found. | **示例:** @@ -903,7 +900,7 @@ setCustomData(name: string, key: string, value: string, callback: AsyncCallback& | 错误码ID | 错误信息| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or key or value. | +| 12300002 | Invalid name, key or value. | | 12300003 | Account not found. | | 12400003 | The number of custom data reaches the upper limit. | @@ -950,7 +947,7 @@ setCustomData(name: string, key: string, value: string): Promise<void> | 错误码ID | 错误信息| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or key or value. | +| 12300002 | Invalid name, key or value. | | 12300003 | Account not found. | | 12400003 | The number of custom data reaches the upper limit. | @@ -1267,7 +1264,6 @@ on(type: 'accountChange', owners: Array<string>, callback: Callback<Arr | ------- | ------- | | 12300001 | System service exception. | | 12300002 | Invalid type or owners. | -| 12300011 | Callback has been registered. | | 12400001 | Application not found. | **示例:** @@ -1304,7 +1300,6 @@ off(type: 'accountChange', callback?: Callback<Array<AppAccountInfo>> | ------- | -------| | 12300001 | System service exception. | | 12300002 | Invalid type. | -| 12300012 | Callback has not been registered. | **示例:** @@ -1347,7 +1342,7 @@ auth(name: string, owner: string, authType: string, callback: AuthCallback): voi | 错误码ID | 错误信息| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or owner or authType. | +| 12300002 | Invalid name, owner or authType. | | 12300003 | Account not found. | | 12300010 | Account service busy. | | 12300113 | Authenticator service not found. | @@ -1410,8 +1405,8 @@ auth(name: string, owner: string, authType: string, options: {[key: string]: Obj | 错误码ID | 错误信息| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or owner or authType. | -| 12300003 | Account not exist. | +| 12300002 | Invalid name, owner, authType or options. | +| 12300003 | Account not found. | | 12300010 | Account service busy. | | 12300113 | Authenticator service not found. | | 12300114 | Authenticator service exception. | @@ -1522,7 +1517,7 @@ getAuthToken(name: string, owner: string, authType: string): Promise<string&g | 错误码ID | 错误信息 | | ------- | ------- | | 12300001 | System service exception. | -| 12300002 | Invalid name or owner or authType. | +| 12300002 | Invalid name, owner or authType. | | 12300003 | Account not found. | | 12300107 | AuthType not found. | @@ -1562,7 +1557,7 @@ setAuthToken(name: string, authType: string, token: string, callback: AsyncCallb | 错误码ID | 错误信息| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or authType or token. | +| 12300002 | Invalid name, authType or token. | | 12300003 | Account not found. | | 12400004 | The number of token reaches the upper limit. | @@ -1609,7 +1604,7 @@ setAuthToken(name: string, authType: string, token: string): Promise<void> | 错误码ID | 错误信息| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or authType or token. | +| 12300002 | Invalid name, authType or token. | | 12300003 | Account not found. | | 12400004 | The number of token reaches the upper limit. | @@ -1650,7 +1645,7 @@ deleteAuthToken(name: string, owner: string, authType: string, token: string, ca | 错误码ID | 错误信息 | | ------- | ------- | | 12300001 | System service exception. | -| 12300002 | Invalid name or owner or authType or token. | +| 12300002 | Invalid name, owner, authType or token. | | 12300003 | Account not found. | | 12300107 | AuthType not found. | @@ -1698,7 +1693,7 @@ deleteAuthToken(name: string, owner: string, authType: string, token: string): P | 错误码ID | 错误信息 | | ------- | ------- | | 12300001 | System service exception. | -| 12300002 | Invalid name or owner or authType or token. | +| 12300002 | Invalid name, owner, authType or token. | | 12300003 | Account not found. | | 12300107 | AuthType not found. | @@ -1739,7 +1734,7 @@ setAuthTokenVisibility(name: string, authType: string, bundleName: string, isVis | 错误码ID | 错误信息| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or authType or bundleName. | +| 12300002 | Invalid name, authType or bundleName. | | 12300003 | Account not found. | | 12300107 | AuthType not found. | | 12400001 | Application not found. | @@ -1789,7 +1784,7 @@ setAuthTokenVisibility(name: string, authType: string, bundleName: string, isVis | 错误码ID | 错误信息| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or authType or bundleName. | +| 12300002 | Invalid name, authType or bundleName. | | 12300003 | Account not found. | | 12300107 | AuthType not found. | | 12400001 | Application not found. | @@ -1831,10 +1826,9 @@ checkAuthTokenVisibility(name: string, authType: string, bundleName: string, cal | 错误码ID | 错误信息| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or authType or bundleName. | +| 12300002 | Invalid name, authType or bundleName. | | 12300003 | Account not found. | | 12300107 | AuthType not found. | -| 12400001 | Application not found. | **示例:** @@ -1879,10 +1873,9 @@ checkAuthTokenVisibility(name: string, authType: string, bundleName: string): Pr | 错误码ID | 错误信息| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or authType or bundleName. | +| 12300002 | Invalid name, authType or bundleName. | | 12300003 | Account not found. | | 12300107 | AuthType not found. | -| 12400001 | Application not found. | **示例:** @@ -2281,7 +2274,7 @@ checkAccountLabels(name: string, owner: string, labels: Array<string>, cal | 错误码ID | 错误信息 | | ------- | ------- | | 12300001 | System service exception. | -| 12300002 | Invalid name or owner or labels. | +| 12300002 | Invalid name, owner or labels. | | 12300003 | Account not found. | | 12300010 | Account service busy. | | 12300113 | Authenticator service not found. | @@ -2331,7 +2324,7 @@ checkAccountLabels(name: string, owner: string, labels: Array<string>): Pr | 错误码ID | 错误信息 | | ------- | ------- | | 12300001 | System service exception. | -| 12300002 | Invalid name or owner or labels. | +| 12300002 | Invalid name, owner or labels. | | 12300003 | Account not found. | | 12300010 | Account service busy. | | 12300113 | Authenticator service not found. | @@ -2594,7 +2587,7 @@ verifyCredential(name: string, owner: string, options: VerifyCredentialOptions, | 错误码ID | 错误信息| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or owner or options. | +| 12300002 | Invalid name, owner or options. | | 12300003 | Account not found. | | 12300010 | Account service busy. | | 12300113 | Authenticator service not found. | diff --git a/zh-cn/application-dev/reference/apis/js-apis-appControl.md b/zh-cn/application-dev/reference/apis/js-apis-appControl.md index b9747a0dc7acfb4eaab24f6bd575de660208f660..03286aaa8a0cabe11779d0755aefe5802dbf2eb3 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-appControl.md +++ b/zh-cn/application-dev/reference/apis/js-apis-appControl.md @@ -24,7 +24,7 @@ setDisposedStatus(appId: string, disposedWant: Want): Promise\ **系统能力:** SystemCapability.BundleManager.BundleFramework.AppControl -**系统API:** 此接口为系统接口,三方应用不支持调用。 +**系统API:** 此接口为系统接口。。 **参数:** @@ -75,7 +75,7 @@ setDisposedStatus(appId: string, disposedWant: Want, callback: AsyncCallback\; **系统能力:** SystemCapability.BundleManager.BundleFramework.AppControl -**系统API:** 此接口为系统接口,三方应用不支持调用 +**系统API:** 此接口为系统接口。 **参数:** @@ -171,7 +171,7 @@ getDisposedStatus(appId: string, callback: AsyncCallback\): void; **系统能力:** SystemCapability.BundleManager.BundleFramework.AppControl -**系统API:** 此接口为系统接口,三方应用不支持调用 +**系统API:** 此接口为系统接口。 **参数:** @@ -216,7 +216,7 @@ deleteDisposedStatus(appId: string): Promise\ **系统能力:** SystemCapability.BundleManager.BundleFramework.AppControl -**系统API:** 此接口为系统接口,三方应用不支持调用 +**系统API:** 此接口为系统接口。 **参数:** @@ -265,7 +265,7 @@ deleteDisposedStatus(appId: string, callback: AsyncCallback\) : void **系统能力:** SystemCapability.BundleManager.BundleFramework.AppControl -**系统API:** 此接口为系统接口,三方应用不支持调用 +**系统API:** 此接口为系统接口。 **参数:** 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 968a4cbbddcadc4df973aa15c0fc901d73aef258..209e20483059e5ca06dd284e3b52818a517acb2b 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 @@ -28,11 +28,11 @@ 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) | 是 | 否 | 具体事件类型;当前版本暂不支持PageUpdateType。 | -| target | [AccessibilityElement](js-apis-inner-application-accessibilityExtensionContext.md#accessibilityelement9) | 是 | 否 | 发生事件的目标组件。 | -| timeStamp | number | 是 | 否 | 事件时间戳。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| --------- | ------------------------------------------------------------ | ---- | ---- | ------------------------------------------------------------ | +| eventType | [accessibility.EventType](js-apis-accessibility.md#EventType) \| [accessibility.WindowUpdateType](js-apis-accessibility.md#WindowUpdateType)\| [TouchGuideType](#touchguidetype) \| [GestureType](#gesturetype) \| [PageUpdateType](#pageupdatetype) | 是 | 否 | 具体事件类型。
EventType:无障碍事件类型;
WindowUpdateType:窗口变化类型;TouchGuideType:触摸浏览事件类型;
GestureType:手势事件类型;
PageUpdateType:页面刷新类型,当前版本暂不支持。 | +| target | [AccessibilityElement](js-apis-inner-application-accessibilityExtensionContext.md#accessibilityelement9) | 是 | 否 | 发生事件的目标组件。 | +| timeStamp | number | 是 | 否 | 事件时间戳。 | ## GestureType diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-want.md b/zh-cn/application-dev/reference/apis/js-apis-application-want.md index f7d00402995f666cd8eb47062b2c61b789fdc285..f028724c676fb7437c902c9ef45a7a795525bde2 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-want.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-want.md @@ -108,10 +108,10 @@ import Want from '@ohos.application.Want'; ``` * 文件描述符(FD) ```ts - import fileio from '@ohos.fileio'; + import fs from '@ohos.file.fs'; let fd; try { - fd = fileio.openSync('/data/storage/el2/base/haps/pic.png'); + fd = fs.openSync('/data/storage/el2/base/haps/pic.png').fd; } catch(e) { console.error('openSync fail: ${JSON.stringify(e)}'); } 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 9882688c47770de3beddfb7ea09afc5a1f543858..279865ea3c8f8d367f0be83d945e8b9b21e0a017 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-audio.md +++ b/zh-cn/application-dev/reference/apis/js-apis-audio.md @@ -689,21 +689,19 @@ async function createTonePlayerBefore(){ | forceType | [InterruptForceType](#interruptforcetype9) | 是 | 操作是由系统执行或是由应用程序执行。 | | hintType | [InterruptHint](#interrupthint) | 是 | 中断提示。 | -## VolumeEvent8+ +## VolumeEvent9+ 音量改变时,应用接收的事件。 -**系统接口:** 该接口为系统接口 - **系统能力:** SystemCapability.Multimedia.Audio.Volume | 名称 | 类型 | 必填 | 说明 | | ---------- | ----------------------------------- | ---- | -------------------------------------------------------- | -| volumeType | [AudioVolumeType](#audiovolumetype) | 是 | 音量流类型。 | -| volume | number | 是 | 音量等级,可设置范围通过getMinVolume和getMaxVolume获取。 | -| updateUi | boolean | 是 | 在UI中显示音量变化。 | -| volumeGroupId9+ | number | 是 | 音量组id。可用于getGroupManager入参 | -| networkId9+ | string | 是 | 网络id。 | +| volumeType | [AudioVolumeType](#audiovolumetype) | 是 | 音量流类型。 | +| volume | number | 是 | 音量等级,可设置范围通过getMinVolume和getMaxVolume获取。 | +| updateUi | boolean | 是 | 在UI中显示音量变化。 | +| volumeGroupId | number | 是 | 音量组id。可用于getGroupManager入参。
此接口为系统接口。 | +| networkId | string | 是 | 网络id。
此接口为系统接口。 | ## MicStateChangeEvent9+ @@ -1110,7 +1108,7 @@ setVolume(volumeType: AudioVolumeType, volume: number, callback: AsyncCallback&l 设置指定流的音量,使用callback方式异步返回结果。 > **说明:** -> 从 API version 7 开始支持,从 API version 9 开始废弃,建议使用AudioVolumeGroupManager中的[setVolume](#setvolume9)替代。 +> 从 API version 7 开始支持,从 API version 9 开始废弃。建议使用AudioVolumeGroupManager中的[setVolume](#setvolume9)替代,替代接口能力仅对系统应用开放。 **需要权限:** ohos.permission.ACCESS_NOTIFICATION_POLICY @@ -1145,7 +1143,7 @@ setVolume(volumeType: AudioVolumeType, volume: number): Promise<void> 设置指定流的音量,使用Promise方式异步返回结果。 > **说明:** -> 从 API version 7 开始支持,从 API version 9 开始废弃,建议使用AudioVolumeGroupManager中的[setVolume](#setvolume9)替代。 +> 从 API version 7 开始支持,从 API version 9 开始废弃。建议使用AudioVolumeGroupManager中的[setVolume](#setvolume9)替代,替代接口能力仅对系统应用开放。 **需要权限:** ohos.permission.ACCESS_NOTIFICATION_POLICY @@ -1364,7 +1362,7 @@ mute(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback<void 设置指定音量流静音,使用callback方式异步返回结果。 > **说明:** -> 从 API version 7 开始支持,从 API version 9 开始废弃,建议使用AudioVolumeGroupManager中的[mute](#mute9)替代。 +> 从 API version 7 开始支持,从 API version 9 开始废弃。建议使用AudioVolumeGroupManager中的[mute](#mute9)替代,替代接口能力仅对系统应用开放。 **系统能力:** SystemCapability.Multimedia.Audio.Volume @@ -1395,7 +1393,7 @@ mute(volumeType: AudioVolumeType, mute: boolean): Promise<void> 设置指定音量流静音,使用Promise方式异步返回结果。 > **说明:** -> 从 API version 7 开始支持,从 API version 9 开始废弃,建议使用AudioVolumeGroupManager中的[mute](#mute9)替代。 +> 从 API version 7 开始支持,从 API version 9 开始废弃。建议使用AudioVolumeGroupManager中的[mute](#mute9)替代,替代接口能力仅对系统应用开放。 **系统能力:** SystemCapability.Multimedia.Audio.Volume @@ -1550,7 +1548,7 @@ setRingerMode(mode: AudioRingMode, callback: AsyncCallback<void>): void 设置铃声模式,使用callback方式异步返回结果。 > **说明:** -> 从 API version 7 开始支持,从 API version 9 开始废弃,建议使用AudioVolumeGroupManager中的[setRingerMode](#setringermode9)替代。 +> 从 API version 7 开始支持,从 API version 9 开始废弃。建议使用AudioVolumeGroupManager中的[setRingerMode](#setringermode9)替代,替代接口能力仅对系统应用开放。 **需要权限:** ohos.permission.ACCESS_NOTIFICATION_POLICY @@ -1584,7 +1582,8 @@ setRingerMode(mode: AudioRingMode): Promise<void> 设置铃声模式,使用Promise方式异步返回结果。 > **说明:** -> 从 API version 7 开始支持,从 API version 9 开始废弃,建议使用AudioVolumeGroupManager中的[setRingerMode](#setringermode9)替代。 +> 从 API version 7 开始支持,从 API version 9 开始废弃。建议使用AudioVolumeGroupManager中的[setRingerMode](#setringermode9)替代,替代接口能力仅对系统应用开放。 + **需要权限:** ohos.permission.ACCESS_NOTIFICATION_POLICY @@ -1974,12 +1973,12 @@ audioManager.isMicrophoneMute().then((value) => { }); ``` -### on('volumeChange')(deprecated) +### on('volumeChange')9+ on(type: 'volumeChange', callback: Callback\): void > **说明:** -> 从 API version 8 开始支持,从 API version 9 开始废弃,建议使用AudioVolumeManager中的[on('volumeChange')](#onvolumechange9)替代。 +> 建议使用AudioVolumeManager中的[on('volumeChange')](#onvolumechange9)替代。 监听系统音量变化事件。 @@ -1994,7 +1993,7 @@ on(type: 'volumeChange', callback: Callback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | -------------------------------------- | ---- | ------------------------------------------------------------ | | type | string | 是 | 事件回调类型,支持的事件为:'volumeChange'(系统音量变化事件,检测到系统音量改变时,触发该事件)。 | -| callback | Callback<[VolumeEvent](#volumeevent8)> | 是 | 回调方法。 | +| callback | Callback<[VolumeEvent](#volumeevent9)> | 是 | 回调方法。 | **示例:** @@ -2303,7 +2302,7 @@ on(type: 'volumeChange', callback: Callback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | -------------------------------------- | ---- | ------------------------------------------------------------ | | type | string | 是 | 事件回调类型,支持的事件为:'volumeChange'。 | -| callback | Callback<[VolumeEvent](#volumeevent8)> | 是 | 回调方法。 | +| callback | Callback<[VolumeEvent](#volumeevent9)> | 是 | 回调方法。 | **错误码:** @@ -4036,6 +4035,7 @@ audioRoutingManager.off('preferOutputDeviceChangeForRendererInfo', () => { | clientUid | number | 是 | 否 | 音频渲染器客户端应用程序的Uid。
此接口为系统接口。 | | rendererInfo | [AudioRendererInfo](#audiorendererinfo8) | 是 | 否 | 音频渲染器信息。 | | rendererState | [AudioState](#audiostate) | 是 | 否 | 音频状态。
此接口为系统接口。| +| deviceDescriptors | [AudioDeviceDescriptors](#audiodevicedescriptors) | 是 | 否 | 音频设备描述。| **示例:** @@ -4094,6 +4094,7 @@ audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => | clientUid | number | 是 | 否 | 音频采集器客户端应用程序的Uid。
此接口为系统接口。 | | capturerInfo | [AudioCapturerInfo](#audiocapturerinfo8) | 是 | 否 | 音频采集器信息。 | | capturerState | [AudioState](#audiostate) | 是 | 否 | 音频状态。
此接口为系统接口。| +| deviceDescriptors | [AudioDeviceDescriptors](#audiodevicedescriptors) | 是 | 否 | 音频设备描述。| **示例:** @@ -5043,7 +5044,7 @@ on(type: 'audioInterrupt', callback: Callback\): void 监听音频中断事件。使用callback获取中断事件。 -与[on('interrupt')](#oninterruptdeprecated)一致,该接口在AudioRenderer对象start、pause、stop等事件发生前已经主动获取焦点,不需要开发者主动发起焦点申请。 +与[on('interrupt')](#oninterruptdeprecated)一致,均用于监听焦点变化。AudioRenderer对象在start事件发生时会主动获取焦点,在pause、stop等事件发生时会主动释放焦点,不需要开发者主动发起获取焦点或释放焦点的申请。 **系统能力:** SystemCapability.Multimedia.Audio.Interrupt @@ -5051,8 +5052,8 @@ on(type: 'audioInterrupt', callback: Callback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | -------------------------------------------- | ---- | ------------------------------------------------------------ | -| type | string | 是 | 事件回调类型,支持的事件为:'audioInterrupt'(中断事件被触发,音频播放被中断。) | -| callback | Callback<[InterruptEvent](#interruptevent9)> | 是 | 被监听的中断事件的回调。 | +| type | string | 是 | 事件回调类型,支持的事件为:'audioInterrupt'(中断事件被触发,音频渲染被中断。) | +| callback | Callback\<[InterruptEvent](#interruptevent9)\> | 是 | 被监听的中断事件的回调。 | **错误码:** @@ -5065,50 +5066,68 @@ on(type: 'audioInterrupt', callback: Callback\): void **示例:** ```js -let isPlay; -let started; +let isPlaying; // 标识符,表示是否正在渲染 +let isDucked; // 标识符,表示是否被降低音量 onAudioInterrupt(); async function onAudioInterrupt(){ audioRenderer.on('audioInterrupt', async(interruptEvent) => { if (interruptEvent.forceType == audio.InterruptForceType.INTERRUPT_FORCE) { + // 由系统进行操作,强制打断音频渲染,应用需更新自身状态及显示内容等 switch (interruptEvent.hintType) { case audio.InterruptHint.INTERRUPT_HINT_PAUSE: - console.info('Force paused. Stop writing'); - isPlay = false; + // 音频流已被暂停,临时失去焦点,待可重获焦点时会收到resume对应的interruptEvent + console.info('Force paused. Update playing status and stop writing'); + isPlaying = false; // 简化处理,代表应用切换至暂停状态的若干操作 break; case audio.InterruptHint.INTERRUPT_HINT_STOP: - console.info('Force stopped. Stop writing'); - isPlay = false; + // 音频流已被停止,永久失去焦点,若想恢复渲染,需用户主动触发 + console.info('Force stopped. Update playing status and stop writing'); + isPlaying = false; // 简化处理,代表应用切换至暂停状态的若干操作 + break; + case audio.InterruptHint.INTERRUPT_HINT_DUCK: + // 音频流已被降低音量渲染 + console.info('Force ducked. Update volume status'); + isDucked = true; // 简化处理,代表应用更新音量状态的若干操作 + break; + case audio.InterruptHint.INTERRUPT_HINT_UNDUCK: + // 音频流已被恢复正常音量渲染 + console.info('Force ducked. Update volume status'); + isDucked = false; // 简化处理,代表应用更新音量状态的若干操作 + break; + default: + console.info('Invalid interruptEvent'); break; } } else if (interruptEvent.forceType == audio.InterruptForceType.INTERRUPT_SHARE) { + // 由应用进行操作,应用可以自主选择打断或忽略 switch (interruptEvent.hintType) { case audio.InterruptHint.INTERRUPT_HINT_RESUME: + // 建议应用继续渲染(说明音频流此前被强制暂停,临时失去焦点,现在可以恢复渲染) console.info('Resume force paused renderer or ignore'); - await audioRenderer.start().then(async function () { - console.info('AudioInterruptMusic: renderInstant started :SUCCESS '); - started = true; - }).catch((err) => { - console.error(`AudioInterruptMusic: renderInstant start :ERROR : ${err}`); - started = false; - }); - if (started) { - isPlay = true; - console.info(`AudioInterruptMusic Renderer started : isPlay : ${isPlay}`); - } else { - console.error('AudioInterruptMusic Renderer start failed'); - } + // 若选择继续渲染,需在此处主动执行开始渲染的若干操作 break; case audio.InterruptHint.INTERRUPT_HINT_PAUSE: + // 建议应用暂停渲染 console.info('Choose to pause or ignore'); - if (isPlay == true) { - isPlay == false; - console.info('AudioInterruptMusic: Media PAUSE : TRUE'); - } else { - isPlay = true; - console.info('AudioInterruptMusic: Media PLAY : TRUE'); - } + // 若选择暂停渲染,需在此处主动执行暂停渲染的若干操作 + break; + case audio.InterruptHint.INTERRUPT_HINT_STOP: + // 建议应用停止渲染 + console.info('Choose to stop or ignore'); + // 若选择停止渲染,需在此处主动执行停止渲染的若干操作 + break; + case audio.InterruptHint.INTERRUPT_HINT_DUCK: + // 建议应用降低音量渲染 + console.info('Choose to duck or ignore'); + // 若选择降低音量渲染,需在此处主动执行降低音量渲染的若干操作 + break; + case audio.InterruptHint.INTERRUPT_HINT_UNDUCK: + // 建议应用恢复正常音量渲染 + console.info('Choose to unduck or ignore'); + // 若选择恢复正常音量渲染,需在此处主动执行恢复正常音量渲染的若干操作 + break; + default: break; } } @@ -5759,6 +5778,83 @@ audioCapturer.getBufferSize().then((data) => { }); ``` +### on('audioInterrupt')10+ + +on(type: 'audioInterrupt', callback: Callback\): void + +监听音频中断事件。使用callback获取中断事件。 + +与[on('interrupt')](#oninterruptdeprecated)一致,均用于监听焦点变化。AudioCapturer对象在start事件发生时会主动获取焦点,在pause、stop等事件发生时会主动释放焦点,不需要开发者主动发起获取焦点或释放焦点的申请。 + +**系统能力:** SystemCapability.Multimedia.Audio.Interrupt + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------------------------------------------- | ---- | ------------------------------------------------------------ | +| type | string | 是 | 事件回调类型,支持的事件为:'audioInterrupt'(中断事件被触发,音频采集被中断。) | +| callback | Callback\<[InterruptEvent](#interruptevent9)\> | 是 | 被监听的中断事件的回调。 | + +**错误码:** + +以下错误码的详细介绍请参见[音频错误码](../errorcodes/errorcode-audio.md)。 + +| 错误码ID | 错误信息 | +| ------- | --------------------------------------------| +| 6800101 | if input parameter value error | + +**示例:** + +```js +let isCapturing; // 标识符,表示是否正在采集 +onAudioInterrupt(); + +async function onAudioInterrupt(){ + audioCapturer.on('audioInterrupt', async(interruptEvent) => { + if (interruptEvent.forceType == audio.InterruptForceType.INTERRUPT_FORCE) { + // 由系统进行操作,强制打断音频采集,应用需更新自身状态及显示内容等 + switch (interruptEvent.hintType) { + case audio.InterruptHint.INTERRUPT_HINT_PAUSE: + // 音频流已被暂停,临时失去焦点,待可重获焦点时会收到resume对应的interruptEvent + console.info('Force paused. Update capturing status and stop reading'); + isCapturing = false; // 简化处理,代表应用切换至暂停状态的若干操作 + break; + case audio.InterruptHint.INTERRUPT_HINT_STOP: + // 音频流已被停止,永久失去焦点,若想恢复采集,需用户主动触发 + console.info('Force stopped. Update capturing status and stop reading'); + isCapturing = false; // 简化处理,代表应用切换至暂停状态的若干操作 + break; + default: + console.info('Invalid interruptEvent'); + break; + } + } else if (interruptEvent.forceType == audio.InterruptForceType.INTERRUPT_SHARE) { + // 由应用进行操作,应用可以自主选择打断或忽略 + switch (interruptEvent.hintType) { + case audio.InterruptHint.INTERRUPT_HINT_RESUME: + // 建议应用继续采集(说明音频流此前被强制暂停,临时失去焦点,现在可以恢复采集) + console.info('Resume force paused renderer or ignore'); + // 若选择继续采集,需在此处主动执行开始采集的若干操作 + break; + case audio.InterruptHint.INTERRUPT_HINT_PAUSE: + // 建议应用暂停采集 + console.info('Choose to pause or ignore'); + // 若选择暂停采集,需在此处主动执行暂停采集的若干操作 + break; + case audio.InterruptHint.INTERRUPT_HINT_STOP: + // 建议应用停止采集 + console.info('Choose to stop or ignore'); + // 若选择停止采集,需在此处主动执行停止采集的若干操作 + break; + default: + break; + } + } + }); +} +``` + + ### on('markReach')8+ on(type: "markReach", frame: number, callback: Callback<number>): void diff --git a/zh-cn/application-dev/reference/apis/js-apis-avsession.md b/zh-cn/application-dev/reference/apis/js-apis-avsession.md index 92a3d81ebaad1d37ace61f40bd596bd35a9da2b0..e479203da8df13119334a1dd8f01f27f10a276c5 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-avsession.md +++ b/zh-cn/application-dev/reference/apis/js-apis-avsession.md @@ -441,8 +441,9 @@ castAudio(session: SessionToken | 'all', audioDevices: Array { +await audioRoutingManager.getDevices(audio.DeviceFlag.OUTPUT_DEVICES_FLAG).then((data) => { audioDevices = data; console.info('Promise returned to indicate that the device list is obtained.'); }).catch((err) => { @@ -493,8 +494,9 @@ castAudio(session: SessionToken | 'all', audioDevices: Array { +await audioRoutingManager.getDevices(audio.DeviceFlag.OUTPUT_DEVICES_FLAG).then((data) => { audioDevices = data; console.info('Promise returned to indicate that the device list is obtained.'); }).catch((err) => { diff --git a/zh-cn/application-dev/reference/apis/js-apis-bluetoothManager.md b/zh-cn/application-dev/reference/apis/js-apis-bluetoothManager.md index 7d0b578f5935b7419a99b50e7aa6fca86229743a..3ab78fbb0abb3d81e51c405c69f3388b3b0abe45 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bluetoothManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bluetoothManager.md @@ -652,6 +652,98 @@ try { ``` +## bluetoothManager.setDevicePinCode10+ + +setDevicePinCode(device: string, code: string, callback: AsyncCallback<void>): void + +当蓝牙配对类型[PinType](#pintype10)为PIN_TYPE_ENTER_PIN_CODE或PIN_TYPE_PIN_16_DIGITS时调用此接口,请求用户输入PIN码。 + +**需要权限**:ohos.permission.MANAGE_BLUETOOTH + +**系统能力**:SystemCapability.Communication.Bluetooth.Core。 + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------- | ---- | -------------------------------- | +| device | string | 是 | 表示远端设备MAC地址,例如:"XX:XX:XX:XX:XX:XX"。 | +| code | string | 是 | 用户输入的PIN码。 | +| callback | AsyncCallback<void> | 是 | 回调函数,当设置PinCode成功,err为undefined,否则为错误对象。 | + +**错误码**: + +以下错误码的详细介绍请参见[蓝牙服务子系统错误码](../errorcodes/errorcode-bluetoothManager.md)。 + +| 错误码ID | 错误信息 | +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**示例:** + +```js +//callback +try { + bluetoothManager.setDevicePinCode('11:22:33:44:55:66', '12345', (err, data) => { + console.info('setDevicePinCode,device name err:' + JSON.stringify(err) + ',device name:' + JSON.stringify(data)); + }); +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + +## bluetoothManager.setDevicePinCode10+ + +setDevicePinCode(device: string, code: string): Promise<void> + +当蓝牙配对类型[PinType](#pintype10)为PIN_TYPE_ENTER_PIN_CODE或PIN_TYPE_PIN_16_DIGITS时调用此接口,请求用户输入PIN码。 + +**需要权限**:ohos.permission.MANAGE_BLUETOOTH + +**系统能力**:SystemCapability.Communication.Bluetooth.Core。 + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------- | ---- | -------------------------------- | +| device | string | 是 | 表示远端设备MAC地址,例如:"XX:XX:XX:XX:XX:XX"。 | +| code | string | 是 | 用户输入的PIN码。 | + +**返回值:** + +| 类型 | 说明 | +| ------------------- | ------------- | +| Promise<void> | 返回promise对象。 | + +**错误码**: + +以下错误码的详细介绍请参见[蓝牙服务子系统错误码](../errorcodes/errorcode-bluetoothManager.md)。 + +| 错误码ID | 错误信息 | +| -------- | ---------------------------- | +|2900001 | Service stopped. | +|2900003 | Bluetooth switch is off. | +|2900099 | Operation failed. | + +**示例:** + +```js +//promise +try { + bluetoothManager.setDevicePinCode('11:22:33:44:55:66', '12345').then(() => { + console.info('setDevicePinCode'); + }, error => { + console.info('setDevicePinCode: errCode:' + error.code + ',errMessage' + error.message); + }) + +} catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); +} +``` + + ## bluetoothManager.on('bluetoothDeviceFind') on(type: "bluetoothDeviceFind", callback: Callback<Array<string>>): void @@ -2333,17 +2425,6 @@ isTetheringOn(): boolean | --------------------- | --------------------------------- | | boolean | 网络共享开启返回true,网络共享关闭返回false。 | -**错误码**: - -以下错误码的详细介绍请参见[蓝牙服务子系统错误码](../errorcodes/errorcode-bluetoothManager.md)。 - -| 错误码ID | 错误信息 | -| -------- | ---------------------------- | -|2900001 | Service stopped. | -|2900003 | Bluetooth switch is off. | -|2900004 | Profile is not supported. | -|2900099 | Operation failed. | - **示例:** ```js @@ -3258,7 +3339,7 @@ client端读取蓝牙低功耗设备特定服务的特征值。 | 错误码ID | 错误信息 | | -------- | ---------------------------- | |2900001 | Service stopped. | -|2901000 | Read forbidden。 | +|2901000 | Read forbidden. | |2900099 | Operation failed. | **示例:** @@ -3327,7 +3408,7 @@ client端读取蓝牙低功耗设备特定服务的特征值。 | 错误码ID | 错误信息 | | -------- | ---------------------------- | |2900001 | Service stopped. | -|2901000 | Read forbidden。 | +|2901000 | Read forbidden. | |2900099 | Operation failed. | **示例:** @@ -3382,7 +3463,7 @@ client端读取蓝牙低功耗设备特定的特征包含的描述符。 | 错误码ID | 错误信息 | | -------- | ---------------------------- | |2900001 | Service stopped. | -|2901000 | Read forbidden。 | +|2901000 | Read forbidden. | |2900099 | Operation failed. | **示例:** @@ -3444,7 +3525,7 @@ client端读取蓝牙低功耗设备特定的特征包含的描述符。 | 错误码ID | 错误信息 | | -------- | ---------------------------- | |2900001 | Service stopped. | -|2901000 | Read forbidden。 | +|2901000 | Read forbidden. | |2900099 | Operation failed. | **示例:** @@ -3491,7 +3572,7 @@ client端向低功耗蓝牙设备写入特定的特征值。 | 错误码ID | 错误信息 | | -------- | ---------------------------- | |2900001 | Service stopped. | -|2901001 | Write forbidden。 | +|2901001 | Write forbidden. | |2900099 | Operation failed. | **示例:** @@ -3545,7 +3626,7 @@ client端向低功耗蓝牙设备特定的描述符写入二进制数据。 | 错误码ID | 错误信息 | | -------- | ---------------------------- | |2900001 | Service stopped. | -|2901001 | Write forbidden。 | +|2901001 | Write forbidden. | |2900099 | Operation failed. | **示例:** @@ -4016,12 +4097,13 @@ try { **系统能力**:SystemCapability.Communication.Bluetooth.Core。 -| 名称 | 类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 说明 | | ------------------- | ---------------------------------------- | ---- | ---- | ---------------------------------------- | | serviceUuid | string | 是 | 是 | 特定服务(service)的UUID,例如:00001888-0000-1000-8000-00805f9b34fb。 | | characteristicUuid | string | 是 | 是 | 特定特征(characteristic)的UUID,例如:00002a11-0000-1000-8000-00805f9b34fb。 | -| characteristicValue | ArrayBuffer | 是 | 是 | 特征对应的二进制值。 | -| descriptors | Array<[BLEDescriptor](#bledescriptor)> | 是 | 是 | 特定特征的描述符列表。 | +| characteristicValue | ArrayBuffer | 是 | 是 | 特征对应的二进制值。 | +| descriptors | Array<[BLEDescriptor](#bledescriptor)> | 是 | 是 | 特定特征的描述符列表。 | +| properties10+ | [GattProperties](#gattproperties10) | 是 | 是 | 特定特征的属性描述。 | ## BLEDescriptor @@ -4229,6 +4311,7 @@ try { | deviceId | string | 是 | 否 | 表示扫描到的设备地址,例如:"XX:XX:XX:XX:XX:XX"。 | | rssi | number | 是 | 否 | 表示扫描到的设备的rssi值。 | | data | ArrayBuffer | 是 | 否 | 表示扫描到的设备发送的广播包。 | +| deviceName10+ | string | 是 | 否 | 表示扫描到的设备名称。 | ## BluetoothState @@ -4308,6 +4391,7 @@ try { | -------- | ------ | ---- | ---- | ----------- | | deviceId | string | 是 | 否 | 表示要配对的设备ID。 | | pinCode | string | 是 | 否 | 表示要配对的密钥。 | +| pinType10+ | [PinType](#pintype10) | 是 | 否 | 表示要配对的设备类型。 | ## BondStateParam @@ -4334,6 +4418,21 @@ try { | state | [ProfileConnectionState](#profileconnectionstate) | 是 | 否 | 表示蓝牙设备的profile连接状态。 | +## GattProperties10+ + +描述gatt characteristic的属性。 + +**系统能力**:SystemCapability.Communication.Bluetooth.Core。 + +| 名称 | 类型 | 只读 | 必填 | 说明 | +| -------- | ------ | ---- | ---- | ----------- | +| write10+ | boolean | 是 | 是 | 表示该特征支持写操作,需要对端设备的回复。 | +| writeNoResponse10+ | boolean | 是 | 是 | 表示该特征支持写操作,无需对端设备回复。 | +| read10+ | boolean | 是 | 是 | 表示该特征支持读操作。 | +| notify10+ | boolean | 是 | 是 | 表示该特征可通知对端设备。 | +| indicate10+ | boolean | 是 | 是 | 表示该特征可通知对端设备,需要对端设备的回复。 | + + ## DeviceClass 描述蓝牙设备的类别。 @@ -4347,7 +4446,6 @@ try { | classOfDevice | number | 是 | 否 | 表示设备类别。 | - ## MajorClass 枚举,蓝牙设备主要类别。 @@ -4488,4 +4586,22 @@ try { | PROFILE_A2DP_SOURCE | 1 | 表示A2DP profile。 | | PROFILE_HANDS_FREE_AUDIO_GATEWAY | 4 | 表示HFP profile。 | | PROFILE_HID_HOST | 6 | 表示HID profile。 | -| PROFILE_PAN_NETWORK | 7 | 表示PAN profile。 | \ No newline at end of file +| PROFILE_PAN_NETWORK | 7 | 表示PAN profile。 | + + +## PinType10+ + +枚举,蓝牙配对类型。 + +**系统能力**:SystemCapability.Communication.Bluetooth.Core。 + +| 名称 | 值 | 说明 | +| -------------------------------- | ------ | --------------- | +| PIN_TYPE_ENTER_PIN_CODE10+ | 0 | 用户需要输入对端设备上显示的PIN码。 | +| PIN_TYPE_ENTER_PASSKEY10+ | 1 | 用户需要输入对端设备上显示的PASSKEY。 | +| PIN_TYPE_CONFIRM_PASSKEY10+ | 2 | 用户需要确认本地设备上显示的PASSKEY。 | +| PIN_TYPE_NO_PASSKEY_CONSENT10+ | 3 | 无PASSKEY,用户需要接受或拒绝配对请求。 | +| PIN_TYPE_NOTIFY_PASSKEY10+ | 4 | 本地设备显示PASSKEY,用户需要在对端设备上输入该PASSKEY。 | +| PIN_TYPE_DISPLAY_PIN_CODE10+ | 5 | bluetooth 2.0设备,用户需要输入对端设备上显示的PIN码。 | +| PIN_TYPE_OOB_CONSENT10+ | 6 | 用户需要接受或拒绝OOB配对请求。 | +| PIN_TYPE_PIN_16_DIGITS10+ | 7 | 用户需要输入对端设备上显示的16位PIN码。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md index a81e2dba60db16e30001d53b8124430df6f24beb..2e8a6df4f99515c552f3cd0ac6de5a5bd7f2a535 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md @@ -21,7 +21,7 @@ ohos.permission.INSTALL_BUNDLE SystemCapability.BundleManager.BundleFramework -**系统API:** 此接口为系统接口,三方应用不支持调用 +**系统API:** 此接口为系统接口。 **参数:** @@ -71,7 +71,7 @@ ohos.permission.INSTALL_BUNDLE SystemCapability.BundleManager.BundleFramework -**系统API:** 此接口为系统接口,三方应用不支持调用 +**系统API:** 此接口为系统接口。 **参数:** @@ -120,7 +120,7 @@ ohos.permission.INSTALL_BUNDLE SystemCapability.BundleManager.BundleFramework -**系统API:** 此接口为系统接口,三方应用不支持调用 +**系统API:** 此接口为系统接口。 **参数:** @@ -161,7 +161,7 @@ bundle.getBundleInstaller().then(installer => { **系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework - **系统API:** 此接口为系统接口,三方应用不支持调用 + **系统API:** 此接口为系统接口。 | 名称 | 类型 | 可读 | 可写 | 说明 | | ----------- | ------- | ---- | ---- | ------------------ | @@ -175,7 +175,7 @@ bundle.getBundleInstaller().then(installer => { **系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework - **系统API:** 此接口为系统接口,三方应用不支持调用 + **系统API:** 此接口为系统接口。 | 名称 | 类型 | 可读 | 可写 | 说明 | | ------------- | ------------------------------------------------------------ | ---- | ---- | ------------------------------ | diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-LauncherAbilityInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-LauncherAbilityInfo.md index c3be16604ba856d95ce87039cb2061e824937218..e0e5c8fb43aec4ef92d5bfcc11e74c08acbd1842 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-LauncherAbilityInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-LauncherAbilityInfo.md @@ -11,7 +11,7 @@ LauncherAbilityInfo信息,通过接口[innerBundleManager.getLauncherAbilityIn **系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework。 - **系统API:** 此接口为系统接口,三方应用不支持调用。 + **系统API:** 此接口为系统接口。 | 名称 | 类型 | 可读 | 可写 | 说明 | | --------------- | ---------------------------------------------------- | ---- | ---- | -------------------------------------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-PermissionDef.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-PermissionDef.md index cea742c810f683eb9d204efc6ca7f5dc2cfc5220..da0d229c697483b4e7aa92e07f06dbe6f4766c97 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-PermissionDef.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-PermissionDef.md @@ -11,7 +11,7 @@ **系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework - **系统API:** 此接口为系统接口,三方应用不支持调用 + **系统API:** 此接口为系统接口。 | 名称 | 类型 | 可读 | 可写 | 说明 | | -------------- | ------ | ---- | ---- | -------------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-remoteAbilityInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-remoteAbilityInfo.md index 62cf35767b4493b382c281b2c72989448bb8fa0d..5c64ff98ca497b2eb7fd4a5d4c031e1d49b09dff 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-remoteAbilityInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-remoteAbilityInfo.md @@ -14,7 +14,7 @@ remoteAbility信息。 **系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.DistributedBundleFramework - **系统API:** 此接口为系统接口,三方应用不支持调用 + **系统API:** 此接口为系统接口。 | 名称 | 类型 | 可读 | 可写 | 说明 | | ----------- | -------------------------------------------- | ---- | ---- | ----------------------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-BundlePackInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-BundlePackInfo.md index ef3853d7c5c52ba7cf2f018cdae5482690ce6f8d..7de51a3267318e9b7d20dc45bb1b5e2f1150b30e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-BundlePackInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-BundlePackInfo.md @@ -1,5 +1,5 @@ # BundlePackInfo - +此接口为系统 > **说明:** > 本模块首批接口从API version 9 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 @@ -122,7 +122,7 @@ ## ApiVersion -**系统接口:** 系统接口,三方应用不支持调用。 +**系统接口:** 此接口为系统接口。 **系统能力:** SystemCapability.BundleManager.BundleFrameWork.FreeInstall diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-businessAbilityInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-businessAbilityInfo.md new file mode 100644 index 0000000000000000000000000000000000000000..deeea708b336bd3a01788a178a6353ff29bbeac8 --- /dev/null +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-businessAbilityInfo.md @@ -0,0 +1,21 @@ +# BusinessAbilityInfo + +> **说明:** +> 本模块首批接口从API version 10 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 + +包含基本业务路由信息。 + +## BusinessAbilityInfo + +**系统能力**: SystemCapability.BundleManager.BundleFramework.Core + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| --------------------------------- | ------------------------------------------------------------ | ---- | ---- | -------------------- | +| bundleName | string | 是 | 否 | 表示应用程序的bundleName。 | +| moduleName | string | 是 | 否 | 表示应用程序的moduleName。 | +| name | string | 是 | 否 | 业务路由ability名。 | +| labelId | number | 是 | 否 | 模块标签的资源id。 | +| descriptionId | number | 是 | 否 | 描述信息的资源id。 | +| iconId | number | 是 | 否 | 描述ability信息的图标id。 | +| businessType | [businessAbilityRouter.BusinessType](js-apis-businessAbilityRouter.md#businesstype) | 是 | 否 | 标识枚举业务类型。 | +| applicationInfo | Array\<[ApplicationInfo](js-apis-bundleManager-applicationInfo.md)> | 是 | 否 | 应用程序的信息。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-launcherAbilityInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-launcherAbilityInfo.md index c565e6555c96502f9bfa35e756c80d41127cb03c..6dfe1b84be68dcdda34f3eb03cf204f513faf9a3 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-launcherAbilityInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-launcherAbilityInfo.md @@ -8,7 +8,7 @@ **系统能力:** SystemCapability.BundleManager.BundleFramework.Launcher。 - **系统:** 系统接口,三方应用不支持调用。 + **系统:** 此接口为系统接口。 | 名称 | 类型 | 可读 | 可写 | 说明 | | --------------- | ----------------------------------------------------------- | ---- | ---- | ------------------------------------ | 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 81792364b3b24c0fe0dfe978025b425c4721cb89..02e5bdb3b7f7e261cb411f9dec3ad2a9c24e8226 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md @@ -48,7 +48,7 @@ import bundleManager from '@ohos.bundle.bundleManager'; **系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework.Core。 - **系统接口:** 系统接口,不支持三方应用调用。 + **系统接口:** 此接口为系统接口。 | 名称 | 值 | 说明 | | ------------------------------------ | ---------- | ------------------------------------------------------------ | @@ -63,7 +63,7 @@ Ability组件信息标志,指示需要获取的Ability组件信息的内容。 **系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework.Core。 - **系统接口:** 系统接口,不支持三方应用调用。 + **系统接口:** 此接口为系统接口。 | 名称 | 值 | 说明 | | --------------------------------- | ---------- | ------------------------------------------------------------ | @@ -80,7 +80,7 @@ Ability组件信息标志,指示需要获取的Ability组件信息的内容。 **系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework.Core。 - **系统接口:** 系统接口,不支持三方应用调用。 + **系统接口:** 此接口为系统接口。 | 名称 | 值 | 说明 | | ------------------------------------------- | ---------- | ------------------------------------------------------------ | diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleMonitor.md b/zh-cn/application-dev/reference/apis/js-apis-bundleMonitor.md index 8b00ad32d9ad9f50939f3898ab8805876e8b4819..639b134facaa224ce680fdecf78220e2add53a34 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleMonitor.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleMonitor.md @@ -24,7 +24,7 @@ import bundleMonitor from '@ohos.bundle.bundleMonitor'; **系统能力:** SystemCapability.BundleManager.BundleFramework.Core -**系统API:** 此接口为系统接口,三方应用不支持调用 +**系统API:** 此接口为系统接口。 | 名称 | 类型 | 可读 | 可写 | 说明 | | ---------- | ------ | ---- | ---- | -------------------------- | @@ -39,7 +39,7 @@ on(type: BundleChangedEvent, callback: Callback\): void; **需要权限:** ohos.permission.LISTEN_BUNDLE_CHANGE -**系统API:** 此接口为系统接口,三方应用不支持调用 +**系统API:** 此接口为系统接口。 **系统能力:** SystemCapability.BundleManager.BundleFramework.Core @@ -72,7 +72,7 @@ off(type: BundleChangedEvent, callback?: Callback\): void; **需要权限:** ohos.permission.LISTEN_BUNDLE_CHANGE -**系统API:** 此接口为系统接口,三方应用不支持调用 +**系统API:** 此接口为系统接口。 **系统能力:** SystemCapability.BundleManager.BundleFramework.Core diff --git a/zh-cn/application-dev/reference/apis/js-apis-businessAbilityRouter.md b/zh-cn/application-dev/reference/apis/js-apis-businessAbilityRouter.md new file mode 100644 index 0000000000000000000000000000000000000000..39213c877d58f8a243a1fd29dd8399f1a82da5ec --- /dev/null +++ b/zh-cn/application-dev/reference/apis/js-apis-businessAbilityRouter.md @@ -0,0 +1,130 @@ +# @ohos.app.businessAbilityRouter (业务路由模块) + +本模块用于查询当前设备上安装的各种应用程序的路由ability信息。通过业务路由提供标准的业务模板和业务管理能力,开发者可以按照指定的业务类别注册标准业务,丰富的业务形成一个庞大的超市。系统应用或者三方应用可以从业务路由中获取所需业务,并选择合适的业务使用。同时业务路由提供统一的跳转管控规则,控制应用与业务之间的合理跳转,杜绝前后台任意的跳转行为,避免三方应用通过跳转变相分发,解决安全弱、体验差的问题。 + +> **说明:** +> +> 本模块首批接口从API version 10 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 + +本模块接口为系统接口。 + +## 导入模块 + +``` ts +import businessAbilityRouter from '@ohos.app.businessAbilityRouter'; +``` + +## 权限列表 + +| 权限 | 权限等级 | 描述 | +| ------------------------------------------ | ------------ | -------------------- | +| ohos.permission.GET_BUNDLE_INFO_PRIVILEGED | system_basic | 可查询所有应用信息。 | + +权限等级参考[权限等级说明](../../security/accesstoken-overview.md#权限等级说明)。 + +## BusinessType + +此枚举值用于标识过滤条件类型。 + +**系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework.Core。 + +**系统接口:** 此接口为系统接口。 + +| 名称 | 值 | 说明 | +| ----------- | ---- | ------------------------------------ | +| SHARE | 0 | 标识具有共享类型的ability信息。 | +| UNSPECIFIED | 255 | 标识未指定类型的ability信息。 | + +## BusinessAbilityFilter + +此过滤值用于过滤查询的ability类型。 + +**系统能力:** SystemCapability.BundleManager.BundleFrameWork.FreeInstall + +**系统接口:** 此接口为系统接口。 + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ------------ | ------------ | ---- | ---- | -------------------------------------- | +| businessType | BusinessType | 是 | 否 | 标识ability信息的类型。 | +| mimeType | string | 是 | 否 | 标识支持mime类型的ability信息。 | +| uri | string | 是 | 否 | 标识ability信息支持的uri。 | + +## businessAbilityRouter.queryBusinessAbilityInfo + +queryBusinessAbilityInfo(filter: BusinessAbilityFilter, callback: AsyncCallback\\>): void; + +以异步方法通过给定的过滤条件查询ability信息。使用callback异步回调。成功返回查询到的路由ability信息,失败返回对应错误信息。 + +**需要权限:** ohos.permission.GET_BUNDLE_INFO_PRIVILEGED + +**系统能力:** SystemCapability.BundleManager.BundleFramework.Core + +**系统API:** 此接口为系统接口。 + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ----------- | ------ | ---- | --------------------------------------- | +| filter | [BusinessAbilityFilter](#businessabilityfilter) | 是 | 支持按业务类型过滤的对象。 | +| callback | AsyncCallback\\> | 是 | 回调函数。返回查询到的ability信息,否则为错误对象。 | + +**示例:** + +```ts +import businessAbilityRouter from '@ohos.app.businessAbilityRouter'; +let filter = {businessType: businessAbilityRouter.BusinessType.SHARE}; + +try { + businessAbilityRouter.queryBusinessAbilityInfo(filter) + .then(() => { + console.info('queryBusinessAbilityInfo success'); + }).catch((error) => { + console.error('queryBusinessAbilityInfo failed ' + error.message); + }); +} catch (error) { + console.error('queryBusinessAbilityInfo failed ' + error.message); +} +``` + +## businessAbilityRouter.queryBusinessAbilityInfo + +queryBusinessAbilityInfo(filter: BusinessAbilityFilter): Promise\\>; + +以异步方法通过给定的过滤条件查询ability信息。使用Promise异步回调,成功返回查询到的路由ability信息,失败返回对应错误信息。 + +**需要权限:** ohos.permission.GET_BUNDLE_INFO_PRIVILEGED + +**系统能力:** SystemCapability.BundleManager.BundleFramework.Core + +**系统API:** 此接口为系统接口。 + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ----------- | ------------------------------- | ---- | --------------------------------------- | +| filter | [BusinessAbilityFilter](#businessabilityfilter) | 是 | 包含要查询的ability信息的筛选类型。 | + +**返回值:** + +| 类型 | 说明 | +| ------------------------------------------------------------ | ------------------------------------------- | +| Promise\\> | Promise对象,返回符合过滤条件的ability信息。 | + +**示例:** + +```ts +import businessAbilityRouter from '@ohos.app.businessAbilityRouter'; +let filter = {businessType: businessAbilityRouter.BusinessType.SHARE}; + +try { + businessAbilityRouter.queryBusinessAbilityInfo(filter, (error, data) => { + if (error) { + console.error('queryBusinessAbilityInfo failed ' + error.message); + return; + } + console.info('queryBusinessAbilityInfo success'); + }); +} catch (error) { + console.error('queryBusinessAbilityInfo failed ' + error.message); +} +``` 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 06603177f7a8c57d0dd1f558ad44207aaccc468e..6bb1c12adf9393282450eb2a6ab2603d0d614db5 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-call.md +++ b/zh-cn/application-dev/reference/apis/js-apis-call.md @@ -14,110 +14,6 @@ import call from '@ohos.telephony.call'; ``` -## call.dial(deprecated) - -dial\(phoneNumber: string, callback: AsyncCallback\): void - -拨打电话。使用callback异步回调。 - ->**说明:** -> ->从API version 6 开始支持,从API version 9 开始废弃,建议使用[dialCall](#calldialcall9)替代。 - -**需要权限**:ohos.permission.PLACE_CALL - -**系统能力**:SystemCapability.Telephony.CallManager - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ----------- | ---------------------------- | ---- | --------------------------------------- | -| phoneNumber | string | 是 | 电话号码。 | -| callback | AsyncCallback<boolean> | 是 | 回调函数,返回true为成功,false为失败。 | - -**示例:** - -```js -call.dial("138xxxxxxxx", (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); -}); -``` - - -## call.dial(deprecated) - -dial\(phoneNumber: string, options: DialOptions, callback: AsyncCallback\): void - -拨打电话,可设置通话参数。使用callback异步回调。 - ->**说明:** -> ->从API version 6 开始支持,从API version 9 开始废弃,建议使用[dialCall](#calldialcall9)替代。 - -**需要权限**:ohos.permission.PLACE_CALL - -**系统能力**:SystemCapability.Telephony.CallManager - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ----------- | ---------------------------- | ---- | --------------------------------------- | -| phoneNumber | string | 是 | 电话号码。 | -| options | [DialOptions](#dialoptions) | 是 | 通话参数,选择为语音通话还是视频通话。 | -| callback | AsyncCallback<boolean> | 是 | 回调函数,返回true为成功,false为失败。 | - -**示例:** - -```js -call.dial("138xxxxxxxx", { - extras: false -}, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); -}); -``` - - -## call.dial(deprecated) - -dial\(phoneNumber: string, options?: DialOptions\): Promise - -拨打电话,可设置通话参数。使用Promise异步回调。 - ->**说明:** -> ->从API version 6 开始支持,从API version 9 开始废弃,建议使用[dialCall](#calldialcall9)替代。 - -**需要权限**:ohos.permission.PLACE_CALL - -**系统能力**:SystemCapability.Telephony.CallManager - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ----------- | --------------------------- | ---- | -------------------------------------- | -| phoneNumber | string | 是 | 电话号码。 | -| options | [DialOptions](#dialoptions) | 否 | 通话参数,选择为语音通话还是视频通话。 | - -**返回值:** - -| 类型 | 说明 | -| ---------------------- | ------------------------------------------------------------ | -| Promise<boolean> | 以Promise形式返回拨打电话的结果,返回true为成功,false为失败。 | - -**示例:** - -```js -let promise = call.dial("138xxxxxxxx", { - extras: false -}); -promise.then(data => { - console.log(`dial success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { - console.error(`dial fail, promise: err->${JSON.stringify(err)}`); -}); -``` - - ## call.dialCall9+ dialCall\(phoneNumber: string, callback: AsyncCallback\): void @@ -260,6 +156,107 @@ promise.then(() => { }); ``` +## call.dial(deprecated) + +dial\(phoneNumber: string, callback: AsyncCallback\): void + +拨打电话。使用callback异步回调。 + +> **说明:** +> +> 从API version 6 开始支持,从API version 9 开始废弃。请使用[dialCall](#calldialcall9)替代,替代接口能力仅对系统应用开放。 + +**需要权限**:ohos.permission.PLACE_CALL + +**系统能力**:SystemCapability.Telephony.CallManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ----------- | ---------------------------- | ---- | --------------------------------------- | +| phoneNumber | string | 是 | 电话号码。 | +| callback | AsyncCallback<boolean> | 是 | 回调函数,返回true为成功,false为失败。 | + +**示例:** + +```js +call.dial("138xxxxxxxx", (err, data) => { + console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +}); +``` + + +## call.dial(deprecated) + +dial\(phoneNumber: string, options: DialOptions, callback: AsyncCallback\): void + +拨打电话,可设置通话参数。使用callback异步回调。 + +> **说明:** +> +> 从API version 6 开始支持,从API version 9 开始废弃。请使用[dialCall](#calldialcall9)替代,替代接口能力仅对系统应用开放。 + +**需要权限**:ohos.permission.PLACE_CALL + +**系统能力**:SystemCapability.Telephony.CallManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ----------- | ---------------------------- | ---- | --------------------------------------- | +| phoneNumber | string | 是 | 电话号码。 | +| options | [DialOptions](#dialoptions) | 是 | 通话参数,选择为语音通话还是视频通话。 | +| callback | AsyncCallback<boolean> | 是 | 回调函数,返回true为成功,false为失败。 | + +**示例:** + +```js +call.dial("138xxxxxxxx", { + extras: false +}, (err, data) => { + console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +}); +``` + +## call.dial(deprecated) + +dial\(phoneNumber: string, options?: DialOptions\): Promise + +拨打电话,可设置通话参数。使用Promise异步回调。 + +> **说明:** +> +> 从API version 6 开始支持,从API version 9 开始废弃。请使用[dialCall](#calldialcall9)替代,替代接口能力仅对系统应用开放。 + +**需要权限**:ohos.permission.PLACE_CALL + +**系统能力**:SystemCapability.Telephony.CallManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ----------- | --------------------------- | ---- | -------------------------------------- | +| phoneNumber | string | 是 | 电话号码。 | +| options | [DialOptions](#dialoptions) | 否 | 通话参数,选择为语音通话还是视频通话。 | + +**返回值:** + +| 类型 | 说明 | +| ---------------------- | ------------------------------------------------------------ | +| Promise<boolean> | 以Promise形式返回拨打电话的结果,返回true为成功,false为失败。 | + +**示例:** + +```js +let promise = call.dial("138xxxxxxxx", { + extras: false +}); +promise.then(data => { + console.log(`dial success, promise: data->${JSON.stringify(data)}`); +}).catch(err => { + console.error(`dial fail, promise: err->${JSON.stringify(err)}`); +}); +``` ## call.makeCall7+ diff --git a/zh-cn/application-dev/reference/apis/js-apis-curve.md b/zh-cn/application-dev/reference/apis/js-apis-curve.md index f3892ab6da6ca22906ad5e02042b358c7cb2d179..834ff5f9bcddbcf774371f593e1fcd2934bc4202 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-curve.md +++ b/zh-cn/application-dev/reference/apis/js-apis-curve.md @@ -35,7 +35,6 @@ initCurve(curve?: Curve):ICurve | ---------------------------------- | ---------------- | | [ICurve](#icurve) | 曲线的插值对象。 | - **示例:** ```ts @@ -57,7 +56,7 @@ stepsCurve(count: number, end: boolean):ICurve | 参数名 | 类型 | 必填 | 说明 | | ------ | ------- | ----| ------------------------------------------------------------ | -| count | number | 是 | 阶梯的数量,需要为正整数。 | +| count | number | 是 | 阶梯的数量,需要为正整数。
取值范围:[0, +∞)
**说明:**
设置小于0的值时,按值为0处理。 | | end | boolean | 是 | 在每个间隔的起点或是终点发生阶跃变化。
-true:在终点发生阶跃变化。
-false:在起点发生阶跃变化。 | **返回值:** @@ -66,7 +65,6 @@ stepsCurve(count: number, end: boolean):ICurve | ---------------------------------- | ---------------- | | [ICurve](#icurve) | 曲线的插值对象。 | - **示例:** ```ts @@ -85,12 +83,13 @@ cubicBezierCurve(x1: number, y1: number, x2: number, y2: number):ICurve **系统能力:** SystemCapability.ArkUI.ArkUI.Full **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ---- | ------ | ---- | -------------- | -| x1 | number | 是 | 确定贝塞尔曲线第一点横坐标。 | -| y1 | number | 是 | 确定贝塞尔曲线第一点纵坐标。 | -| x2 | number | 是 | 确定贝塞尔曲线第二点横坐标。 | -| y2 | number | 是 | 确定贝塞尔曲线第二点纵坐标。 | + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| x1 | number | 是 | 确定贝塞尔曲线第一点横坐标。
取值范围:[0, 1]
**说明:**
设置的值小于0时,按0处理;设置的值大于1时,按1处理。 | +| y1 | number | 是 | 确定贝塞尔曲线第一点纵坐标。
取值范围:(-∞, +∞) | +| x2 | number | 是 | 确定贝塞尔曲线第二点横坐标。
取值范围:[0, 1]
**说明:**
设置的值小于0时,按0处理;设置的值大于1时,按1处理。 | +| y2 | number | 是 | 确定贝塞尔曲线第二点纵坐标。
取值范围:(-∞, +∞) | **返回值:** @@ -112,17 +111,17 @@ Curves.cubicBezierCurve(0.1, 0.0, 0.1, 1.0) // 创建一个三阶贝塞尔曲线 springCurve(velocity: number, mass: number, stiffness: number, damping: number):ICurve -构造弹簧曲线对象。 +构造弹簧曲线对象,曲线形状由弹簧参数决定,动画时长受animation、animateTo中的duration参数控制。 **系统能力:** SystemCapability.ArkUI.ArkUI.Full **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| --------- | ------ | ---- | ----- | -| velocity | number | 是 | 初始速度。是由外部因素对弹性动效产生的影响参数,其目的是保证对象从之前的运动状态平滑的过渡到弹性动效。 | -| mass | number | 是 | 质量。弹性系统的受力对象,会对弹性系统产生惯性影响。质量越大,震荡的幅度越大,恢复到平衡位置的速度越慢。 | -| stiffness | number | 是 | 刚度。是物体抵抗施加的力而形变的程度。在弹性系统中,刚度越大,抵抗变形的能力越强,恢复到平衡位置的速度就越快。 | -| damping | number | 是 | 阻尼。是一个纯数,无真实的物理意义,用于描述系统在受到扰动后震荡及衰减的情形。阻尼越大,弹性运动的震荡次数越少、震荡幅度越小。 | +| 参数名 | 类型 | 必填 | 说明 | +| --------- | ------ | ---- | ------------------------------------------------------------ | +| velocity | number | 是 | 初始速度。是由外部因素对弹性动效产生的影响参数,其目的是保证对象从之前的运动状态平滑的过渡到弹性动效。
取值范围:(-∞, +∞) | +| mass | number | 是 | 质量。弹性系统的受力对象,会对弹性系统产生惯性影响。质量越大,震荡的幅度越大,恢复到平衡位置的速度越慢。
取值范围:(0, +∞)
**说明:**
设置的值小于0时,按1处理。 | +| stiffness | number | 是 | 刚度。是物体抵抗施加的力而形变的程度。在弹性系统中,刚度越大,抵抗变形的能力越强,恢复到平衡位置的速度就越快。
取值范围:(0, +∞)
**说明:**
设置的值小于0时,按1处理。 | +| damping | number | 是 | 阻尼。是一个纯数,无真实的物理意义,用于描述系统在受到扰动后震荡及衰减的情形。阻尼越大,弹性运动的震荡次数越少、震荡幅度越小。
取值范围:(0, +∞)
**说明:**
设置的值小于0时,按1处理。 | **返回值:** @@ -149,18 +148,19 @@ springMotion(response?: number, dampingFraction?: number, overlapDuration?: numb **系统能力:** SystemCapability.ArkUI.ArkUI.Full **参数:** + | 参数名 | 类型 | 必填 | 说明 | | --------- | ------ | ---- | ----- | -| response | number | 否 | 弹簧自然振动周期,决定弹簧复位的速度。单位:秒,默认值:0.55。 | -| dampingFraction | number | 否 | 阻尼系数。
0表示无阻尼,一直处于震荡状态;
大于0小于1的值为欠阻尼,运动过程中会超出目标值;
等于1为临界阻尼;
大于1为过阻尼,运动过程中逐渐趋于目标值。
默认值:0.825。 | -| overlapDuration | number | 否 | 弹性动画衔接时长。发生动画继承时,如果前后两个弹性动画response不一致,response参数会在overlapDuration时间内平滑过渡。单位:秒,默认值:0。 | +| response | number | 否 | 弹簧自然振动周期,决定弹簧复位的速度。
默认值:0.55
单位:秒
取值范围:[0, +∞)
**说明:**
设置小于0的值时,按默认值0.55处理。 | +| dampingFraction | number | 否 | 阻尼系数。
0表示无阻尼,一直处于震荡状态;
大于0小于1的值为欠阻尼,运动过程中会超出目标值;
等于1为临界阻尼;
大于1为过阻尼,运动过程中逐渐趋于目标值。
默认值:0.825
单位:秒
取值范围:[0, +∞)
**说明:**
设置小于0的值时,按默认值0.55处理。 | +| overlapDuration | number | 否 | 弹性动画衔接时长。发生动画继承时,如果前后两个弹性动画response不一致,response参数会在overlapDuration时间内平滑过渡。
默认值:0
单位:秒
取值范围:[0, +∞)。
**说明:**
设置小于0的值时,按默认值0处理。
弹性动画曲线为物理曲线,[animation](../arkui-ts/ts-animatorproperty.md)、[animateTo](../arkui-ts/ts-explicit-animation.md)中的duration参数不生效,动画持续时间取决于springMotion动画曲线参数和之前的速度。时间不能归一,故不能通过该曲线的interpolate函数获得插值。 | **返回值:** | 类型 | 说明 | | ---------------------------------- | ---------------- | -| [ICurve](#icurve)| 曲线对象。
**说明:** 弹性动画曲线为物理曲线,animation、animateTo中的duration参数不生效,动画持续时间取决于springMotion动画曲线参数和之前的速度。时间不能归一,故不能通过该曲线的[interpolate](#interpolate)函数获得插值。 | +| [ICurve](#icurve)| 曲线对象。
**说明:** 弹性动画曲线为物理曲线,[animation](../arkui-ts/ts-animatorproperty.md)、[animateTo](../arkui-ts/ts-explicit-animation.md)中的duration参数不生效,动画持续时间取决于springMotion动画曲线参数和之前的速度。时间不能归一,故不能通过该曲线的[interpolate](#interpolate)函数获得插值。 | **示例:** @@ -182,17 +182,18 @@ responsiveSpringMotion(response?: number, dampingFraction?: number, overlapDurat **系统能力:** SystemCapability.ArkUI.ArkUI.Full **参数:** + | 参数名 | 类型 | 必填 | 说明 | | --------- | ------ | ---- | ----- | -| response | number | 否 | 解释同springMotion中的response。单位:秒,默认值:0.15。 | -| dampingFraction | number | 否 | 解释同springMotion中的dampingFraction。默认值:0.86。 | -| overlapDuration | number | 否 | 解释同springMotion中的overlapDuration。单位:秒,默认值:0.25。 | +| response | number | 否 | 解释同springMotion中的response。
默认值:0.15
单位:秒
取值范围:[0, +∞)
**说明:**
设置小于0的值时,按默认值0.15处理。 | +| dampingFraction | number | 否 | 解释同springMotion中的dampingFraction。
默认值:0.86
单位:秒
取值范围:[0, +∞)
**说明:**
设置小于0的值时,按默认值0.86处理。 | +| overlapDuration | number | 否 | 解释同springMotion中的overlapDuration。
默认值:0.25
单位:秒
取值范围:[0, +∞)
**说明:**
设置小于0的值时,按默认值0.25处理。
弹性跟手动画曲线为springMotion的一种特例,仅默认值不同。如果使用自定义参数的弹性曲线,推荐使用springMotion构造曲线。如果使用跟手动画,推荐使用默认参数的弹性跟手动画曲线。
[animation](../arkui-ts/ts-animatorproperty.md)、[animateTo](../arkui-ts/ts-explicit-animation.md)中的duration参数不生效,动画持续时间取决于responsiveSpringMotion动画曲线参数和之前的速度,也不能通过该曲线的interpolate函数获得插值。 | **返回值:** | 类型 | 说明 | | ---------------------------------- | ---------------- | -| [ICurve](#icurve)| 曲线对象。
**说明:**
1.弹性跟手动画曲线为springMotion的一种特例,仅默认值不同。如果使用自定义参数的弹性曲线,推荐使用springMotion构造曲线;如果使用跟手动画,推荐使用默认参数的弹性跟手动画曲线。
2.animation、animateTo中的duration参数不生效,动画持续时间取决于responsiveSpringMotion动画曲线参数和之前的速度,也不能通过该曲线的[interpolate](#interpolate)函数获得插值。 | +| [ICurve](#icurve)| 曲线对象。
**说明:**
1、弹性跟手动画曲线为springMotion的一种特例,仅默认值不同。如果使用自定义参数的弹性曲线,推荐使用springMotion构造曲线;如果使用跟手动画,推荐使用默认参数的弹性跟手动画曲线。
2、[animation](../arkui-ts/ts-animatorproperty.md)、[animateTo](../arkui-ts/ts-explicit-animation.md)中的duration参数不生效,动画持续时间取决于responsiveSpringMotion动画曲线参数和之前的速度,也不能通过该曲线的[interpolate](#interpolate)函数获得插值。 | **示例:** @@ -202,6 +203,39 @@ Curves.responsiveSpringMotion() // 创建一个默认弹性跟手动画曲线 ``` +##  Curves.interpolatingSpringCurve10+ + +interpolatingSpring(velocity: number, mass: number, stiffness: number, damping: number):ICurve + + +构造插值器弹簧曲线对象,生成一条从0到1的动画曲线,实际动画值根据曲线进行插值计算。动画时间由曲线参数决定,不受animation、animateTo中的duration参数控制。 + +**系统能力:** SystemCapability.ArkUI.ArkUI.Full + +**参数:** +| 参数名 | 类型 | 必填 | 说明 | +| --------- | ------ | ---- | ----- | +| velocity | number | 是 | 初始速度。外部因素对弹性动效产生的影响参数,目的是保证对象从之前的运动状态平滑的过渡到弹性动效。该速度是归一化速度,其值等于动画开始时的实际速度除以动画属性改变值。 | +| mass | number | 是 | 质量。弹性系统的受力对象,会对弹性系统产生惯性影响。质量越大,震荡的幅度越大,恢复到平衡位置的速度越慢。 | +| stiffness | number | 是 | 刚度。表示物体抵抗施加的力而形变的程度。刚度越大,抵抗变形的能力越强,恢复到平衡位置的速度越快。 | +| damping | number | 是 | 阻尼。是一个纯数,无真实的物理意义,用于描述系统在受到扰动后震荡及衰减的情形。阻尼越大,弹性运动的震荡次数越少、震荡幅度越小。 | + + +**返回值:** + +| 类型 | 说明 | +| ---------------------------------- | ---------------- | +| [ICurve](#icurve)| 曲线的插值对象。 | + + +**示例:** + +```ts +import Curves from '@ohos.curves' +Curves.interpolatingSpring(100, 1, 228, 30) // 创建一个时长由弹簧参数决定的弹簧插值曲线 +``` + + ## ICurve @@ -217,9 +251,9 @@ interpolate(fraction: number): number **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ------ | ---- | -------------------------------------------- | -| fraction | number | 是 |  当前的归一化时间参数,有效值范围0到1。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------ | ---- | ------------------------------------------------------------ | +| fraction | number | 是 | 当前的归一化时间参数。
取值范围:[0,1]
**说明:**
设置的值小于0时,按0处理;设置的值大于1时,按1处理。 | **返回值:** 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 9a238fa148fc5d604106ef43eef16d1c85a4ed90..862fd4e65594f3bea1d2ba4dabf4e523fea71fc3 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 @@ -6,7 +6,7 @@ - [RdbPredicates](#rdbpredicates): 数据库中用来代表数据实体的性质、特征或者数据实体之间关系的词项,主要用来定义数据库的操作条件。 - [RdbStore](#rdbstore):提供管理关系数据库(RDB)方法的接口。 -- [Resultset](#resultset):提供用户调用关系型数据库查询接口之后返回的结果集合。 +- [ResultSet](#resultset):提供用户调用关系型数据库查询接口之后返回的结果集合。 > **说明:** > @@ -1281,6 +1281,14 @@ insert(table: string, values: ValuesBucket, callback: AsyncCallback<number> | values | [ValuesBucket](#valuesbucket) | 是 | 表示要插入到表中的数据行。 | | callback | AsyncCallback<number> | 是 | 指定callback回调函数。如果操作成功,返回行ID;否则返回-1。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ----------------------- | +| 14800047 | The WAL file size exceeds the default limit.| + **示例:** ```js @@ -1316,6 +1324,14 @@ insert(table: string, values: ValuesBucket, conflict: ConflictResolution, callb | conflict | [ConflictResolution](#conflictresolution10) | 是 | 指定冲突解决方式。 | | callback | AsyncCallback<number> | 是 | 指定callback回调函数。如果操作成功,返回行ID;否则返回-1。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ----------------------- | +| 14800047 | The WAL file size exceeds the default limit.| + **示例:** ```js @@ -1355,6 +1371,14 @@ insert(table: string, values: ValuesBucket):Promise<number> | --------------------- | ------------------------------------------------- | | Promise<number> | Promise对象。如果操作成功,返回行ID;否则返回-1。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ----------------------- | +| 14800047 | The WAL file size exceeds the default limit.| + **示例:** ```js @@ -1394,6 +1418,14 @@ insert(table: string, values: ValuesBucket, conflict: ConflictResolution):Promi | --------------------- | ------------------------------------------------- | | Promise<number> | Promise对象。如果操作成功,返回行ID;否则返回-1。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ----------------------- | +| 14800047 | The WAL file size exceeds the default limit.| + **示例:** ```js @@ -1427,6 +1459,14 @@ batchInsert(table: string, values: Array<ValuesBucket>, callback: AsyncCal | values | Array<[ValuesBucket](#valuesbucket)> | 是 | 表示要插入到表中的一组数据。 | | callback | AsyncCallback<number> | 是 | 指定callback回调函数。如果操作成功,返回插入的数据个数,否则返回-1。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ----------------------- | +| 14800047 | The WAL file size exceeds the default limit.| + **示例:** ```js @@ -1480,6 +1520,14 @@ batchInsert(table: string, values: Array<ValuesBucket>):Promise<number& | --------------------- | ----------------------------------------------------------- | | Promise<number> | Promise对象。如果操作成功,返回插入的数据个数,否则返回-1。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ----------------------- | +| 14800047 | The WAL file size exceeds the default limit.| + **示例:** ```js @@ -1527,6 +1575,14 @@ update(values: ValuesBucket, predicates: RdbPredicates, callback: AsyncCallback& | predicates | [RdbPredicates](#rdbpredicates) | 是 | RdbPredicates的实例对象指定的更新条件。 | | callback | AsyncCallback<number> | 是 | 指定的callback回调方法。返回受影响的行数。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ----------------------- | +| 14800047 | The WAL file size exceeds the default limit.| + **示例:** ```js @@ -1564,6 +1620,14 @@ update(values: ValuesBucket, predicates: RdbPredicates, conflict: ConflictResolu | conflict | [ConflictResolution](#conflictresolution10) | 是 | 指定冲突解决方式。 | | callback | AsyncCallback<number> | 是 | 指定的callback回调方法。返回受影响的行数。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ----------------------- | +| 14800047 | The WAL file size exceeds the default limit.| + **示例:** ```js @@ -1605,6 +1669,14 @@ update(values: ValuesBucket, predicates: RdbPredicates):Promise<number> | --------------------- | ----------------------------------------- | | Promise<number> | 指定的Promise回调方法。返回受影响的行数。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ----------------------- | +| 14800047 | The WAL file size exceeds the default limit.| + **示例:** ```js @@ -1646,6 +1718,14 @@ update(values: ValuesBucket, predicates: RdbPredicates, conflict: ConflictResolu | --------------------- | ----------------------------------------- | | Promise<number> | 指定的Promise回调方法。返回受影响的行数。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ----------------------- | +| 14800047 | The WAL file size exceeds the default limit.| + **示例:** ```js @@ -1684,6 +1764,14 @@ update(table: string, values: ValuesBucket, predicates: dataSharePredicates.Data | predicates | [dataSharePredicates.DataSharePredicates](js-apis-data-dataSharePredicates.md#datasharepredicates) | 是 | DataSharePredicates的实例对象指定的更新条件。 | | callback | AsyncCallback<number> | 是 | 指定的callback回调方法。返回受影响的行数。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ----------------------- | +| 14800047 | The WAL file size exceeds the default limit.| + **示例:** ```js @@ -1729,6 +1817,14 @@ update(table: string, values: ValuesBucket, predicates: dataSharePredicates.Data | --------------------- | ----------------------------------------- | | Promise<number> | 指定的Promise回调方法。返回受影响的行数。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ----------------------- | +| 14800047 | The WAL file size exceeds the default limit.| + **示例:** ```js @@ -1764,6 +1860,14 @@ delete(predicates: RdbPredicates, callback: AsyncCallback<number>):void | predicates | [RdbPredicates](#rdbpredicates) | 是 | RdbPredicates的实例对象指定的删除条件。 | | callback | AsyncCallback<number> | 是 | 指定callback回调函数。返回受影响的行数。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ----------------------- | +| 14800047 | The WAL file size exceeds the default limit.| + **示例:** ```js @@ -1798,6 +1902,14 @@ delete(predicates: RdbPredicates):Promise<number> | --------------------- | ------------------------------- | | Promise<number> | Promise对象。返回受影响的行数。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ----------------------- | +| 14800047 | The WAL file size exceeds the default limit.| + **示例:** ```js @@ -1829,6 +1941,14 @@ delete(table: string, predicates: dataSharePredicates.DataSharePredicates, callb | predicates | [dataSharePredicates.DataSharePredicates](js-apis-data-dataSharePredicates.md#datasharepredicates) | 是 | DataSharePredicates的实例对象指定的删除条件。 | | callback | AsyncCallback<number> | 是 | 指定callback回调函数。返回受影响的行数。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ----------------------- | +| 14800047 | The WAL file size exceeds the default limit.| + **示例:** ```js @@ -1867,6 +1987,14 @@ delete(table: string, predicates: dataSharePredicates.DataSharePredicates):Promi | --------------------- | ------------------------------- | | Promise<number> | Promise对象。返回受影响的行数。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ----------------------- | +| 14800047 | The WAL file size exceeds the default limit.| + **示例:** ```js @@ -2205,6 +2333,14 @@ executeSql(sql: string, bindArgs: Array<ValueType>, callback: AsyncCallbac | bindArgs | Array<[ValueType](#valuetype)> | 是 | SQL语句中参数的值。 | | callback | AsyncCallback<void> | 是 | 指定callback回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ----------------------- | +| 14800047 | The WAL file size exceeds the default limit.| + **示例:** ```js @@ -2239,6 +2375,14 @@ executeSql(sql: string, bindArgs?: Array<ValueType>):Promise<void> | ------------------- | ------------------------- | | Promise<void> | 无返回结果的Promise对象。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ----------------------- | +| 14800047 | The WAL file size exceeds the default limit.| + **示例:** ```js @@ -2259,6 +2403,14 @@ beginTransaction():void **系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ----------------------- | +| 14800047 | The WAL file size exceeds the default limit.| + **示例:** ```js diff --git a/zh-cn/application-dev/reference/apis/js-apis-defaultAppManager.md b/zh-cn/application-dev/reference/apis/js-apis-defaultAppManager.md index 71a3d4ec9aae0e71dc30a4ef9c7eb7f8912a0784..cd91357cd4a3e4840d40d9eaed33e91726b54400 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-defaultAppManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-defaultAppManager.md @@ -109,7 +109,7 @@ getDefaultApplication(type: string, userId?: number): Promise\ **系统能力:** SystemCapability.BundleManager.BundleFramework.DefaultApp -**系统API:** 此接口为系统接口,三方应用不支持调用 +**系统API:** 此接口为系统接口。 **参数:** @@ -165,7 +165,7 @@ getDefaultApplication(type: string, userId: number, callback: AsyncCallback\) : void **系统能力:** SystemCapability.BundleManager.BundleFramework.DefaultApp -**系统API:** 此接口为系统接口,三方应用不支持调用 +**系统API:** 此接口为系统接口。 **参数:** @@ -266,7 +266,7 @@ setDefaultApplication(type: string, elementName: ElementName, userId?: number): **系统能力:** SystemCapability.BundleManager.BundleFramework.DefaultApp -**系统API:** 此接口为系统接口,三方应用不支持调用 +**系统API:** 此接口为系统接口。 **参数:** @@ -338,7 +338,7 @@ setDefaultApplication(type: string, elementName: ElementName, userId: number, ca **系统能力:** SystemCapability.BundleManager.BundleFramework.DefaultApp -**系统API:** 此接口为系统接口,三方应用不支持调用 +**系统API:** 此接口为系统接口。 **参数:** @@ -399,7 +399,7 @@ setDefaultApplication(type: string, elementName: ElementName, callback: AsyncCal **系统能力:** SystemCapability.BundleManager.BundleFramework.DefaultApp -**系统API:** 此接口为系统接口,三方应用不支持调用 +**系统API:** 此接口为系统接口。 **参数:** @@ -458,7 +458,7 @@ resetDefaultApplication(type: string, userId?: number): Promise\ **系统能力:** SystemCapability.BundleManager.BundleFramework.DefaultApp -**系统API:** 此接口为系统接口,三方应用不支持调用 +**系统API:** 此接口为系统接口。 **参数:** @@ -508,7 +508,7 @@ resetDefaultApplication(type: string, userId: number, callback: AsyncCallback\) : void; **系统能力:** SystemCapability.BundleManager.BundleFramework.DefaultApp -**系统API:** 此接口为系统接口,三方应用不支持调用 +**系统API:** 此接口为系统接口。 **参数:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-device-manager.md b/zh-cn/application-dev/reference/apis/js-apis-device-manager.md index 3c0701bd503245342420ea3cefb2f849d8b87ab6..d7a67f5c99718f310d6d5e4126a31880ce03f0be 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-device-manager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-device-manager.md @@ -460,6 +460,83 @@ getLocalDeviceInfo(): Promise<DeviceInfo> }); ``` +### getDeviceInfo10+ + +getDeviceInfo(networkId: string, callback:AsyncCallback<DeviceInfo>): void + +通过指定设备的网络标识获取该设备的信息。使用callback异步回调。 + +**系统能力**:SystemCapability.DistributedHardware.DeviceManager + +**参数:** + + | 参数名 | 类型 | 必填 | 说明 | + | -------- | ---------------------------------------- | ---- | --------- | + | networkId| string | 是 | 设备的网络标识。 | + | callback | AsyncCallback<[DeviceInfo](#deviceinfo)> | 是 | 获取指定设备信息。 | + +**错误码:** + +以下的错误码的详细介绍请参见[设备管理错误码](../errorcodes/errorcode-device-manager.md) + +| 错误码ID | 错误信息 | +| -------- | --------------------------------------------------------------- | +| 11600101 | Failed to execute the function. | + +**示例:** + + ```js + try { + dmInstance.getDeviceInfo(networkId, (err, data) => { + if (err) { + console.error("getDeviceInfo errCode:" + err.code + ",errMessage:" + err.message); + return; + } + console.log('get device info: ' + JSON.stringify(data)); + }); + } catch (err) { + console.error("getDeviceInfo errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + +### getDeviceInfo10+ + +getDeviceInfo(networkId: string): Promise<DeviceInfo> + +通过指定设备的网络标识获取该设备的信息。使用Promise异步回调。 + +**系统能力**:SystemCapability.DistributedHardware.DeviceManager + +**参数:** + + | 参数名 | 类型 | 必填 | 说明 | + | -------- | ---------------------------------------- | ---- | --------- | + | networkId| string | 是 | 设备的网络标识。 | + +**返回值:** + + | 类型 | 说明 | + | ---------------------------------------- | --------------------- | + | Promise<[DeviceInfo](#deviceinfo)> | Promise实例,用于获取异步返回结果。 | + +**错误码:** + +以下的错误码的详细介绍请参见[设备管理错误码](../errorcodes/errorcode-device-manager.md) + +| 错误码ID | 错误信息 | +| ------- | --------------------------------------------------------------- | +| 11600101| Failed to execute the function. | + +**示例:** + + ```js + dmInstance.getDeviceInfo(networkId).then((data) => { + console.log('get device info: ' + JSON.stringify(data)); + }).catch((err) => { + console.error("getDeviceInfo errCode:" + err.code + ",errMessage:" + err.message); + }); + ``` + ### startDeviceDiscovery8+ startDeviceDiscovery(subscribeInfo: SubscribeInfo): void diff --git a/zh-cn/application-dev/reference/apis/js-apis-display.md b/zh-cn/application-dev/reference/apis/js-apis-display.md index 8b73f026dcdc1864fcde3cc02707a890f3c39a9e..db7ab01ce6978bf0a8d49cf115a07ac5f4cd2f39 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-display.md +++ b/zh-cn/application-dev/reference/apis/js-apis-display.md @@ -291,6 +291,63 @@ try { } ``` +## display.on('privateModeChange')10+ + +on(type: 'privateModeChange', callback: Callback<boolean>): void + +开启屏幕隐私模式变化的监听。当屏幕前台有隐私窗口,则屏幕处于隐私模式,屏幕中的隐私窗口内容无法被截屏或录屏。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.WindowManager.WindowManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- |------------------------------------------| ---- | ------------------------------------------------------- | +| type | string | 是 | 监听事件,固定为'privateModeChange',表示屏幕隐私模式状态发生变化。 | +| callback | Callback<boolean> | 是 | 回调函数。表示屏幕隐私模式是否改变。true表示屏幕由非隐私窗口模式变为隐私模式,false表示屏幕由隐私模式变为非隐私模式。 | + +**示例:** + +```js +let callback = (data) => { + console.info('Listening enabled. Data: ' + JSON.stringify(data)); +}; +try { + display.on("privateModeChange", callback); +} catch (exception) { + console.error('Failed to register callback. Code: ' + JSON.stringify(exception)); +} +``` + +## display.off('privateModeChange')10+ + +off(type: 'privateModeChange', callback?: Callback<boolean>): void + +关闭屏幕隐私模式变化的监听。当屏幕前台有隐私窗口,则屏幕处于隐私模式,屏幕中的隐私窗口内容无法被截屏或录屏。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.WindowManager.WindowManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- |------------------------------------------| ---- | ------------------------------------------------------- | +| type | string | 是 | 监听事件,固定为'privateModeChange',表示屏幕隐私模式状态发生变化。 | +| callback | Callback<boolean> | 否 | 回调函数。表示屏幕隐私模式是否改变。true表示屏幕由非隐私模式变为隐私模式,false表示屏幕由隐私模式变为非隐私模式。 | + +**示例:** + +```js +try { + display.off("privateModeChange"); +} catch (exception) { + console.error('Failed to unregister callback. Code: ' + JSON.stringify(exception)); +} +``` + ## display.getDefaultDisplay(deprecated) getDefaultDisplay(callback: AsyncCallback<Display>): void diff --git a/zh-cn/application-dev/reference/apis/js-apis-distributed-account.md b/zh-cn/application-dev/reference/apis/js-apis-distributed-account.md index 1cade67ddc4d97371f9c07925a508a6195293efe..82c7205626934dbd5ddf5bca020ce943917b171a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-distributed-account.md +++ b/zh-cn/application-dev/reference/apis/js-apis-distributed-account.md @@ -232,7 +232,8 @@ setOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise<void> | 错误码ID | 错误信息| | -------- | ------------------- | | 12300001 | System service exception. | -| 12300002 | invalid accountInfo. | +| 12300002 | Invalid accountInfo. | +| 12300003 | Account not found. | **示例:** ```js @@ -325,4 +326,4 @@ updateOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise<void> | event | string | 是 | 分布式帐号登录状态,包括登录、登出、Token失效和注销,分别对应以下字符串:
- Ohos.account.event.LOGIN
- Ohos.account.event.LOGOUT
- Ohos.account.event.TOKEN_INVALID
- Ohos.account.event.LOGOFF | | nickname9+ | string | 否 | 分布式帐号的昵称,非空字符串。 | | avatar9+ | string | 否 | 分布式帐号的头像,非空字符串。 | -| scalableData | object | 否 | 分布式帐号扩展信息,根据业务所需,以k-v形式传递定制化信息。
说明:该参数是预留的可选项,目前查询和更新的方法实现中未使用。 | +| scalableData8+ | object | 否 | 分布式帐号扩展信息,根据业务所需,以k-v形式传递定制化信息。
说明:该参数是预留的可选项,目前查询和更新的方法实现中未使用。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-enterprise-bundleManager.md b/zh-cn/application-dev/reference/apis/js-apis-enterprise-bundleManager.md new file mode 100644 index 0000000000000000000000000000000000000000..66249739bb2d229bb2a855b5cb71e76cc70d9b4e --- /dev/null +++ b/zh-cn/application-dev/reference/apis/js-apis-enterprise-bundleManager.md @@ -0,0 +1,389 @@ +# @ohos.enterprise.bundleManager(包管理) + +本模块提供包管理能力,包括添加包安装白名单、获取包安装白名单、移除包安装白名单等。仅企业设备管理员应用才能调用。 + +> **说明:** +> +> 本模块首批接口从API version 10开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 + +## 导入模块 + +```js +import bundleManager from '@ohos.enterprise.bundleManager'; +``` + +## bundleManager.addAllowedInstallBundles + +addAllowedInstallBundles(admin: Want, appIds: Array\, callback: AsyncCallback<void>): void; + +添加包安装白名单接口,使用callback异步回调。 + +**需要权限:** ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY + +**系统能力:** SystemCapability.Customization.EnterpriseDeviceManager + +**系统API**: 此接口为系统接口。 + +**参数:** + +| 参数 | 类型 | 必填 | 说明 | +| -------- | ---------------------------------------- | ---- | ------------------------------- | +| admin | [Want](js-apis-app-ability-want.md) | 是 | 设备管理员应用 | +| appIds | Array<string> | 是 | 允许安装包的白名单 | +| callback | AsyncCallback<void> | 是 | 回调函数。当接口调用成功err为null,否则为错误对象。 | + +**错误码**: + +以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md) + +| 错误码ID | 错误信息 | +| ------- | ---------------------------------------------------------------------------- | +| 9200003 | the administrator ability component is invalid. | +| 9200007 | the system ability work abnormally. | + +**示例:** + +```js +let wantTemp = { + bundleName: "com.example.myapplication", + abilityName: "EntryAbility", +}; +let appIds = {"com.example.myapplication"}; + +bundleManager.AddAllowedInstallBundles(wantTemp, appIds, (error) => { + if (error != null) { + console.log("error code:" + error.code + " error message:" + error.message); + } +}); +``` + +## bundleManager.addAllowedInstallBundles + +addAllowedInstallBundles(admin: Want, appIds: Array\, userId: number, callback: AsyncCallback<void>): void; + +添加包安装白名单接口,使用callback异步回调。 + +**需要权限:** ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY + +**系统能力:** SystemCapability.Customization.EnterpriseDeviceManager + +**系统API**: 此接口为系统接口。 + +**参数:** + +| 参数 | 类型 | 必填 | 说明 | +| ----- | ----------------------------------- | ---- | ------- | +| admin | [Want](js-apis-app-ability-want.md) | 是 | 设备管理员应用 | +| appIds | Array<string> | 是 | 允许安装包的白名单 | +| userId | number | 是 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 | +| callback | AsyncCallback<void> | 是 | 回调函数。当接口调用成功err为null,否则为错误对象。 | + +**错误码**: + +以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md) + +| 错误码ID | 错误信息 | +| ------- | ---------------------------------------------------------------------------- | +| 9200003 | the administrator ability component is invalid. | +| 9200007 | the system ability work abnormally. | + +**示例:** + +```js +let wantTemp = { + bundleName: "com.example.myapplication", + abilityName: "EntryAbility", +}; +let appIds = {"com.example.myapplication"}; + +bundleManager.AddAllowedInstallBundles(wantTemp, appIds, 100, (error) => { + if (error != null) { + console.log("error code:" + error.code + " error message:" + error.message); + } +}); +``` + +## bundleManager.addAllowedInstallBundles + +addAllowedInstallBundles(admin: Want, appIds: Array\, userId?: number): Promise<void>; + +添加包安装白名单接口,使用promise异步回调。 + +**需要权限:** ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY + +**系统能力:** SystemCapability.Customization.EnterpriseDeviceManager + +**系统API**: 此接口为系统接口。 + +**参数:** + +| 参数 | 类型 | 必填 | 说明 | +| ----- | ----------------------------------- | ---- | ------- | +| admin | [Want](js-apis-app-ability-want.md) | 是 | 设备管理员应用 | +| appIds | Array<string> | 是 | 允许安装包的白名单 | +| userId | number | 否 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 | + +**返回值:** + +| 类型 | 说明 | +| --------------------- | ------------------------- | +| Promise<void> | 无返回结果的Promise对象。 | + +**错误码**: + +以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md) + +| 错误码ID | 错误信息 | +| ------- | ---------------------------------------------------------------------------- | +| 9200003 | the administrator ability component is invalid. | +| 9200007 | the system ability work abnormally. | + +**示例:** + +```js +let wantTemp = { + bundleName: "com.example.myapplication", + abilityName: "EntryAbility", +}; +let appIds = {"com.example.myapplication"}; + +bundleManager.addAllowedInstallBundles(wantTemp, appIds, 100).then(() => { + console.log("success"); +}).catch(error => { + console.log("error code:" + error.code + " error message:" + error.message); +}); +``` + +## bundleManager.removeAllowedInstallBundles + +removeAllowedInstallBundles(admin: Want, appIds: Array\, callback: AsyncCallback<void>): void; + +移除包安装白名单接口,使用callback异步回调。 + +**需要权限:** ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY + +**系统能力:** SystemCapability.Customization.EnterpriseDeviceManager + +**系统API**: 此接口为系统接口。 + +**参数:** + +| 参数 | 类型 | 必填 | 说明 | +| -------- | ---------------------------------------- | ---- | ------------------------------- | +| admin | [Want](js-apis-app-ability-want.md) | 是 | 设备管理员应用 | +| appIds | Array<string> | 是 | 移除允许安装包的白名单 | +| callback | AsyncCallback<void> | 是 | 回调函数。当接口调用成功err为null,否则为错误对象。 | + +**错误码**: + +以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md) + +| 错误码ID | 错误信息 | +| ------- | ---------------------------------------------------------------------------- | +| 9200003 | the administrator ability component is invalid. | +| 9200007 | the system ability work abnormally. | + +**示例:** + +```js +let wantTemp = { + bundleName: "com.example.myapplication", + abilityName: "EntryAbility", +}; +let appIds = {"com.example.myapplication"}; + +bundleManager.removeAllowedInstallBundles(wantTemp, appIds, (error) => { + if (error != null) { + console.log("error code:" + error.code + " error message:" + error.message); + } +}); +``` + +## bundleManager.removeAllowedInstallBundles + +removeAllowedInstallBundles(admin: Want, appIds: Array\, userId: number, callback: AsyncCallback<void>): void; + +移除包安装白名单接口,使用callback异步回调。 + +**需要权限:** ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY + +**系统能力:** SystemCapability.Customization.EnterpriseDeviceManager + +**系统API**: 此接口为系统接口。 + +**参数:** + +| 参数 | 类型 | 必填 | 说明 | +| ----- | ----------------------------------- | ---- | ------- | +| admin | [Want](js-apis-app-ability-want.md) | 是 | 设备管理员应用 | +| appIds | Array<string> | 是 | 允许安装包的白名单 | +| userId | number | 是 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 | +| callback | AsyncCallback<void> | 是 | 回调函数。当接口调用成功err为null,否则为错误对象。 | + +**错误码**: + +以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md) + +| 错误码ID | 错误信息 | +| ------- | ---------------------------------------------------------------------------- | +| 9200003 | the administrator ability component is invalid. | +| 9200007 | the system ability work abnormally. | + +**示例:** + +```js +let wantTemp = { + bundleName: "com.example.myapplication", + abilityName: "EntryAbility", +}; +let appIds = {"com.example.myapplication"}; + +bundleManager.removeAllowedInstallBundles(wantTemp, appIds, 100, (error) => { + if (error != null) { + console.log("error code:" + error.code + " error message:" + error.message); + } +}); +``` + +## bundleManager.removeAllowedInstallBundles + +removeAllowedInstallBundles(admin: Want, appIds: Array\, userId?: number): Promise<void>; + +移除包安装白名单接口,使用promise异步回调。 + +**需要权限:** ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY + +**系统能力:** SystemCapability.Customization.EnterpriseDeviceManager + +**系统API**: 此接口为系统接口。 + +**参数:** + +| 参数 | 类型 | 必填 | 说明 | +| ----- | ----------------------------------- | ---- | ------- | +| admin | [Want](js-apis-app-ability-want.md) | 是 | 设备管理员应用 | +| appIds | Array\<string> | 是 | 允许安装包的白名单 | +| userId | number | 否 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 | + +**返回值:** + +| 类型 | 说明 | +| --------------------- | ------------------------- | +| Promise<void> | 无返回结果的Promise对象。 | + +**错误码**: + +以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md) + +| 错误码ID | 错误信息 | +| ------- | ---------------------------------------------------------------------------- | +| 9200003 | the administrator ability component is invalid. | +| 9200007 | the system ability work abnormally. | + +**示例:** + +```js +let wantTemp = { + bundleName: "com.example.myapplication", + abilityName: "EntryAbility", +}; +let appIds = {"com.example.myapplication"}; + +bundleManager.removeAllowedInstallBundles(wantTemp, appIds, 100).then(() => { + console.log("success"); +}).catch(error => { + console.log("error code:" + error.code + " error message:" + error.message); +}); +``` + +## bundleManager.getAllowedInstallBundles + +getAllowedInstallBundles(admin: Want, userId: number, callback: AsyncCallback<Array<string>>): void; + +获取包安装白名单接口,使用callback异步回调。 + +**需要权限:** ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY + +**系统能力:** SystemCapability.Customization.EnterpriseDeviceManager + +**系统API**: 此接口为系统接口。 + +**参数:** + +| 参数 | 类型 | 必填 | 说明 | +| -------- | ---------------------------------------- | ---- | ------------------------------- | +| admin | [Want](js-apis-app-ability-want.md) | 是 | 设备管理员应用 | +| userId | number | 是 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 | +| callback | AsyncCallback<Array<string>> | 是 | 回调函数。当接口调用成功err为null,否则为错误对象。 | + +**错误码**: + +以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md) + +| 错误码ID | 错误信息 | +| ------- | ---------------------------------------------------------------------------- | +| 9200003 | the administrator ability component is invalid. | +| 9200007 | the system ability work abnormally. | + +**示例:** + +```js +let wantTemp = { + bundleName: "com.example.myapplication", + abilityName: "EntryAbility", +}; + +bundleManager.getAllowedInstallBundles(wantTemp, 100, (error) => { + if (error != null) { + console.log("error code:" + error.code + " error message:" + error.message); + } +}); +``` + +## bundleManager.getAllowedInstallBundles + +getAllowedInstallBundles(admin: Want, userId?: number): Promise<Array<string>>; + +获取包安装白名单接口,使用promise异步回调。 + +**需要权限:** ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY + +**系统能力:** SystemCapability.Customization.EnterpriseDeviceManager + +**系统API**: 此接口为系统接口。 + +**参数:** + +| 参数 | 类型 | 必填 | 说明 | +| ----- | ----------------------------------- | ---- | ------- | +| admin | [Want](js-apis-app-ability-want.md) | 是 | 设备管理员应用 | +| userId | number | 否 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 | + +**返回值:** + +| 类型 | 说明 | +| --------------------- | ------------------------- | +| Promise<void> | 返回结果为String类型数组的Promise对象。 | + +**错误码**: + +以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md) + +| 错误码ID | 错误信息 | +| ------- | ---------------------------------------------------------------------------- | +| 9200003 | the administrator ability component is invalid. | +| 9200007 | the system ability work abnormally. | + +**示例:** + +```js +let wantTemp = { + bundleName: "com.example.myapplication", + abilityName: "EntryAbility", +}; +bundleManager.getAllowedInstallBundles(wantTemp, 100).then(() => { + console.log("success"); +}).catch(error => { + console.log("error code:" + error.code + " error message:" + error.message); +}); +``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-file-cloudsyncmanager.md b/zh-cn/application-dev/reference/apis/js-apis-file-cloudsyncmanager.md new file mode 100644 index 0000000000000000000000000000000000000000..58d96ecbea75a0a5a4840405dfebe1539000481d --- /dev/null +++ b/zh-cn/application-dev/reference/apis/js-apis-file-cloudsyncmanager.md @@ -0,0 +1,141 @@ +# @ohos.file.cloudSyncManager (端云同步管理能力) + +该模块向云空间提供通知或更改端云服务状态的能力。 + +> **说明:** +> 本模块首批接口从API version 10开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +> 本模块接口为系统接口,三方应用不支持调用。 +> 本模块支持对错误码进行处理,错误码及其适配方式[参考文档](../errorcodes/errorcode-filemanagement.md#错误码适配指导)。 + +## 导入模块 + +```js +import cloudSyncManager from '@ohos.file.cloudSyncManager'; +``` + +## cloudSyncManager.changeAppCloudSwitch + +changeAppCloudSwitch(accountId: string, bundleName: string, status: boolean): Promise<void>; + +异步方法修改应用的端云文件同步开关,以Promise形式返回结果。 + +**系统能力**:SystemCapability.FileManagement.DistributedFileService.CloudSyncManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ---------- | ------ | ---- | ---- | +| accountId | string | 是 | 帐号| +| bundleName | string | 是 | 应用包名| +| status | boolean | 是 | 修改的应用云同步开关状态,true为打开,false为关闭| + +**返回值:** + +| 类型 | 说明 | +| --------------------- | ---------------- | +| Promise<void> | 使用Promise形式返回修改应用的端云文件同步开关的结果 | + +**示例:** + + ```js + let accountId = "testAccount"; + let bundleName = "com.example.bundle"; + cloudSyncManager.changeAppCloudSwitch(accountId, bundleName, true).then(function() { + console.info("changeAppCloudSwitch successfully"); + }).catch(function(err) { + console.info("changeAppCloudSwitch failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + +## cloudSyncManager.changeAppCloudSwitch + +changeAppCloudSwitch(accountId: string, bundleName: string, status: boolean, callback: AsyncCallback<void>): void; + +异步方法修改应用的端云文件同步开关,以callback形式返回结果。 + +**系统能力**:SystemCapability.FileManagement.DistributedFileService.CloudSyncManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ---------- | ------ | ---- | ---- | +| accountId | string | 是 | 帐号| +| bundleName | string | 是 | 应用包名| +| status | boolean | 是 | 修改的应用云同步开关状态,true为打开,false为关闭| +| callback | AsyncCallback<void> | 是 | 异步修改应用的端云文件同步开关之后的回调 | + +**示例:** + + ```js + let accountId = "testAccount"; + let bundleName = "com.example.bundle"; + cloudSyncManager.changeAppCloudSwitch(accountId, bundleName, true, (err) => { + if (err) { + console.info("changeAppCloudSwitch failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("changeAppCloudSwitch successfully"); + } + }); + ``` +## cloudSyncManager.notifyDataChange + +notifyDataChange(accountId: string, bundleName: string): Promise<void>; + +异步方法通知端云服务应用的云数据变更,以Promise形式返回结果。 + +**系统能力**:SystemCapability.FileManagement.DistributedFileService.CloudSyncManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ---------- | ------ | ---- | ---- | +| accountId | string | 是 | 帐号| +| bundleName | string | 是 | 应用包名| + +**返回值:** + +| 类型 | 说明 | +| --------------------- | ---------------- | +| Promise<void> | 使用Promise形式返回通知端云服务应用的云数据变更的结果 | + +**示例:** + + ```js + let accountId = "testAccount"; + let bundleName = "com.example.bundle"; + cloudSyncManager.notifyDataChange(accountId, bundleName).then(function() { + console.info("notifyDataChange successfully"); + }).catch(function(err) { + console.info("notifyDataChange failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + +## cloudSyncManager.notifyDataChange + +notifyDataChange(accountId: string, bundleName: string, callback: AsyncCallback<void>): void; + +异步方法通知端云服务应用的云数据变更,以callback形式返回结果。 + +**系统能力**:SystemCapability.FileManagement.DistributedFileService.CloudSyncManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ---------- | ------ | ---- | ---- | +| accountId | string | 是 | 帐号| +| bundleName | string | 是 | 应用包名| +| callback | AsyncCallback<void> | 是 | 异步通知端云服务应用的云数据变更之后的回调 | + +**示例:** + + ```js + let accountId = "testAccount"; + let bundleName = "com.example.bundle"; + cloudSyncManager.notifyDataChange(accountId, bundleName, (err) => { + if (err) { + console.info("notifyDataChange failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("notifyDataChange successfully"); + } + }); + ``` \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-file-fileUri.md b/zh-cn/application-dev/reference/apis/js-apis-file-fileuri.md similarity index 93% rename from zh-cn/application-dev/reference/apis/js-apis-file-fileUri.md rename to zh-cn/application-dev/reference/apis/js-apis-file-fileuri.md index 595a3a593dad5d384dbc7ff832285e07cd9b031a..acf1eb72d5a85f823a743a396be2c70459ae5f3c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-file-fileUri.md +++ b/zh-cn/application-dev/reference/apis/js-apis-file-fileuri.md @@ -1,4 +1,4 @@ -# @ohos.file.fileUri (文件URI) +# @ohos.file.fileuri (文件URI) 该模块提供通过PATH获取文件统一资源标志符(Uniform Resource Identifier,URI),后续可通过使用[@ohos.file.fs](js-apis-file-fs.md)进行相关open、read、write等操作,实现文件分享。 @@ -8,7 +8,7 @@ ## 导入模块 ```js -import fileUri from "@ohos.file.fileUri"; +import fileuri from "@ohos.file.fileuri"; ``` 使用该功能模块前,需要先获取其应用沙箱路径,开发示例如下: @@ -56,5 +56,5 @@ getUriFromPath(path: string): string ```js let filePath = pathDir + "test.txt"; -let uri = fileUri.getUriFromPath(filePath); +let uri = fileuri.getUriFromPath(filePath); ``` 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 9bc6e12e371d0c6f1517870fc8b3a6589dddd224..7e02d86f1e15bdabfd75664f39cd4ebe42bf7491 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 @@ -955,7 +955,7 @@ truncate(file: string|number, len?: number): Promise<void> | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | -------------------------------- | | file | string\|number | 是 | 文件的应用沙箱路径或已打开的文件描述符fd。 | -| len | number | 否 | 文件截断后的长度,以字节为单位。 | +| len | number | 否 | 文件截断后的长度,以字节为单位。默认为0。 | **返回值:** @@ -989,7 +989,7 @@ truncate(file: string|number, len?: number, callback: AsyncCallback<void>) | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------- | ---- | -------------------------------- | | file | string\|number | 是 | 文件的应用沙箱路径或已打开的文件描述符fd。 | -| len | number | 否 | 文件截断后的长度,以字节为单位。 | +| len | number | 否 | 文件截断后的长度,以字节为单位。默认为0。 | | callback | AsyncCallback<void> | 是 | 回调函数,本调用无返回值。 | **示例:** @@ -1020,7 +1020,7 @@ truncateSync(file: string|number, len?: number): void | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | -------------------------------- | | file | string\|number | 是 | 文件的应用沙箱路径或已打开的文件描述符fd。 | -| len | number | 否 | 文件截断后的长度,以字节为单位。 | +| len | number | 否 | 文件截断后的长度,以字节为单位。默认为0。 | **示例:** @@ -1575,7 +1575,7 @@ listFile(path: string, options?: { | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | --------------------------- | | path | string | 是 | 文件夹的应用沙箱路径。 | - | options | Object | 否 | 文件过滤选项。 | + | options | Object | 否 | 文件过滤选项。默认不进行过滤。 | **options参数说明:** @@ -1628,7 +1628,7 @@ listFile(path: string, options?: { | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | --------------------------- | | path | string | 是 | 文件夹的应用沙箱路径。 | - | options | Object | 否 | 文件过滤选项。 | + | options | Object | 否 | 文件过滤选项。默认不进行过滤。 | | callback | AsyncCallback<string[]> | 是 | 异步列出文件名数组之后的回调。 | **options参数说明:** @@ -1679,7 +1679,7 @@ listFileSync(path: string, options?: { | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | --------------------------- | | path | string | 是 | 文件夹的应用沙箱路径。 | - | options | Object | 否 | 文件过滤选项。 | + | options | Object | 否 | 文件过滤选项。默认不进行过滤。 | **options参数说明:** 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 afdc43e1e0896d996ac9512e096c6feef6666800..fbab7e810ae3f24faec4eb4d2a5f190ff145b6a4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-http.md +++ b/zh-cn/application-dev/reference/apis/js-apis-http.md @@ -332,7 +332,7 @@ httpRequest.destroy(); ### request210+ -request2(url: string, callback: AsyncCallback\): void +request2(url: string, callback: AsyncCallback\): void 根据URL地址和相关配置项,发起HTTP网络请求并返回流式响应,使用callback方式作为异步方法。 @@ -345,7 +345,7 @@ request2(url: string, callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | ---------------------------------------------- | ---- | ----------------------------------------------- | | url | string | 是 | 发起网络请求的URL地址。 | -| callback | AsyncCallback\ | 是 | 回调函数。 | +| callback | AsyncCallback\<[number](#responsecode)\> | 是 | 回调函数。 | **错误码:** @@ -366,9 +366,9 @@ request2(url: string, callback: AsyncCallback\): void **示例:** ```js -httpRequest.request2("EXAMPLE_URL", (err) => { +httpRequest.request2("EXAMPLE_URL", (err, data) => { if (!err) { - console.info("request2 OK!"); + console.info("request2 OK! ResponseCode is " + JSON.stringify(data)); } else { console.info("request2 ERROR : err = " + JSON.stringify(err)); } @@ -377,7 +377,7 @@ httpRequest.request2("EXAMPLE_URL", (err) => { ### request210+ -request2(url: string, options: HttpRequestOptions, callback: AsyncCallback\): void +request2(url: string, options: HttpRequestOptions, callback: AsyncCallback\): void 根据URL地址和相关配置项,发起HTTP网络请求并返回流式响应,使用callback方式作为异步方法。 @@ -391,7 +391,7 @@ request2(url: string, options: HttpRequestOptions, callback: AsyncCallback\ | 是 | 回调函数。 | +| callback | AsyncCallback\<[number](#responsecode)\> | 是 | 回调函数。 | **错误码:** @@ -444,9 +444,9 @@ httpRequest.request2("EXAMPLE_URL", }, readTimeout: 60000, connectTimeout: 60000 -}, (err) => { +}, (err, data) => { if (!err) { - console.info("request2 OK!"); + console.info("request2 OK! ResponseCode is " + JSON.stringify(data)); } else { console.info("request2 ERROR : err = " + JSON.stringify(err)); } @@ -454,7 +454,7 @@ httpRequest.request2("EXAMPLE_URL", ``` ### request210+ -request2(url: string, options? : HttpRequestOptions): Promise\ +request2(url: string, options? : HttpRequestOptions): Promise\ 根据URL地址,发起HTTP网络请求并返回流式响应,使用Promise方式作为异步方法。 @@ -473,7 +473,7 @@ request2(url: string, options? : HttpRequestOptions): Promise\ | 类型 | 说明 | | :------------------------------------- | :-------------------------------- | -| Promise\ | 以Promise形式返回发起请求的结果。 | +| Promise\<[number](#responsecode)\> | 以Promise形式返回发起请求的结果。 | **错误码:** @@ -526,8 +526,8 @@ let promise = httpRequest.request("EXAMPLE_URL", { 'Content-Type': 'application/json' } }); -promise.then(() => { - console.info("request2 OK!"); +promise.then((data) => { + console.info("request2 OK!" + JSON.stringify(data)); }).catch((err) => { console.info("request2 ERROR : err = " + JSON.stringify(err)); }); 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 8c0eb7fb0049de9da17c35d9c82f0e66e6483fb1..e2db66ac13ef747d502a405acc2f1ae45ebd5b93 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-image.md +++ b/zh-cn/application-dev/reference/apis/js-apis-image.md @@ -79,7 +79,7 @@ image.createPixelMap(color, opts, (error, pixelmap) => { ## PixelMap7+ -图像像素类,用于读取或写入图像数据以及获取图像信息。在调用PixelMap的方法前,需要先通过createPixelMap创建一个PixelMap实例。 +图像像素类,用于读取或写入图像数据以及获取图像信息。在调用PixelMap的方法前,需要先通过createPixelMap创建一个PixelMap实例。目前pixelmap序列化大小最大128MB,超过会送显失败。大小计算方式为(宽\*高\*每像素占用字节数)。 ### 属性 @@ -949,7 +949,7 @@ createImageSource(uri: string): ImageSource ```js //Stage模型 const context = getContext(this); -const path = context.getCacheDir() + "/test.jpg"; +const path = context.cacheDir() + "/test.jpg"; const imageSourceApi = image.createImageSource(path); ``` 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 e37ad10f026c01739eb8f354723a3f917ded9326..195a244212a7519294558ab9c7ab1821ec9e81c5 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 @@ -41,12 +41,12 @@ Want是对象间信息传递的载体, 可以用于应用组件间的信息传 - 传递FD(文件描述符)数据(在UIAbility对象中调用,其中示例中的context为UIAbility的上下文对象) ```ts - import fileio from '@ohos.fileio'; + import fs from '@ohos.file.fs'; // ... let fd; try { - fd = fileio.openSync('/data/storage/el2/base/haps/pic.png'); + fd = fs.openSync('/data/storage/el2/base/haps/pic.png').fd; } catch(e) { console.error('openSync fail: ${JSON.stringify(e)}'); } 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 54740765f23e2b2e45f45af87ddc781604604b6b..064e036e1a0e3a95440c202d04e1d5c98797d329 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 @@ -88,7 +88,7 @@ export default class EntryAbility extends UIAbility { } ``` -## ApplicationContext.off(type: 'abilityLifecycle', callbackId: number, callback: AsyncCallback) +## ApplicationContext.off(type: 'abilityLifecycle', callbackId: number, callback: AsyncCallback\) off(type: 'abilityLifecycle', callbackId: **number**, callback: AsyncCallback<**void**>): **void**; @@ -206,7 +206,7 @@ export default class EntryAbility extends UIAbility { } ``` -## ApplicationContext.off(type: 'environment', callbackId: number, callback: AsyncCallback) +## ApplicationContext.off(type: 'environment', callbackId: number, callback: AsyncCallback\) off(type: 'environment', callbackId: **number**, callback: AsyncCallback<**void**>): **void**; diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-errorObserver.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-errorObserver.md index 989be4d2ddf279b004091d1a92eae152ee9e23e9..54c4504afc1b44ba1cd7055715447ec6c8c2bd80 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-errorObserver.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-errorObserver.md @@ -33,3 +33,42 @@ try { console.error('registerErrorObserver failed, error.code: ${JSON.stringify(error.code)}, error.message: ${JSON.stringify(error.message)}'); } ``` + +## ErrorObserver.onException + +onException?(errObject: Error): void; + +将在应用运行异常时调用。 + +**系统能力**:SystemCapability.Ability.AbilityRuntime.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| errObject | Error | 是 | 有关异常事件名字、消息和错误堆栈信息的对象。 | + +**示例:** + +```ts +import errorManager from '@ohos.app.ability.errorManager'; + +let observer = { + onUnhandledException(errorMsg) { + console.error('onUnhandledException, errorMsg: ', errorMsg); + }, + onException(errorObj) { + console.log('onException, name: ', errorObj.name); + console.log('onException, message: ', errorObj.message); + if (typeof(errorObj.stack) === 'string') { + console.log('onException, stack: ', errorObj.stack); + } + } +}; + +try { + errorManager.on('error', observer); +} catch (error) { + console.error('registerErrorObserver failed, error.code: ${JSON.stringify(error.code)}, error.message: ${JSON.stringify(error.message)}'); +} +``` 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 ed71a5f968ca0fa90212a4fddad694a0452fbae5..9b835fee85ba01b9ccfd41b2bc65ccca524763f1 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 @@ -56,6 +56,7 @@ startAbility(want: Want, callback: AsyncCallback<void>): void; | 16000009 | Can not start ability in wukong mode. | | 16000010 | Can not operation with continue flag. | | 16000011 | Context does not exist. | +| 16000017 | The previous ability is starting, wait start later. | | 16000051 | Network error. The network is abnormal. | | 16000052 | Free install not support. The application does not support freeinstall | | 16000053 | Not top ability. The application is not top ability. | @@ -127,6 +128,7 @@ startAbility(want: Want, options?: StartOptions): Promise\; | 16000009 | Can not start ability in wukong mode. | | 16000010 | Can not operation with continue flag. | | 16000011 | Context does not exist. | +| 16000017 | The previous ability is starting, wait start later. | | 16000051 | Network error. The network is abnormal. | | 16000052 | Free install not support. The application does not support freeinstall | | 16000053 | Not top ability. The application is not top ability. | @@ -196,6 +198,7 @@ startAbility(want: Want, options: StartOptions, callback: AsyncCallback<void& | 16000009 | Can not start ability in wukong mode. | | 16000010 | Can not operation with continue flag. | | 16000011 | Context does not exist. | +| 16000017 | The previous ability is starting, wait start later. | | 16000051 | Network error. The network is abnormal. | | 16000052 | Free install not support. The application does not support freeinstall | | 16000053 | Not top ability. The application is not top ability. | @@ -272,6 +275,7 @@ startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\< | 16000009 | Can not start ability in wukong mode. | | 16000010 | Can not operation with continue flag. | | 16000011 | Context does not exist. | +| 16000017 | The previous ability is starting, wait start later. | | 16000051 | Network error. The network is abnormal. | | 16000052 | Free install not support. The application does not support freeinstall | | 16000053 | Not top ability. The application is not top ability. | @@ -347,6 +351,7 @@ startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, ca | 16000009 | Can not start ability in wukong mode. | | 16000010 | Can not operation with continue flag. | | 16000011 | Context does not exist. | +| 16000017 | The previous ability is starting, wait start later. | | 16000051 | Network error. The network is abnormal. | | 16000052 | Free install not support. The application does not support freeinstall | | 16000053 | Not top ability. The application is not top ability. | @@ -431,6 +436,7 @@ startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): | 16000009 | Can not start ability in wukong mode. | | 16000010 | Can not operation with continue flag. | | 16000011 | Context does not exist. | +| 16000017 | The previous ability is starting, wait start later. | | 16000051 | Network error. The network is abnormal. | | 16000052 | Free install not support. The application does not support freeinstall | | 16000053 | Not top ability. The application is not top ability. | @@ -1324,6 +1330,7 @@ startAbilityByCall(want: Want): Promise<Caller>; | 16000007 | Service busyness. There are concurrent tasks, waiting for retry. | | 16000008 | Crowdtest App Expiration. | | 16000009 | Can not start ability in wukong mode. | +| 16000017 | The previous ability is starting, wait start later. | | 16000050 | Internal Error. | **示例:** 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 ad2e300dc43f314ee377500020ee414d81340ea6..7d2b3c2fd04e462648c22379121bb81726d246a9 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 @@ -54,6 +54,7 @@ startAbility(want: Want, callback: AsyncCallback<void>): void; | 16000009 | An ability cannot be started or stopped in Wukong mode. | | 16000010 | The call with the continuation flag is forbidden. | | 16000011 | The context does not exist. | +| 16000017 | The previous ability is starting, wait start later. | | 16000050 | Internal error. | | 16000053 | The ability is not on the top of the UI. | | 16000055 | Installation-free timed out. | @@ -117,6 +118,7 @@ startAbility(want: Want, options: StartOptions, callback: AsyncCallback<void& | 16000009 | An ability cannot be started or stopped in Wukong mode. | | 16000010 | The call with the continuation flag is forbidden. | | 16000011 | The context does not exist. | +| 16000017 | The previous ability is starting, wait start later. | | 16000050 | Internal error. | | 16000053 | The ability is not on the top of the UI. | | 16000055 | Installation-free timed out. | @@ -189,6 +191,7 @@ startAbility(want: Want, options?: StartOptions): Promise<void>; | 16000009 | An ability cannot be started or stopped in Wukong mode. | | 16000010 | The call with the continuation flag is forbidden. | | 16000011 | The context does not exist. | +| 16000017 | The previous ability is starting, wait start later. | | 16000050 | Internal error. | | 16000053 | The ability is not on the top of the UI. | | 16000055 | Installation-free timed out. | @@ -257,6 +260,7 @@ startAbilityForResult(want: Want, callback: AsyncCallback<AbilityResult>): | 16000009 | An ability cannot be started or stopped in Wukong mode. | | 16000010 | The call with the continuation flag is forbidden. | | 16000011 | The context does not exist. | +| 16000017 | The previous ability is starting, wait start later. | | 16000050 | Internal error. | | 16000053 | The ability is not on the top of the UI. | | 16000055 | Installation-free timed out. | @@ -324,6 +328,7 @@ startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback | 16000009 | An ability cannot be started or stopped in Wukong mode. | | 16000010 | The call with the continuation flag is forbidden. | | 16000011 | The context does not exist. | +| 16000017 | The previous ability is starting, wait start later. | | 16000050 | Internal error. | | 16000053 | The ability is not on the top of the UI. | | 16000055 | Installation-free timed out. | @@ -401,6 +406,7 @@ startAbilityForResult(want: Want, options?: StartOptions): Promise<AbilityRes | 16000009 | An ability cannot be started or stopped in Wukong mode. | | 16000010 | The call with the continuation flag is forbidden. | | 16000011 | The context does not exist. | +| 16000017 | The previous ability is starting, wait start later. | | 16000050 | Internal error. | | 16000053 | The ability is not on the top of the UI. | | 16000055 | Installation-free timed out. | @@ -471,6 +477,7 @@ startAbilityForResultWithAccount(want: Want, accountId: number, callback: AsyncC | 16000009 | An ability cannot be started or stopped in Wukong mode. | | 16000010 | The call with the continuation flag is forbidden. | | 16000011 | The context does not exist. | +| 16000017 | The previous ability is starting, wait start later. | | 16000050 | Internal error. | | 16000053 | The ability is not on the top of the UI. | | 16000055 | Installation-free timed out. | @@ -542,6 +549,7 @@ startAbilityForResultWithAccount(want: Want, accountId: number, options: StartOp | 16000009 | An ability cannot be started or stopped in Wukong mode. | | 16000010 | The call with the continuation flag is forbidden. | | 16000011 | The context does not exist. | +| 16000017 | The previous ability is starting, wait start later. | | 16000050 | Internal error. | | 16000053 | The ability is not on the top of the UI. | | 16000055 | Installation-free timed out. | @@ -621,6 +629,7 @@ startAbilityForResultWithAccount(want: Want, accountId: number, options?: StartO | 16000009 | An ability cannot be started or stopped in Wukong mode. | | 16000010 | The call with the continuation flag is forbidden. | | 16000011 | The context does not exist. | +| 16000017 | The previous ability is starting, wait start later. | | 16000050 | Internal error. | | 16000053 | The ability is not on the top of the UI. | | 16000055 | Installation-free timed out. | @@ -1575,6 +1584,7 @@ startAbilityByCall(want: Want): Promise<Caller>; | 16000009 | An ability cannot be started or stopped in Wukong mode. | | 16000010 | The call with the continuation flag is forbidden. | | 16000011 | The context does not exist. | +| 16000017 | The previous ability is starting, wait start later. | | 16000050 | Internal error. | | 16000053 | The ability is not on the top of the UI. | | 16000055 | Installation-free timed out. | @@ -1681,6 +1691,7 @@ startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\< | 16000009 | An ability cannot be started or stopped in Wukong mode. | | 16000010 | The call with the continuation flag is forbidden. | | 16000011 | The context does not exist. | +| 16000017 | The previous ability is starting, wait start later. | | 16000050 | Internal error. | | 16000053 | The ability is not on the top of the UI. | | 16000055 | Installation-free timed out. | @@ -1752,6 +1763,7 @@ startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, ca | 16000009 | An ability cannot be started or stopped in Wukong mode. | | 16000010 | The call with the continuation flag is forbidden. | | 16000011 | The context does not exist. | +| 16000017 | The previous ability is starting, wait start later. | | 16000050 | Internal error. | | 16000053 | The ability is not on the top of the UI. | | 16000055 | Installation-free timed out. | @@ -1825,6 +1837,7 @@ startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): | 16000009 | An ability cannot be started or stopped in Wukong mode. | | 16000010 | The call with the continuation flag is forbidden. | | 16000011 | The context does not exist. | +| 16000017 | The previous ability is starting, wait start later. | | 16000050 | Internal error. | | 16000053 | The ability is not on the top of the UI. | | 16000055 | Installation-free timed out. | diff --git a/zh-cn/application-dev/reference/apis/js-apis-installer.md b/zh-cn/application-dev/reference/apis/js-apis-installer.md index c862abf221be1a9f50e1a79f8d36761f3f899fa7..fa3899aefcdbbc4c796e7da227412702ef9b2d31 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-installer.md +++ b/zh-cn/application-dev/reference/apis/js-apis-installer.md @@ -25,7 +25,7 @@ getBundleInstaller(callback: AsyncCallback\): void; 获取BundleInstaller对象,使用callback形式返回结果。 -**系统接口:** 此接口为系统接口,三方应用不支持调用 +**系统接口:** 此接口为系统接口。 **系统能力:** SystemCapability.BundleManager.BundleFramework.Core @@ -59,7 +59,7 @@ getBundleInstaller(): Promise\; 获取BundleInstaller对象,使用callback形式返回结果。 -**系统接口:** 此接口为系统接口,三方应用不支持调用 +**系统接口:** 此接口为系统接口。 **系统能力:** SystemCapability.BundleManager.BundleFramework.Core @@ -89,7 +89,7 @@ install(hapFilePaths: Array<string>, installParam: InstallParam, callback: 以异步方法安装应用,使用callback形式返回结果。 -**系统接口:** 此接口为系统接口,三方应用不支持调用 +**系统接口:** 此接口为系统接口。 **需要权限:** ohos.permission.INSTALL_BUNDLE @@ -118,7 +118,9 @@ install(hapFilePaths: Array<string>, installParam: InstallParam, callback: | 17700017 | Failed to install the HAP since the version of the HAP to install is too early. | | 17700018 | Failed to install because the dependent module does not exist. | | 17700031 | Failed to install the HAP because the overlay check of the HAP is failed. | -| 17700036 | Failed to install because without allow app shared bundle permission. | +| 17700036 | Failed to install the HSP because lacks appropriate permissions. | +| 17700039 | Failed to install because disallow install a shared bundle by hapFilePaths. | +| 17700041 | Failed to install because enterprise device management disallow install. | **示例:** @@ -148,13 +150,84 @@ try { } ``` +## BundleInstaller.install + +install(hapFilePaths: Array\, installParam?: InstallParam) : Promise\; + +以异步方法安装应用,使用Promise形式返回结果。 + +**系统接口:** 此接口为系统接口。 + +**需要权限:** ohos.permission.INSTALL_BUNDLE + +**系统能力:** SystemCapability.BundleManager.BundleFramework.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------------ | ----------------------------- | ---- | ------------------------------------------------------------ | +| hapFilePaths | Array\ | 是 | 存储应用程序包的路径。路径应该是当前应用程序中存放HAP的数据目录。当传入的路径是一个目录时, 该目录下只能放同一个应用的HAP,且这些HAP的签名需要保持一致。 | +| installParam | [InstallParam](#installparam) | 否 | 指定安装所需的其他参数。 | + +**返回值:** + +| 类型 | 说明 | +| --------------- | -------------------------------------- | +| Promise\ | Promise对象。无返回结果的Promise对象。 | + +**错误码:** + +以下错误码的详细介绍请参见[ohos.bundle错误码](../errorcodes/errorcode-bundle.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------------------------------ | +| 17700004 | The specified user ID is not found. | +| 17700010 | Failed to install the HAP because the HAP fails to be parsed. | +| 17700011 | Failed to install the HAP because the HAP signature fails to be verified. | +| 17700012 | Failed to install the HAP because the HAP path is invalid or the HAP is too large. | +| 17700015 | Failed to install the HAPs because they have different configuration information. | +| 17700016 | Failed to install the HAP because of insufficient system disk space. | +| 17700017 | Failed to install the HAP since the version of the HAP to install is too early. | +| 17700018 | Failed to install because the dependent module does not exist. | +| 17700031 | Failed to install the HAP because the overlay check of the HAP is failed. | +| 17700036 | Failed to install the HSP because lacks appropriate permissions. | +| 17700039 | Failed to install because disallow install a shared bundle by hapFilePaths. | +| 17700041 | Failed to install because enterprise device management disallow install. | + +**示例:** + +```ts +import installer from '@ohos.bundle.installer'; +let hapFilePaths = ['/data/storage/el2/base/haps/entry/files/']; +let installParam = { + userId: 100, + isKeepData: false, + installFlag: 1, +}; + +try { + installer.getBundleInstaller().then(data => { + data.install(hapFilePaths, installParam) + .then((data) => { + console.info('install success: ' + JSON.stringify(data)); + }).catch((error) => { + console.error('install failed:' + err.message); + }); + }).catch(error => { + console.error('getBundleInstaller failed. Cause: ' + error.message); + }); +} catch (error) { + console.error('getBundleInstaller failed. Cause: ' + error.message); +} +``` + ## BundleInstaller.uninstall uninstall(bundleName: string, installParam: InstallParam, callback: AsyncCallback<void>): void; 以异步方法卸载应用,使用callback形式返回结果。 -**系统接口:** 此接口为系统接口,三方应用不支持调用 +**系统接口:** 此接口为系统接口。 **需要权限:** ohos.permission.INSTALL_BUNDLE @@ -176,6 +249,7 @@ uninstall(bundleName: string, installParam: InstallParam, callback: AsyncCallbac | -------- | ------------------------------------------------------------ | | 17700004 | The specified user ID is not found. | | 17700020 | The specified bundle is pre-installed bundle which cannot be uninstalled. | +| 17700040 | The specified bundle is a shared bundle which cannot be uninstalled. | **示例:** @@ -211,7 +285,7 @@ uninstall(uninstallParam: UninstallParam, callback : AsyncCallback\) : voi 以异步方法卸载一个共享包,使用callback形式返回结果。 -**系统接口:** 此接口为系统接口,三方应用不支持调用 +**系统接口:** 此接口为系统接口。 **需要权限:** ohos.permission.INSTALL_BUNDLE @@ -265,7 +339,7 @@ uninstall(uninstallParam: UninstallParam) : Promise\; 以异步方法卸载一个共享包,使用Promise形式返回结果。 -**系统接口:** 此接口为系统接口,三方应用不支持调用 +**系统接口:** 此接口为系统接口。 **需要权限:** ohos.permission.INSTALL_BUNDLE @@ -324,7 +398,7 @@ recover(bundleName: string, installParam: InstallParam, callback: AsyncCallback& 以异步方法回滚应用,使用callback形式返回结果。 -**系统接口:** 此接口为系统接口,三方应用不支持调用 +**系统接口:** 此接口为系统接口。 **需要权限:** ohos.permission.INSTALL_BUNDLE @@ -380,7 +454,7 @@ try { **系统能力:** SystemCapability.BundleManager.BundleFramework.Core - **系统接口:** 此接口为系统接口,三方应用不支持调用 + **系统接口:** 此接口为系统接口。 | 名称 | 类型 | 必填 | 说明 | | ---------- | ------ | ---------------- | ---------------- | @@ -393,7 +467,7 @@ try { **系统能力:** SystemCapability.BundleManager.BundleFramework.Core - **系统接口:** 此接口为系统接口,三方应用不支持调用 + **系统接口:** 此接口为系统接口。 | 名称 | 类型 | 必填 | 说明 | | ------------------------------ | ------------------------------ | ------------------ | ------------------ | @@ -410,7 +484,7 @@ try { **系统能力:** SystemCapability.BundleManager.BundleFramework.Core - **系统接口:** 此接口为系统接口,三方应用不支持调用 + **系统接口:** 此接口为系统接口。 | 名称 | 类型 | 必填 | 说明 | | ----------- | ------ | ---- | ------------------------------------------------------------ | 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 424e3d5b4cddc2ffbd92f00a3e76ed8e7a660d2a..8e5bd9f7f01cd257b104671976a23bdce21c2b83 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-matrix4.md +++ b/zh-cn/application-dev/reference/apis/js-apis-matrix4.md @@ -281,11 +281,11 @@ Matrix的平移函数,可以为当前矩阵增加x轴/Y轴/Z轴平移效果。 **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------ | ---- | ------------------------------------- | -| x | number | 否 | x轴的平移距离,单位px。
默认值:0 | -| y | number | 否 | y轴的平移距离,单位px。
默认值:0 | -| z | number | 否 | z轴的平移距离,单位px。
默认值:0 | +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------ | ---- | ----------------------------------------------------------- | +| x | number | 否 | x轴的平移距离,单位px。
默认值:0
取值范围 (-∞, +∞) | +| y | number | 否 | y轴的平移距离,单位px。
默认值:0
取值范围 (-∞, +∞) | +| z | number | 否 | z轴的平移距离,单位px。
默认值:0
取值范围 (-∞, +∞) | **返回值:** @@ -328,13 +328,13 @@ Matrix的缩放函数,可以为当前矩阵增加x轴/Y轴/Z轴缩放效果。 **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ------- | ------ | ---- | --------------------------------- | -| x | number | 否 | x轴的缩放倍数。
默认值:1 | -| y | number | 否 | y轴的缩放倍数。
默认值:1 | -| z | number | 否 | z轴的缩放倍数。
默认值:1 | -| centerX | number | 否 | 变换中心点x轴坐标。
默认值:0 | -| centerY | number | 否 | 变换中心点y轴坐标。
默认值:0 | +| 参数名 | 类型 | 必填 | 说明 | +| ------- | ------ | ---- | ------------------------------------------------------------ | +| x | number | 否 | x轴的缩放倍数。x>1时以x轴方向放大,x<1时以x轴方向缩小。
默认值:1
取值范围 [0, +∞)
**说明:**
设置小于0的值时,按照默认值处理。 | +| y | number | 否 | y轴的缩放倍数。y>1时以y轴方向放大,y<1时以y轴方向缩小。
默认值:1
取值范围 [0, +∞)
**说明:**
设置小于0的值时,按照默认值处理。 | +| z | number | 否 | z轴的缩放倍数。z>1时以z轴方向放大,z<1时以z轴方向缩小。
默认值:1
取值范围 [0, +∞)
**说明:**
设置小于0的值时,按照默认值处理。 | +| centerX | number | 否 | 变换中心点x轴坐标。
默认值:0。
取值范围 (-∞, +∞) | +| centerY | number | 否 | 变换中心点y轴坐标。
默认值:0。
取值范围 (-∞, +∞) | **返回值:** @@ -376,14 +376,14 @@ Matrix的旋转函数,可以为当前矩阵增加x轴/Y轴/Z轴旋转效果。 **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ------- | ------ | ---- | --------------------------------- | -| x | number | 否 | 旋转轴向量x坐标。
默认值:1 | -| y | number | 否 | 旋转轴向量y坐标。
默认值:1 | -| z | number | 否 | 旋转轴向量z坐标。
默认值:1 | -| angle | number | 否 | 旋转角度。
默认值:0 | -| centerX | number | 否 | 变换中心点x轴坐标。
默认值:0 | -| centerY | number | 否 | 变换中心点y轴坐标。
默认值:0 | +| 参数名 | 类型 | 必填 | 说明 | +| ------- | ------ | ---- | ------------------------------------------------------- | +| x | number | 否 | 旋转轴向量x坐标。
默认值:1。
取值范围 (-∞, +∞) | +| y | number | 否 | 旋转轴向量y坐标。
默认值:1。
取值范围 (-∞, +∞) | +| z | number | 否 | 旋转轴向量z坐标。
默认值:1。
取值范围 (-∞, +∞) | +| angle | number | 否 | 旋转角度。
默认值:0 | +| centerX | number | 否 | 变换中心点x轴坐标。
默认值:0 | +| centerY | number | 否 | 变换中心点y轴坐标。
默认值:0 | **返回值:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-nfcController.md b/zh-cn/application-dev/reference/apis/js-apis-nfcController.md index b46c3e52c46c256fad4ca33851398ed62e7aad52..6721457686b722d50b67c43a0612213b0afc90f0 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-nfcController.md +++ b/zh-cn/application-dev/reference/apis/js-apis-nfcController.md @@ -64,7 +64,7 @@ openNfc(): boolean ## controller.enableNfc9+ -enableNfc(): boolean +enableNfc(): void 打开NFC开关。 @@ -101,7 +101,7 @@ closeNfc(): boolean ## controller.disableNfc9+ -disableNfc(): boolean +disableNfc(): void 关闭NFC开关。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-osAccount.md b/zh-cn/application-dev/reference/apis/js-apis-osAccount.md index b99b134d6a67d8eb2ddb534ad5b76a8682527a1e..dfe530d7cbc066330dff01f5f35a35a97ecc6654 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-osAccount.md +++ b/zh-cn/application-dev/reference/apis/js-apis-osAccount.md @@ -326,9 +326,9 @@ checkOsAccountConstraintEnabled(localId: number, constraint: string, callback: A | 错误码ID | 错误信息 | | -------- | ------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid localId or constraint. | -| 12300003 | the account indicated by localId dose not exist. | +| 12300001 | System service exception. | +| 12300002 | Invalid localId or constraint. | +| 12300003 | Account not found. | **示例:** 判断ID为100的系统帐号是否有禁止使用Wi-Fi的约束 @@ -376,9 +376,9 @@ checkOsAccountConstraintEnabled(localId: number, constraint: string): Promise< | 错误码ID | 错误信息 | | -------- | ------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid localId or constraint. | -| 12300003 | the account indicated by localId dose not exist. | +| 12300001 | System service exception. | +| 12300002 | Invalid localId or constraint. | +| 12300003 | Account not found. | **示例:** 判断ID为100的系统帐号是否有禁止使用Wi-Fi的约束 @@ -487,7 +487,7 @@ checkOsAccountVerified(callback: AsyncCallback<boolean>): void | 错误码ID | 错误信息 | | -------- | ------------------- | -| 12300001 | system service exception. | +| 12300001 | System service exception. | **示例:** @@ -527,9 +527,9 @@ checkOsAccountVerified(localId: number, callback: AsyncCallback<boolean>): | 错误码ID | 错误信息 | | -------- | ------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid localId. | -| 12300003 | the account indicated by localId dose not exist. | +| 12300001 | System service exception. | +| 12300002 | Invalid localId. | +| 12300003 | Account not found. | **示例:** @@ -575,9 +575,9 @@ checkOsAccountVerified(localId: number): Promise<boolean> | 错误码ID | 错误信息 | | -------- | ------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid localId. | -| 12300003 | the account indicated by localId dose not exist. | +| 12300001 | System service exception. | +| 12300002 | Invalid localId. | +| 12300003 | Account not found. | **示例:** @@ -720,7 +720,7 @@ setOsAccountConstraints(localId: number, constraints: Array<string>, enabl | 错误码ID | 错误信息 | | -------- | ------------------- | | 12300001 | System service exception. | -| 12300002 | Invalid localId. | +| 12300002 | Invalid localId or constraints. | | 12300003 | Account not found. | | 12300008 | Restricted Account. | @@ -774,7 +774,7 @@ setOsAccountConstraints(localId: number, constraints: Array<string>, enabl | 错误码ID | 错误信息 | | -------- | ------------------- | | 12300001 | System service exception. | -| 12300002 | Invalid localId. | +| 12300002 | Invalid localId or constraints. | | 12300003 | Account not found. | | 12300008 | Restricted Account. | @@ -987,7 +987,7 @@ getOsAccountLocalId(callback: AsyncCallback<number>): void | 错误码ID | 错误信息 | | -------- | ------------------- | -| 12300001 | system service exception. | +| 12300001 | System service exception. | **示例:** @@ -1024,7 +1024,7 @@ getOsAccountLocalId(): Promise<number> | 错误码ID | 错误信息 | | -------- | ------------------- | -| 12300001 | system service exception. | +| 12300001 | System service exception. | **示例:** @@ -1060,8 +1060,8 @@ getOsAccountLocalIdForUid(uid: number, callback: AsyncCallback<number>): v | 错误码ID | 错误信息 | | -------- | --------------- | -| 12300001 | system service exception. | -| 12300002 | invalid uid. | +| 12300001 | System service exception. | +| 12300002 | Invalid uid. | **示例:** 查询值为12345678的uid所属的系统帐号的帐号ID @@ -1104,8 +1104,8 @@ getOsAccountLocalIdForUid(uid: number): Promise<number> | 错误码ID | 错误信息 | | -------- | ------------- | -| 12300001 | system service exception. | -| 12300002 | invalid uid. | +| 12300001 | System service exception. | +| 12300002 | Invalid uid. | **示例:** 查询值为12345678的uid所属的系统帐号ID @@ -1144,8 +1144,8 @@ getOsAccountLocalIdForDomain(domainInfo: DomainAccountInfo, callback: AsyncCallb | 错误码ID | 错误信息 | | -------- | ------------- | -| 12300001 | system service exception. | -| 12300002 | invalid domainInfo. | +| 12300001 | System service exception. | +| 12300002 | Invalid domainInfo. | **示例:** @@ -1191,8 +1191,8 @@ getOsAccountLocalIdForDomain(domainInfo: DomainAccountInfo): Promise<number&g | 错误码ID | 错误信息 | | -------- | ------------- | -| 12300001 | system service exception. | -| 12300002 | invalid domainInfo. | +| 12300001 | System service exception. | +| 12300002 | Invalid domainInfo. | **示例:** @@ -1470,7 +1470,7 @@ getActivatedOsAccountLocalIds(callback: AsyncCallback<Array<number>> | 错误码ID | 错误信息 | | -------- | ------------- | -| 12300001 | system service exception. | +| 12300001 | System service exception. | **示例:** @@ -1507,7 +1507,7 @@ getActivatedOsAccountLocalIds(): Promise<Array<number>> | 错误码ID | 错误信息 | | -------- | ------------- | -| 12300001 | system service exception. | +| 12300001 | System service exception. | **示例:** @@ -1858,7 +1858,7 @@ queryOsAccountById(localId: number): Promise<OsAccountInfo> | 错误码ID | 错误信息 | | -------- | ------------------- | | 12300001 | System service exception. | -| 12300002 | Invalid localId. | +| 12300002 | Invalid localId. | | 12300003 | Account not found. | **示例:** 查询ID为100的系统帐号信息 @@ -2229,9 +2229,9 @@ getOsAccountLocalIdForSerialNumber(serialNumber: number, callback: AsyncCallback | 错误码ID | 错误信息 | | -------- | ------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid serialNumber. | -| 12300003 | the account indicated by serialNumber dose not exist. | +| 12300001 | System service exception. | +| 12300002 | Invalid serialNumber. | +| 12300003 | The account indicated by serialNumber dose not exist. | **示例:** 查询与SN码12345关联的系统帐号的ID @@ -2272,9 +2272,9 @@ getOsAccountLocalIdForSerialNumber(serialNumber: number): Promise<number> | 错误码ID | 错误信息 | | -------- | ------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid serialNumber. | -| 12300003 | the account indicated by serialNumber dose not exist. | +| 12300001 | System service exception. | +| 12300002 | Invalid serialNumber. | +| 12300003 | The account indicated by serialNumber dose not exist. | **示例:** 查询与SN码12345关联的系统帐号的ID @@ -2311,9 +2311,9 @@ getSerialNumberForOsAccountLocalId(localId: number, callback: AsyncCallback<n | 错误码ID | 错误信息 | | -------- | ------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid localId. | -| 12300003 | the account indicated by localId dose not exist. | +| 12300001 | System service exception. | +| 12300002 | Invalid localId. | +| 12300003 | Account not found. | **示例:** 获取ID为100的系统帐号关联的SN码 @@ -2354,9 +2354,9 @@ getSerialNumberForOsAccountLocalId(localId: number): Promise<number> | 错误码ID | 错误信息 | | -------- | ------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid localId. | -| 12300003 | the account indicated by localId dose not exist. | +| 12300001 | System service exception. | +| 12300002 | Invalid localId. | +| 12300003 | Account not found. | **示例:** 获取ID为100的系统帐号关联的SN码 @@ -2400,7 +2400,6 @@ on(type: 'activate' | 'activating', name: string, callback: Callback<number&g | -------- | ------------- | | 12300001 | System service exception. | | 12300002 | Invalid type or name. | -| 12300011 | Callback has been registered. | **示例:** @@ -2442,7 +2441,6 @@ off(type: 'activate' | 'activating', name: string, callback?: Callback<number | -------- | ------------- | | 12300001 | System service exception. | | 12300002 | Invalid type or name. | -| 12300012 | Callback has not been registered. | **示例:** @@ -2479,8 +2477,8 @@ getBundleIdForUid(uid: number, callback: AsyncCallback<number>): void; | 错误码ID | 错误信息 | | -------- | ------------- | -| 12300001 | system service exception. | -| 12300002 | invalid uid. | +| 12300001 | System service exception. | +| 12300002 | Invalid uid. | **示例:** @@ -2522,8 +2520,8 @@ getBundleIdForUid(uid: number): Promise<number>; | 错误码ID | 错误信息 | | -------- | ------------- | -| 12300001 | system service exception. | -| 12300002 | invalid uid. | +| 12300001 | System service exception. | +| 12300002 | Invalid uid. | **示例:** @@ -2640,9 +2638,9 @@ getOsAccountConstraintSourceTypes(localId: number, constraint: string, callback: | 错误码ID | 错误信息 | | -------- | ------------- | -| 12300001 | system service exception. | -| 12300002 | invalid name or constraint. | -| 12300003 | the account indicated by localId dose not exist. | +| 12300001 | System service exception. | +| 12300002 | Invalid name or constraint. | +| 12300003 | Account not found. | **示例:** @@ -2687,9 +2685,9 @@ getOsAccountConstraintSourceTypes(localId: number, constraint: string): Promise& | 错误码ID | 错误信息 | | -------- | ------------- | -| 12300001 | system service exception. | -| 12300002 | invalid name or constraint. | -| 12300003 | the account indicated by localId dose not exist. | +| 12300001 | System service exception. | +| 12300002 | Invalid name or constraint. | +| 12300003 | Account not found. | **示例:** @@ -4113,9 +4111,9 @@ auth(challenge: Uint8Array, authType: AuthType, authTrustLevel: AuthTrustLevel, | 12300101 | Credential is incorrect. | | 12300105 | Unsupported authTrustLevel. | | 12300106 | Unsupported authType. | -| 12300110 | Authentication locked. | +| 12300110 | Authentication is locked. | | 12300111 | Authentication timeout. | -| 12300112 | Authentication service busy. | +| 12300112 | Authentication service is busy. | **示例:** ```js @@ -4172,9 +4170,9 @@ authUser(userId: number, challenge: Uint8Array, authType: AuthType, authTrustLev | 12300101 | Credential is incorrect. | | 12300105 | Unsupported authTrustLevel. | | 12300106 | Unsupported authType. | -| 12300110 | Authentication locked. | +| 12300110 | Authentication is locked. | | 12300111 | Authentication timeout. | -| 12300112 | Authentication service busy. | +| 12300112 | Authentication service is busy. | **示例:** ```js @@ -4282,7 +4280,7 @@ registerInputer(inputer: IInputer): void; | 错误码ID | 错误信息 | | -------- | --------------------------- | | 12300001 | System service exception. | -| 12300102 | Invalid inputer. | +| 12300002 | Invalid inputer. | | 12300103 | Inputer already registered. | **示例:** @@ -4347,7 +4345,7 @@ static registerInputer(authType: AuthType, inputer: IInputer): void | 错误码ID | 错误信息 | | -------- | --------------------------- | | 12300001 | System service exception. | -| 12300102 | Invalid authType or inputer. | +| 12300002 | Invalid authType or inputer. | | 12300103 | The credential inputer has been registered. | | 12300106 | Unsupported authType. | @@ -4716,7 +4714,7 @@ static registerPlugin(plugin: DomainPlugin): void | 错误码ID | 错误信息 | | -------- | --------------------------- | -| 12300201 | the domain plugin has been registered. | +| 12300201 | The domain plugin has been registered. | **示例:** ```js @@ -4783,17 +4781,17 @@ auth(domainAccountInfo: DomainAccountInfo, credential: Uint8Array, callback: IUs | 错误码ID | 错误信息 | | -------- | --------------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid domainAccountInfo or credential. | -| 12300003 | domain account does not exist. | -| 12300013 | network exception. | -| 12300101 | authentication failed. | -| 12300109 | authentication is canceled. | -| 12300110 | authentication is locked. | -| 12300111 | authentication timeout. | -| 12300112 | authentication service is busy. | -| 12300113 | authentication service does not exist. | -| 12300114 | authentication service exception. | +| 12300001 | System service exception. | +| 12300002 | Invalid domainAccountInfo or credential. | +| 12300003 | Domain account does not exist. | +| 12300013 | Network exception. | +| 12300101 | Authentication failed. | +| 12300109 | Authentication is canceled. | +| 12300110 | Authentication is locked. | +| 12300111 | Authentication timeout. | +| 12300112 | Authentication service is busy. | +| 12300113 | Authentication service does not exist. | +| 12300114 | Authentication service exception. | **示例:** ```js @@ -4836,16 +4834,16 @@ authWithPopup(callback: IUserAuthCallback): void | 错误码ID | 错误信息 | | -------- | --------------------------- | -| 12300001 | system service exception. | -| 12300003 | no domain account is bound. | -| 12300013 | network exception. | -| 12300101 | authentication failed. | -| 12300109 | authentication is canceled. | -| 12300110 | authentication is locked. | -| 12300111 | authentication timeout. | -| 12300112 | authentication service is busy. | -| 12300113 | authentication service does not exist. | -| 12300114 | authentication service exception. | +| 12300001 | System service exception. | +| 12300003 | No domain account is bound. | +| 12300013 | Network exception. | +| 12300101 | Authentication failed. | +| 12300109 | Authentication is canceled. | +| 12300110 | Authentication is locked. | +| 12300111 | Authentication timeout. | +| 12300112 | Authentication service is busy. | +| 12300113 | Authentication service does not exist. | +| 12300114 | Authentication service exception. | **示例:** ```js @@ -4884,17 +4882,17 @@ authWithPopup(localId: number, callback: IUserAuthCallback): void | 错误码ID | 错误信息 | | -------- | --------------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid localId. | -| 12300003 | no domain account is bound. | -| 12300013 | network exception. | -| 12300101 | authentication failed. | -| 12300109 | authentication is canceled. | -| 12300110 | authentication is locked. | -| 12300111 | authentication timeout. | -| 12300112 | authentication service is busy. | -| 12300113 | authentication service does not exist. | -| 12300114 | authentication service exception. | +| 12300001 | System service exception. | +| 12300002 | Invalid localId. | +| 12300003 | No domain account is bound. | +| 12300013 | Network exception. | +| 12300101 | Authentication failed. | +| 12300109 | Authentication is canceled. | +| 12300110 | Authentication is locked. | +| 12300111 | Authentication timeout. | +| 12300112 | Authentication service is busy. | +| 12300113 | Authentication service does not exist. | +| 12300114 | Authentication service exception. | **示例:** ```js @@ -4933,9 +4931,9 @@ hasAccount(domainAccountInfo: DomainAccountInfo, callback: AsyncCallback<bool | 错误码ID | 错误信息 | | -------- | --------------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid domainAccountInfo. | -| 12300013 | network exception. | +| 12300001 | System service exception. | +| 12300002 | Invalid domainAccountInfo. | +| 12300013 | Network exception. | **示例:** ```js @@ -4984,9 +4982,9 @@ hasAccount(domainAccountInfo: DomainAccountInfo): Promise<boolean> | 错误码ID | 错误信息 | | -------- | --------------------------- | -| 12300001 | system service exception. | -| 12300002 | invalid domainAccountInfo. | -| 12300013 | network exception. | +| 12300001 | System service exception. | +| 12300002 | Invalid domainAccountInfo. | +| 12300013 | Network exception. | **示例:** ```js @@ -5389,7 +5387,6 @@ getAuthInfo(callback: AsyncCallback<Array<EnrolledCredInfo>>): void; | 错误码ID | 错误信息 | | -------- | --------------------- | | 12300001 | System service exception. | -| 12300102 | Credential not found. | **示例:** ```js @@ -5429,7 +5426,6 @@ getAuthInfo(authType: AuthType, callback: AsyncCallback<Array<EnrolledCred | -------- | ------------------- | | 12300001 | System service exception. | | 12300002 | Invalid authType. | -| 12300102 | Credential not found. | **示例:** ```js @@ -5474,7 +5470,6 @@ getAuthInfo(authType?: AuthType): Promise<Array<EnrolledCredInfo>>; | -------- | ------------------- | | 12300001 | System service exception. | | 12300002 | Invalid authType. | -| 12300102 | Credential not found. | **示例:** ```js @@ -5513,6 +5508,12 @@ onSetData: (authSubType: AuthSubType, data: Uint8Array) => void; | authSubType | [AuthSubType](#authsubtype8) | 是 | 用于认证的凭据子类型。 | | data | Uint8Array | 是 | 要设置的数据是凭据,用来在认证、添加、修改凭据操作。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ------------------- | +| 12300002 | Invalid pinSubType. | + **示例:** ```js let password = new Uint8Array([0, 0, 0, 0, 0, 0]); @@ -5975,7 +5976,7 @@ onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void; | ----------- | ------ | ---- | ---------- | | domain | string | 是 | 域名。 | | accountName | string | 是 | 域帐号名。 | -| accountId10+ | string | 否 | 域帐号标识。 | +| accountId10+ | string | 否 | 域帐号标识。
**系统接口:** 此接口为系统接口。 | ## 系统帐号约束列表 diff --git a/zh-cn/application-dev/reference/apis/js-apis-overlay.md b/zh-cn/application-dev/reference/apis/js-apis-overlay.md index 41bc7d9ebafc3b178a116fa7d9dffbb149cdc0b5..731ff7e80b7cf164f07ed15f642cb58bf48ba67f 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-overlay.md +++ b/zh-cn/application-dev/reference/apis/js-apis-overlay.md @@ -114,7 +114,7 @@ setOverlayEnabledByBundleName(bundleName:string, moduleName:string, isEnabled: b **系统能力:** SystemCapability.BundleManager.BundleFramework.Overlay -**系统API:** 此接口为系统接口,三方应用不支持调用 +**系统API:** 此接口为系统接口。 **参数:** @@ -170,7 +170,7 @@ setOverlayEnabledByBundleName(bundleName:string, moduleName:string, isEnabled: b **系统能力:** SystemCapability.BundleManager.BundleFramework.Overlay -**系统API:** 此接口为系统接口,三方应用不支持调用 +**系统API:** 此接口为系统接口。 **参数:** @@ -238,7 +238,8 @@ getOverlayModuleInfo(moduleName: string): Promise\; | 错误码ID | 错误信息 | | ------ | -------------------------------------- | -| 17700002 | The specified module name is not found. | +| 17700002 | The specified module name is not found. | +| 17700032 | he specified bundle does not contain any overlay module. | | 17700033 | The specified module is not an overlay module. | **示例:** @@ -278,6 +279,7 @@ getOverlayModuleInfo(moduleName: string, callback: AsyncCallback\7+
| {[key:string]:object} | 是 | 是 | 设置的其他附加属性数据。 | +| additions7+ | {[key:string]:object} | 是 | 是 | 设置的其他附加属性数据, 暂不支持。 | | mimeTypes7+ | Array<string> | 是 | 否 | 剪贴板内容条目的数据类型,非重复的类型列表。 | -| tag7+ | string | 是 | 是 | 用户自定义标签。 | +| tag7+ | string | 是 | 是 | 用户自定义标签, 暂不支持。 | | timestamp7+ | number | 是 | 否 | 剪贴板数据的写入时间戳(单位:ms)。 | -| localOnly7+ | boolean | 是 | 是 | 配置剪贴板内容是否为“仅在本地”。默认值为true。
- 配置为true时,表示内容仅在本地,不会在设备之间传递。
- 配置为false时,表示内容将在设备间传递。 | +| localOnly7+ | boolean | 是 | 是 | 配置剪贴板内容是否为“仅在本地”, 默认值为true。暂不支持, 推荐使用shareOption属性。
- 配置为true时,表示内容仅在本地,不会在设备之间传递。
- 配置为false时,表示内容将在设备间传递。 | | shareOption9+ | [ShareOption](#shareoption9) | 是 | 是 | 指示剪贴板数据可以粘贴到的范围,如果未设置或设置不正确,则默认值为CROSSDEVICE。 | ## PasteDataRecord7+ diff --git a/zh-cn/application-dev/reference/apis/js-apis-power.md b/zh-cn/application-dev/reference/apis/js-apis-power.md index 3e253f3241eb521b5faf08d1e6f78bde517fdcb0..47027996ffa8ed2db9b6f5161700d2b7f561e4da 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-power.md +++ b/zh-cn/application-dev/reference/apis/js-apis-power.md @@ -293,7 +293,7 @@ power.setPowerMode(power.DevicePowerMode.MODE_PERFORMANCE) rebootDevice(reason: string): void -> **说明:**
从API version 9开始不再维护,建议使用[power.reboot](#powerreboot9)替代。 +> **说明:**
从API version 7开始支持,从API version 9开始不再维护。建议使用[power.reboot](#powerreboot9)替代,替代接口能力仅对系统应用开放。 重启设备。 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 a8abc368b6b5652bdc11d892ae2b22db21d6f647..84beb19662ebd11529f7256c4ae745b6b5220e37 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-privacyManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-privacyManager.md @@ -46,8 +46,8 @@ addPermissionUsedRecord(tokenID: number, permissionName: Permissions, successCou | 错误码ID | 错误信息 | | -------- | -------- | | 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256, or the count value is invalid. | -| 12100002 | The specified tokenID does not exist or it does not refer to an application process. | -| 12100003 | The specified permission does not exist or it is not an user_grant permission. | +| 12100002 | The specified tokenID does not exist or refer to an application process. | +| 12100003 | The specified permission does not exist or is not an user_grant permission. | | 12100007 | Service is abnormal. | | 12100008 | Out of memory. | @@ -96,8 +96,8 @@ addPermissionUsedRecord(tokenID: number, permissionName: Permissions, successCou | 错误码ID | 错误信息 | | -------- | -------- | | 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256, or the count value is invalid. | -| 12100002 | The specified tokenID does not exist or it does not refer to an application process. | -| 12100003 | The specified permission does not exist or it is not an user_grant permission. | +| 12100002 | The specified tokenID does not exist or refer to an application process. | +| 12100003 | The specified permission does not exist or is not an user_grant permission. | | 12100007 | Service is abnormal. | | 12100008 | Out of memory. | @@ -149,8 +149,8 @@ getPermissionUsedRecord(request: PermissionUsedRequest): Promise<PermissionUs | 错误码ID | 错误信息 | | -------- | -------- | | 12100001 | The parameter is invalid. the value of flag in request is invalid. | -| 12100002 | The specified tokenID does not exist or it does not refer to an application process. | -| 12100003 | The specified permission does not exist or it is not an user_grant permission. | +| 12100002 | The specified tokenID does not exist or refer to an application process. | +| 12100003 | The specified permission does not exist or is not an user_grant permission. | | 12100007 | Service is abnormal. | | 12100008 | Out of memory. | @@ -204,8 +204,8 @@ getPermissionUsedRecord(request: PermissionUsedRequest, callback: AsyncCallback& | 错误码ID | 错误信息 | | -------- | -------- | | 12100001 | The parameter is invalid. the value of flag in request is invalid. | -| 12100002 | The specified tokenID does not exist or it does not refer to an application process. | -| 12100003 | The specified permission does not exist or it is not an user_grant permission. | +| 12100002 | The specified tokenID does not exist or refer to an application process. | +| 12100003 | The specified permission does not exist or is not an user_grant permission. | | 12100007 | Service is abnormal. | | 12100008 | Out of memory. | @@ -267,8 +267,8 @@ startUsingPermission(tokenID: number, permissionName: Permissions): Promise<v | 错误码ID | 错误信息 | | -------- | -------- | | 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256. | -| 12100002 | The specified tokenID does not exist or it does not refer to an application process. | -| 12100003 | The specified permission does not exist or it is not an user_grant permission. | +| 12100002 | The specified tokenID does not exist or refer to an application process. | +| 12100003 | The specified permission does not exist or is not an user_grant permission. | | 12100004 | The interface is called repeatedly with the same input. It means the application specified by the tokenID has been using the specified permission. | | 12100007 | Service is abnormal. | | 12100008 | Out of memory. | @@ -315,8 +315,8 @@ startUsingPermission(tokenID: number, permissionName: Permissions, callback: Asy | 错误码ID | 错误信息 | | -------- | -------- | | 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256. | -| 12100002 | The specified tokenID does not exist or it does not refer to an application process. | -| 12100003 | The specified permission does not exist or it is not an user_grant permission. | +| 12100002 | The specified tokenID does not exist or refer to an application process. | +| 12100003 | The specified permission does not exist or is not an user_grant permission. | | 12100004 | The interface is called repeatedly with the same input. It means the application specified by the tokenID has been using the specified permission. | | 12100007 | Service is abnormal. | | 12100008 | Out of memory. | @@ -370,8 +370,8 @@ stopUsingPermission(tokenID: number, permissionName: Permissions): Promise<vo | 错误码ID | 错误信息 | | -------- | -------- | | 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256. | -| 12100002 | The specified tokenID does not exist or it does not refer to an application process. | -| 12100003 | The specified permission does not exist or it is not an user_grant permission. | +| 12100002 | The specified tokenID does not exist or refer to an application process. | +| 12100003 | The specified permission does not exist or is not an user_grant permission. | | 12100004 | The interface is not used with | | 12100007 | Service is abnormal. | | 12100008 | Out of memory. | @@ -418,8 +418,8 @@ stopUsingPermission(tokenID: number, permissionName: Permissions, callback: Asyn | 错误码ID | 错误信息 | | -------- | -------- | | 12100001 | The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256. | -| 12100002 | The specified tokenID does not exist or it does not refer to an application process. | -| 12100003 | The specified permission does not exist or it is not an user_grant permission. | +| 12100002 | The specified tokenID does not exist or refer to an application process. | +| 12100003 | The specified permission does not exist or is not an user_grant permission. | | 12100004 | The interface is not used with | | 12100007 | Service is abnormal. | | 12100008 | Out of memory. | @@ -512,7 +512,7 @@ off(type: 'activeStateChange', permissionList: Array<Permissions>, callbac | 错误码ID | 错误信息 | | -------- | -------- | -| 12100001 | The parameter is invalid. The permissionName in list is all invalid or the list size is larger than 1024. | +| 12100001 | The permissionNames in the list are all invalid, or the list size exceeds 1024 bytes. | | 12100004 | The interface is not used together with "on"| | 12100007 | Service is abnormal. | | 12100008 | Out of memory. | 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 f60cfaed73ab60480c0f13be76391cd404214a7c..b5d9217c84dd68aaed217f1d59ed605234ad1dbd 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-request.md +++ b/zh-cn/application-dev/reference/apis/js-apis-request.md @@ -617,6 +617,7 @@ remove(callback: AsyncCallback<boolean>): void ``` ## UploadConfig +上传任务的配置信息。 **需要权限**:ohos.permission.INTERNET @@ -631,6 +632,7 @@ remove(callback: AsyncCallback<boolean>): void | data | Array<[RequestData](#requestdata)> | 是 | 请求的表单数据。 | ## TaskState9+ +上传任务信息,[on('complete' | 'fail')9+](#oncomplete--fail9)和[off('complete' | 'fail')9+](#offcomplete--fail9)接口的回调参数。 **需要权限**:ohos.permission.INTERNET @@ -643,6 +645,7 @@ remove(callback: AsyncCallback<boolean>): void | message | string | 是 | 上传任务结果描述信息 | ## File +[UploadConfig](#uploadconfig)中的文件列表。 **需要权限**:ohos.permission.INTERNET @@ -657,6 +660,7 @@ remove(callback: AsyncCallback<boolean>): void ## RequestData +[UploadConfig](#uploadconfig)中的表单数据。 **需要权限**:ohos.permission.INTERNET @@ -1657,6 +1661,7 @@ resume(callback: AsyncCallback<void>): void ## DownloadConfig +下载任务的配置信息。 **需要权限**:ohos.permission.INTERNET @@ -1676,6 +1681,7 @@ resume(callback: AsyncCallback<void>): void ## DownloadInfo7+ +下载任务信息,[query(deprecated)](#querydeprecated-1)接口的回调参数。 **需要权限**:ohos.permission.INTERNET @@ -1693,4 +1699,6 @@ resume(callback: AsyncCallback<void>): void | downloadTitle | string | 是 | 下载任务名称。 | | downloadTotalBytes | number | 是 | 下载的文件的总大小(int bytes)。 | | description | string | 是 | 待下载文件的描述信息。 | -| downloadedBytes | number | 是 | 实时下载大小(int  bytes)。 | \ No newline at end of file +| downloadedBytes | number | 是 | 实时下载大小(int  bytes)。 | + + \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-screen-lock.md b/zh-cn/application-dev/reference/apis/js-apis-screen-lock.md index 6782838ee05b97cda45cfe5066a4b43259adb1e4..32e95a0cdcac8699ef3f7f588cadaf88c9188e15 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-screen-lock.md +++ b/zh-cn/application-dev/reference/apis/js-apis-screen-lock.md @@ -43,7 +43,7 @@ import screenlock from '@ohos.screenLock'; **系统能力:** SystemCapability.MiscServices.ScreenLock -**系统接口**:此接口为系统接口。 +**系统接口**:此接口为系统接口 | 名称 | 类型 | 必填 | 说明 | | --------- | ------ | ---- | ------------- | @@ -58,7 +58,7 @@ isLocked(): boolean **系统能力:** SystemCapability.MiscServices.ScreenLock -**系统接口**:此接口为系统接口。 +**系统接口**:此接口为系统接口 **返回值:** @@ -80,7 +80,7 @@ unlock(callback: AsyncCallback<boolean>): void **系统能力:** SystemCapability.MiscServices.ScreenLock -**系统接口**:此接口为系统接口。 +**系统接口**:此接口为系统接口 **参数:** @@ -116,7 +116,7 @@ unlock(): Promise<boolean> **系统能力:** SystemCapability.MiscServices.ScreenLock -**系统接口**:此接口为系统接口。 +**系统接口**:此接口为系统接口 **返回值:** @@ -150,7 +150,9 @@ lock(callback: AsyncCallback<boolean>): void **系统能力:** SystemCapability.MiscServices.ScreenLock -**系统接口**:此接口为系统接口。 +**需要权限:** ohos.permission.ACCESS_SCREEN_LOCK_INNER + +**系统接口**:此接口为系统接口 **参数:** @@ -186,7 +188,9 @@ lock(): Promise<boolean> **系统能力:** SystemCapability.MiscServices.ScreenLock -**系统接口**:此接口为系统接口。 +**需要权限:** ohos.permission.ACCESS_SCREEN_LOCK_INNER + +**系统接口**:此接口为系统接口 **返回值:** @@ -220,7 +224,9 @@ onSystemEvent(callback: Callback<SystemEvent>): boolean **系统能力:** SystemCapability.MiscServices.ScreenLock -**系统接口**:此接口为系统接口。 +**需要权限:** ohos.permission.ACCESS_SCREEN_LOCK_INNER + +**系统接口**:此接口为系统接口 **参数:** @@ -262,7 +268,9 @@ sendScreenLockEvent(event: String, parameter: number, callback: AsyncCallback< **系统能力:** SystemCapability.MiscServices.ScreenLock -**系统接口**:此接口为系统接口。 +**需要权限:** ohos.permission.ACCESS_SCREEN_LOCK_INNER + +**系统接口**:此接口为系统接口 **参数:** @@ -300,7 +308,9 @@ sendScreenLockEvent(event: String, parameter: number): Promise<boolean> **系统能力:** SystemCapability.MiscServices.ScreenLock -**系统接口**:此接口为系统接口。 +**需要权限:** ohos.permission.ACCESS_SCREEN_LOCK_INNER + +**系统接口**:此接口为系统接口 **参数:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-socket.md b/zh-cn/application-dev/reference/apis/js-apis-socket.md index 7c005e050863732e1af8ea6b4003135aeac1a1fe..f3d2dff5695686b48f76a97aab7fb3706d63165d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-socket.md +++ b/zh-cn/application-dev/reference/apis/js-apis-socket.md @@ -2674,4 +2674,4 @@ TLS通信的协议版本。 | 类型 | 说明 | | --------------------------------------------------------------------- | --------------------- | -|[cryptoFramework.EncodingBlob](js-apis-cryptoFramework.md#datablob) | 存储证书的数据和编码格式 | +|[cert.EncodingBlob](js-apis-cert.md#datablob) | 存储证书的数据和编码格式 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-brightness.md b/zh-cn/application-dev/reference/apis/js-apis-system-brightness.md index 32723c518063df016497a1f104d2bf0baf056442..0d44e435efd777c9f7a0c557ecbb69ca552c3d62 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-brightness.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-brightness.md @@ -3,7 +3,8 @@ 该模块提供屏幕亮度和模式的查询、调节接口。 > **说明:** -> - 从API Version 7 开始不再维护,建议使用[`@ohos.brightness`](js-apis-brightness.md)替代。 +> +> - 从API Version 7 开始不再维护。建议使用[`@ohos.brightness`](js-apis-brightness.md)替代,替代接口能力仅对系统应用开放。 > - 本模块首批接口从API version 3开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-tagSession.md b/zh-cn/application-dev/reference/apis/js-apis-tagSession.md index 32b66bd40eecb8b10ef4313dbd7325c80cf8162e..fda6cf598264cd5e2cbb6972ee0f24329dc51446 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-tagSession.md +++ b/zh-cn/application-dev/reference/apis/js-apis-tagSession.md @@ -183,8 +183,6 @@ isTagConnected(): boolean > **说明:** > 从 API version 7 开始支持,从 API version 9 开始废弃,建议使用[tagSession.isConnected](#tagsessionisconnected9)替代。 -**需要权限:** ohos.permission.NFC_TAG - **系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -211,8 +209,6 @@ isConnected(): boolean 检查是否已与标签建立连接。 -**需要权限:** ohos.permission.NFC_TAG - **系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** 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 48095aedd8d745ad631a239af57d794c8abea861..5f49df9bfe7ad1b992b53c5259061debb220ee3a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-webview.md +++ b/zh-cn/application-dev/reference/apis/js-apis-webview.md @@ -81,7 +81,7 @@ import web_webview from '@ohos.web.webview' @Component struct WebComponent { controller: web_webview.WebviewController = new web_webview.WebviewController(); - msgPort: WebMessagePort[] = null; + msgPort: web_webview.WebMessagePort[] = null; build() { Column() { @@ -103,7 +103,7 @@ struct WebComponent { postMessageEvent(message: WebMessage): void -发送消息。完整示例代码参考[postMessage](#postmessage) +发送消息。完整示例代码参考[postMessage](#postmessage)。 **系统能力:** SystemCapability.Web.Webview.Core @@ -155,7 +155,7 @@ struct WebComponent { onMessageEvent(callback: (result: WebMessage) => void): void -注册回调函数,接收HTML5侧发送过来的消息。完整示例代码参考[postMessage](#postmessage) +注册回调函数,接收HTML5侧发送过来的消息。完整示例代码参考[postMessage](#postmessage)。 **系统能力:** SystemCapability.Web.Webview.Core @@ -214,6 +214,240 @@ struct WebComponent { } ``` +### isExtentionType10+ + +**系统能力:** SystemCapability.Web.Webview.Core + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ------------ | ------ | ---- | ---- | ------------------------------------------------| +| isExtentionType | boolean | 是 | 否 | 创建WebMessagePort时是否指定使用扩展增强接口。 | + +### postMessageEventExt10+ + +postMessageEventExt(message: WebMessageExt): void + +发送消息。完整示例代码参考[onMessageEventExt](#onmessageeventext10)。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------- | ------ | ---- | :------------- | +| message | [WebMessageExt](#webmessageext) | 是 | 要发送的消息。 | + +**错误码:** + +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------- | +| 17100010 | Can not post message using this port. | + + +### onMessageEventExt10+ + +onMessageEventExt(callback: (result: WebMessageExt) => void): void + +注册回调函数,接收HTML5侧发送过来的消息。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | ---- | :------------------- | +| result | [WebMessageExt](#webmessageext10) | 是 | 接收到的消息。 | + +**错误码:** + +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 + +| 错误码ID | 错误信息 | +| -------- | ----------------------------------------------- | +| 17100006 | Can not register message event using this port. | + +**示例:** + +```ts +// xxx.ets +import web_webview from '@ohos.web.webview' + +// 应用与网页互发消息的示例:使用"init_web_messageport"的通道,通过端口0在应用侧接受网页发送的消息,通过端口1在网页侧接受应用发送的消息。 +@Entry +@Component +struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController(); + ports: web_webview.WebMessagePort[] = null; + nativePort: web_webview.WebMessagePort = null; + @State msg1:string = ""; + @State msg2:string = ""; + message: web_webview.WebMessageExt = new web_webview.WebMessageExt(); + build() { + Column() { + Text(this.msg1).fontSize(16) + Text(this.msg2).fontSize(16) + Button('SendToH5') + .onClick(() => { + // 使用本侧端口发送消息给HTML5 + try { + console.log("In eTS side send true start"); + if (this.nativePort) { + this.message.setString("helloFromEts"); + this.nativePort.postMessageEventExt(this.message); + } + } + catch (error) { + console.log("In eTS side send message catch error:" + error.code + ", msg:" + error.message); + } + }) + + Web({ src: $rawfile('index.html'), controller: this.controller }) + .onPageEnd((e)=>{ + console.log("In eTS side message onPageEnd init mesaage channel"); + // 1. 创建消息端口 + this.ports = this.controller.createWebMessagePorts(true); + // 2. 发送端口1到HTML5 + this.controller.postMessage("init_web_messageport", [this.ports[1]], "*"); + // 3. 保存端口0到本地 + this.nativePort = this.ports[0]; + // 4. 设置回调函数 + this.nativePort.onMessageEventExt((result) => { + console.log("In eTS side got message"); + try { + var type = result.getType(); + console.log("In eTS side getType:" + type); + switch (type) { + case web_webview.WebMessageType.STRING: { + this.msg1 = "result type:" + typeof (result.getString()); + this.msg2 = "result getString:" + ((result.getString())); + break; + } + case web_webview.WebMessageType.NUMBER: { + this.msg1 = "result type:" + typeof (result.getNumber()); + this.msg2 = "result getNumber:" + ((result.getNumber())); + break; + } + case web_webview.WebMessageType.BOOLEAN: { + this.msg1 = "result type:" + typeof (result.getBoolean()); + this.msg2 = "result getBoolean:" + ((result.getBoolean())); + break; + } + case web_webview.WebMessageType.ARRAY_BUFFER: { + this.msg1 = "result type:" + typeof (result.getArrayBuffer()); + this.msg2 = "result getArrayBuffer byteLength:" + ((result.getArrayBuffer().byteLength)); + break; + } + case web_webview.WebMessageType.ARRAY: { + this.msg1 = "result type:" + typeof (result.getArray()); + this.msg2 = "result getArray:" + result.getArray(); + break; + } + case web_webview.WebMessageType.ERROR: { + this.msg1 = "result type:" + typeof (result.getError()); + this.msg2 = "result getError:" + result.getError(); + break; + } + default: { + this.msg1 = "default break, type:" + type; + break; + } + } + } + catch (resError) { + console.log(`log error code: ${resError.code}, Message: ${resError.message}`); + } + }); + }) + } + } +} +``` + +```html + + + + + WebView MessagePort Demo + + + +

Html5 Send and Receive Message

+

Receive string:

+

Receive arraybuffer:

+
+
+
+ + + +``` + +```js +//index.js +var h5Port; +window.addEventListener('message', function(event) { + if (event.data == 'init_web_messageport') { + if(event.ports[0] != null) { + h5Port = event.ports[0]; // 1. 保存从ets侧发送过来的端口 + h5Port.onmessage = function(event) { + console.log("hwd In html got message"); + // 2. 接收ets侧发送过来的消息. + var result = event.data; + console.log("In html got message, typeof: ", typeof(result)); + console.log("In html got message, result: ", (result)); + if (typeof(result) == "string") { + console.log("In html got message, String: ", result); + document.getElementById("msg").innerHTML = "String:" + result; + } else if (typeof(result) == "number") { + console.log("In html side got message, number: ", result); + document.getElementById("msg").innerHTML = "Number:" + result; + } else if (typeof(result) == "boolean") { + console.log("In html side got message, boolean: ", result); + document.getElementById("msg").innerHTML = "Boolean:" + result; + } else if (typeof(result) == "object") { + if (result instanceof ArrayBuffer) { + document.getElementById("msg2").innerHTML = "ArrayBuffer:" + result.byteLength; + console.log("In html got message, byteLength: ", result.byteLength); + } else if (result instanceof Error) { + console.log("In html error message, err:" + (result)); + console.log("In html error message, typeof err:" + typeof(result)); + document.getElementById("msg2").innerHTML = "Error:" + result.name + ", msg:" + result.message; + } else if (result instanceof Array) { + console.log("In html got message, Array"); + console.log("In html got message, Array length:" + result.length); + console.log("In html got message, Array[0]:" + (result[0])); + console.log("In html got message, typeof Array[0]:" + typeof(result[0])); + document.getElementById("msg2").innerHTML = "Array len:" + result.length + ", value:" + result; + } else { + console.log("In html got message, not any instance of support type"); + document.getElementById("msg").innerHTML = "not any instance of support type"; + } + } else { + console.log("In html got message, not support type"); + document.getElementById("msg").innerHTML = "not support type"; + } + } + h5Port.onmessageerror = (event) => { + console.error(`hwd In html Error receiving message: ${event}`); + }; + } + } +}) + +// 使用h5Port往ets侧发送String类型的消息. +function postStringToApp() { + if (h5Port) { + console.log("In html send string message"); + h5Port.postMessage("hello"); + console.log("In html send string message end"); + } else { + console.error("In html h5port is null, please init first"); + } +} +``` + ## WebviewController 通过WebviewController可以控制Web组件各种行为。一个WebviewController对象只能控制一个Web组件,且必须在Web组件和WebviewController绑定后,才能调用WebviewController上的方法(静态方法除外)。 @@ -1232,6 +1466,232 @@ struct WebComponent { } ``` + +### runJavaScriptExt10+ + +runJavaScriptExt(script: string, callback : AsyncCallback\): void + +异步执行JavaScript脚本,并通过回调方式返回脚本执行的结果。runJavaScriptExt需要在loadUrl完成后,比如onPageEnd中调用。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------------------- | ---- | ---------------------------- | +| script | string | 是 | JavaScript脚本。 | +| callback | AsyncCallback\<[JsMessageExt](#jsmessageext10)\> | 是 | 回调执行JavaScript脚本结果。 | + +**错误码:** + +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------------------------------ | +| 17100001 | Init error. The WebviewController must be associated with a Web compoent. | + +**示例:** + +```ts +import web_webview from '@ohos.web.webview' + +@Entry +@Component +struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController(); + @State msg1: string = '' + @State msg2: string = '' + + build() { + Column() { + Text(this.msg1).fontSize(20) + Text(this.msg2).fontSize(20) + Web({ src: $rawfile('index.html'), controller: this.controller }) + .javaScriptAccess(true) + .onPageEnd(e => { + try { + this.controller.runJavaScriptExt( + 'test()', + (error, result) => { + if (error) { + console.info(`run JavaScript error: ` + JSON.stringify(error)) + return; + } + if (result) { + try { + var type = result.getType(); + switch (type) { + case web_webview.JsMessageType.STRING: { + this.msg1 = "result type:" + typeof (result.getString()); + this.msg2 = "result getString:" + ((result.getString())); + break; + } + case web_webview.JsMessageType.NUMBER: { + this.msg1 = "result type:" + typeof (result.getNumber()); + this.msg2 = "result getNumber:" + ((result.getNumber())); + break; + } + case web_webview.JsMessageType.BOOLEAN: { + this.msg1 = "result type:" + typeof (result.getBoolean()); + this.msg2 = "result getBoolean:" + ((result.getBoolean())); + break; + } + case web_webview.JsMessageType.ARRAY_BUFFER: { + this.msg1 = "result type:" + typeof (result.getArrayBuffer()); + this.msg2 = "result getArrayBuffer byteLength:" + ((result.getArrayBuffer().byteLength)); + break; + } + case web_webview.JsMessageType.ARRAY: { + this.msg1 = "result type:" + typeof (result.getArray()); + this.msg2 = "result getArray:" + result.getArray(); + break; + } + default: { + this.msg1 = "default break, type:" + type; + break; + } + } + } + catch (resError) { + console.log(`log error code: ${resError.code}, Message: ${resError.message}`); + } + } + }); + console.info('url: ', e.url); + } catch (error) { + console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); + } + }) + } + } +} + +//index.html + + + +

run JavaScript Ext demo

+ + + +``` + +### runJavaScriptExt10+ + +runJavaScriptExt(script: string): Promise\ + +异步执行JavaScript脚本,并通过Promise方式返回脚本执行的结果。runJavaScriptExt需要在loadUrl完成后,比如onPageEnd中调用。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | -------- | ---- | ---------------- | +| script | string | 是 | JavaScript脚本。 | + +**返回值:** + +| 类型 | 说明 | +| --------------- | --------------------------------------------------- | +| Promise\<[JsMessageExt](#jsmessageext10)> | Promise实例,返回脚本执行的结果。 | + +**错误码:** + +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------------------------------ | +| 17100001 | Init error. The WebviewController must be associated with a Web compoent. | + +**示例:** + +```ts +// xxx.ets +import web_webview from '@ohos.web.webview' + +@Entry +@Component +struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController(); + @State webResult: string = ''; + @State msg1: string = '' + @State msg2: string = '' + + build() { + Column() { + Text(this.webResult).fontSize(20) + Text(this.msg1).fontSize(20) + Text(this.msg2).fontSize(20) + Web({ src: $rawfile('index.html'), controller: this.controller }) + .javaScriptAccess(true) + .onPageEnd(e => { + this.controller.runJavaScriptExt('test()') + .then((result) => { + try { + var type = result.getType(); + switch (type) { + case web_webview.JsMessageType.STRING: { + this.msg1 = "result type:" + typeof (result.getString()); + this.msg2 = "result getString:" + ((result.getString())); + break; + } + case web_webview.JsMessageType.NUMBER: { + this.msg1 = "result type:" + typeof (result.getNumber()); + this.msg2 = "result getNumber:" + ((result.getNumber())); + break; + } + case web_webview.JsMessageType.BOOLEAN: { + this.msg1 = "result type:" + typeof (result.getBoolean()); + this.msg2 = "result getBoolean:" + ((result.getBoolean())); + break; + } + case web_webview.JsMessageType.ARRAY_BUFFER: { + this.msg1 = "result type:" + typeof (result.getArrayBuffer()); + this.msg2 = "result getArrayBuffer byteLength:" + ((result.getArrayBuffer().byteLength)); + break; + } + case web_webview.JsMessageType.ARRAY: { + this.msg1 = "result type:" + typeof (result.getArray()); + this.msg2 = "result getArray:" + result.getArray(); + break; + } + default: { + this.msg1 = "default break, type:" + type; + break; + } + } + } + catch (resError) { + console.log(`log error code: ${resError.code}, Message: ${resError.message}`); + } + }) + .catch(function (error) { + console.error("error: " + error); + }) + }) + } + } +} + +//index.html + + + +

run JavaScript Ext demo

+ + + +``` + ### deleteJavaScriptRegister deleteJavaScriptRegister(name: string): void @@ -1568,12 +2028,18 @@ struct WebComponent { ### createWebMessagePorts - createWebMessagePorts(): Array\ +createWebMessagePorts(isExtentionType?: boolean): Array\ -创建Web消息端口。 +创建Web消息端口。完整示例代码参考[onMessageEventExt](#onmessageeventext10)。 **系统能力:** SystemCapability.Web.Webview.Core +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ---------------------- | ---- | :------------------------------| +| isExtentionType10+ | boolean | 否 | 是否使用扩展增强接口,默认false不使用。 | + **返回值:** | 类型 | 说明 | @@ -1629,8 +2095,8 @@ postMessage(name: string, ports: Array\, uri: string): void | 参数名 | 类型 | 必填 | 说明 | | ------ | ---------------------- | ---- | :------------------------------- | -| name | string | 是 | 要发送的消息,包含数据和消息端口。 | -| ports | Array\ | 是 | 接收该消息的URI。 | +| name | string | 是 | 要发送的消息名称。 | +| ports | Array\ | 是 | 要发送的消息端口。 | | uri | string | 是 | 接收该消息的URI。 | **错误码:** @@ -5123,6 +5589,463 @@ Web组件返回的请求/响应头对象。 | string | 字符串类型数据。 | | ArrayBuffer | 二进制类型数据。 | +## JsMessageType10+ + +[runJavaScirptExt](#runjavascriptext10)接口脚本执行后返回的结果的类型。 + +**系统能力:** SystemCapability.Web.Webview.Core + +| 名称 | 值 | 说明 | +| ------------ | -- |--------------------------------- | +| NOT_SUPPORT | 0 |不支持的数据类型。| +| STRING | 1 |字符串类型。| +| NUMBER | 2 |数值类型。| +| BOOLEAN | 3 |布尔类型。| +| ARRAY_BUFFER | 4 |原始二进制数据缓冲区。| +| ARRAY | 5 |数组类型| + + +## WebMessageType10+ + +[webMessagePort](#webmessageport)接口所支持的数据类型。 + +**系统能力:** SystemCapability.Web.Webview.Core + +| 名称 | 值 | 说明 | +| ------------ | -- |------------------------------- | +| NOT_SUPPORT | 0 |不支持的数据类型。| +| STRING | 1 |字符串类型。| +| NUMBER | 2 |数值类型。| +| BOOLEAN | 3 |布尔类型。| +| ARRAY_BUFFER | 4 |原始二进制数据缓冲区。| +| ARRAY | 5 |数组类型。| +| ERROR | 6 |错误类型。| + +## JsMessageExt10+ + +[runJavaScirptExt](#runjavascriptext10)接口执行脚本返回的数据对象。 + +### getType10+ + +getType(): JsMessageType + +获取数据对象的类型。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**返回值:** + +| 类型 | 说明 | +| --------------| --------------------------------------------------------- | +| [JsMessageType](#jsmessagetype10) | [runJavaScirptExt](#runjavascriptext10)接口脚本执行后返回的结果的类型。 | + +### getString10+ + +getString(): string + +获取数据对象的字符串类型数据。完整示例代码参考[runJavaScriptExt](#runjavascriptext10)。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**返回值:** + +| 类型 | 说明 | +| --------------| ------------- | +| string | 返回字符串类型的数据。 | + +**错误码:** + +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------- | +| 17100014 | The type does not match with the value of the result. | + + +### getNumber10+ + +getNumber(): number + +获取数据对象的数值类型数据。完整示例代码参考[runJavaScriptExt](#runjavascriptext10)。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**返回值:** + +| 类型 | 说明 | +| --------------| ------------- | +| number | 返回数值类型的数据。 | + +**错误码:** + +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------- | +| 17100014 | The type does not match with the value of the result. | + +### getBoolean10+ + +getBoolean(): boolean + +获取数据对象的布尔类型数据。完整示例代码参考[runJavaScriptExt](#runjavascriptext10)。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**返回值:** + +| 类型 | 说明 | +| --------------| ------------- | +| boolean | 返回布尔类型的数据。 | + +**错误码:** + +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------- | +| 17100014 | The type does not match with the value of the result. | + + +### getArrayBuffer10+ + +getArrayBuffer(): ArrayBuffer + +获取数据对象的原始二进制数据。完整示例代码参考[runJavaScriptExt](#runjavascriptext10)。 +**系统能力:** SystemCapability.Web.Webview.Core + +**返回值:** + +| 类型 | 说明 | +| --------------| ------------- | +| ArrayBuffer | 返回原始二进制数据。 | + +**错误码:** + +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------- | +| 17100014 | The type does not match with the value of the result. | + +### getArray10+ + +getArray(): Array\ + +获取数据对象的数组类型数据。完整示例代码参考[runJavaScriptExt](#runjavascriptext10)。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**返回值:** + +| 类型 | 说明 | +| --------------| ------------- | +| Array\ | 返回数组类型的数据。 | + +**错误码:** + +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------- | +| 17100014 | The type does not match with the value of the result. | + + +## WebMessageExt10+ + +[webMessagePort](#webmessageport)接口接收、发送的的数据对象。 + +### getType10+ + +getType(): WebMessageType + +获取数据对象的类型。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**返回值:** + +| 类型 | 说明 | +| --------------| --------------------------------------------------------- | +| [WebMessageType](#webmessagetype10) | [webMessagePort](#webmessageport)接口所支持的数据类型。 | + + +### getString10+ + +getString(): string + +获取数据对象的字符串类型数据。完整示例代码参考[onMessageEventExt](#onmessageeventext10)。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**返回值:** + +| 类型 | 说明 | +| --------------| ------------- | +| string | 返回字符串类型的数据。 | + +**错误码:** + +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------- | +| 17100014 | The type does not match with the value of the web message. | + + +### getNumber10+ + +getNumber(): number + +获取数据对象的数值类型数据。完整示例代码参考[onMessageEventExt](#onmessageeventext10)。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**返回值:** + +| 类型 | 说明 | +| --------------| ------------- | +| number | 返回数值类型的数据。 | + +**错误码:** + +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------- | +| 17100014 | The type does not match with the value of the web message. | + + +### getBoolean10+ + +getBoolean(): boolean + +获取数据对象的布尔类型数据。完整示例代码参考[onMessageEventExt](#onmessageeventext10)。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**返回值:** + +| 类型 | 说明 | +| --------------| ------------- | +| boolean | 返回布尔类型的数据。 | + +**错误码:** + +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------- | +| 17100014 | The type does not match with the value of the web message. | + + +### getArrayBuffer10+ + +getArrayBuffer(): ArrayBuffer + +获取数据对象的原始二进制数据。完整示例代码参考[onMessageEventExt](#onmessageeventext10)。 +**系统能力:** SystemCapability.Web.Webview.Core + +**返回值:** + +| 类型 | 说明 | +| --------------| ------------- | +| ArrayBuffer | 返回原始二进制数据。 | + +**错误码:** + +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------- | +| 17100014 | The type does not match with the value of the web message. | + +### getArray10+ + +getArray(): Array\ + +获取数据对象的数组类型数据。完整示例代码参考[onMessageEventExt](#onmessageeventext10)。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**返回值:** + +| 类型 | 说明 | +| --------------| ------------- | +| Array\ | 返回数组类型的数据。 | + +**错误码:** + +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------- | +| 17100014 | The type does not match with the value of the web message. | + +### getError10+ + +getError(): Error + +获取数据对象的错误类型数据。完整示例代码参考[onMessageEventExt](#onmessageeventext10)。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**返回值:** + +| 类型 | 说明 | +| --------------| ------------- | +| Error | 返回错误对象类型的数据。 | + +**错误码:** + +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------- | +| 17100014 | The type does not match with the value of the web message. | + + +### setType10+ + +setType(type: WebMessageType): void + +设置数据对象的类型。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------ | ---- | ---------------------- | +| type | [WebMessageType](#webmessagetype10) | 是 | [webMessagePort](#webmessageport)接口所支持的数据类型。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------- | +| 17100014 | The type does not match with the value of the web message. | + +### setString10+ + +setString(message: string): void + +设置数据对象的字符串类型数据。完整示例代码参考[onMessageEventExt](#onmessageeventext10)。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------ | ---- | -------------------- | +| message | string | 是 | 字符串类型数据。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------- | +| 17100014 | The type does not match with the value of the web message. | + +### setNumber10+ + +setNumber(message: number): void + +设置数据对象的数值类型数据。完整示例代码参考[onMessageEventExt](#onmessageeventext10)。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------ | ---- | -------------------- | +| message | number | 是 | 数值类型数据。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------- | +| 17100014 | The type does not match with the value of the web message. | + +### setBoolean10+ + +setBoolean(message: boolean): void + +设置数据对象的布尔类型数据。完整示例代码参考[onMessageEventExt](#onmessageeventext10)。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------ | ---- | -------------------- | +| message | boolean | 是 | 布尔类型数据。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------- | +| 17100014 | The type does not match with the value of the web message. | + +### setArrayBuffer10+ + +setArrayBuffer(message: ArrayBuffer): void + +设置数据对象的原始二进制数据。完整示例代码参考[onMessageEventExt](#onmessageeventext10)。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------ | ---- | -------------------- | +| message | ArrayBuffer | 是 | 原始二进制类型数据。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------- | +| 17100014 | The type does not match with the value of the web message. | + +### setArray10+ + +setArray(message: Array\): void + +设置数据对象的数组类型数据。完整示例代码参考[onMessageEventExt](#onmessageeventext10)。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------ | ---- | -------------------- | +| message | Array\ | 是 | 数组类型数据。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------- | +| 17100014 | The type does not match with the value of the web message. | + +### setError10+ + +setError(message: Error): void + +设置数据对象的错误对象类型数据。完整示例代码参考[onMessageEventExt](#onmessageeventext10)。 + +**系统能力:** SystemCapability.Web.Webview.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------ | ---- | -------------------- | +| message | Error | 是 | 错误对象类型数据。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------- | +| 17100014 | The type does not match with the value of the web message. | + + ## WebStorageOrigin 提供Web SQL数据库的使用信息。 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 536201bfe0805ff55544d1c84de0fe137e7fcff7..81aa95dac6af8492a5c2a0e6375b2beb384873e1 100644 --- a/zh-cn/application-dev/reference/arkui-ts/Readme-CN.md +++ b/zh-cn/application-dev/reference/arkui-ts/Readme-CN.md @@ -42,6 +42,9 @@ - [背景模糊设置](ts-universal-attributes-backgroundBlurStyle.md) - [分布式迁移标识](ts-universal-attributes-restoreId.md) - [前景色设置](ts-universal-attributes-foreground-color.md) + - [图像球面效果设置](ts-universal-attributes-sphericalEffect.md) + - [图像渐亮效果设置](ts-universal-attributes-lightUpEffect.md) + - [图像像素扩展效果设置](ts-universal-attributes-pixelStretchEffect.md) - [文本通用属性](ts-universal-attributes-text-style.md) - 手势处理 - [绑定手势方法](ts-gesture-settings.md) diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/ListDivider.png b/zh-cn/application-dev/reference/arkui-ts/figures/ListDivider.png new file mode 100644 index 0000000000000000000000000000000000000000..1842303447e7fbd1c9a59cd14dccd7a23eb42636 Binary files /dev/null and b/zh-cn/application-dev/reference/arkui-ts/figures/ListDivider.png differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/datePickerLightUp1.png b/zh-cn/application-dev/reference/arkui-ts/figures/datePickerLightUp1.png new file mode 100644 index 0000000000000000000000000000000000000000..120c59b0dcd102d538973fa3c62784d99e93cc17 Binary files /dev/null and b/zh-cn/application-dev/reference/arkui-ts/figures/datePickerLightUp1.png differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/datePickerLightUp2.png b/zh-cn/application-dev/reference/arkui-ts/figures/datePickerLightUp2.png new file mode 100644 index 0000000000000000000000000000000000000000..a2172a8da22332f1ccec1714112e4a229ca36f53 Binary files /dev/null and b/zh-cn/application-dev/reference/arkui-ts/figures/datePickerLightUp2.png differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/textInputSpherical1.png b/zh-cn/application-dev/reference/arkui-ts/figures/textInputSpherical1.png new file mode 100644 index 0000000000000000000000000000000000000000..f74c71cb969043be9633db7a9992c68b1be6d184 Binary files /dev/null and b/zh-cn/application-dev/reference/arkui-ts/figures/textInputSpherical1.png differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/textInputSpherical2.png b/zh-cn/application-dev/reference/arkui-ts/figures/textInputSpherical2.png new file mode 100644 index 0000000000000000000000000000000000000000..b4c67f4f18c92adc7a7f9e78d3935ba2c60da40a Binary files /dev/null and b/zh-cn/application-dev/reference/arkui-ts/figures/textInputSpherical2.png differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/textLightUp1.png b/zh-cn/application-dev/reference/arkui-ts/figures/textLightUp1.png new file mode 100644 index 0000000000000000000000000000000000000000..d696e61fa669c6592e260e3ad0f3206e2cf45074 Binary files /dev/null and b/zh-cn/application-dev/reference/arkui-ts/figures/textLightUp1.png differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/textLightUp2.png b/zh-cn/application-dev/reference/arkui-ts/figures/textLightUp2.png new file mode 100644 index 0000000000000000000000000000000000000000..8674b8af58468eec28e065311b610c290265d882 Binary files /dev/null and b/zh-cn/application-dev/reference/arkui-ts/figures/textLightUp2.png differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/textLightUp3.png b/zh-cn/application-dev/reference/arkui-ts/figures/textLightUp3.png new file mode 100644 index 0000000000000000000000000000000000000000..d22967a38886f445e189451aae173edb2455c478 Binary files /dev/null and b/zh-cn/application-dev/reference/arkui-ts/figures/textLightUp3.png differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/textPixelStretch1.png b/zh-cn/application-dev/reference/arkui-ts/figures/textPixelStretch1.png new file mode 100644 index 0000000000000000000000000000000000000000..bcf4db606d9e10ef6c418474bbaedae96c232436 Binary files /dev/null and b/zh-cn/application-dev/reference/arkui-ts/figures/textPixelStretch1.png differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/textPixelStretch2.png b/zh-cn/application-dev/reference/arkui-ts/figures/textPixelStretch2.png new file mode 100644 index 0000000000000000000000000000000000000000..aca08823440ca1fb14ca9a681c625ed4e392154f Binary files /dev/null and b/zh-cn/application-dev/reference/arkui-ts/figures/textPixelStretch2.png differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/textPixelStretch3.png b/zh-cn/application-dev/reference/arkui-ts/figures/textPixelStretch3.png new file mode 100644 index 0000000000000000000000000000000000000000..418870d8dce2b5a7c492bdc26193894a57b9b66d Binary files /dev/null and b/zh-cn/application-dev/reference/arkui-ts/figures/textPixelStretch3.png differ diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-animatorproperty.md b/zh-cn/application-dev/reference/arkui-ts/ts-animatorproperty.md index bbb5191e854d930d31603463d6ddfa9ec49a89be..4a3f72bfb5d05206e9370adc6c1449de15c24bbe 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-animatorproperty.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-animatorproperty.md @@ -14,13 +14,13 @@ animation(value: {duration?: number, tempo?: number, curve?: string | Curve | IC | 名称 | 参数类型 | 必填 | 描述 | | ---------- | ------------------------------------------| ---- | ------------------------------------------------------------ | -| duration | number | 否 | 设置动画时长。单位为毫秒,默认动画时长为1000毫秒。
默认值:1000
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
- 在ArkTS卡片上最大动画持续时间为1000毫秒,若超出则固定为1000毫秒。 | -| tempo | number | 否 | 动画播放速度。数值越大,动画播放速度越快,数值越小,播放速度越慢
值为0时,表示不存在动画。
默认值:1 | +| duration | number | 否 | 设置动画时长。
默认值:1000
单位:毫秒
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
- 在ArkTS卡片上最大动画持续时间为1000毫秒。
- 设置小于1的值时按0处理。
- 设置浮点型类型的值时,向下取整;设置值为1.2,按照1处理。 | +| tempo | number | 否 | 动画播放速度。数值越大,动画播放速度越快,数值越小,播放速度越慢。
值为0时,表示不存在动画。
默认值:1
**说明:**
当设置小于1的值时按值为1处理。 | | curve | string \| [Curve](ts-appendix-enums.md#curve) \| ICurve9+ | 否 | 设置动画曲线。默认曲线为线性。
默认值:Curve.Linear
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| delay | number | 否 | 设置动画延迟执行的时长。单位为毫秒,默认不延时播放。
默认值:0 | -| iterations | number | 否 | 设置播放次数。默认播放一次,设置为-1时表示无限次播放。
默认值:1 | +| delay | number | 否 | 设置动画延迟执行的时长。单位为毫秒,默认不延时播放。
默认值:0
取值范围:[0, +∞)
**说明:**
当设置的值小于1时按0处理。设置浮点型类型的值时,向下取整。例如,设置值为1.2,按照1处理。 | +| iterations | number | 否 | 设置播放次数。
默认值:1
取值范围:[-1, +∞)
**说明:**
设置为-1时表示无限次播放。设置为0时表示无动画效果。 | | playMode | [PlayMode](ts-appendix-enums.md#playmode) | 否 | 设置动画播放模式,默认播放完成后重头开始播放。
默认值:PlayMode.Normal
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| onFinish | () => void | 否 | 状态回调,动画播放完成时触发。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| onFinish | () => void | 否 | 状态回调,动画播放完成时触发。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
当iterations设置为-1时,动画效果无限循环不会停止,所以不会触发此回调。 | ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-appendix-enums.md b/zh-cn/application-dev/reference/arkui-ts/ts-appendix-enums.md index 3499fee45a2451580bc49f5e657bb529d62ef613..ffb0167d050e18a7deefb55d0a14f91f5945ddfa 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-appendix-enums.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-appendix-enums.md @@ -237,8 +237,8 @@ | 名称 | 描述 | | ------ | -------------------------------------------------- | | All | 指定当前的Transition动效生效在组件的所有变化场景。 | -| Insert | 指定当前的Transition动效生效在组件的插入场景。 | -| Delete | 指定当前的Transition动效生效在组件的删除场景。 | +| Insert | 指定当前的Transition动效生效在组件的插入显示场景。 | +| Delete | 指定当前的Transition动效生效在组件的删除隐藏场景。 | ## RelateType @@ -311,7 +311,7 @@ | Start | 元素在Flex容器中,交叉轴方向首部对齐。 | | Center | 元素在Flex容器中,交叉轴方向居中对齐。 | | End | 元素在Flex容器中,交叉轴方向底部对齐。 | -| Stretch | 元素在Flex容器中,交叉轴方向拉伸填充,在未设置尺寸时,拉伸到容器尺寸。 | +| Stretch | 元素在Flex容器中,交叉轴方向拉伸填充。容器为Flex且设置Wrap为FlexWrap.Wrap或FlexWrap.WrapReverse时,元素拉伸到与当前行/列交叉轴长度最长的元素尺寸。其余情况在元素未设置尺寸时,拉伸到容器尺寸。 | | Baseline | 元素在Flex容器中,交叉轴方向文本基线对齐。 | ## FlexDirection @@ -520,30 +520,30 @@ 该接口支持在ArkTS卡片中使用。 - | 名称 | 描述 | - | ------- | ---------- | - | Thin | 轻薄材质模糊。 | - | Regular | 普通厚度材质模糊。 | - | Thick | 厚材质模糊。 | - | BackgroundThin | 近距景深模糊。 | - | BackgroundRegular | 中距景深模糊。 | - | BackgroundThick | 远距景深模糊。 | - | BackgroundUltraThick | 超远距景深模糊。 | - +| 名称 | 描述 | +| ------- | ---------- | +| Thin | 轻薄材质模糊。 | +| Regular | 普通厚度材质模糊。 | +| Thick | 厚材质模糊。 | +| BackgroundThin | 近距景深模糊。 | +| BackgroundRegular | 中距景深模糊。 | +| BackgroundThick | 远距景深模糊。 | +| BackgroundUltraThick | 超远距景深模糊。 | + ## ThemeColorMode10+ - | 名称 | 描述 | - | ------- | ---------- | - | System | 跟随系统深浅色模式。 | - | Light | 固定使用浅色模式。 | - | Dark | 固定使用深色模式。 | +| 名称 | 描述 | +| ------- | ---------- | +| System | 跟随系统深浅色模式。 | +| Light | 固定使用浅色模式。 | +| Dark | 固定使用深色模式。 | ## AdaptiveColor10+ - | 名称 | 描述 | - | ------- | ----------- | - | Default | 不使用取色模糊。使用默认的颜色作为蒙版颜色。 | - | Average | 使用取色模糊。将取色区域的颜色平均值作为蒙版颜色。 | +| 名称 | 描述 | +| ------- | ----------- | +| Default | 不使用取色模糊。使用默认的颜色作为蒙版颜色。 | +| Average | 使用取色模糊。将取色区域的颜色平均值作为蒙版颜色。 | ## TextHeightAdaptivePolicy10+ diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-blank.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-blank.md index 16bb9d5c487dc9b47ef9302ce1a3ad9d8942f85c..891e3964deb2a69acc23c0b6811da9bb2c3dbe16 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-blank.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-blank.md @@ -22,7 +22,7 @@ Blank(min?: number | string) | 参数名 | 参数类型 | 必填 | 参数描述 | | -------- | -------- | -------- | -------- | -| min | number \| string | 否 | 空白填充组件在容器主轴上的最小大小。
默认值:0 | +| min | number \| string | 否 | 空白填充组件在容器主轴上的最小大小。
默认值:0
**说明:**
不支持设置百分比。负值使用默认值。当最小值大于容器可用空间时,使用最小值作为自身大小并超出容器。 | ## 属性 @@ -30,10 +30,14 @@ Blank(min?: number | string) | 名称 | 参数类型 | 描述 | | -------- | -------- | -------- | -| color | [ResourceColor](ts-types.md#resourcecolor) | 设置空白填充的填充颜色。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| color | [ResourceColor](ts-types.md#resourcecolor) | 设置空白填充的填充颜色。

默认值:Color.Transparent
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +## 事件 + +支持[通用事件](ts-universal-events-click.md)。 ## 示例 + ### 示例1 Blank组件在横竖屏占满空余空间效果。 ```ts 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 4bda014092441bbc03c7663b8733af948a8f01dd..ca748359ecfedfdccc02d7de409cd925cd765282 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 @@ -23,7 +23,7 @@ | 参数名 | 参数类型 | 必填 | 参数描述 | | ----------- | ---------- | ------| --------------------------------- | | type | ButtonType | 否 | 描述按钮显示样式。
默认值:ButtonType.Capsule | -| stateEffect | boolean | 否 | 按钮按下时是否开启按压态显示效果,当设置为false时,按压效果关闭。
默认值:true | +| stateEffect | boolean | 否 | 按钮按下时是否开启按压态显示效果,当设置为false时,按压效果关闭。
默认值:true
**说明:**
当开启按压态显示效果,开发者设置状态样式时,会基于状态样式设置完成后的背景色再进行颜色叠加。 | **方法2:** Button(label?: ResourceStr, options?: { type?: ButtonType, stateEffect?: boolean }) @@ -35,12 +35,13 @@ | 参数名 | 参数类型 | 必填 | 参数描述 | | ------- | ----------------------------------- | ---- | ------------- | -| label | [ResourceStr](ts-types.md#resourcestr) | 否 | 按钮文本内容。 | +| label | [ResourceStr](ts-types.md#resourcestr) | 否 | 按钮文本内容。 | | options | { type?: ButtonType, stateEffect?: boolean } | 否 | 见方法1参数说明。 | - ## 属性 +除支持[通用属性](ts-universal-attributes-size.md)外,还支持以下属性: + | 名称 | 参数类型 | 描述 | | ----------- | ----------- | --------------------------------- | | type | ButtonType | 设置Button样式。
默认值:ButtonType.Capsule
从API version 9开始,该接口支持在ArkTS卡片中使用。 | @@ -74,7 +75,9 @@ | maxFontSize | number \| [ResourceStr](ts-types.md#resourcestr) | 否 | 设置Label文本最大显示字号。需配合minFontSize以及maxLines或布局大小限制使用。 | | heightAdaptivePolicy | [TextHeightAdaptivePolicy](ts-appendix-enums.md#TextHeightAdaptivePolicy10) | 否 | 设置Label文本自适应高度的方式。 | | font | [Font](ts-types.md#Font) | 否 | 设置Label文本字体样式。 | +## 事件 +支持[通用事件](ts-universal-events-click.md)。 ## 示例 ```ts diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-checkbox.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-checkbox.md index 01b8ce500a3caceea95776ef87595172ec3b10a5..1a516dd67748cfb992494ff59ce149b982bc3828 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-checkbox.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-checkbox.md @@ -21,7 +21,7 @@ Checkbox(options?: {name?: string, group?: string }) | 参数名 | 参数类型 | 必填 | 参数描述 | | --------| --------| ------ | -------- | | name | string | 否 | 多选框名称。 | -| group | string | 否 | 多选框的群组名称。 | +| group | string | 否 | 多选框的群组名称。
**说明:**
未配合使用CheckboxGroup组件时,此值无用。 | ## 属性 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-checkboxgroup.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-checkboxgroup.md index 268220ca45dcc88c2dec31e44e67a85e757f6801..3358043333bb34ad64e4f9418811671816a1135d 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-checkboxgroup.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-checkboxgroup.md @@ -30,7 +30,7 @@ CheckboxGroup(options?: { group?: string }) | 名称 | 参数类型 | 描述 | | -------- | -------- | -------- | -| selectAll | boolean | 设置是否全选。
默认值:false,若同组的Checkbox显式设置select,则Checkbox的优先级高。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| selectAll | boolean | 设置是否全选。
默认值:false,若同组的[Checkbox](ts-basic-components-checkbox.md)设置了select属性,则Checkbox的优先级高。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
若同组的[Checkbox](ts-basic-components-checkbox.md)显式设置了select属性,则Checkbox的优先级高。 | | selectedColor | [ResourceColor](ts-types.md#resourcecolor) | 设置被选中或部分选中状态的颜色。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | unselectedColor10+ | [ResourceColor](ts-types.md#resourcecolor) | 设置非选中状态边框颜色。 | | mark10+ | [MarkStyle](#markstyle10对象说明) | 多选框内部图标样式。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-datepicker.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-datepicker.md index e6014899129f494107508b7e9374a5864692d9d1..0b161e3976cb3be23829e420f1f2f8c2d3bdeb07 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-datepicker.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-datepicker.md @@ -1,6 +1,6 @@ # DatePicker -选择日期的滑动选择器组件 +日期选择器组件,用于根据指定日期范围创建日期滑动选择器。 > **说明:** > @@ -26,9 +26,10 @@ DatePicker(options?: {start?: Date, end?: Date, selected?: Date}) | end | Date | 否 | 指定选择器的结束日期。
默认值:Date('2100-12-31') | | selected | Date | 否 | 设置选中项的日期。
默认值:当前系统日期 | - ## 属性 +除支持[通用属性](ts-universal-attributes-size.md)外,还支持以下属性: + | 名称 | 参数类型 | 描述 | | ------| -------------- | -------- | | lunar | boolean | 日期是否显示农历。
- true:展示农历。
- false:不展示农历。
默认值:false | @@ -45,6 +46,8 @@ DatePicker(options?: {start?: Date, end?: Date, selected?: Date}) ## 事件 +除支持[通用事件](ts-universal-events-click.md)外,还支持以下事件: + | 名称 | 功能描述 | | -------- | -------- | | onChange(callback: (value: DatePickerResult) => void) | 选择日期时触发该事件。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-divider.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-divider.md index edac89e88e2d77fdc39d7a838df4fd666fce36d7..7da2322a170b7cb5d93c45316cfe5bff3fffb22c 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-divider.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-divider.md @@ -25,8 +25,8 @@ Divider() | 名称 | 参数类型 | 描述 | | ----------- | ---------- | ------------------ | | vertical | boolean | 使用水平分割线还是垂直分割线。false:水平分割线;true:垂直分割线。
默认值:false
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| color | [ResourceColor](ts-types.md#resourcecolor) | 分割线颜色。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| strokeWidth | number \| string | 分割线宽度。
默认值:1
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
分割线的宽度不支持百分比设置。 | +| color | [ResourceColor](ts-types.md#resourcecolor) | 分割线颜色。
默认值:'\#33182431'
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| strokeWidth | number \| string | 分割线宽度。
默认值:1
单位:vp
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
分割线的宽度不支持百分比设置。优先级低于[通用属性height](ts-universal-attributes-size.md),超过通用属性设置大小时,按照通用属性进行裁切。 | | lineCap | [LineCapStyle](ts-appendix-enums.md#linecapstyle) | 分割线的端点样式。
默认值:LineCapStyle.Butt
从API version 9开始,该接口支持在ArkTS卡片中使用。 | 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 c43cdc2d4abec8e72c858d517a5dbb988e21b2ae..178c95ff9f2f3515d59ae425d5b1a8dfaa131ffa 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 @@ -17,9 +17,10 @@ ImageAnimator() - ## 属性 +除支持[通用属性](ts-universal-attributes-size.md)外,还支持以下属性: + | 参数名称 | 参数类型 |参数描述 | | ---------- | ----------------------- |-------- | | images | Array<[ImageFrameInfo](#imageframeinfo对象说明)> | 设置图片帧信息集合。每一帧的帧信息(ImageFrameInfo)包含图片路径、图片大小、图片位置和图片播放时长信息,详见ImageFrameInfo属性说明。
默认值:[]
**说明:**
不支持动态更新。 | @@ -42,9 +43,10 @@ ImageAnimator() | left | number \| string | 否 | 图片相对于组件左上角的横向坐标。
默认值:0 | | duration | number | 否 | 每一帧图片的播放时长,单位毫秒。
默认值:0 | - ## 事件 +除支持[通用事件](ts-universal-events-click.md)外,还支持以下事件: + | 名称 | 功能描述 | | -------- | -------- | | onStart(event: () => void) | 状态回调,动画开始播放时触发。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navdestination.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navdestination.md index 49669a8f1be61875c2538ee030347e2edb559ea4..fbf7ae3f0aa68377a1b690e9daf8365b14bb469c 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navdestination.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navdestination.md @@ -9,7 +9,10 @@ ## 子组件 -可以包含子组件。 +> **说明:** +> +> - 子组件类型:系统组件和自定义组件,支持渲染控制类型([if/else](../../quick-start/arkts-rendering-control.md#条件渲染)、[ForEach](../../quick-start/arkts-rendering-control.md#循环渲染)和[LazyForEach](../../quick-start/arkts-rendering-control.md#数据懒加载))。 +> - 子组件个数:多个。 ## 接口 @@ -21,7 +24,11 @@ NavDestination() 仅支持[backgroundColor](ts-universal-attributes-background.md)通用属性。 -| 名称 | 参数类型 | 描述 | -| -------------- | ---------------------------------------- | ---------------------------------------- | -| title | string \| [CustomBuilder](ts-types.md#custombuilder8) \| [NavigationCommonTitle](ts-basic-components-navigation.md#navigationcommontitle类型说明) \| [NavigationCustomTitle](ts-basic-components-navigation.md##navigationcustomtitle类型说明) | 页面标题。 | -| hideTitleBar | boolean | 是否显示标题栏。
默认值:false
true: 隐藏标题栏。
false: 显示标题栏。 | \ No newline at end of file +| 名称 | 参数类型 | 描述 | +| ------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| title | string \| [CustomBuilder](ts-types.md#custombuilder8) \| [NavigationCommonTitle](ts-basic-components-navigation.md#navigationcommontitle类型说明) \| [NavigationCustomTitle](ts-basic-components-navigation.md##navigationcustomtitle类型说明) | 页面标题。
**说明:**
使用NavigationCustomTitle类型设置height高度时,titleMode属性不会生效。
字符串超长时,如果不设置副标题,先缩小再换行2行后以...截断。如果设置副标题,先缩小后以...截断。 | +| hideTitleBar | boolean | 是否显示标题栏。
默认值:false
true: 隐藏标题栏。
false: 显示标题栏。 | + +## 事件 + +支持[通用事件](ts-universal-events-click.md)。 \ No newline at end of file diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navigation.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navigation.md index 3536aeae51d9066d6786b74548b4f768ebf3fe92..291a5286577e8cb34b7be7a3f0255bbf7adcf40e 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navigation.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navigation.md @@ -23,17 +23,17 @@ Navigation() | 名称 | 参数类型 | 描述 | | -------------- | ---------------------------------------- | ---------------------------------------- | -| title | [ResourceStr](ts-types.md#resourcestr)10+ \| [CustomBuilder](ts-types.md#custombuilder8)8+ \| [NavigationCommonTitle](#navigationcommontitle类型说明)9+ \| [NavigationCustomTitle](#navigationcustomtitle类型说明)9+ | 页面标题。 | -| subTitledeprecated | string | 页面副标题。从API Version 9开始废弃,建议使用title代替。 | -| menus | Array<[NavigationMenuItem](#navigationmenuitem类型说明)> \| [CustomBuilder](ts-types.md#custombuilder8)8+ | 页面右上角菜单。使用Array<[NavigationMenuItem](#navigationmenuitem类型说明)> 写法时,竖屏最多支持显示3个图标,横屏最多支持显示5个图标,多余的图标会被放入自动生成的更多图标。 | +| title | [ResourceStr](ts-types.md#resourcestr)10+ \| [CustomBuilder](ts-types.md#custombuilder8)8+ \| [NavigationCommonTitle](#navigationcommontitle类型说明)9+ \| [NavigationCustomTitle](#navigationcustomtitle类型说明)9+ | 页面标题。
**说明:**
使用NavigationCustomTitle类型设置height高度时,titleMode属性不会生效。
字符串超长时,如果不设置副标题,先缩小再换行(2行)最后...截断。如果设置副标题,先缩小最后...截断。 | +| subTitledeprecated | string | 页面副标题。不设置时不显示副标题。从API Version 9开始废弃,建议使用title代替。 | +| menus | Array<[NavigationMenuItem](#navigationmenuitem类型说明)> \| [CustomBuilder](ts-types.md#custombuilder8)8+ | 页面右上角菜单。不设置时不显示菜单项。使用Array<[NavigationMenuItem](#navigationmenuitem类型说明)> 写法时,竖屏最多支持显示3个图标,横屏最多支持显示5个图标,多余的图标会被放入自动生成的更多图标。 | | titleMode | [NavigationTitleMode](#navigationtitlemode枚举说明) | 页面标题栏显示模式。
默认值:NavigationTitleMode.Free | -| toolBar | [object](#object类型说明) \| [CustomBuilder](ts-types.md#custombuilder8)8+ | 设置工具栏内容。
items: 工具栏所有项。 | +| toolBar | [object](#object类型说明) \| [CustomBuilder](ts-types.md#custombuilder8)8+ | 设置工具栏内容。不设置时不显示工具栏。
items: 工具栏所有项。
**说明:**
items均分底部工具栏,在每个均分内容区布局文本和图标,文本超长时,逐级缩小,缩小之后换行,最后...截断。 | | hideToolBar | boolean | 隐藏工具栏。
默认值:false
true: 隐藏工具栏。
false: 显示工具栏。 | | hideTitleBar | boolean | 隐藏标题栏。
默认值:false
true: 隐藏标题栏。
false: 显示标题栏。 | -| hideBackButton | boolean | 隐藏返回键。
默认值:false
true: 隐藏返回键。
false: 显示返回键。 |不支持隐藏NavDestination组件标题栏中的返回图标。| -| navBarWidth9+ | [Length](ts-types.md#length) | 导航栏宽度。
默认值:200vp | -| navBarPosition9+ | [NavBarPosition](#navbarposition枚举说明) | 导航栏位置。
默认值:NavBarPosition.Start | -| mode9+ | [NavigationMode](#navigationmode枚举说明) | 导航栏的显示模式。
默认值:NavigationMode.Auto | +| hideBackButton | boolean | 隐藏返回键。
默认值:false
true: 隐藏返回键。
false: 显示返回键。
不支持隐藏NavDestination组件标题栏中的返回图标。
**说明:**
返回键键仅针对titleMode为NavigationTitleMode.Mini时才生效。 | +| navBarWidth9+ | [Length](ts-types.md#length) | 导航栏宽度。
默认值:200
单位:vp
**说明:**
仅在Navigation组件分栏时生效。 | +| navBarPosition9+ | [NavBarPosition](#navbarposition枚举说明) | 导航栏位置。
默认值:NavBarPosition.Start
**说明:**
仅在Navigation组件分栏时生效。 | +| mode9+ | [NavigationMode](#navigationmode枚举说明) | 导航栏的显示模式。
默认值:NavigationMode.Auto
自适应:基于组件宽度自适应单栏和双栏。 | | backButtonIcon9+ | string \| [PixelMap](../apis/js-apis-image.md#pixelmap7) \| [Resource](ts-types.md#resource) | 设置导航栏返回图标。不支持隐藏NavDestination组件标题栏中的返回图标。| | hideNavBar9+ | boolean | 是否显示导航栏(仅在mode为NavigationMode.Split时生效)。 | 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 162f15f8f3645a41808ef0ad7dfca5a20077aa87..4bbe47093ab9d614d64d21544cc43d6ca90f0de2 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 @@ -10,6 +10,14 @@ 必须包含两个子组件,其中第二个子组件必须为[NavDestination](ts-basic-components-navdestination.md)。 +> **说明:** +> +> 子组件个数异常时: +> 1. 有且仅有1个时,触发路由到NavDestination的能力失效。 +> 2. 有且仅有1个时,且使用NavDestination场景下,不进行路由。 +> 3. 大于2个时,后续的子组件不显示。 +> 4. 第二个子组件不为NavDestination时,触发路由功能失效。 + ## 接口 NavRouter() @@ -17,9 +25,9 @@ NavRouter() ## 事件 -| 名称 | 功能描述 | -| ---------------------------------------- | ---------------------------------------- | -| onStateChange(callback: (isActivated: boolean) => void) | 组件激活状态切换时触发该回调。返回值isActivated为true时表示激活,为false时表示未激活。
**说明:** 用户点击NavRouter,激活NavRouter,加载对应的NavDestination子组件时,回调onStateChange(true);NavRouter对应的NavDestination子组件不再显示时,回调onStateChange(false)。 | +| 名称 | 功能描述 | +| ------------------------------------------------------- | ------------------------------------------------------------ | +| onStateChange(callback: (isActivated: boolean) => void) | 组件激活状态切换时触发该回调。返回值isActivated为true时表示激活,为false时表示未激活。
**说明:**
开发者点击激活NavRouter,加载对应的NavDestination子组件时,回调onStateChange(true)。NavRouter对应的NavDestination子组件不再显示时,回调onStateChange(false)。 | ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-plugincomponent.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-plugincomponent.md index f4d92ad423e1a47497d5673b2ce8dea3a587f09d..2a947a983a64ce376f584f02a2c287b1a781cc6e 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-plugincomponent.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-plugincomponent.md @@ -31,9 +31,16 @@ PluginComponent(value: { template: PluginComponentTemplate, data: KVObject}) | source | string | 组件模板名。 | | bundleName | string | 提供者Ability的bundleName。 | +## 属性 + +除支持[通用属性size](ts-universal-attributes-size.md),且必须设置size。 ## 事件 +仅支持[手势事件](ts-gesture-settings.md)分发给提供方页面,并在提供方页面内部处理。 + +除支持[通用事件](ts-universal-events-click.md),还支持以下事件: + | 名称 | 功能描述 | | ------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- | | onComplete(callback: () => void) | 组件加载完成回调。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-progress.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-progress.md index 69b6d182ffbf5d3bea4e4f47d6163c4ecf0109ca..11107f9c944bd327916d74bab34354dd058a95db 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-progress.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-progress.md @@ -55,13 +55,18 @@ Progress(options: {value: number, total?: number, type?: ProgressType}) ## 属性 +除支持[通用属性](ts-universal-attributes-size.md)外,还支持以下属性: + | 名称 | 参数类型 | 描述 | | -------- | -------- | -------- | | value | number | 设置当前进度值。设置小于0的数值时置为0,设置大于total的数值时置为total。非法数值不生效。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| color | [ResourceColor](ts-types.md#resourcecolor) | 设置进度条前景色。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| backgroundColor | [ResourceColor](ts-types.md#resourcecolor) | 设置进度条底色。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| color | [ResourceColor](ts-types.md#resourcecolor) | 设置进度条前景色。
默认值:'\#ff007dff'
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| backgroundColor | [ResourceColor](ts-types.md#resourcecolor) | 设置进度条底色。
默认值:'\#19182431'

从API version 9开始,该接口支持在ArkTS卡片中使用。 | | style8+ | {
strokeWidth?: [Length](ts-types.md#length),
scaleCount?: number,
scaleWidth?: [Length](ts-types.md#length)
} | 定义组件的样式。
- strokeWidth: 设置进度条宽度(不支持百分比设置)。从API version9开始,环形进度条设置宽度大于等于半径时,默认修改宽度至半径值的二分之一。
默认值:4.0Vp
- scaleCount: 设置环形进度条总刻度数。
默认值:120
- scaleWidth: 设置环形进度条刻度粗细(不支持百分比设置),刻度粗细大于进度条宽度时,为系统默认粗细。
默认值:2.0Vp
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +## 事件 + +支持[通用事件](ts-universal-events-click.md)。 ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-radio.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-radio.md index 8710fe0d03bf9c05568e5690ed074a90e4f3be61..b9438839f0e0d154be97d214fa97d63ce5a29107 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-radio.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-radio.md @@ -31,7 +31,7 @@ Radio(options: {value: string, group: string}) | 名称 | 参数类型 | 描述 | | -------- | -------- | -------- | -| checked | boolean | 设置单选框的选中状态。
默认值:false
从API version 9开始,该接口支持在ArkTS卡片中使用。| +| checked | boolean | 设置单选框的选中状态。
默认值:false
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | radioStyle10+ | [RadioStyle](#radiostyle对象说明) | 设置单选框选中状态和非选中状态的样式。
从API version 10开始,该接口支持在ArkTS组件中使用。| ## 事件 @@ -40,7 +40,7 @@ Radio(options: {value: string, group: string}) | 名称 | 功能描述 | | -------- | -------- | -| onChange(callback: (isChecked: boolean) => void) | 单选框选中状态改变时触发回调。
-isChecked为true时,代表选中。
-isChecked为false时,代表未选中。
从API version 9开始,该接口支持在ArkTS卡片中使用。| +| onChange(callback: (isChecked: boolean) => void) | 单选框选中状态改变时触发回调。
- isChecked为true时,表示从未选中变为选中。
- isChecked为false时,表示从选中变为未选中。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | ## RadioStyle对象说明 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 4eb14ade0656357c208feff8d0cd7e0b9d8a0f6b..5805ebdc0642cc7d873fab4cc32f2d992a11cf91 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 @@ -22,17 +22,23 @@ Rating(options?: { rating: number, indicator?: boolean }) | 参数名 | 参数类型 | 必填 | 参数描述 | | -------- | -------- | -------- | -------- | -| rating | number | 是 | 设置并接收评分值。
默认值:0 | -| indicator | boolean | 否 | 设置评分组件作为指示器使用,不可改变评分。
默认值:false, 可进行评分 | +| rating | number | 是 | 设置并接收评分值。
默认值:0
取值范围: [0, stars]
小于0取0,大于stars取最大值stars。 | +| indicator | boolean | 否 | 设置评分组件作为指示器使用,不可改变评分。
默认值:false, 可进行评分
**说明:**
indicator=true时,默认组件高度height=12.0vp,组件width=height*stars。
indicator=false时,默认组件高度height=28.0vp,组件width=height*stars。 | ## 属性 | 名称 | 参数类型 | 描述 | | -------- | -------- | -------- | -| stars | number | 设置评星总数。
默认值:5
从API version 9开始,该接口支持在ArkTS卡片中使用。| -| stepSize | number | 操作评级的步长。
默认值:0.5
从API version 9开始,该接口支持在ArkTS卡片中使用。| -| starStyle | {
backgroundUri: string,
foregroundUri: string,
secondaryUri?: string
} | backgroundUri:未选中的星级的图片链接,可由用户自定义或使用系统默认图片。
foregroundUri:选中的星级的图片路径,可由用户自定义或使用系统默认图片。
secondaryUir:部分选中的星级的图片路径,可由用户自定义或使用系统默认图片。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
startStyle属性所支持的图片类型能力参考[Image](ts-basic-components-image.md)组件。
支持加载本地图片和网络图片,暂不支持PixelMap类型和Resource资源。
默认图片加载方式为异步,暂不支持同步加载。 | +| stars | number | 设置评分总数。
默认值:5
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
设置为小于0的值时,按默认值显示。 | +| stepSize | number | 操作评级的步长。
默认值:0.5
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
设置为小于0的值时,按默认值显示。
取值范围为[0.1, stars]。 | +| starStyle | {
backgroundUri: string,
foregroundUri: string,
secondaryUri?: string
} | backgroundUri:未选中的星级的图片链接,可由用户自定义或使用系统默认图片。
foregroundUri:选中的星级的图片路径,可由用户自定义或使用系统默认图片。
secondaryUir:部分选中的星级的图片路径,可由用户自定义或使用系统默认图片。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
startStyle属性所支持的图片类型能力参考[Image](ts-basic-components-image.md)组件。
支持加载本地图片和网络图片,暂不支持PixelMap类型和Resource资源。
默认图片加载方式为异步,暂不支持同步加载。
设置值为undefined或者空字符串时,rating会选择加载系统默认星型图源。 | + +> **说明:** +> +> rating宽高为[width, height]时,单个图片的绘制区域为[width / stars, height]。 +> +> 为了指定绘制区域为方形,建议自定义宽高时采取[height * stars, height], width = height * stars的方式。 ## 事件 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 77185a29a95553779eb45351b086d1944d53e95f..504e2cde4f47a553f302dd77f54155121b2cefd1 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 @@ -5,7 +5,7 @@ > **说明:** > > 该组件从API Version 8开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 - +> 使用该组件时请设置高度值。 ## 子组件 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 15bd20e2b654a836681490f2ff6bd6b18fb4c2c4..c49bc417980663ecf354c8569ae6f7b0a2b0d53c 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 @@ -31,8 +31,8 @@ Search(options?: { value?: string; placeholder?: ResourceStr; icon?: string; con | ----------------------- | ------------------------------------------------ | ---------------------------------------------- | | searchButton10+ | value: string,
option?: [SearchButtonOption](#searchbuttonoption10对象说明) | 搜索框末尾搜索按钮文本内容,默认无搜索按钮。 | | placeholderColor | [ResourceColor](ts-types.md#resourcecolor) | 设置placeholder文本颜色。 | -| placeholderFont | [Font](ts-types.md#font) | 设置placeholder文本样式。 | -| textFont | [Font](ts-types.md#font) | 设置搜索框内输入文本样式。 | +| placeholderFont | [Font](ts-types.md#font) | 设置placeholder文本样式,包括字体大小,字体粗细,字体族,字体风格。目前仅支持默认字体族。 | +| textFont | [Font](ts-types.md#font) | 设置搜索框内输入文本样式,包括字体大小,字体粗细,字体族,字体风格。目前仅支持默认字体族。 | | textAlign | [TextAlign](ts-appendix-enums.md#textalign) | 设置文本在搜索框中的对齐方式。
默认值:TextAlign.Start | | copyOption9+ | [CopyOptions](ts-appendix-enums.md#copyoptions9) | 设置输入的文本是否可复制。 | | searchIcon10+ | [IconOptions](#iconoptions10对象说明) | 设置左侧搜索图标样式。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md index 6f8df5055fb91666b7d05219d38c0676f2fc4312..d1a5a97d999faa05df7d5ab6c97a22d46b4b67c6 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md @@ -23,20 +23,22 @@ Select(options: Array\<[SelectOption](#selectoption对象说明)\>) ## 属性 +除支持[通用属性](ts-universal-attributes-size.md)外,还支持以下属性: + | 名称 | 参数类型 | 描述 | | ----------------------- | ------------------------------------- | --------------------------------------------- | | selected | number | 设置下拉菜单初始选项的索引,第一项的索引为0。
当不设置selected属性时,默认选择值为-1,菜单项不选中。 | -| value | string | 设置下拉按钮本身的文本内容。 | -| font | [Font](ts-types.md#font) | 设置下拉按钮本身的文本样式。 | -| fontColor | [ResourceColor](ts-types.md#resourcecolor) | 设置下拉按钮本身的文本颜色。 | -| selectedOptionBgColor | [ResourceColor](ts-types.md#resourcecolor) | 设置下拉菜单选中项的背景色。 | -| selectedOptionFont | [Font](ts-types.md#font) | 设置下拉菜单选中项的文本样式。 | -| selectedOptionFontColor | [ResourceColor](ts-types.md#resourcecolor) | 设置下拉菜单选中项的文本颜色。 | -| optionBgColor | [ResourceColor](ts-types.md#resourcecolor) | 设置下拉菜单项的背景色。 | -| optionFont | [Font](ts-types.md#font) | 设置下拉菜单项的文本样式。 | -| optionFontColor | [ResourceColor](ts-types.md#resourcecolor) | 设置下拉菜单项的文本颜色。 | -| space10+ | [Length](ts-types.md#length) | 设置下拉菜单项的文本与箭头之间的间距。 | -| arrowPosition10+ | [ArrowPosition](#arrowposition10枚举说明) | 设置下拉菜单项的文本与箭头之间的对齐方式。 | +| value | string | 设置下拉按钮本身的文本内容。当菜单选中时默认会替换为菜单项文本内容。 | +| font | [Font](ts-types.md#font) | 设置下拉按钮本身的文本样式。
默认值:
{
size: '16fp',
weight: FontWeight.Medium
} | +| fontColor | [ResourceColor](ts-types.md#resourcecolor) | 设置下拉按钮本身的文本颜色。
默认值:'\#E6FFFFFF' | +| selectedOptionBgColor | [ResourceColor](ts-types.md#resourcecolor) | 设置下拉菜单选中项的背景色。
默认值:'\#33007DFF' | +| selectedOptionFont | [Font](ts-types.md#font) | 设置下拉菜单选中项的文本样式。
默认值:
{
size: '16fp',
weight: FontWeight.Regular
} | +| selectedOptionFontColor | [ResourceColor](ts-types.md#resourcecolor) | 设置下拉菜单选中项的文本颜色。
默认值:'\#ff007dff' | +| optionBgColor | [ResourceColor](ts-types.md#resourcecolor) | 设置下拉菜单项的背景色。
默认值:'\#ffffffff' | +| optionFont | [Font](ts-types.md#font) | 设置下拉菜单项的文本样式。
默认值:
{
size: '16fp',
weight: FontWeight.Regular
} | +| optionFontColor | [ResourceColor](ts-types.md#resourcecolor) | 设置下拉菜单项的文本颜色。
默认值:'\#ff182431' | +| space10+ | [Length](ts-types.md#length) | 设置下拉菜单项的文本与箭头之间的间距。
**说明:**
不支持设置百分比。 | +| arrowPosition10+ | [ArrowPosition](#arrowposition10枚举说明) | 设置下拉菜单项的文本与箭头之间的对齐方式。
默认值:ArrowPosition.END | ## ArrowPosition10+枚举说明 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-slider.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-slider.md index 2c4a79ec2a63840ad18b5dd7cefc23cc049c2d06..a4cebaf37820492bc57e7883b4dd65e1f3083ced 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-slider.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-slider.md @@ -24,8 +24,8 @@ Slider(options?: {value?: number, min?: number, max?: number, step?: number, sty | -------- | -------- | -------- | -------- | | value | number | 否 | 当前进度值。
默认值:0 | | min | number | 否 | 设置最小值。
默认值:0 | -| max | number | 否 | 设置最大值。
默认值:100 | -| step | number | 否 | 设置Slider滑动步长。
默认值:1
取值范围:[0.01, max] | +| max | number | 否 | 设置最大值。
默认值:100
**说明:**
min >= max异常情况,min取默认值0,max取默认值100。
value不在[min, max]范围之内,取min/max,靠近min取min,靠近max取max。 | +| step | number | 否 | 设置Slider滑动步长。
默认值:1
取值范围:[0.01, max]
**说明:**
设置小于0或百分比的值时,按默认值显示。 | | style | [SliderStyle](#sliderstyle枚举说明) | 否 | 设置Slider的滑块与滑轨显示样式。
默认值:SliderStyle.OutSet | | direction8+ | [Axis](ts-appendix-enums.md#axis) | 否 | 设置滑动条滑动方向为水平或竖直方向。
默认值:Axis.Horizontal | | reverse8+ | boolean | 否 | 设置滑动条取值范围是否反向,横向Slider默认为从左往右滑动,竖向Slider默认为从上往下滑动。
默认值:false | @@ -39,9 +39,6 @@ Slider(options?: {value?: number, min?: number, max?: number, step?: number, sty | OutSet | 滑块在滑轨上。 | | InSet | 滑块在滑轨内。 | - -## 属性 - 支持除触摸热区以外的通用属性设置。 | 名称 | 参数类型 | 描述 | @@ -51,7 +48,7 @@ Slider(options?: {value?: number, min?: number, max?: number, step?: number, sty | selectedColor | [ResourceColor](ts-types.md#resourcecolor) | 设置滑轨的已滑动部分颜色。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | showSteps | boolean | 设置当前是否显示步长刻度值。
默认值:false
从API version 9开始,该接口支持在ArkTS卡片中使用。| | showTips | boolean | 设置滑动时是否显示百分比气泡提示。
默认值:false
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
当direction的属性值为Axis.Horizontal时,tip显示在滑块正上方。值为Axis.Vertical时,tip显示在滑块正左边。
tip的绘制区域为Slider自身节点的overlay。
Slider不设置边距,或者边距比较小时,tip会被截断。 | -| trackThickness | [Length](ts-types.md#length) | 设置滑轨的粗细。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| trackThickness | [Length](ts-types.md#length) | 设置滑轨的粗细。
默认值:当参数style的值设置[SliderStyle](#sliderstyle枚举说明).OutSet 时为 4.0vp,[SliderStyle](#sliderstyle枚举说明).InSet时为20.0vp
从APIversion9开始,该接口支持在ArkTS卡片中使用。
**说明:**
设置为小于0的值时,按默认值显示。 | | blockBorderColor10+ | [ResourceColor](ts-types.md#resourcecolor) | 设置滑块描边颜色。 | | blockBorderWidth10+ | [Length](ts-types.md#length) | 设置滑块描边粗细。 | | stepColor10+ | [ResourceColor](ts-types.md#resourcecolor) | 设置刻度颜色。 | 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 d65aeac8200cc0fc50057b7d929a6edce6d9c14c..1dbc2dd6ebb99eb8f2716566a8903edd002ee848 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 @@ -35,8 +35,8 @@ Text(content?: string | Resource) | maxLines | number | 设置文本的最大行数。
默认值:Infinity
**说明:**
默认情况下,文本是自动折行的,如果指定此参数,则文本最多不会超过指定的行。如果有多余的文本,可以通过 `textOverflow`来指定截断方式。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | lineHeight | string \| number \| [Resource](ts-types.md#resource) | 设置文本的文本行高,设置值不大于0时,不限制文本行高,自适应字体大小,Length为number类型时单位为fp。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | decoration | {
type: [TextDecorationType](ts-appendix-enums.md#textdecorationtype),
color?: [ResourceColor](ts-types.md#resourcecolor)
} | 设置文本装饰线样式及其颜色。
默认值:{
type: TextDecorationType.None,
color:Color.Black
}
从API version 9开始,该接口支持在ArkTS卡片中使用。| -| baselineOffset | number \| string | 设置文本基线的偏移量,默认值0。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| letterSpacing | number \| string | 设置文本字符间距。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| baselineOffset | number \| string | 设置文本基线的偏移量,默认值0。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
设置该值为百分比时,按默认值显示。 | +| letterSpacing | number \| string | 设置文本字符间距。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
设置该值为百分比时,按默认值显示。 | | minFontSize | number \| string \| [Resource](ts-types.md#resource) | 设置文本最小显示字号。
需配合maxFontSize以及maxline或布局大小限制使用,单独设置不生效。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | maxFontSize | number \| string \| [Resource](ts-types.md#resource) | 设置文本最大显示字号。
需配合minFontSize以及maxline或布局大小限制使用,单独设置不生效。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | textCase | [TextCase](ts-appendix-enums.md#textcase) | 设置文本大小写。
默认值:TextCase.Normal
从API version 9开始,该接口支持在ArkTS卡片中使用。| @@ -48,6 +48,10 @@ Text(content?: string | Resource) > > 不支持Text内同时存在文本内容和Span子组件。如果同时存在,只显示Span内的内容。 +## 事件 + +支持[通用事件](ts-universal-events-click.md)。 + ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textarea.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textarea.md index 8504a070bdc7cdb0499968822bdd30564c1d2a2e..422eba6537a786177e7c3dc612c5f2158db4d9fc 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textarea.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textarea.md @@ -20,8 +20,8 @@ TextArea(value?:{placeholder?: ResourceStr, text?: ResourceStr, controller?: Tex | 参数名 | 参数类型 | 必填 | 参数描述 | | ----------------------- | ---------------------------------------- | ---- | -------------- | -| placeholder | [ResourceStr](ts-types.md#resourcestr) | 否 | 设置无输入时的提示文本。 | -| text | [ResourceStr](ts-types.md#resourcestr) | 否 | 设置输入框当前的文本内容。 | +| placeholder | [ResourceStr](ts-types.md#resourcestr) | 否 | 设置无输入时的提示文本。输入内容后,提示文本不显示。 | +| text | [ResourceStr](ts-types.md#resourcestr) | 否 | 设置输入框当前的文本内容。
当组件设置[stateStyles](ts-universal-attributes-polymorphic-style.md)等刷新属性时,建议通过onChange事件将状态变量与文本实时绑定,
避免组件刷新时TextArea中的文本内容异常。 | | controller8+ | [TextAreaController](#textareacontroller8) | 否 | 设置TextArea控制器。 | @@ -29,18 +29,18 @@ TextArea(value?:{placeholder?: ResourceStr, text?: ResourceStr, controller?: Tex 除支持[通用属性](ts-universal-attributes-size.md)外,还支持以下属性: -| 名称 | 参数类型 | 描述 | -| ------------------------ | ---------------------------------------- | ---------------------------------------- | -| placeholderColor | [ResourceColor](ts-types.md#resourcecolor) | 设置placeholder文本颜色。 | -| placeholderFont | [Font](ts-types.md#font) | 设置placeholder文本样式。 | -| textAlign | [TextAlign](ts-appendix-enums.md#textalign) | 设置文本在输入框中的水平对齐式。
默认值:TextAlign.Start | -| caretColor | [ResourceColor](ts-types.md#resourcecolor) | 设置输入框光标颜色。 | +| 名称 | 参数类型 | 描述 | +| ------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| placeholderColor | [ResourceColor](ts-types.md#resourcecolor) | 设置placeholder文本颜色。 | +| placeholderFont | [Font](ts-types.md#font) | 设置placeholder文本样式,包括字体大小,字体粗细,字体族,字体风格。目前仅支持默认字体族。 | +| textAlign | [TextAlign](ts-appendix-enums.md#textalign) | 设置文本在输入框中的水平对齐式。
默认值:TextAlign.Start | +| caretColor | [ResourceColor](ts-types.md#resourcecolor) | 设置输入框光标颜色。 | | inputFilter8+ | {
value: [ResourceStr](ts-types.md#resourcestr),
error?: (value: string) => void
} | 通过正则表达式设置输入过滤器。匹配表达式的输入允许显示,不匹配的输入将被过滤。仅支持单个字符匹配,不支持字符串匹配。
- value:设置正则表达式。
- error:正则匹配失败时,返回被过滤的内容。 | -| copyOption9+ | [CopyOptions](ts-appendix-enums.md#copyoptions9) | 设置输入的文本是否可复制。
设置CopyOptions.None时,当前TextArea中的文字无法被复制或剪切,仅支持粘贴。 | +| copyOption9+ | [CopyOptions](ts-appendix-enums.md#copyoptions9) | 设置输入的文本是否可复制。
设置CopyOptions.None时,当前TextArea中的文字无法被复制或剪切,仅支持粘贴。 | > **说明:** > -> [通用属性padding](ts-universal-attributes-size.md)的默认值为:
{
 top: 8 vp,
 right: 16 vp,
 bottom: 16 vp,
 left: 8 vp
} +> [通用属性padding](ts-universal-attributes-size.md)的默认值为:
{
 top: 8 vp,
 right: 16 vp,
 bottom: 8 vp,
 left: 16 vp
} ## 事件 @@ -102,6 +102,7 @@ struct TextAreaExample { build() { Column() { TextArea({ + text: this.text, placeholder: 'The text area can hold an unlimited amount of text. input your word...', controller: this.controller }) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textinput.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textinput.md index 1572040765b11658f11b565929dccc4e909686e8..ffa80febf3417ef27c798b4e7d73c3b747e7d9a7 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textinput.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textinput.md @@ -21,7 +21,7 @@ TextInput(value?:{placeholder?: ResourceStr, text?: ResourceStr, controller?: Te | 参数名 | 参数类型 | 必填 | 参数描述 | | ----------------------- | ---------------------------------------- | ---- | --------------- | | placeholder | [ResourceStr](ts-types.md#resourcestr) | 否 | 设置无输入时的提示文本。 | -| text | [ResourceStr](ts-types.md#resourcestr) | 否 | 设置输入框当前的文本内容。 | +| text | [ResourceStr](ts-types.md#resourcestr) | 否 | 设置输入框当前的文本内容。
当组件设置[stateStyles](ts-universal-attributes-polymorphic-style.md)等刷新属性时,建议通过onChange事件将状态变量与文本实时绑定,
避免组件刷新时TextInput中的文本内容异常。 | | controller8+ | [TextInputController](#textinputcontroller8) | 否 | 设置TextInput控制器。 | @@ -34,7 +34,7 @@ TextInput(value?:{placeholder?: ResourceStr, text?: ResourceStr, controller?: Te | type | [InputType](#inputtype枚举说明) | 设置输入框类型。
默认值:InputType.Normal | | placeholderColor | [ResourceColor](ts-types.md#resourcecolor) | 设置placeholder文本颜色。| | placeholderFont | [Font](ts-types.md#font) | 设置placeholder文本样式。 | -| enterKeyType | [EnterKeyType](#enterkeytype枚举说明) | 设置输入法回车键类型,目前OpenHarmony输入法仅支持默认类型显示。
默认值:EnterKeyType.Done | +| enterKeyType | [EnterKeyType](#enterkeytype枚举说明) | 设置输入法回车键类型,目前仅支持默认类型显示。
默认值:EnterKeyType.Done | | caretColor | [ResourceColor](ts-types.md#resourcecolor) | 设置输入框光标颜色。 | | maxLength | number | 设置文本的最大输入字符数。 | | inputFilter8+ | {
value: [ResourceStr](ts-types.md#resourcestr),
error?: (value: string) => void
} | 正则表达式,匹配表达式的输入允许显示,不匹配的输入将被过滤。目前仅支持单个字符匹配,不支持字符串匹配。
- value:设置正则表达式。
- error:正则匹配失败时,返回被过滤的内容。 | @@ -48,7 +48,7 @@ TextInput(value?:{placeholder?: ResourceStr, text?: ResourceStr, controller?: Te > **说明:** > -> [通用属性padding](ts-universal-attributes-size.md)的默认值为:
{
 top: 8 vp,
 right: 16 vp,
 bottom: 16 vp,
 left: 8 vp
} +> [通用属性padding](ts-universal-attributes-size.md)的默认值为:
{
 top: 8 vp,
 right: 16 vp,
 bottom: 8 vp,
 left: 16 vp
} ## EnterKeyType枚举说明 @@ -65,8 +65,8 @@ TextInput(value?:{placeholder?: ResourceStr, text?: ResourceStr, controller?: Te | 名称 | 描述 | | ------------------ | ------------- | | Normal | 基本输入模式。
支持输入数字、字母、下划线、空格、特殊字符。 | -| Password | 密码输入模式。 | -| Email | 邮箱地址输入模式。 | +| Password | 密码输入模式。支持输入数字、字母、下划线、空格、特殊字符。密码显示小眼睛图标并且默认会将文字变成圆点。 | +| Email | 邮箱地址输入模式。支持数字,字母,下划线,以及@字符(只能存在一个@字符)。 | | Number | 纯数字输入模式。 | | PhoneNumber9+ | 电话号码输入模式。
支持输入数字、+ 、-、*、#,长度不限。 | @@ -83,10 +83,10 @@ TextInput(value?:{placeholder?: ResourceStr, text?: ResourceStr, controller?: Te | 名称 | 功能描述 | | ------------------------------------------------------------ | ------------------------------------------------------------ | -| onChange(callback: (value: string) => void) | 输入内容发生变化时,触发该回调。
value:输入的文本内容。 | +| onChange(callback: (value: string) => void) | 输入内容发生变化时,触发该回调。
value:输入的文本内容。
触发该事件的条件:
1、键盘输入。
2、粘贴、剪切。
3、键盘快捷键Ctrl+v。 | | onSubmit(callback: (enterKey: EnterKeyType) => void) | 按下输入法回车键触发该回调,返回值为当前输入法回车键的类型。
enterKeyType:输入法回车键类型。具体类型见[EnterKeyType枚举说明](#enterkeytype枚举说明)。 | | onEditChanged(callback: (isEditing: boolean) => void)(deprecated) | 输入状态变化时,触发该回调。从API 8开始,建议使用onEditChange。 | -| onEditChange(callback: (isEditing: boolean) => void)8+ | 输入状态变化时,触发该回调。isEditing为true表示正在输入。 | +| onEditChange(callback: (isEditing: boolean) => void)8+ | 输入状态变化时,触发该回调。有光标时为编辑态,无光标时为非编辑态。isEditing为true表示正在输入。 | | onCopy(callback:(value: string) => void)8+ | 长按输入框内部区域弹出剪贴板后,点击剪切板复制按钮,触发该回调。
value:复制的文本内容。 | | onCut(callback:(value: string) => void)8+ | 长按输入框内部区域弹出剪贴板后,点击剪切板剪切按钮,触发该回调。
value:剪切的文本内容。 | | onPaste(callback:(value: string) => void)8+ | 长按输入框内部区域弹出剪贴板后,点击剪切板粘贴按钮,触发该回调。
value:粘贴的文本内容。 | @@ -135,7 +135,7 @@ struct TextInputExample { build() { Column() { - TextInput({ placeholder: 'input your word...', controller: this.controller }) + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) .placeholderColor(Color.Grey) .placeholderFont({ size: 14, weight: 400 }) .caretColor(Color.Blue) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textpicker.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textpicker.md index 69c483aeaa7422b8bd6e0746241c318d7a5593ed..9d0f54ed31280dd0ac07a94793a8653e953ef1f3 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textpicker.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textpicker.md @@ -35,6 +35,8 @@ TextPicker(options?: {range: string[]|Resource|TextPickerRangeContent[], selecte ## 属性 +除支持[通用属性](ts-universal-attributes-size.md)外,还支持以下属性: + | 名称 | 参数类型 | 描述 | | -------- | -------- | -------- | | defaultPickerItemHeight | number \| string | 设置Picker各选择项的高度。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-timepicker.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-timepicker.md index 48e5f172f67d70f7d93c86cb4b93208a81b3bf92..0260d6ac8720c54fc7d42139b9478604ed8f14fb 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-timepicker.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-timepicker.md @@ -1,6 +1,6 @@ # TimePicker -滑动选择时间的组件。 +时间选择组件,根据指定参数创建选择器,支持选择小时及分钟。 > **说明:** > @@ -24,9 +24,10 @@ TimePicker(options?: {selected?: Date}) | -------- | -------- | -------- | -------- | | selected | Date | 否 | 设置选中项的时间。
默认值:当前系统时间 | - ## 属性 +除支持[通用属性](ts-universal-attributes-size.md)外,还支持以下属性: + | 名称 | 参数类型 | 描述 | | -------- | -------- | -------- | | useMilitaryTime | boolean | 展示时间是否为24小时制,不支持动态修改。
默认值:false | @@ -34,9 +35,10 @@ TimePicker(options?: {selected?: Date}) | textStyle10+ | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 设置所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细。 | | selectedTextStyle10+ | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 设置选中项的文本颜色、字号、字体粗细。 | - ## 事件 +除支持[通用事件](ts-universal-events-click.md)外,还支持以下事件: + | 名称 | 功能描述 | | ---------------------------------------- | ----------- | | onChange(callback: (value: TimePickerResult ) => void) | 选择时间时触发该事件。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-toggle.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-toggle.md index 5151fbeaa14167a3555b60803e823a5fd3f46bd4..949cd14f77d1311bc4b4bbc10c8e8a16baabe02d 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-toggle.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-toggle.md @@ -6,10 +6,6 @@ > > 该组件从API Version 8开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 - - - - ## 子组件 仅当ToggleType为Button时可包含子组件。 @@ -25,7 +21,7 @@ Toggle(options: { type: ToggleType, isOn?: boolean }) | 参数名 | 参数类型 | 必填 | 参数描述 | | ---- | ---------- | -----| -------------- | -| type | [ToggleType](#toggletype枚举说明) | 是 | 开关类型。 | +| type | [ToggleType](#toggletype枚举说明) | 是 | 开关的样式。 | | isOn | boolean | 否 | 开关是否打开,true:打开,false:关闭。
默认值:false | @@ -39,20 +35,22 @@ Toggle(options: { type: ToggleType, isOn?: boolean }) | Button | 提供状态按钮样式,如果子组件有文本设置,则相应的文本内容会显示在按钮内部。 | | Switch | 提供开关样式。
**说明:**
[通用属性margin](ts-universal-attributes-size.md)默认值为:
{
 top: 14 vp,
 right:6 vp,
 bottom: 6 vp,
 left: 14 vp
} | - ## 属性 +除支持[通用属性](ts-universal-attributes-size.md)外,还支持以下属性: + | 名称 | 参数 | 参数描述 | | ---------------- | --------------------------- | ---------------------- | | selectedColor | [ResourceColor](ts-types.md#resourcecolor) | 设置组件打开状态的背景颜色。
从API version 9开始,该接口支持在ArkTS卡片中使用。| | switchPointColor | [ResourceColor](ts-types.md#resourcecolor) | 设置Switch类型的圆形滑块颜色。
**说明:**
仅对type为ToggleType.Switch生效。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | - ## 事件 +除支持[通用事件](ts-universal-events-click.md)外,还支持以下事件: + | 名称 | 功能描述 | | -------- | -------- | -| onChange(callback: (isOn: boolean) => void) | 开关状态切换时触发该事件。
从API version 9开始,该接口支持在ArkTS卡片中使用。| +| onChange(callback: (isOn: boolean) => void) | 开关状态切换时触发该事件。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
isOn为true时,代表状态从关切换为开。isOn为false时,代表状态从开切换为关。 | ## 示例 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 afb97ce43429073227f53a53f7d7982eb069776a..fcbada6f9aaf0caa933d0cb1b17231e5ef8bf4e9 100755 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-web.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-web.md @@ -1232,7 +1232,7 @@ struct WebComponent { } ``` -### allowWindowOpenMethod9+ +### allowWindowOpenMethod10+ allowWindowOpenMethod(flag: boolean) @@ -2080,11 +2080,12 @@ onScaleChange(callback: (event: {oldScale: number, newScale: number}) => void) } ``` -### onUrlLoadIntercept +### onUrlLoadIntercept(deprecated) onUrlLoadIntercept(callback: (event?: { data:string | WebResourceRequest }) => boolean) 当Web组件加载url之前触发该回调,用于判断是否阻止此次访问。默认允许加载。 +从API version 10开始不在维护,建议使用[onLoadIntercept10+](#onloadintercept10)代替。 **参数:** @@ -3098,9 +3099,45 @@ onAudioStateChanged(callback: (event: { playing: boolean }) => void) } ``` +### onFirstContentfulPaint10+ + +onFirstContentfulPaint(callback: (event?: { navigationStartTick: number, firstContentfulPaintMs: number }) => void) + +设置网页首次内容绘制回调函数。 + +**参数:** + +| 参数名 | 参数类型 | 参数描述 | +| -----------------------| -------- | ----------------------------------- | +| navigationStartTick | number | navigation开始的时间,单位以微秒表示。| +| firstContentfulPaintMs | number | 从navigation开始第一次绘制内容的时间,单位是以毫秒表示。| + +**示例:** + + ```ts + // xxx.ets + import web_webview from '@ohos.web.webview' + @Entry + @Component + struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController() + + build() { + Column() { + Web({ src:'www.example.com', controller: this.controller }) + .onFirstContentfulPaint(event => { + console.log("onFirstContentfulPaint:" + "[navigationStartTick]:" + + event.navigationStartTick + ", [firstContentfulPaintMs]:" + + event.firstContentfulPaintMs) + }) + } + } + } + ``` + ### onLoadIntercept10+ -onLoadIntercept(callback: (event?: { request: WebResourceRequest }) => boolean) +onLoadIntercept(callback: (event?: { data: WebResourceRequest }) => boolean) 当Web组件加载url之前触发该回调,用于判断是否阻止此次访问。默认允许加载。 @@ -3130,11 +3167,11 @@ onLoadIntercept(callback: (event?: { request: WebResourceRequest }) => boolean) build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) - .onUrlLoadIntercept((event) => { - console.log('url:' + event.request.getRequestUrl()) - console.log('isMainFrame:' + event.request.isMainFrame()) - console.log('isRedirect:' + event.request.isRedirect()) - console.log('isRequestGesture:' + event.request.isRequestGesture()) + .onLoadIntercept((event) => { + console.log('url:' + event.data.getRequestUrl()) + console.log('isMainFrame:' + event.data.isMainFrame()) + console.log('isRedirect:' + event.data.isRedirect()) + console.log('isRequestGesture:' + event.data.isRequestGesture()) return true }) } @@ -3340,6 +3377,18 @@ isRequestGesture(): boolean | ------- | -------------------- | | boolean | 返回资源请求是否与手势(如点击)相关联。 | +### getRequestMethod9+ + +getRequestMethod(): string + +获取请求方法。 + +**返回值:** + +| 类型 | 说明 | +| ------- | -------------------- | +| string | 返回请求方法。 | + ## Header Web组件返回的请求/响应头对象。 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-gestures-pangesture.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-gestures-pangesture.md index e810ec960e554e29a36275ff78400e3e6da2a499..238a97c6c63944bd1c75906b5ea9f98dc2212d1c 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-gestures-pangesture.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-gestures-pangesture.md @@ -17,7 +17,7 @@ PanGesture(value?: { fingers?: number; direction?: PanDirection; distance?: numb | 参数名称 | 参数类型 | 必填 | 参数描述 | | -------- | -------- | -------- | -------- | -| fingers | number | 否 | 触发拖动的最少手指数,最小为1指, 最大取值为10指。
默认值:1 | +| fingers | number | 否 | 触发拖动的最少手指数,最小为1指, 最大取值为10指。
默认值:1
取值范围:[1,10]
**说明:**
当设置的值小于1或不设置时,会被转化为默认值。 | | direction | PanDirection | 否 | 触发拖动的手势方向,此枚举值支持逻辑与(&)和逻辑或(\|)运算。
默认值:PanDirection.All | | distance | number | 否 | 最小拖动识别距离,单位为vp。
默认值:5
**说明:**
[Tabs组件](ts-container-tabs.md)滑动与该拖动手势事件同时存在时,可将distance值设为1,使拖动更灵敏,避免造成事件错乱。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-gestures-tapgesture.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-gestures-tapgesture.md index 8abf78ab1d71dbdb0b6d16b3c427f1f984af61de..e8752dc730b6322f37664478b457bbc7291c5f59 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-gestures-tapgesture.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-gestures-tapgesture.md @@ -1,6 +1,6 @@ # TapGesture -支持单次或多次点击识别。 +支持单击、双击和多次点击事件的识别。 > **说明:** > @@ -15,8 +15,8 @@ TapGesture(value?: { count?: number, fingers?: number }) | 参数名称 | 参数类型 | 必填 | 参数描述 | | -------- | -------- | -------- | -------- | -| count | number | 否 | 识别的连续点击次数。如果设置小于1,会被转化为默认值。
默认值:1
**说明:**
如配置多击,上一次抬起和下一次按下的超时时间为300毫秒。 | -| fingers | number | 否 | 触发点击的手指数,最小为1指, 最大为10指。
默认值:1
**说明:**
1. 当配置多指时,第一根手指按下后300毫秒内未有足够的手指数按下,手势识别失败。
2. 实际点击手指数超过配置值,手势识别失败。 | +| count | number | 否 | 识别的连续点击次数。当设置的值小于1或不设置时,会被转化为默认值。
默认值:1
**说明:**
如配置多击,上一次抬起和下一次按下的超时时间为300毫秒。 | +| fingers | number | 否 | 触发点击的手指数,最小为1指, 最大为10指。当设置小于1的值或不设置时,会被转化为默认值。
默认值:1
**说明:**
1. 当配置多指时,第一根手指按下后300毫秒内未有足够的手指数按下,手势识别失败。
2. 实际点击手指数超过配置值,手势识别失败。 | ## 事件 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 fed857649de4d14d3028fd5b2ab535431f619a29..6504c28f9530a96cc49e936c6f884e7859e12187 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 @@ -293,7 +293,7 @@ 提供卡片组件,实现卡片的显示功能。 - [Menu](ts-basic-components-menu.md) - 以垂直列表形式显示的菜单,优先用于PC端的菜单开发。 + 以垂直列表形式显示的菜单。 - [MenuItem](ts-basic-components-menuitem.md) 用来展示菜单Menu中具体的item菜单项。 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md index 94f2a294869b0ccf6009b66f1d9bcb63119bf43a..84eab79ac1de7d932babff111b590b91df8d0598 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md @@ -38,7 +38,7 @@ AlphabetIndexer(value: {arrayValue: Array<string>, selected: number}) | selectedFont | [Font](ts-types.md#font) | 设置选中项文字样式。
默认值:
{
size:10,
style:FontStyle.Normal,
weight:FontWeight.Normal,
family:'HarmonyOS Sans'
} | | popupFont | [Font](ts-types.md#font) | 设置提示弹窗字体样式。
默认值:
{
size:10,
style:FontStyle.Normal,
weight:FontWeight.Normal,
family:'HarmonyOS Sans'
} | | font | [Font](ts-types.md#font) | 设置字母索引条默认字体样式。
默认值:
{
size:10,
style:FontStyle.Normal,
weight:FontWeight.Normal,
family:'HarmonyOS Sans'
} | -| itemSize | string \| number | 设置字母索引条字母区域大小,字母区域为正方形,即正方形边长。不支持设置为百分比。
默认值:24.0。 | +| itemSize | string \| number | 设置字母索引条字母区域大小,字母区域为正方形,即正方形边长。不支持设置为百分比。
默认值:24.0
单位:vp | | alignStyle | value: [IndexerAlign](#indexeralign枚举说明),
offset10+?: [Length](ts-types.md#length) | value:设置字母索引条弹框的对齐样式,支持弹窗显示在索引条右侧和左侧。
默认值: IndexerAlign.Right。
offset:设置提示弹窗与索引条之间间距,大于等于0为有效值,在不设置或设置为小于0的情况下间距与popupPosition.x相同。 | | selected | number | 设置选中项索引值。
默认值:0。 | | popupPosition | [Position](ts-types.md#position8) | 设置弹出窗口相对于索引器条上边框中点的位置。
默认值:{x:96.0, y:48.0}。 | @@ -56,7 +56,7 @@ AlphabetIndexer(value: {arrayValue: Array<string>, selected: number}) ## 事件 -仅支持以下事件: +除支持[通用事件](ts-universal-events-click.md)外,还支持以下事件: | 名称 | 功能描述 | | -------- | -------- | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-badge.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-badge.md index 89b012e6a400ccf07a4237c1c9117074453607fa..a91ed009ce9fd5f714a67dec13a835200d58ac71 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-badge.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-badge.md @@ -11,6 +11,10 @@ 支持单个子组件。 +> **说明:** +> +> 子组件类型:系统组件和自定义组件,支持渲染控制类型([if/else](../../quick-start/arkts-rendering-control.md#条件渲染)、[ForEach](../../quick-start/arkts-rendering-control.md#循环渲染)和[LazyForEach](../../quick-start/arkts-rendering-control.md#数据懒加载))。 + ## 接口 @@ -22,12 +26,12 @@ **参数:** -| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | -| -------- | -------- | -------- | -------- | -------- | -| count | number | 是 | - | 设置提醒消息数。 | -| position | [BadgePosition](#badgeposition枚举说明) | 否 | BadgePosition.RightTop | 设置提示点显示位置。 | -| maxCount | number | 否 | 99 | 最大消息数,超过最大消息时仅显示maxCount+。 | -| style | [BadgeStyle](#badgestyle对象说明) | 是 | - | Badge组件可设置样式,支持设置文本颜色、尺寸、圆点颜色和尺寸。 | +| 参数名 | 参数类型 | 必填 | 参数描述 | +| -------- | -------- | -------- | -------- | +| count | number | 是 | 设置提醒消息数。
**说明:**
小于等于0时不显示信息标记。 | +| position | [BadgePosition](#badgeposition枚举说明) | 否 | 设置提示点显示位置。
默认值:BadgePosition.RightTop | +| maxCount | number | 否 | 最大消息数,超过最大消息时仅显示maxCount+。
默认值:99 | +| style | [BadgeStyle](#badgestyle对象说明) | 是 | Badge组件可设置样式,支持设置文本颜色、尺寸、圆点颜色和尺寸。 | **方法2:** Badge(value: {value: string, position?: BadgePosition, style: BadgeStyle}) @@ -57,15 +61,23 @@ 从API version 9开始,该接口支持在ArkTS卡片中使用。 -| 名称 | 类型 | 必填 | 默认值 | 描述 | -| ------------------------- | ------------------------------------------------------------ | ---- | ----------------- | ------------------------------------------------------------ | -| color | [ResourceColor](ts-types.md#resourcecolor) | 否 | Color.White | 文本颜色。 | -| fontSize | number \| string | 否 | 10 | 文本大小,单位vp。 | -| badgeSize | number \| string | 否 | 16 | Badge的大小,单位vp。不支持百分比形式设置。当设置为非法值时,按照默认值处理。 | -| badgeColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | Color.Red | Badge的颜色。 | -| fontWeight10+ | number \|[FontWeight](ts-appendix-enums.md#fontweight) \| string | 否 | FontWeight.Normal | 设置文本的字体粗细。 | -| borderColor10+ | [ResourceColor](ts-types.md#resourcecolor) | 否 | Color.Red | 底板描边颜色。 | -| borderWidth10+ | [Length](ts-types.md#length) | 否 | 1.0vp | 底板描边粗细。 | +| 名称 | 类型 | 必填 | 描述 | +| ------------------------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | +| color | [ResourceColor](ts-types.md#resourcecolor) | 否 | 文本颜色。
默认值:Color.White | +| fontSize | number \| string | 否 | 文本大小。
默认值:10
单位:vp
**说明:**
不支持设置百分比。 | +| badgeSize | number \| string | 否 | Badge的大小。
默认值:16
单位:vp
**说明:**
不支持设置百分比。当设置为非法值时,按照默认值处理。 | +| badgeColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | Badge的颜色。
默认值:Color.Red | +| fontWeight10+ | number \|[FontWeight](ts-appendix-enums.md#fontweight) \| string | 否 | 设置文本的字体粗细。
默认值:FontWeight.Normal
**说明:**
不支持设置百分比。 | +| borderColor10+ | [ResourceColor](ts-types.md#resourcecolor) | 否 | 底板描边颜色。 | +| borderWidth10+ | [Length](ts-types.md#length) | 否 | 底板描边粗细。
默认值:1
单位:vp
**说明:**
不支持设置百分比。 | + +## 属性 + +支持[通用属性](ts-universal-attributes-size.md)。 + +## 事件 + +支持[通用事件](ts-universal-events-click.md)。 ## 示例 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 a3a4e9b6c6dff24a44963b3b481fe9255f01d86c..fdc53cc542335c703974b7a40857b004983199d1 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 @@ -22,7 +22,7 @@ Column(value?: {space?: string | number}) | 参数名 | 参数类型 | 必填 | 参数描述 | | -------- | -------- | -------- | -------- | -| space | string \| number | 否 | 纵向布局元素垂直方向间距。
从API version 9开始,space为负数或者justifyContent设置为FlexAlign.SpaceBetween、FlexAlign.SpaceAround、FlexAlign.SpaceEvenly时不生效。
默认值:0 | +| space | string \| number | 否 | 纵向布局元素垂直方向间距。
从API version 9开始,space为负数或者justifyContent设置为FlexAlign.SpaceBetween、FlexAlign.SpaceAround、FlexAlign.SpaceEvenly时不生效。
默认值:0
**说明:**
可选值为大于等于0的数字,或者可以转换为数字的字符串。 | ## 属性 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-columnsplit.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-columnsplit.md index 0d20a6caeaf865b9d0b217a1aa418980ff340479..72b91171c695749c6adc5588e21c68b7beadbec5 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-columnsplit.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-columnsplit.md @@ -29,6 +29,8 @@ ColumnSplit() > 与RowSplit相同,ColumnSplit的分割线最小能拖动到刚好包含子组件。 > > 在真机中查看拖动效果,预览器中不支持拖动。 +> +> 不支持clip、margin通用属性。 ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-counter.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-counter.md index ff574a2ceb332fad15eacb6dc2c7aa2f95fbde56..13867745c882b6ee060fe8b79b8cd299ea9e6732 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-counter.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-counter.md @@ -18,6 +18,10 @@ Counter() 从API version 9开始,该接口支持在ArkTS卡片中使用。 +## 属性 + +支持[通用属性](ts-universal-attributes-size.md)。 + ## 事件 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 d018d68f1c8afbfb8720b80deedbac14b3602b3f..841748e13e542cc41c8e4ba01308c2b28ccf6812 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 @@ -27,9 +27,9 @@ Flex(value?: { direction?: FlexDirection, wrap?: FlexWrap, justifyContent?: Fle | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | | -------------- | ---------------------------------------- | ---- | ----------------- | ---------------------------------------- | | direction | [FlexDirection](ts-appendix-enums.md#flexdirection) | 否 | FlexDirection.Row | 子组件在Flex容器上排列的方向,即主轴的方向。 | -| wrap | [FlexWrap](ts-appendix-enums.md#flexwrap) | 否 | FlexWrap.NoWrap | Flex容器是单行/列还是多行/列排列。 | -| justifyContent | [FlexAlign](ts-appendix-enums.md#flexalign) | 否 | FlexAlign.Start | 子组件在Flex容器主轴上的对齐格式。 | -| alignItems | [ItemAlign](ts-appendix-enums.md#itemalign) | 否 | ItemAlign.Start | 子组件在Flex容器交叉轴上的对齐格式。 | +| wrap | [FlexWrap](ts-appendix-enums.md#flexwrap) | 否 | FlexWrap.NoWrap | Flex容器是单行/列还是多行/列排列。
**说明:**
在多行布局时,通过交叉轴方向,确认新行堆叠方向。 | +| justifyContent | [FlexAlign](ts-appendix-enums.md#flexalign) | 否 | FlexAlign.Start | 所有子组件在Flex容器主轴上的对齐格式。 | +| alignItems | [ItemAlign](ts-appendix-enums.md#itemalign) | 否 | ItemAlign.Start | 所以子组件在Flex容器交叉轴上的对齐格式。 | | alignContent | [FlexAlign](ts-appendix-enums.md#flexalign) | 否 | FlexAlign.Start | 交叉轴中有额外的空间时,多行内容的对齐方式。仅在wrap为Wrap或WrapReverse下生效。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-grid.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-grid.md index ef8f2337eab6c6962066120ba4f6af42c41c42d0..3aada9151e8f1584403809919ec3ea7722075db9 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-grid.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-grid.md @@ -9,7 +9,23 @@ ## 子组件 -包含[GridItem](ts-container-griditem.md)子组件。 +仅支持[GridItem](ts-container-griditem.md)子组件。 + +> **说明:** +> +> Grid子组件的索引值计算规则: +> +> 按子组件的顺序依次递增。 +> +> if/else语句中,只有条件成立分支内的子组件会参与索引值计算,条件不成立分支内的子组件不计算索引值。 +> +> ForEach/LazyForEach语句中,会计算展开所有子节点索引值。 +> +> [if/else](../../quick-start/arkts-rendering-control.md#条件渲染)、[ForEach](../../quick-start/arkts-rendering-control.md#循环渲染)和[LazyForEach](../../quick-start/arkts-rendering-control.md#数据懒加载)发生变化以后,会更新子节点索引值。 +> +> Grid子组件的visibility属性设置为Hidden或None时依然会计算索引值。 +> +> Grid子组件的visibility属性设置为None时不显示,但依然会占用子组件对应的网格。 ## 接口 @@ -18,9 +34,9 @@ Grid(scroller?: Scroller) **参数:** -| 参数名 | 参数类型 | 必填 | 参数描述 | -| --------- | ---------------------------------------- | ---- | ----------------------- | -| scroller | [Scroller](ts-container-scroll.md#scroller) | 否 | 可滚动组件的控制器。用于与可滚动组件进行绑定。 | +| 参数名 | 参数类型 | 必填 | 参数描述 | +| -------- | ------------------------------------------- | ---- | ------------------------------------------------------------ | +| scroller | [Scroller](ts-container-scroll.md#scroller) | 否 | 可滚动组件的控制器。用于与可滚动组件进行绑定。
**说明:**
不允许和其他[滚动类组件](ts-container-list.md)绑定同一个滚动控制对象。 | ## 属性 @@ -28,41 +44,57 @@ Grid(scroller?: Scroller) | 名称 | 参数类型 | 描述 | | -------- | -------- | -------- | -| columnsTemplate | string | 设置当前网格布局列的数量,不设置时默认1列。
例如, '1fr 1fr 2fr' 是将父组件分3列,将父组件允许的宽分为4等份,第一列占1份,第二列占1份,第三列占2份。| -| rowsTemplate | string | 设置当前网格布局行的数量,不设置时默认1行。
例如, '1fr 1fr 2fr'是将父组件分三行,将父组件允许的高分为4等份,第一行占1份,第二行占一份,第三行占2份。 | -| columnsGap | Length | 设置列与列的间距。
默认值:0 | -| rowsGap | Length | 设置行与行的间距。
默认值:0 | +| columnsTemplate | string | 设置当前网格布局列的数量,不设置时默认1列。
例如, '1fr 1fr 2fr' 是将父组件分3列,将父组件允许的宽分为4等份,第一列占1份,第二列占1份,第三列占2份。
**说明:**
设置为'0fr'时,该列的列宽为0,不显示GridItem。设置为其他非法值时,GridItem显示为固定1列。 | +| rowsTemplate | string | 设置当前网格布局行的数量,不设置时默认1行。
例如, '1fr 1fr 2fr'是将父组件分三行,将父组件允许的高分为4等份,第一行占1份,第二行占一份,第三行占2份。
**说明:**
设置为'0fr',则这一行的行宽为0,这一行GridItem不显示。设置为其他非法值,按固定1行处理。 | +| columnsGap | [Length](ts-types.md#length) | 设置列与列的间距。
默认值:0
**说明:**
设置为小于0的值时,按默认值显示。 | +| rowsGap | [Length](ts-types.md#length) | 设置行与行的间距。
默认值:0
**说明:**
设置为小于0的值时,按默认值显示。 | | scrollBar | [BarState](ts-appendix-enums.md#barstate) | 设置滚动条状态。
默认值:BarState.Off | -| scrollBarColor | string \| number \| Color | 设置滚动条的颜色。 | -| scrollBarWidth | string \| number | 设置滚动条的宽度。 | -| cachedCount | number | 设置预加载的GridItem的数量。具体使用可参考[减少应用白块说明](../../ui/ui-ts-performance-improvement-recommendation.md#减少应用滑动白块)。
默认值:1 | +| scrollBarColor | string \| number \| [Color](ts-appendix-enums.md#color) | 设置滚动条的颜色。 | +| scrollBarWidth | string \| number | 设置滚动条的宽度。宽度设置后,滚动条正常状态和按压状态宽度均为滚动条的宽度值。
默认值:4
单位:vp | +| cachedCount | number | 设置预加载的GridItem的数量,只在[LazyForEach](../../quick-start/arkts-rendering-control.md#数据懒加载)中生效。具体使用可参考[减少应用白块说明](../../ui/ui-ts-performance-improvement-recommendation.md#减少应用滑动白块)。
默认值:1
**说明:**
设置缓存后会在Grid显示区域上下各缓存cachedCount*列数个GridItem。
[LazyForEach](../../quick-start/arkts-rendering-control.md#数据懒加载)超出显示和缓存范围的GridItem会被释放。
设置为小于0的值时,按默认值显示。 | | editMode 8+ | boolean | 设置Grid是否进入编辑模式,进入编辑模式可以拖拽Grid组件内部[GridItem](ts-container-griditem.md)。
默认值:flase | | layoutDirection8+ | [GridDirection](#griddirection8枚举说明) | 设置布局的主轴方向。
默认值:GridDirection.Row | -| maxCount8+ | number | 当layoutDirection是Row/RowReverse时,表示可显示的最大列数
当layoutDirection是Column/ColumnReverse时,表示可显示的最大行数。
默认值:Infinity | -| minCount8+ | number | 当layoutDirection是Row/RowReverse时,表示可显示的最小列数。
当layoutDirection是Column/ColumnReverse时,表示可显示的最小行数。
默认值:1 | +| maxCount8+ | number | 当layoutDirection是Row/RowReverse时,表示可显示的最大列数
当layoutDirection是Column/ColumnReverse时,表示可显示的最大行数。
默认值:Infinity
**说明:**
当maxCount小于minCount时,maxCount和minCount都按默认值处理。
设置为小于0的值时,按默认值显示。 | +| minCount8+ | number | 当layoutDirection是Row/RowReverse时,表示可显示的最小列数。
当layoutDirection是Column/ColumnReverse时,表示可显示的最小行数。
默认值:1
**说明:**
设置为小于0的值时,按默认值显示。 | | cellLength8+ | number | 当layoutDirection是Row/RowReverse时,表示一行的高度。
当layoutDirection是Column/ColumnReverse时,表示一列的宽度。
默认值:第一个元素的大小 | | multiSelectable8+ | boolean | 是否开启鼠标框选。
默认值:false
- false:关闭框选。
- true:开启框选。 | -| supportAnimation8+ | boolean | 是否支持动画。
默认值:false | +| supportAnimation8+ | boolean | 是否支持动画。当前支持GridItem拖拽动画。
默认值:false | Grid组件根据rowsTemplate、columnsTemplate属性的设置情况,可分为以下三种布局模式: 1、rowsTemplate、columnsTemplate同时设置: -Grid只展示固定行列数的元素,其余元素不展示,且Grid不可滚动。例如rowsTemplate、columnsTemplate都设置为"1fr 1fr"时,则仅展示两行两列,共4个元素,其他元素不展示。 - -此模式下以下属性不生效:layoutDirection、maxCount、minCount、cellLength。 +- Grid只展示固定行列数的元素,其余元素不展示,且Grid不可滚动。 +- 此模式下以下属性不生效:layoutDirection、maxCount、minCount、cellLength。 +- Grid的宽高没有设置时,默认适应父组件尺寸。 +- Gird网格列大小按照Gird自身内容区域大小减去所有行列Gap后按各个行列所占比重分配。 +- GridItem默认填满网格大小。 +- 此模式下GridItem同时设置了rowStart、columnStart,会用设置的rowStart、columnStart所在位置摆放GridItem。如果这个位置已经有GridItem则会发生重叠。 +- 如果GridItem设置了rowStart、columnStart其中一个,会从上一个GridItem布局位置开始遍历寻找满足rowStart或columnStart的空闲位置摆放,如果无满足条件的空闲位置,则不布局该GridItem。 +- 如果GridItem的rowStart、columnStart属性都没有设置,会从上一个GridItem布局位置开始遍历寻找空闲位置摆放,如果没有空闲位置,则不布局该GridItem。 +- 如果GridItem的rowEnd有设置,但是rowStart没有设置,当做rowStart已经设置,并且和rowEnd设置为相同值。如果GridItem的columnEnd有设置,但是columnStart没有设置,当做columnStart已经设置,并且和columnEnd设置为相同值。 2、rowsTemplate、columnsTemplate仅设置其中的一个: -元素按照设置的方向进行排布,超出的元素可通过滚动的方式展示。例如Grid有十个元素,且设置columnsTemplate为"1fr 1fr 1fr",则Grid有三列,元素先填满一行,再填充下一行。在Grid区域外的元素,可通过竖直方向的滚动,进行展示。 - -此模式下以下属性不生效:layoutDirection、maxCount、minCount、cellLength。 +- 元素按照设置的方向进行排布,超出Grid显示区域后,Grid可通过滚动的方式展示。 +- 如果设置了columnsTemplate,Gird滚动方向为垂直方向,主轴方向为垂直方向,交叉轴方向为水平方向。 +- 如果设置了rowsTemplate,Gird滚动方向为水平方向,主轴方向为水平方向,交叉轴方向为垂直方向。 +- 此模式下以下属性不生效:layoutDirection、maxCount、minCount、cellLength。 +- 网格交叉轴方向尺寸根据Gird自身内容区域交叉轴尺寸减去交叉轴方向所有Gap后按所占比重分配。 +- 网格主轴方向尺寸取当前网格交叉轴方向所有GridItem高度最大值。 +- 此模式下GridItem同时设置了rowStart、columnStart,会用设置的rowStart、columnStart所在位置摆放GridItem。如果这个位置已经有GridItem则会发生重叠。 +- 如果GridItem设置了rowStart、columnStart其中一个,会从上一个GridItem布局位置开始遍历寻找满足rowStart或columnStart的空闲位置摆放。 +- 如果GridItem的rowStart、columnStart属性都没有设置,会从上一个GridItem布局位置开始遍历寻找空闲位置摆放。 +- 如果GridItem的rowEnd有设置,但是rowStart没有设置,当做rowStart已经设置,并且和rowEnd设置为相同值。如果GridItem的columnEnd有设置,但是columnStart没有设置,当做columnStart已经设置,并且和columnEnd设置为相同值。 3、rowsTemplate、columnsTemplate都不设置: -元素在layoutDirection方向上排布,列数由Grid的宽度、首个元素的宽度、minCount、maxCount、columnsGap共同决定;行数由Grid高度、首个元素高度、cellLength、rowsGap共同决定。超出行列容纳范围的元素不显示,也不能通过滚动进行展示。 - -此模式下仅生效以下属性:layoutDirection、maxCount、minCount、cellLength、editMode、columnsGap、rowsGap。 +- 元素在layoutDirection方向上排布,列数由Grid的宽度、首个元素的宽度、minCount、maxCount、columnsGap共同决定。 +- 行数由Grid高度、首个元素高度、cellLength、rowsGap共同决定。超出行列容纳范围的元素不显示,也不能通过滚动进行展示。 +- 此模式下仅生效以下属性:layoutDirection、maxCount、minCount、cellLength、editMode、columnsGap、rowsGap。 +- 当前layoutDirection设置为Row时,先从左到右排列,排满一行再排一下一列。剩余高度不足时不再布局,整体内容顶部居中。 +- 当前layoutDirection设置为Column时,先从上到下排列,排满一列再排一下一列,剩余宽度度不足时不再。整体内容顶部居中。 +- 此模式下GridItem的rowStart、columnStart不生效。 ## GridDirection8+枚举说明 @@ -73,14 +105,18 @@ Grid只展示固定行列数的元素,其余元素不展示,且Grid不可滚 | RowReverse | 主轴布局方向沿水平方向反向布局,即自右往左先填满一行,再去填下一行。 | | ColumnReverse | 主轴布局方向沿垂直方向反向布局,即自下往上先填满一列,再去填下一列。 | +> **说明:** +> +> List组件[通用属性clip](ts-universal-attributes-sharp-clipping.md)的默认值为true。 + ## 事件 除支持[通用事件](ts-universal-events-click.md)外,还支持以下事件: | 名称 | 功能描述 | | -------- | -------- | -| onScrollIndex(event: (first: number) => void) | 当前网格显示的起始位置item发生变化时触发。
- first: 当前显示的网格起始位置的索引值。 | -| onItemDragStart(event: (event: ItemDragInfo, itemIndex: number) => (() => any) \| void) | 开始拖拽网格元素时触发。
- event: 见[ItemDragInfo对象说明](#itemdraginfo对象说明)。
- itemIndex: 被拖拽网格元素索引值。 | +| onScrollIndex(event: (first: number) => void) | 当前网格显示的起始位置item发生变化时触发。列表初始化时会触发一次。
- first: 当前显示的网格起始位置的索引值。
Grid显示区域上第一个子组件的索引值有变化就会触发。 | +| onItemDragStart(event: (event: ItemDragInfo, itemIndex: number) => (() => any) \| void) | 开始拖拽网格元素时触发。
- event: 见[ItemDragInfo对象说明](#itemdraginfo对象说明)。
- itemIndex: 被拖拽网格元素索引值。
**说明:**
返回void表示不能拖拽。
手指长按GridItem时触发该事件。 | | onItemDragEnter(event: (event: ItemDragInfo) => void) | 拖拽进入网格元素范围内时触发。
- event: 见[ItemDragInfo对象说明](#itemdraginfo对象说明)。 | | onItemDragMove(event: (event: ItemDragInfo, itemIndex: number, insertIndex: number) => void) | 拖拽在网格元素范围内移动时触发。
- event: 见[ItemDragInfo对象说明](#itemdraginfo对象说明)。
- itemIndex: 拖拽起始位置。
- insertIndex: 拖拽插入位置。 | | onItemDragLeave(event: (event: ItemDragInfo, itemIndex: number) => void) | 拖拽离开网格元素时触发。
- event: 见[ItemDragInfo对象说明](#itemdraginfo对象说明)。
- itemIndex: 拖拽离开的网格元素索引值。 | 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 0723fe1c2465496f010701f82bd96a44e74bbb21..a3612ac4c429c5f009e3d3fa7917a49d83d6dbfa 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 @@ -10,7 +10,25 @@ ## 子组件 -包含[ListItem](ts-container-listitem.md)、[ListItemGroup](ts-container-listitemgroup.md)子组件。 +仅支持[ListItem](ts-container-listitem.md)、[ListItemGroup](ts-container-listitemgroup.md)子组件。 + +> **说明:** +> +> List的子组件的索引值计算规则: +> +> 按子组件的顺序依次递增。 +> +> if/else语句中,只有条件成立的分支内的子组件会参与索引值计算,条件不成立的分支内子组件不计算索引值。 +> +> ForEach/LazyForEach语句中,会计算展开所有子节点索引值。 +> +> [if/else](../../quick-start/arkts-rendering-control.md#条件渲染)、[ForEach](../../quick-start/arkts-rendering-control.md#循环渲染)和[LazyForEach](../../quick-start/arkts-rendering-control.md#数据懒加载)发生变化以后,会更新子节点索引值。 +> +> ListItemGroup作为一个整体计算一个索引值,ListItemGroup内部的ListItem不计算索引值。 +> +> List子组件visibility属性设置为Hidden或None依然会计算索引值。 +> +> List子组件的visibility属性设置为None时不显示,但该子组件上下的space还会生效。 ## 接口 @@ -23,9 +41,9 @@ List(value?:{space?: number | string, initialIndex?: number, scroller? | 参数名 | 参数类型 | 必填 | 参数描述 | | -------- | -------- | -------- | -------- | -| space | number \| string | 否 | 列表项间距。
默认值:0 | -| initialIndex | number | 否 | 设置当前List初次加载时视口起始位置显示的item的索引值。如果设置的值超过了当前List最后一个item的索引值,则设置不生效。
默认值:0 | -| scroller | [Scroller](ts-container-scroll.md#scroller) | 否 | 可滚动组件的控制器。用于与可滚动组件进行绑定。 | +| space | number \| string | 否 | 子组件主轴方向的间隔。
默认值:0
**说明:**
设置为除-1外其他负数或百分比时,按默认值显示。
space参数值小于List分割线宽度时,子组件主轴方向的间隔取分割线宽度。 | +| initialIndex | number | 否 | 设置当前List初次加载时视口起始位置显示的item的索引值。
默认值:0
**说明:**
设置为除-1外其他负数或超过了当前List最后一个item的索引值时视为无效取值,无效取值按默认值显示。 | +| scroller | [Scroller](ts-container-scroll.md#scroller) | 否 | 可滚动组件的控制器。用于与可滚动组件进行绑定。
**说明:**
不允许和其他滚动类组件绑定同一个滚动控制对象。 | ## 属性 @@ -34,16 +52,16 @@ List(value?:{space?: number | string, initialIndex?: number, scroller? | 名称 | 参数类型 | 描述 | | -------- | -------- | -------- | | listDirection | [Axis](ts-appendix-enums.md#axis) | 设置List组件排列方向。
默认值:Axis.Vertical
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| divider | {
strokeWidth: [Length](ts-types.md#length),
color?:[ResourceColor](ts-types.md#resourcecolor),
startMargin?: Length,
endMargin?: Length
} \| null | 设置ListItem分割线样式,默认无分割线。
- strokeWidth: 分割线的线宽。
- color: 分割线的颜色。
- startMargin: 分割线与列表侧边起始端的距离。
- endMargin: 分割线与列表侧边结束端的距离。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| divider | {
strokeWidth: [Length](ts-types.md#length),
color?:[ResourceColor](ts-types.md#resourcecolor),
startMargin?: Length,
endMargin?: Length
} \| null | 设置ListItem分割线样式,不支持设置百分比,默认无分割线。
- strokeWidth: 分割线的线宽。
- color: 分割线的颜色。
- startMargin: 分割线与列表侧边起始端的距离。
- endMargin: 分割线与列表侧边结束端的距离。
从API version 9开始,该接口支持在ArkTS卡片中使用。
endMargin +startMargin 不能超过列宽度。
startMargin和endMargin不支持设置百分比。
List的分割线画在主轴方向两个子组件之间,第一个子组件上方和最后一个子组件下方不会绘制分割线。
多列模式下,ListItem与ListItem之间的分割线起始边距从每一列的交叉轴方向起始边开始计算,其他情况从List交叉轴方向起始边开始计算。 | | scrollBar | [BarState](ts-appendix-enums.md#barstate) | 设置滚动条状态。
默认值:BarState.Off
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| cachedCount | number | 设置列表中ListItem/ListItemGroup的预加载数量,其中ListItemGroup将作为一个整体进行计算,ListItemGroup中的所有ListItem会一次性全部加载出来。具体使用可参考[减少应用白块说明](../../ui/ui-ts-performance-improvement-recommendation.md#减少应用滑动白块)。
默认值:1
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| cachedCount | number | 设置列表中ListItem/ListItemGroup的预加载数量,只在[LazyForEach](../../quick-start/arkts-rendering-control.md#数据懒加载)中生效,其中ListItemGroup将作为一个整体进行计算,ListItemGroup中的所有ListItem会一次性全部加载出来。具体使用可参考[减少应用白块说明](../../ui/ui-ts-performance-improvement-recommendation.md#减少应用滑动白块)。
默认值:1
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
单列模式下,会在List显示的ListItem前后各缓存cachedCount个ListItem。
多列模式下, 会在List显示的ListItem前后各缓存cachedCount*列数个ListItem。 | | editMode(deprecated) | boolean | 声明当前List组件是否处于可编辑模式。
从API version9开始废弃。
默认值:false | -| edgeEffect | [EdgeEffect](ts-appendix-enums.md#edgeeffect) | 设置组件的滑动效果。
默认值:EdgeEffect.Spring
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| edgeEffect | [EdgeEffect](ts-appendix-enums.md#edgeeffect) | 设置组件的滑动效果,支持弹簧效果和阴影效果。
默认值:EdgeEffect.Spring
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | chainAnimation | boolean | 设置当前List是否启用链式联动动效,开启后列表滑动以及顶部和底部拖拽时会有链式联动的效果。链式联动效果:List内的list-item间隔一定距离,在基本的滑动交互行为下,主动对象驱动从动对象进行联动,驱动效果遵循弹簧物理动效。
默认值:false
- false:不启用链式联动。
- true:启用链式联动。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | multiSelectable8+ | boolean | 是否开启鼠标框选。
默认值:false
- false:关闭框选。
- true:开启框选。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| lanes9+ | number \| [LengthConstrain](ts-types.md#lengthconstrain) | 以列模式为例(listDirection为Axis.Vertical):
lanes用于决定List组件在交叉轴方向按几列布局。
默认值:1
规则如下:
- lanes为指定的数量时,根据指定的数量与List组件的交叉轴宽度来决定每列的宽度;
- lane设置了{minLength,maxLength}时,根据List组件的宽度自适应决定lanes数量(即列数),保证缩放过程中lane的宽度符合{minLength,maxLength}的限制。其中,minLength条件会被优先满足,即优先保证符合ListItem的宽度符合最小宽度限制。例如在列模式下,设置了{minLength: 40vp,maxLength: 60vp},则当List组件宽度为70vp时,ListItem为一列,并且根据alignListItem属性做靠左、居中或者靠右布局;当List组件宽度变化至80vp时,符合两倍的minLength,则ListItem自适应为两列。
该接口支持在ArkTS卡片中使用。 | -| alignListItem9+ | ListItemAlign | List交叉轴方向宽度大于ListItem交叉轴宽度 * lanes时,ListItem在List交叉轴方向的布局方式,默认为首部对齐。
默认值:ListItemAlign.Start
该接口支持在ArkTS卡片中使用。 | -| sticky9+ | StickyStyle | 配合[ListItemGroup](ts-container-listitemgroup.md)组件使用,设置ListItemGroup中header和footer是否要吸顶或吸底。
默认值:StickyStyle.None
该接口支持在ArkTS卡片中使用。
**说明:**
sticky属性可以设置为 StickyStyle.Header \| StickyStyle.Footer 以同时支持header吸顶和footer吸底。 | +| lanes9+ | number \| [LengthConstrain](ts-types.md#lengthconstrain) | 以列模式为例(listDirection为Axis.Vertical):
lanes用于决定List组件在交叉轴方向按几列布局。
默认值:1
规则如下:
- lanes为指定的数量时,根据指定的数量与List组件的交叉轴尺寸除以列数作为列的宽度。
- lanes设置了{minLength,maxLength}时,根据List组件的宽度自适应决定lanes数量(即列数),保证缩放过程中lane的宽度符合{minLength,maxLength}的限制。其中,minLength条件会被优先满足,即优先保证符合ListItem的交叉轴尺寸符合最小限制。
- lanes设置了{minLength,maxLength},如果父组件交叉轴方向尺寸约束为无穷大时,固定按一列排列,列宽度按显示区域内最大的ListItem计算
- ListItemGroup在多列模式下也是独占一行,ListItemGroup中的ListItem按照List组件的lanes属性设置值来布局。
- lanes设置了{minLength,maxLength}时,计算列数会按照ListItemGroup的交叉轴尺寸计算。当ListItemGroup交叉轴尺寸与List交叉轴尺寸不一致时ListItemGroup中的列数与List中的列数可能不一样。
该接口支持在ArkTS卡片中使用。 | +| alignListItem9+ | [ListItemAlign](#listitemalign9枚举说明) | List交叉轴方向宽度大于ListItem交叉轴宽度 * lanes时,ListItem在List交叉轴方向的布局方式,默认为首部对齐。
默认值:ListItemAlign.Start
该接口支持在ArkTS卡片中使用。 | +| sticky9+ | [StickyStyle](#stickystyle9枚举说明) | 配合[ListItemGroup](ts-container-listitemgroup.md)组件使用,设置ListItemGroup中header和footer是否要吸顶或吸底。
默认值:StickyStyle.None
该接口支持在ArkTS卡片中使用。
**说明:**
sticky属性可以设置为 StickyStyle.Header \| StickyStyle.Footer 以同时支持header吸顶和footer吸底。 | ## ListItemAlign9+枚举说明 @@ -62,21 +80,23 @@ List(value?:{space?: number | string, initialIndex?: number, scroller? | 名称 | 描述 | | ------ | -------------------------------------- | | None | ListItemGroup的header不吸顶,footer不吸底。 | -| Header | ListItemGroup的header吸顶。 | -| Footer | ListItemGroup的footer吸底。 | - +| Header | ListItemGroup的header吸顶,footer不吸底。 | +| Footer | ListItemGroup的footer吸底,header不吸底。 | +> **说明:** +> +> List组件[通用属性clip](ts-universal-attributes-sharp-clipping.md)的默认值为true。 ## 事件 | 名称 | 功能描述 | | -------- | -------- | | onItemDelete(deprecated)(event: (index: number) => boolean) | 当List组件在编辑模式时,点击ListItem右边出现的删除按钮时触发。
从API version9开始废弃。
- index: 被删除的列表项的索引值。 | -| onScroll(event: (scrollOffset: number, scrollState: ScrollState) => void) | 列表滑动时触发。
- scrollOffset: 滑动偏移量。
- [scrollState](#scrollstate枚举说明): 当前滑动状态。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| onScrollIndex(event: (start: number, end: number) => void) | 列表滑动时触发。
计算索引值时,ListItemGroup作为一个整体占一个索引值,不计算ListItemGroup内部ListItem的索引值。
- start: 滑动起始位置索引值。
- end: 滑动结束位置索引值。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| onReachStart(event: () => void) | 列表到达起始位置时触发。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| onReachEnd(event: () => void) | 列表到底末尾位置时触发。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| onScrollFrameBegin9+(event: (offset: number, state: ScrollState) => { offsetRemain }) | 列表开始滑动时触发,事件参数传入即将发生的滑动量,事件处理函数中可根据应用场景计算实际需要的滑动量并作为事件处理函数的返回值返回,列表将按照返回值的实际滑动量进行滑动。
\- offset:即将发生的滑动量。
\- state:当前滑动状态。
- offsetRemain:实际滑动量。
该接口支持在ArkTS卡片中使用。
**说明:**
当listDirection的值为Axis.Vertical时,返回垂直方向滑动量,当listDirection的值为Axis.Horizontal时,返回水平方向滑动量。 | +| onScroll(event: (scrollOffset: number, scrollState: ScrollState) => void) | 列表滑动时触发。
- scrollOffset: 滑动偏移量。
- [scrollState](#scrollstate枚举说明): 当前滑动状态。
使用控制器调用ScrollEdge和ScrollToIndex时不会触发,其余情况有滚动就会触发该事件。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| onScrollIndex(event: (start: number, end: number) => void) | 有子组件划入或划出List显示区域时触发。
计算索引值时,ListItemGroup作为一个整体占一个索引值,不计算ListItemGroup内部ListItem的索引值。
- start: 滑动起始位置索引值。
- end: 滑动结束位置索引值。
触发该事件的条件:列表初始化时会触发一次,List显示区域内第一个子组件的索引值或后一个子组件的索引值有变化时会触发。
List的边缘效果为弹簧效果时,在List划动到边缘继续划动和松手回弹过程不会触发onScrollIndex事件。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| onReachStart(event: () => void) | 列表到达起始位置时触发。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
List初始化时如果initialIndex为0会触发一次,List滚动到起始位置时触发一次。List边缘效果为弹簧效果时,划动经过起始位置时触发一次,回弹回起始位置时再触发一次。 | +| onReachEnd(event: () => void) | 列表到底末尾位置时触发。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
List边缘效果为弹簧效果时,划动经过末尾位置时触发一次,回弹回末尾位置时再触发一次。 | +| onScrollFrameBegin9+(event: (offset: number, state: ScrollState) => { offsetRemain }) | 列表开始滑动时触发,事件参数传入即将发生的滑动量,事件处理函数中可根据应用场景计算实际需要的滑动量并作为事件处理函数的返回值返回,列表将按照返回值的实际滑动量进行滑动。
\- offset:即将发生的滑动量,单位vp。
\- state:当前滑动状态。
- offsetRemain:实际滑动量,单位vp。
触发该事件的条件:手指拖动List、List惯性划动时每帧开始时触发;List超出边缘回弹、使用滚动控制器的滚动不会触发。
该接口支持在ArkTS卡片中使用。
**说明:**
当listDirection的值为Axis.Vertical时,返回垂直方向滑动量,当listDirection的值为Axis.Horizontal时,返回水平方向滑动量。 | | onScrollStart9+(event: () => void) | 列表滑动开始时触发。手指拖动列表或列表的滚动条触发的滑动开始时,会触发该事件。使用[Scroller](ts-container-scroll.md#scroller)滑动控制器触发的带动画的滑动,动画开始时会触发该事件。
该接口支持在ArkTS卡片中使用。 | | onScrollStop(event: () => void) | 列表滑动停止时触发。手拖动列表或列表的滚动条触发的滑动,手离开屏幕并且滑动停止时会触发该事件;使用[Scroller](ts-container-scroll.md#scroller)滑动控制器触发的带动画的滑动,动画停止会触发该事件。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | onItemMove(event: (from: number, to: number) => boolean) | 列表元素发生移动时触发。
- from: 移动前索引值。
- to: 移动后索引值。 | @@ -84,7 +104,7 @@ List(value?:{space?: number | string, initialIndex?: number, scroller? | onItemDragEnter(event: (event: ItemDragInfo) => void) | 拖拽进入列表元素范围内时触发。
- event: 见[ItemDragInfo对象说明](ts-container-grid.md#itemdraginfo对象说明)。 | | onItemDragMove(event: (event: ItemDragInfo, itemIndex: number, insertIndex: number) => void) | 拖拽在列表元素范围内移动时触发。
- event: 见[ItemDragInfo对象说明](ts-container-grid.md#itemdraginfo对象说明)。
- itemIndex: 拖拽起始位置。
- insertIndex: 拖拽插入位置。 | | onItemDragLeave(event: (event: ItemDragInfo, itemIndex: number) => void) | 拖拽离开列表元素时触发。
- event: 见[ItemDragInfo对象说明](ts-container-grid.md#itemdraginfo对象说明)。
- itemIndex: 拖拽离开的列表元素索引值。 | -| onItemDrop(event: (event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void) | 绑定该事件的列表元素可作为拖拽释放目标,当在列表元素内停止拖拽时触发。
- event: 见[ItemDragInfo对象说明](ts-container-grid.md#itemdraginfo对象说明)。
- itemIndex: 拖拽起始位置。
- insertIndex: 拖拽插入位置。
- isSuccess: 是否成功释放。 | +| onItemDrop(event: (event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void) | 绑定该事件的列表元素可作为拖拽释放目标,当在列表元素内停止拖拽时触发。
- event: 见[ItemDragInfo对象说明](ts-container-grid.md#itemdraginfo对象说明)。
- itemIndex: 拖拽起始位置。
- insertIndex: 拖拽插入位置。
- isSuccess: 是否成功释放。
**说明:**
跨List拖拽时,当拖拽释放的位置绑定了onItemDrop时会返回true,否则为false。List内部拖拽时,isSuccess为onItemMove事件的返回值。 | ## ScrollState枚举说明 @@ -92,9 +112,9 @@ List(value?:{space?: number | string, initialIndex?: number, scroller? | 名称 | 描述 | | ------ | ------------------------- | -| Idle | 未滑动状态。 | -| Scroll | 手指拖动状态。 | -| Fling | 惯性滑动状态。 | +| Idle | 空闲状态。使用控制器提供的方法滚动、拖动滚动条滚动时触发。 | +| Scroll | 手指拖动状态。使用手指拖动List滚动时触发。 | +| Fling | 惯性滚动状态。快速划动松手后惯性滚动和划动到边缘回弹时触发。 | > **说明:** > @@ -197,4 +217,70 @@ struct ListLanesExample { } ``` -![list](figures/list1.gif) \ No newline at end of file +![list](figures/list1.gif) + +```ts +// xxx.ets +@Entry +@Component +struct ListDividerTest { + private arr: number[] = [0, 1, 2, 3] + + @Builder header() { + Text('header') + .width('100%') + .height(50) + .fontSize(16) + .textAlign(TextAlign.Center) + .backgroundColor(0xFFEECC) + } + + @Builder footer() { + Text('footer') + .width('100%') + .height(40) + .fontSize(16) + .textAlign(TextAlign.Center) + .backgroundColor(0xFFEECC) + } + + @Builder item(index: number) { + Text('item' + index) + .width('100%').height(80) + .fontSize(16) + .textAlign(TextAlign.Center) + } + + build() { + Column() { + List() { + ForEach(this.arr, (item) => { + ListItem() { + this.item(item) + } + }, item => item) + ListItemGroup({ header: this.header, footer: this.footer }) { + ForEach(this.arr, (item) => { + ListItem() { + this.item(item) + } + }, item => item) + } + .divider({ strokeWidth: 2, color: Color.Red, startMargin: 20, endMargin: 10 }) + + ForEach(this.arr, (item) => { + ListItem() { + this.item(item) + } + }, item => item) + } + .lanes(2) + .divider({ strokeWidth: 2, color: Color.Red, startMargin: 20, endMargin: 10 }) + .margin(10).borderWidth(1) + }.width("100%") + .height("100%") + } +} +``` + +![ListDivider](figures/ListDivider.png) \ No newline at end of file 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 22799b3ac2607dc2e0817862f33fafcd077cd1df..7d8671137f9b2af63d2440dd6c9fac951d5fa123 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 @@ -26,8 +26,8 @@ ListItem(value?: string) | -------- | -------- | -------- | | sticky(deprecated) | [Sticky](#stickydeprecated枚举说明) | 设置ListItem吸顶效果。
默认值:Sticky.None
从API version9开始废弃,推荐使用[List组件sticky属性](ts-container-list.md#属性)。 | | editable(deprecated) | boolean \| [EditMode](#editmodedeprecated枚举说明) | 当前ListItem元素是否可编辑,进入编辑模式后可删除或移动列表项。
从API version9开始废弃。
默认值:false | -| selectable8+ | boolean | 当前ListItem元素是否可以被鼠标框选。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
外层List容器的鼠标框选开启时,ListItem的框选才生效。
默认值:true | -| swipeAction9+ | {
start?: CustomBuilder,
end?:CustomBuilder,
edgeEffect?: [SwipeEdgeEffect](#swipeedgeeffect9枚举说明),
} | 用于设置ListItem的划出组件。
- start: ListItem向右划动时item左边的组件(List垂直布局时)或ListItem向下划动时item上方的组件(List水平布局时)。
- end: ListItem向左划动时item右边的组件(List垂直布局时)或ListItem向上划动时item下方的组件(List水平布局时)。
- edgeEffect: 滑动效果。
| +| selectable8+ | boolean | 当前ListItem元素是否可以被鼠标框选。
**说明:**
外层List容器的鼠标框选开启时,ListItem的框选才生效。
默认值:true | +| swipeAction9+ | {
start?: CustomBuilder,
end?:CustomBuilder,
edgeEffect?: [SwipeEdgeEffect](#swipeedgeeffect9枚举说明),
} | 用于设置ListItem的划出组件。
- start: ListItem向右划动时item左边的组件(List垂直布局时)或ListItem向下划动时item上方的组件(List水平布局时)。
- end: ListItem向左划动时item右边的组件(List垂直布局时)或ListItem向上划动时item下方的组件(List水平布局时)。
- edgeEffect: 滑动效果。
**说明:**
start和end对应的@builder函数中顶层必须是单个组件,不能是if/else、ForEach、LazyForEach语句。 | ## Sticky(deprecated)枚举说明 从API version9开始废弃,推荐使用[List组件stickyStyle枚举](ts-container-list.md#stickystyle9枚举说明)。 @@ -55,7 +55,7 @@ ListItem(value?: string) | 名称 | 功能描述 | | -------- | -------- | -| onSelect(event: (isSelected: boolean) => void)8+ | ListItem元素被鼠标框选的状态改变时触发回调。
isSelected:进入鼠标框选范围即被选中返回true, 移出鼠标框选范围即未被选中返回false。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| onSelect(event: (isSelected: boolean) => void)8+ | ListItem元素被鼠标框选的状态改变时触发回调。
isSelected:进入鼠标框选范围即被选中返回true, 移出鼠标框选范围即未被选中返回false。 | ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-listitemgroup.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-listitemgroup.md index 29d42b8de0840788b1f4fe13b94986ad3d337790..fb27abb4a2393b4e75fcb533b5bbc387a2061d97 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-listitemgroup.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-listitemgroup.md @@ -35,6 +35,14 @@ ListItemGroup(options?: {header?: CustomBuilder, footer?: CustomBuilder, space?: | -------- | -------- | -------- | | divider | {
strokeWidth: [Length](ts-types.md#length),
color?: [ResourceColor](ts-types.md#resourcecolor),
startMargin?: [Length](ts-types.md#length),
endMargin?: [Length](ts-types.md#length)
} \| null | 用于设置ListItem分割线样式,默认无分割线。
strokeWidth: 分割线的线宽。
color: 分割线的颜色。
startMargin: 分割线距离列表侧边起始端的距离。
endMargin: 分割线距离列表侧边结束端的距离。 | +> **说明:** +> +> ListItemGroup组件不支持设置[通用属性aspectRatio](ts-universal-attributes-layout-constraints.md)。 +> +> ListItemGroup组件如果主轴方向是垂直方向时,设置[通用属性height](ts-universal-attributes-size.md)属性不生效。 +> +> ListItemGroup组件如果主轴方向是水平方向时,设置[通用属性width](ts-universal-attributes-size.md)属性不生效。 + ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-panel.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-panel.md index ec239c8400514c7e41cb3b5f37cbee6afd6a0fb0..08022baa52e2ff206b0e3e00272f4af557cff536 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-panel.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-panel.md @@ -11,6 +11,10 @@ 可以包含子组件。 +> **说明:** +> +> 子组件类型:系统组件和自定义组件,支持渲染控制类型([if/else](../../quick-start/arkts-rendering-control.md#条件渲染)、[ForEach](../../quick-start/arkts-rendering-control.md#循环渲染)和[LazyForEach](../../quick-start/arkts-rendering-control.md#数据懒加载))。 + ## 接口 @@ -20,19 +24,20 @@ Panel(show: boolean) | 参数名 | 参数类型 | 必填 | 参数描述 | | -------- | -------- | -------- | -------- | -| show | boolean | 是 | 控制Panel显示或隐藏。 | - +| show | boolean | 是 | 控制Panel显示或隐藏。
**说明:**
如果设置为false时,则不占位隐藏。[Visible.None](ts-universal-attributes-visibility.md)或者show之间有一个生效时,都会生效不占位隐藏。 | ## 属性 +除支持[通用属性](ts-universal-attributes-size.md)外,还支持以下属性: + | 名称 | 参数类型 | 描述 | | -------- | -------- | -------- | | type | [PanelType](#paneltype枚举说明) | 设置可滑动面板的类型。
默认值:PanelType.Foldable | -| mode | [PanelMode](#panelmode枚举说明) | 设置可滑动面板的初始状态。 | +| mode | [PanelMode](#panelmode枚举说明) | 设置可滑动面板的初始状态。
默认值:PanelMode.Half | | dragBar | boolean | 设置是否存在dragbar,true表示存在,false表示不存在。
默认值:true | -| fullHeight | string \| number | 指定PanelMode.Full状态下的高度。 | -| halfHeight | string \| number | 指定PanelMode.Half状态下的高度,默认为屏幕尺寸的一半。 | -| miniHeight | string \| number | 指定PanelMode.Mini状态下的高度。 | +| fullHeight | string \| number | 指定PanelMode.Full状态下的高度。
默认值:当前组件主轴大小减去8vp空白区
**说明:**
不支持设置百分比。 | +| halfHeight | string \| number | 指定PanelMode.Half状态下的高度。
默认值:当前组件主轴大小的一半。
**说明:**
不支持设置百分比。 | +| miniHeight | string \| number | 指定PanelMode.Mini状态下的高度。
默认值:48
单位:vp
**说明:**
不支持设置百分比。 | | show | boolean | 当滑动面板弹出时调用。 | | backgroundMask9+|[ResourceColor](ts-types.md#resourcecolor)|指定Panel的背景蒙层。| @@ -52,9 +57,10 @@ Panel(show: boolean) | Half | 类型为foldable和temporary时,为类半屏状态;类型为minibar,则不生效。 | | Full | 类全屏状态。 | - ## 事件 +除支持[通用事件](ts-universal-events-click.md)外,还支持以下事件: + | 名称 | 功能描述 | | -------- | -------- | | onChange(event: (width: number, height: number, mode: PanelMode) => void) | 当可滑动面板发生状态变化时触发, 返回的height值为内容区高度值,当dragbar属性为true时,panel本身的高度值为dragbar高度加上内容区高度。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-refresh.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-refresh.md index 1d4f7f8f449ecc9e3fc308bd34e84ea5518e7ba4..125dfbf58a1bb4c1e6aaa084128bd44f2dc83e35 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-refresh.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-refresh.md @@ -25,10 +25,14 @@ Refresh\(value: \{ refreshing: boolean, offset?: number | string , fr | friction | number \| string | 否 | 下拉摩擦系数,取值范围为0到100。
默认值:62
- 0表示下拉刷新容器不跟随手势下拉而下拉。
- 100表示下拉刷新容器紧紧跟随手势下拉而下拉。
- 数值越大,下拉刷新容器跟随手势下拉的反应越灵敏。 | | builder | [CustomBuilder](ts-types.md#custombuilder8)10+ | 否 | 下拉时,自定义刷新样式的组件。 | +## 属性 +支持[通用属性](ts-universal-attributes-size.md)。 ## 事件 +除支持[通用事件](ts-universal-events-click.md)外,还支持以下事件: + | 名称 | 描述 | | -------- | -------- | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-row.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-row.md index 69d6b435712382434f64b8c042755fd654dd2dc8..55793b7218f1dbc5beb6f7557a981331d4311928 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-row.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-row.md @@ -22,7 +22,7 @@ Row(value?:{space?: number | string }) | 参数名 | 参数类型 | 必填 | 参数描述 | | -------- | -------- | -------- | -------- | -| space | string \| number | 否 | 横向布局元素间距。
从API version 9开始,space为负数或者justifyContent设置为FlexAlign.SpaceBetween、FlexAlign.SpaceAround、FlexAlign.SpaceEvenly时不生效。
默认值:0,单位vp | +| space | string \| number | 否 | 横向布局元素间距。
从API version 9开始,space为负数或者justifyContent设置为FlexAlign.SpaceBetween、FlexAlign.SpaceAround、FlexAlign.SpaceEvenly时不生效。
默认值:0,单位vp
**说明:**
可选值为大于等于0的数字,或者可以转换为数字的字符串。 | ## 属性 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-rowsplit.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-rowsplit.md index da4043d3bf0612b044344ba91e947b2d52cb80f6..35e7c2907c15ecee2803b71db4e8976e8135bcb6 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-rowsplit.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-rowsplit.md @@ -26,6 +26,8 @@ RowSplit() > RowSplit的分割线最小能拖动到刚好包含子组件。 > > 在真机中查看拖动效果,预览器中不支持拖动。 +> +> 不支持clip、margin通用属性。 ## 示例 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 477df9e35027daa97db37db06e3176f12c112b55..bd8d15720086142ef5ce0d40c497bfff2a5730d0 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 @@ -31,9 +31,9 @@ Scroll(scroller?: Scroller) | 名称 | 参数类型 | 描述 | | -------------- | ---------------------------------------- | --------- | | scrollable | [ScrollDirection](#scrolldirection枚举说明) | 设置滚动方向。
默认值:ScrollDirection.Vertical | -| scrollBar | [BarState](ts-appendix-enums.md#barstate) | 设置滚动条状态。
默认值:BarState.Auto | +| scrollBar | [BarState](ts-appendix-enums.md#barstate) | 设置滚动条状态。
默认值:BarState.Auto
**说明:**
如果容器组件无法滚动,则滚动条不显示。 | | scrollBarColor | string \| number \| [Color](ts-appendix-enums.md#color) | 设置滚动条的颜色。 | -| scrollBarWidth | string \| number | 设置滚动条的宽度。 | +| scrollBarWidth | string \| number | 设置滚动条的宽度。
默认值:4
单位:vp | | edgeEffect | [EdgeEffect](ts-appendix-enums.md#edgeeffect) | 设置滑动效果,目前支持的滑动效果参见EdgeEffect的枚举说明。
默认值:EdgeEffect.None | ## ScrollDirection枚举说明 @@ -48,12 +48,12 @@ Scroll(scroller?: Scroller) | 名称 | 功能描述 | | ------------------------------------------------------------ | ------------------------------------------------------------ | -| onScrollFrameBegin9+(event: (offset: number, state: ScrollState) => { offsetRemain }) | 每帧开始滚动时触发,事件参数传入即将发生的滚动量,事件处理函数中可根据应用场景计算实际需要的滚动量并作为事件处理函数的返回值返回,Scroll将按照返回值的实际滚动量进行滚动。
\- offset:即将发生的滚动量。
\- state:当前滚动状态。
- offsetRemain:实际滚动量。 | -| onScroll(event: (xOffset: number, yOffset: number) => void) | 滚动事件回调, 返回滚动时水平、竖直方向偏移量。 | -| onScrollEdge(event: (side: Edge) => void) | 滚动到边缘事件回调。 | -| onScrollEnd(deprecated) (event: () => void) | 滚动停止事件回调。
该事件从API9开始废弃,使用onScrollStop事件替代。 | -| onScrollStart9+(event: () => void) | 滚动开始时触发。手指拖动Scroll或拖动Scroll的滚动条触发的滚动开始时,会触发该事件。使用[Scroller](#scroller)滚动控制器触发的带动画的滚动,动画开始时会触发该事件。 | -| onScrollStop9+(event: () => void) | 滚动停止时触发。手拖动Scroll或拖动Scroll的滚动条触发的滚动,手离开屏幕并且滚动停止时会触发该事件。使用[Scroller](#scroller)滚动控制器触发的带动画的滚动,动画停止时会触发该事件。 | +| onScrollFrameBegin9+(event: (offset: number, state: ScrollState) => { offsetRemain }) | 每帧开始滚动时触发,事件参数传入即将发生的滚动量,事件处理函数中可根据应用场景计算实际需要的滚动量并作为事件处理函数的返回值返回,Scroll将按照返回值的实际滚动量进行滚动。
\- offset:即将发生的滚动量。
\- state:当前滚动状态。
- offsetRemain:实际滚动量。
触发该事件的条件 :
1、滚动组件触发滚动时触发,包括键鼠操作等其他触发滚动的输入设置。
2、调用控制器接口时不触发。
3、越界回弹不触发。
**说明:**
支持offsetRemain为负值。
若通过onScrollFrameBegine事件和scrollBy方法实现容器嵌套滚动,需设置子滚动节点的EdgeEffect为None。如Scroll嵌套List滚动时,List组件的edgeEffect属性需设置为EdgeEffect.None。 | +| onScroll(event: (xOffset: number, yOffset: number) => void) | 滚动事件回调, 返回滚动时水平、竖直方向偏移量。
触发该事件的条件 :
1、滚动组件触发滚动时触发,支持键鼠操作等其他触发滚动的输入设置。
2、通过滚动控制器API接口调用。
3、越界回弹。 | +| onScrollEdge(event: (side: Edge) => void) | 滚动到边缘事件回调。
触发该事件的条件 :
1、滚动组件触发滚动时触发,支持键鼠操作等其他触发滚动的输入设置。
2、通过滚动控制器API接口调用。
3、越界回弹。 | +| onScrollEnd(deprecated) (event: () => void) | 滚动停止事件回调。
该事件从API version 9开始废弃,使用onScrollStop事件替代。
触发该事件的条件 :
1、滚动组件触发滚动后停止,支持键鼠操作等其他触发滚动的输入设置。
2、通过滚动控制器API接口调用后停止,带过渡动效。 | +| onScrollStart9+(event: () => void) | 滚动开始时触发。手指拖动Scroll或拖动Scroll的滚动条触发的滚动开始时,会触发该事件。使用[Scroller](#scroller)滚动控制器触发的带动画的滚动,动画开始时会触发该事件。
触发该事件的条件 :
1、滚动组件触发滚动后停止,支持键鼠操作等其他触发滚动的输入设置。
2、通过滚动控制器API接口调用后开始,带过渡动效。 | +| onScrollStop9+(event: () => void) | 滚动停止时触发。手拖动Scroll或拖动Scroll的滚动条触发的滚动,手离开屏幕并且滚动停止时会触发该事件。使用[Scroller](#scroller)滚动控制器触发的带动画的滚动,动画停止时会触发该事件。
触发该事件的条件 :
1、滚动组件触发滚动后停止,支持键鼠操作等其他触发滚动的输入设置。
2、通过滚动控制器API接口调用后开始,带过渡动效,。 | > **说明:** > @@ -82,9 +82,9 @@ scrollTo(value: { xOffset: number | string, yOffset: number | string, animation? | 参数名 | 参数类型 | 必填 | 参数描述 | | --------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| xOffset | number | string | 是 | 水平滑动偏移。 | -| yOffset | number | string | 是 | 竖直滑动偏移。 | -| animation | {
duration: number,
curve: [Curve](ts-appendix-enums.md#curve)
} | 否 | 动画配置:
- duration: 滚动时长设置。
- curve: 滚动曲线设置。 | +| xOffset | number \| string | 是 | 水平滑动偏移。
**说明:**
该参数值不支持设置百分比。
仅滚动轴为x轴时生效。 | +| yOffset | number \| string | 是 | 垂直滑动偏移。
**说明:**
该参数值不支持设置百分比。
仅滚动轴为y轴时生效。 | +| animation | {
duration: number,
curve: [Curve](ts-appendix-enums.md#curve)
} | 否 | 动画配置:
- duration: 滚动时长设置。
- curve: 滚动曲线设置。
默认值:
{
duration: 0,
curve: Curve.Ease
}
**说明:**
设置为小于0的值时,按默认值显示。 | ### scrollEdge @@ -124,9 +124,9 @@ currentOffset(): { xOffset: number, yOffset: number } **返回值** -| 类型 | 描述 | -| ---------------------------------------- | ---------------------------------------- | -| {
xOffset: number,
yOffset: number
} | xOffset: 水平滑动偏移;
yOffset: 竖直滑动偏移。 | +| 类型 | 描述 | +| ---------------------------------------------------------- | ------------------------------------------------------------ | +| {
xOffset: number,
yOffset: number
} | xOffset: 水平滑动偏移;
yOffset: 竖直滑动偏移。
**说明:**
返回值单位为vp。 | ### scrollToIndex @@ -198,7 +198,7 @@ struct ScrollExample { .scrollable(ScrollDirection.Vertical) // 滚动方向纵向 .scrollBar(BarState.On) // 滚动条常驻显示 .scrollBarColor(Color.Gray) // 滚动条颜色 - .scrollBarWidth(30) // 滚动条宽度 + .scrollBarWidth(10) // 滚动条宽度 .edgeEffect(EdgeEffect.None) .onScroll((xOffset: number, yOffset: number) => { console.info(xOffset + ' ' + yOffset) @@ -211,21 +211,25 @@ struct ScrollExample { }) Button('scroll 150') + .height('5%') .onClick(() => { // 点击后下滑指定距离150.0vp this.scroller.scrollBy(0,150) }) .margin({ top: 10, left: 20 }) Button('scroll 100') + .height('5%') .onClick(() => { // 点击后滑动到指定位置,即下滑100.0vp的距离 this.scroller.scrollTo({ xOffset: 0, yOffset: this.scroller.currentOffset().yOffset + 100 }) }) .margin({ top: 60, left: 20 }) Button('back top') + .height('5%') .onClick(() => { // 点击后回到顶部 this.scroller.scrollEdge(Edge.Top) }) .margin({ top: 110, left: 20 }) Button('next page') + .height('5%') .onClick(() => { // 点击后滑到下一页 this.scroller.scrollPage({ next: true }) }) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-sidebarcontainer.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-sidebarcontainer.md index 7fc532d248680a0bbc1bd2fbfa90f9379f4cd14b..649fb56e53c29400fe39babced4e18e3ef2ab2aa 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-sidebarcontainer.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-sidebarcontainer.md @@ -11,6 +11,12 @@ 可以包含子组件。 +> **说明:** +> +> - 子组件类型:系统组件和自定义组件,不支持渲染控制类型([if/else](../../quick-start/arkts-rendering-control.md#条件渲染)、[ForEach](../../quick-start/arkts-rendering-control.md#循环渲染)和[LazyForEach](../../quick-start/arkts-rendering-control.md#数据懒加载))。 +> - 子组件个数:必须且仅包含2个子组件。 +> - 子组件个数异常时:3个或以上子组件,显示第一个和第二个。1个子组件,显示侧边栏,内容区为空白。 + ## 接口 @@ -31,27 +37,29 @@ SideBarContainer( type?: SideBarContainerType ) ## 属性 +除支持[通用属性](ts-universal-attributes-size.md)外,还支持以下属性: + | 名称 | 参数类型 | 描述 | | -------- | -------- | -------- | | showSideBar | boolean | 设置是否显示侧边栏。
默认值:true | -| controlButton | ButtonStyle | 设置侧边栏控制按钮的属性。 | +| controlButton | [ButtonStyle](#buttonstyle对象说明) | 设置侧边栏控制按钮的属性。 | | showControlButton | boolean | 设置是否显示控制按钮。
默认值:true | -| sideBarWidth | number \| Length9+ | 设置侧边栏的宽度。
默认值:200,单位vp | -| minSideBarWidth | number \| Length9+ | 设置侧边栏最小宽度。
默认值:200,单位vp | -| maxSideBarWidth | number \| Length9+ | 设置侧边栏最大宽度。
默认值:280,单位vp | -| autoHide9+ | boolean | 设置当侧边栏拖拽到小于最小宽度后,是否自动隐藏。
默认值:true | -| sideBarPosition9+ | SideBarPosition | 设置侧边栏显示位置。
默认值:SideBarPosition.Start | +| sideBarWidth | number \| [Length](ts-types.md#length)9+ | 设置侧边栏的宽度。
默认值:200
单位:vp
**说明:**
设置为小于0的值时按默认值显示。
受最小宽度和最大宽度限制,不在限制区域内取最近的点。
sideBarWidth优先于侧边栏子组件width,sideBarWidth未设置时默认值优先级低于侧边栏子组件width。 | +| minSideBarWidth | number \| [Length](ts-types.md#length)9+ | 设置侧边栏最小宽度。
默认值:200,单位vp
**说明:**
设置为小于0的值时按默认值显示。
值不能超过侧边栏容器本身宽度,超过使用侧边栏容器本身宽度。
minSideBarWidth优先于侧边栏子组件minWidth,minSideBarWidth未设置时默认值优先级低于侧边栏子组件minWidth。 | +| maxSideBarWidth | number \| [Length](ts-types.md#length)9+ | 设置侧边栏最大宽度。
默认值:280,单位vp
**说明:**
设置为小于0的值时按默认值显示。
值不能超过侧边栏容器本身宽度,超过使用侧边栏容器本身宽度。
maxSideBarWidth优先于侧边栏子组件maxWidth,maxSideBarWidth未设置时默认值优先级低于侧边栏子组件maxWidth。 | +| autoHide9+ | boolean | 设置当侧边栏拖拽到小于最小宽度后,是否自动隐藏。
默认值:true
**说明:**
受minSideBarWidth属性方法影响,minSideBarWidth属性方法未设置值使用默认值。
拖拽过程中判断是否要自动隐藏。小于最小宽度时需要阻尼效果触发隐藏(越界一段距离) | +| sideBarPosition9+ | [SideBarPosition](#sidebarposition9枚举说明) | 设置侧边栏显示位置。
默认值:SideBarPosition.Start | | divider10+ | [DividerStyle](#dividerstyle10对象说明) \| null | 设置分割线的样式。
- 默认为DividerStyle:显示分割线。
- null:不显示分割线。 | ## ButtonStyle对象说明 | 名称 | 参数类型 | 必填 | 描述 | | -------- | -------- | -------- | -------- | -| left | number | 否 | 设置侧边栏控制按钮距离容器左界限的间距。
默认值:16,单位vp | -| top | number | 否 | 设置侧边栏控制按钮距离容器上界限的间距。
默认值:48,单位vp | -| width | number | 否 | 设置侧边栏控制按钮的宽度。
默认值:32,单位vp | -| height | number | 否 | 设置侧边栏控制按钮的高度。
默认值:32,单位vp | -| icons | {
shown: string \| PixelMap \| [Resource](ts-types.md) ,
hidden: string \| PixelMap \| [Resource](ts-types.md) ,
switching?: string \| PixelMap \| [Resource](ts-types.md)
} | 否 | 设置侧边栏控制按钮的图标:

- shown: 设置侧边栏显示时控制按钮的图标。
- hidden: 设置侧边栏隐藏时控制按钮的图标。
- switching:设置侧边栏显示和隐藏状态切换时控制按钮的图标。 | +| left | number | 否 | 设置侧边栏控制按钮距离容器左界限的间距。
默认值:16
单位:vp | +| top | number | 否 | 设置侧边栏控制按钮距离容器上界限的间距。
默认值:48
单位:vp | +| width | number | 否 | 设置侧边栏控制按钮的宽度。
默认值:32
单位:vp | +| height | number | 否 | 设置侧边栏控制按钮的高度。
默认值:32
单位:vp | +| icons | {
shown: string \| PixelMap \| [Resource](ts-types.md) ,
hidden: string \| PixelMap \| [Resource](ts-types.md) ,
switching?: string \| PixelMap \| [Resource](ts-types.md)
} | 否 | 设置侧边栏控制按钮的图标:

- shown: 设置侧边栏显示时控制按钮的图标。
**说明:**
资源获取错误时,使用默认图标。
- hidden: 设置侧边栏隐藏时控制按钮的图标。
- switching:设置侧边栏显示和隐藏状态切换时控制按钮的图标。 | ## SideBarPosition9+枚举说明 @@ -64,16 +72,29 @@ SideBarContainer( type?: SideBarContainerType ) | 名称 | 参数类型 | 必填 | 描述 | | ----------- | ------------- | ---- | ---------------------------------------- | -| strokeWidth | [Length](ts-types.md#length) | 是 | 分割线的线宽。
默认值:1,单位vp | +| strokeWidth | [Length](ts-types.md#length) | 是 | 分割线的线宽。
默认值:1
单位:vp | | color | [ResourceColor](ts-types.md#resourcecolor) | 否 | 分割线的颜色。
默认值:#000000,3% | | startMargin | [Length](ts-types.md#length) | 否 | 分割线与侧边栏顶端的距离。
默认值:0 | | endMargin | [Length](ts-types.md#length) | 否 | 分割线与侧边栏底端的距离。
默认值:0 | +> **说明:** +> +> 针对侧边栏子组件设置[通用属性宽高](ts-universal-attributes-size.md)时,宽生效的前提是侧边栏容器不设置sideBarWidth,高度不生效。 +> 针对侧边栏内容区设置[通用属性宽高](ts-universal-attributes-size.md)时,宽高都不生效,默认占满SideBarContainer的剩余空间。 +> +> 当属性方法未设置时,依据组件大小进行自动显示: +> +> - 小于520vp:默认不显示侧边栏。 +> - 大于等于520vp:默认显示侧边栏。 +> - 小于520vp:不显示侧边栏。 +> - 大于等于520vp:显示侧边栏。 ## 事件 +除支持[通用事件](ts-universal-events-click.md)外,还支持以下事件: + | 名称 | 功能描述 | | -------- | -------- | -| onChange(callback: (value: boolean) => void) | 当侧边栏的状态在显示和隐藏之间切换时触发回调。

true表示显示,false表示隐藏。 | +| onChange(callback: (value: boolean) => void) | 当侧边栏的状态在显示和隐藏之间切换时触发回调。true表示显示,false表示隐藏。
触发该事件的条件:
1、showSideBar属性值变换时;
2、showSideBar属性自适应行为变化时;
3、分割线拖拽触发autoHide时。 | ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-swiper.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-swiper.md index ac04ea0fc647ad43924f424d83ff05e4d5692f30..27d81ff210eec20f5d3d0728c90f9345192f14f1 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-swiper.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-swiper.md @@ -11,6 +11,10 @@ 可以包含子组件。 +> **说明:** +> +> 子组件类型:系统组件和自定义组件,支持渲染控制类型([if/else](../../quick-start/arkts-rendering-control.md#条件渲染)、[ForEach](../../quick-start/arkts-rendering-control.md#循环渲染)和[LazyForEach](../../quick-start/arkts-rendering-control.md#数据懒加载))。 + ## 接口 @@ -29,21 +33,21 @@ Swiper(controller?: SwiperController) | 名称 | 参数类型 | 描述 | | --------------------------- | ---------------------------------------- | ---------------------------------------- | -| index | number | 设置当前在容器中显示的子组件的索引值。
默认值:0 | -| autoPlay | boolean | 子组件是否自动播放。
默认值:false | +| index | number | 设置当前在容器中显示的子组件的索引值。
默认值:0
**说明:**
设置小于0或大于等于子组件数量时,按照默认值0处理。 | +| autoPlay | boolean | 子组件是否自动播放。
默认值:false
**说明:**
loop为false时,自动轮播到最后一页时停止轮播。手势切换后不是最后一页时继续播放。 | | interval | number | 使用自动播放时播放的时间间隔,单位为毫秒。
默认值:3000 | | indicator10+ | [DotIndicator](#dotindicator) \| [DigitIndicator](#digitindicator) \| boolean | 设置可选导航点指示器样式。
\- DotIndicator:圆点指示器样式。
\- DigitIndicator:数字指示器样式。
\- boolean:是否启用导航点指示器。
  默认值:true
  默认类型:DotIndicator | | loop | boolean | 是否开启循环。
设置为true时表示开启循环,在LazyForEach懒循环加载模式下,加载的组件数量建议大于5个。
默认值:true | | duration | number | 子组件切换的动画时长,单位为毫秒。
默认值:400 | | vertical | boolean | 是否为纵向滑动。
默认值:false | -| itemSpace | number \| string | 设置子组件与子组件之间间隙。
默认值:0 | +| itemSpace | number \| string | 设置子组件与子组件之间间隙。
默认值:0
**说明:**
不支持设置百分比。 | | displayMode | SwiperDisplayMode | 主轴方向上元素排列的模式,优先以displayCount设置的个数显示,displayCount未设置时本属性生效。
默认值:SwiperDisplayMode.Stretch | | cachedCount8+ | number | 设置预加载子组件个数。
默认值:1 | | disableSwipe8+ | boolean | 禁用组件滑动切换功能。
默认值:false | | curve8+ | [Curve](ts-appendix-enums.md#curve) \| string | 设置Swiper的动画曲线,默认为淡入淡出曲线,常用曲线参考[Curve枚举说明](ts-appendix-enums.md#curve),也可以通过[插值计算](../apis/js-apis-curve.md)模块提供的接口创建自定义的插值曲线对象。
默认值:Curve.Ease | | indicatorStyle8+ | {
left?: [Length](ts-types.md#length),
top?: [Length](ts-types.md#length),
right?: [Length](ts-types.md#length),
bottom?: [Length](ts-types.md#length),
size?: [Length](ts-types.md#length),
mask?: boolean,
color?: [ResourceColor](ts-types.md),
selectedColor?: [ResourceColor](ts-types.md)
} | 设置导航点样式:
\- left: 设置导航点距离Swiper组件左边的距离。
\- top: 设置导航点距离Swiper组件顶部的距离。
\- right: 设置导航点距离Swiper组件右边的距离。
\- bottom: 设置导航点距离Swiper组件底部的距离。
\- size: 设置导航点的直径。
\- mask: 设置是否显示导航点蒙层样式。
\- color: 设置导航点的颜色。
\- selectedColor: 设置选中的导航点的颜色。 | -| displayCount8+ | number\|string | 设置一页内元素显示个数。
默认值:1 | -| effectMode8+ | [EdgeEffect](ts-appendix-enums.md#edgeeffect) | 滑动效果,目前支持的滑动效果参见EdgeEffect的枚举说明。
默认值:EdgeEffect.Spring | +| displayCount8+ | number\|string | 设置一页内元素显示个数。
默认值:1
**说明:**
字符串类型仅支持设置为'auto',显示效果同SwiperDisplayMode.AutoLinear。
使用number类型时,子组件按照主轴均分Swiper宽度(减去displayCount-1的itemSpace)的方式进行主轴拉伸(收缩)布局。 | +| effectMode8+ | [EdgeEffect](ts-appendix-enums.md#edgeeffect) | 滑动效果,目前支持的滑动效果参见EdgeEffect的枚举说明。
默认值:EdgeEffect.Spring
**说明:**
控制器接口调用时不生效回弹。 | ## SwiperDisplayMode枚举说明 @@ -60,13 +64,13 @@ Swiper容器组件的控制器,可以将此对象绑定至Swiper组件,然 showNext(): void -翻至下一页。 +翻至下一页。翻页带动效切换过程,时长通过duration指定。 ### showPrevious showPrevious(): void -翻至上一页。 +翻至上一页。翻页带动效切换过程,时长通过duration指定。 ### finishAnimation @@ -97,13 +101,13 @@ finishAnimation(callback?: () => void): void | 参数名 | 参数类型 | 必填项 | 参数描述 | | ------------------ | ------------- | ------ | ------------------------------------------------------ | -| itemWidth | [Length](ts-types.md#length) | 否 | 设置Swiper组件圆点导航指示器的宽。 | -| itemHeight | [Length](ts-types.md#length) | 否 | 设置Swiper组件圆点导航指示器的高。 | -| selectedItemWidth | [Length](ts-types.md#length) | 否 | 设置选中Swiper组件圆点导航指示器的宽。 | -| selectedItemHeight | [Length](ts-types.md#length) | 否 | 设置选中Swiper组件圆点导航指示器的高。 | -| mask | boolean | 否 | 设置是否显示Swiper组件圆点导航指示器的蒙版样式。 | -| color | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置Swiper组件圆点导航指示器的颜色。 | -| selectedColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置选中Swiper组件圆点导航指示器的颜色。 | +| itemWidth | [Length](ts-types.md#length) | 否 | 设置Swiper组件圆点导航指示器的宽。
默认值:6
单位:vp | +| itemHeight | [Length](ts-types.md#length) | 否 | 设置Swiper组件圆点导航指示器的高。
默认值:6
单位:vp | +| selectedItemWidth | [Length](ts-types.md#length) | 否 | 设置选中Swiper组件圆点导航指示器的宽。
默认值:6
单位:vp | +| selectedItemHeight | [Length](ts-types.md#length) | 否 | 设置选中Swiper组件圆点导航指示器的高。
默认值:6
单位:vp | +| mask | boolean | 否 | 设置是否显示Swiper组件圆点导航指示器的蒙版样式。
默认值:false | +| color | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置Swiper组件圆点导航指示器的颜色。
默认值:'\#007DFF' | +| selectedColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置选中Swiper组件圆点导航指示器的颜色。
默认值:'\#182431'(10%透明度) | ### DigitIndicator @@ -111,29 +115,20 @@ finishAnimation(callback?: () => void): void | 参数名 | 参数类型 | 必填项 | 参数描述 | | ----------------- | ------------------------------------------------------------ | ------ | ------------------------------------------------------------ | -| fontColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置Swiper组件数字导航点的字体颜色。 | -| selectedFontColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置选中Swiper组件数字导航点的字体颜色。 | -| digitFont | {
size?:[Length](ts-types.md#length)
weight?:number \| [FontWeight](ts-appendix-enums.md#fontweight) \| string
} | 否 | 设置Swiper组件数字导航点的字体样式:
\- size:数字导航点指示器的字体大小。
\- weight:数字导航点指示器的字重。 | -| selectedDigitFont | {
size?:[Length](ts-types.md#length)
weight?:number \| [FontWeight](ts-appendix-enums.md#fontweight) \| string
} | 否 | 设置选中Swiper组件数字导航点的字体样式:
\- size:数字导航点选中指示器的字体大小。
\- weight:数字导航点选中指示器的字重。 | - - +| fontColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置Swiper组件数字导航点的字体颜色。
默认值:'\#ff182431' | +| selectedFontColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置选中Swiper组件数字导航点的字体颜色。
默认值:'\#ff182431' | +| digitFont | {
size?:[Length](ts-types.md#length)
weight?:number \| [FontWeight](ts-appendix-enums.md#fontweight) \| string
} | 否 | 设置Swiper组件数字导航点的字体样式:
\- size:数字导航点指示器的字体大小。
默认值:14vp
\- weight:数字导航点指示器的字重。 | +| selectedDigitFont | {
size?:[Length](ts-types.md#length)
weight?:number \| [FontWeight](ts-appendix-enums.md#fontweight) \| string
} | 否 | 设置选中Swiper组件数字导航点的字体样式:
\- size:数字导航点选中指示器的字体大小。
默认值:14vp
\- weight:数字导航点选中指示器的字重。 | ## 事件 -### onChange - -onChange(event: (index: number) => void) - -当前显示的子组件索引变化时触发该事件,返回值为当前显示的子组件的索引值。 - -**说明**:Swiper组件结合LazyForEach使用时,不能在onChange事件里触发子页面UI的刷新。 - -**返回值:** - -| 名称 | 类型 | 参数描述 | -| --------- | ---------- | -------- | -| index | number | 当前显示元素的索引。 | +除支持[通用事件](ts-universal-events-click.md)外,还支持以下事件: +| 名称 | 功能描述 | +| ------------------------------------------------------------ | ------------------------------------------------------------ | +| onChange(event: (index: number) => void) | 当前显示的子组件索引变化时触发该事件,返回值为当前显示的子组件的索引值。
- index:当前显示元素的索引。
**说明:**
Swiper组件结合LazyForEach使用时,不能在onChange事件里触发子页面UI的刷新。 | +| onAnimationStart9+(event: (index: number) => void) | 切换动画开始时触发该回调。
- index:当前显示元素的索引。
**说明:**
参数为动画开始前的index值(不是最终结束动画的index值),多列Swiper时,index为最左侧组件的索引。 | +| onAnimationEnd9+(event: (index: number) => void) | 切换动画结束时触发该回调。
- index:当前显示元素的索引。
**说明:**
当Swiper切换动效结束时触发,包括动画过程中手势中断,通过SwiperController调用finishAnimatio。参数为动画结束后的index值,多列Swiper时,index为最左侧组件的索引。 | ## 示例 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 f69e6f8606ea1d9115a20f1994718c2f04408887..cf5dd6cc428ae738c28fd4094ed70064f5b9de14 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 @@ -11,6 +11,10 @@ 支持单个子组件。 +> **说明:** +> +> 可内置系统组件和自定义组件,支持渲染控制类型([if/else](../../quick-start/arkts-rendering-control.md#条件渲染)、[ForEach](../../quick-start/arkts-rendering-control.md#循环渲染)和[LazyForEach](../../quick-start/arkts-rendering-control.md#数据懒加载))。 + ## 接口 @@ -23,13 +27,15 @@ 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: 底部页签和侧边页签样式,参数为文字和图片。 | +| tabBar | string \| Resource \| {
icon?: string \| Resource,
text?: string \| Resource
}
\| [CustomBuilder](ts-types.md)8+ | 设置TabBar上显示内容。
CustomBuilder: 构造器,内部可以传入组件(API8版本以上适用)。
>  **说明:**
> 如果icon采用svg格式图源,则要求svg图源删除其自有宽高属性值。如采用带有自有宽高属性的svg图源,icon大小则是svg本身内置的宽高属性值大小。
设置的内容超出tabbar页签时进行裁切。 | +| tabBar9+ | [SubTabBarStyle](#subtabbarstyle) \| [BottomTabBarStyle](#bottomtabbarstyle) | 设置TabBar上显示内容。
SubTabBarStyle: 子页签样式,参数为文字。
BottomTabBarStyle: 底部页签和侧边页签样式,参数为文字和图片。
**说明:**
底部样式没有下划线效果。
icon异常时显示灰色图块。 | > **说明:** -> - TabContent组件不支持设置通用宽度属性,其宽度默认撑满Tabs父组件。 -> - TabContent组件不支持设置通用高度属性,其高度由Tabs父组件高度与TabBar组件高度决定。 -> - TabContent组件不支持内容过长时页面的滑动,如需页面滑动,可嵌套List使用。 +> +> - TabContent组件不支持设置通用宽度属性,其宽度默认撑满Tabs父组件。 +> - TabContent组件不支持设置通用高度属性,其高度由Tabs父组件高度与TabBar组件高度决定。 +> - vertical属性为false值,交换上述2个限制。 +> - TabContent组件不支持内容过长时页面的滑动,如需页面滑动,可嵌套List使用。 ## SubTabBarStyle9+ @@ -75,10 +81,10 @@ SubTabBarStyle的静态构造函数。 | 名称 | 参数类型 | 必填 | 描述 | | -------- | -------- | -------- | -------------------------------- | | color | [ResourceColor](ts-types.md#resourcecolor) | 否 | 下划线的颜色。
默认值:#FF007DFF | -| height | [Length](ts-types.md#length) | 否 | 下划线的高度。
默认值:2.0vp | -| width | [Length](ts-types.md#length) | 否 | 下划线的宽度。
默认值:0.0vp | -| borderRadius | [Length](ts-types.md#length) | 否 | 下划线的圆角半径。
默认值:0.0vp | -| marginTop | [Length](ts-types.md#length) | 否 | 下划线与文字的间距。
默认值:8.0vp | +| height | [Length](ts-types.md#length) | 否 | 下划线的高度。
默认值:2.0
单位:vp | +| width | [Length](ts-types.md#length) | 否 | 下划线的宽度。
默认值:0.0
单位:vp | +| borderRadius | [Length](ts-types.md#length) | 否 | 下划线的圆角半径。
默认值:0.0
单位:vp | +| marginTop | [Length](ts-types.md#length) | 否 | 下划线与文字的间距。
默认值:8.0
单位:vp | ## SelectedMode10+枚举说明 | 名称 | 描述 | @@ -90,7 +96,7 @@ SubTabBarStyle的静态构造函数。 | 名称 | 参数类型 | 必填 | 描述 | | -------- | -------- | -------- | ------------------------------------ | -| borderRadius | [Length](ts-types.md#length) | 否 | 下划线的圆角半径。
默认值:8.0vp | +| borderRadius | [Length](ts-types.md#length) | 否 | 下划线的圆角半径。
默认值:8.0
单位:vp | ## LabelStyle10+对象说明 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 243479e1a06bff94603c37d654262bacae83557a..e2dd02f98f26881188899a70e223a59c42432e9b 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 @@ -21,7 +21,7 @@ Tabs(value?: {barPosition?: BarPosition, index?: number, controller?: [TabsContr | 参数名 | 参数类型 | 必填 | 参数描述 | | -------- | -------- | -------- | -------- | | barPosition | BarPosition | 否 | 设置Tabs的页签位置。
默认值:BarPosition.Start | -| index | number | 否 | 设置初始页签索引。
默认值:0 | +| index | number | 否 | 设置初始页签索引。
默认值:0
**说明:**
设置为小于0的值时按默认值显示。
可选值为[0, TabContent子节点数量-1]。
设置不同值时,默认生效切换动效,可以设置animationDuration为0关闭动画。 | | controller | [TabsController](#tabscontroller) | 否 | 设置Tabs控制器。 | ## BarPosition枚举说明 @@ -41,9 +41,9 @@ Tabs(value?: {barPosition?: BarPosition, index?: number, controller?: [TabsContr | vertical | boolean | 设置为false是为横向Tabs,设置为true时为纵向Tabs。
默认值:false | | scrollable | boolean | 设置为true时可以通过滑动页面进行页面切换,为false时不可滑动切换页面。
默认值:true | | barMode | BarMode | TabBar布局模式,具体描述见BarMode枚举说明。
默认值:BarMode.Fixed | -| barWidth | number \| Length8+ | TabBar的宽度值。 | -| barHeight | number \| Length8+ | TabBar的高度值。 | -| animationDuration | number | TabContent滑动动画时长。不设置时,点击切换页签无动画,滑动切换有动画;设置时,点击切换和滑动切换都有动画。
默认值:200 | +| barWidth | number \| Length8+ | TabBar的宽度值。
**说明:**
设置为小于0或大于Tabs宽度值时,按默认值显示。 | +| barHeight | number \| Length8+ | TabBar的高度值。
**说明:**
设置为小于0或大于Tabs宽度值时,按默认值显示。 | +| animationDuration | number | TabContent滑动动画时长。不设置时,点击切换页签无动画,滑动切换有动画;设置时,点击切换和滑动切换都有动画。
默认值:200
**说明:**
设置为小于0或百分比时,按默认值显示。| | divider10+ | [DividerStyle](#dividerstyle10对象说明) \| null | 用于设置区分TabBar和TabContent的分割线样式设置分割线样式,默认不显示分割线。
DividerStyle: 分割线的样式;
null: 不显示分割线。 | | FadingEdge10+ | boolean | 设置页签超过容器宽度时是否渐隐消失
默认值:true | @@ -53,8 +53,8 @@ Tabs(value?: {barPosition?: BarPosition, index?: number, controller?: [TabsContr | -------- | -------- | -------- | -------- | | strokeWidth | [Length](ts-types.md#length) | 是 | 分割线的线宽。 | | color | [ResourceColor](ts-types.md#resourcecolor) | 否 | 分割线的颜色。
默认值:#33182431 | -| startMargin | [Length](ts-types.md#length) | 否 | 分割线与侧边栏顶端的距离。
默认值:0.0vp | -| endMargin | [Length](ts-types.md#length) | 否 | 分割线与侧边栏底端的距离。
默认值:0.0vp | +| startMargin | [Length](ts-types.md#length) | 否 | 分割线与侧边栏顶端的距离。
默认值:0.0
单位:vp | +| endMargin | [Length](ts-types.md#length) | 否 | 分割线与侧边栏底端的距离。
默认值:0.0
单位:vp | ## BarMode枚举说明 @@ -69,7 +69,7 @@ Tabs(value?: {barPosition?: BarPosition, index?: number, controller?: [TabsContr | 名称 | 功能描述 | | -------- | -------- | -| onChange(event: (index: number) => void) | Tab页签切换后触发的事件。 | +| onChange(event: (index: number) => void) | Tab页签切换后触发的事件。
- index:当前显示的index索引,索引从0开始计算。
触发该事件的条件:
1、TabContent支持滑动时,组件触发滑动时触发。
2、通过[控制器](#tabscontroller)API接口调用。
3、通过[状态变量](../../quick-start/arkts-state-mgmt-page-level.md)构造的属性值进行修改。
4、通过页签处点击触发。 | ## TabsController @@ -77,9 +77,8 @@ Tabs组件的控制器,用于控制Tabs组件进行页签切换。不支持一 ### 导入对象 -``` +```ts controller: TabsController = new TabsController() - ``` ### changeIndex @@ -92,7 +91,7 @@ changeIndex(value: number): void | 参数名 | 参数类型 | 必填 | 参数描述 | | -------- | -------- | -------- | -------- | -| value | number | 是 | 页签在Tabs里的索引值,索引值从0开始。 | +| value | number | 是 | 页签在Tabs里的索引值,索引值从0开始。
**说明:**
设置小于0或大于最大数量的值时,该事件失效。 | ## 示例 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 cba3fda2ef1385d851b80935f6b4406aba972f04..8be87f8269e96ba280ae5a236231e7b8bd1b1a27 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 @@ -14,6 +14,9 @@ 包含[FlowItem](ts-container-flowitem.md)子组件。 +> **说明:** +> +> WaterFlow子组件的visibility属性设置为None时不显示,但依然会占用子组件对应的网格。 ## 接口 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-circle.md b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-circle.md index df6561ef7cb146738eb64f1d77aa28620c75cfee..97b87b882f057dd0ba3a8ca0f490ff0e56bb607a 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-circle.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-circle.md @@ -40,7 +40,7 @@ Circle(options?: {width?: string | number, height?: string | number}) | strokeLineJoin | [LineJoinStyle](ts-appendix-enums.md#linejoinstyle) | 设置边框拐角绘制样式。
默认值:LineJoinStyle.Miter
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
Circle组件无法形成拐角,该属性设置无效。 | | strokeMiterLimit | number \| string | 设置斜接长度与边框宽度比值的极限值。
默认值:4
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
Circle组件无法设置尖角图形,该属性设置无效。 | | strokeOpacity | number \| string \| [Resource](ts-types.md#resource类型) | 设置边框透明度。
默认值:1
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
该属性的取值范围是[0.0, 1.0],若给定值小于0.0,则取值为0.0;若给定值大于1.0,则取值为1.0。 | -| strokeWidth | Length | 设置边框宽度。
默认值:1
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| strokeWidth | Length | 设置边框宽度。
默认值:1
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
该属性若为string类型, 暂不支持百分比。 | | antiAlias | boolean | 是否开启抗锯齿效果。
默认值:true
从API version 9开始,该接口支持在ArkTS卡片中使用。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-ellipse.md b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-ellipse.md index 7a6d573d838290814a68712f01a88a411d70dddb..441c147a844da8b1a3a70f08983edef5a03dfd63 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-ellipse.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-ellipse.md @@ -40,7 +40,7 @@ Ellipse(options?: {width?: string | number, height?: string | number}) | strokeLineJoin | [LineJoinStyle](ts-appendix-enums.md#linejoinstyle) | LineJoinStyle.Miter | 设置边框拐角绘制样式。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
Ellipse组件无法形成拐角,该属性设置无效。 | | strokeMiterLimit | number \| string | 4 | 设置斜接长度与边框宽度比值的极限值。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
Ellipse组件无法设置尖角图形,该属性设置无效。 | | strokeOpacity | number \| string \| [Resource](ts-types.md#resource类型) | 1 | 设置边框透明度。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
该属性的取值范围是[0.0, 1.0],若给定值小于0.0,则取值为0.0;若给定值大于1.0,则取值为1.0。 | -| strokeWidth | Length | 1 | 设置边框宽度。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| strokeWidth | Length | 1 | 设置边框宽度。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
该属性若为string类型, 暂不支持百分比。 | | antiAlias | boolean | true | 是否开启抗锯齿效果。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-line.md b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-line.md index 1a437ad4c9534663bfdaf1ab9f914ae839ef75db..c87ba0db483cc70e214e12dc35e4dc72e711a4cc 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-line.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-line.md @@ -42,7 +42,7 @@ Line(value?: {width?: string | number, height?: string | number}) | strokeLineJoin | [LineJoinStyle](ts-appendix-enums.md#linejoinstyle) | LineJoinStyle.Miter | 设置线条拐角绘制样式。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
Line组件无法形成拐角,该属性设置无效。 | | strokeMiterLimit | number \| string | 4 | 设置锐角绘制成斜角的极限值。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
Line组件无法设置锐角图形,该属性设置无效。 | | strokeOpacity | number \| string \| [Resource](ts-types.md#resource类型) | 1 | 设置线条透明度。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
该属性的取值范围是[0.0, 1.0],若给定值小于0.0,则取值为0.0;若给定值大于1.0,则取值为1.0。 | -| strokeWidth | Length | 1 | 设置线条宽度。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| strokeWidth | Length | 1 | 设置线条宽度。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
该属性若为string类型, 暂不支持百分比。| | antiAlias | boolean | true | 是否开启抗锯齿效果。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | ## 示例 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 2aeb1cf919c9cd67e3ade9f106b390240b8edc08..71fa790219c90efaa162a3eb7de97f3623d9a574 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 @@ -41,7 +41,7 @@ Path(value?: { width?: number | string; height?: number | string; commands?: str | strokeLineJoin | [LineJoinStyle](ts-appendix-enums.md#linejoinstyle) | LineJoinStyle.Miter | 设置线条拐角绘制样式。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | strokeMiterLimit | number \| string | 4 | 设置斜接长度与边框宽度比值的极限值。斜接长度表示外边框外边交点到内边交点的距离,边框宽度即strokeWidth属性的值。
**说明:**
该属性取值需大于等于1,且在strokeLineJoin属性取值LineJoinStyle.Miter时生效。
从API version 9开始,该接口支持在ArkTS卡片中使用。| | strokeOpacity | number \| string \| [Resource](ts-types.md#resource类型) | 1 | 设置线条透明度。
**说明:**
该属性的取值范围是[0.0, 1.0],若给定值小于0.0,则取值为0.0;若给定值大于1.0,则取值为1.0。
从API version 9开始,该接口支持在ArkTS卡片中使用。| -| strokeWidth | Length | 1 | 设置线条宽度。
从API version 9开始,该接口支持在ArkTS卡片中使用。| +| strokeWidth | Length | 1 | 设置线条宽度。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
该属性若为string类型, 暂不支持百分比。| | antiAlias | boolean | true | 是否开启抗锯齿效果。
从API version 9开始,该接口支持在ArkTS卡片中使用。| commands支持的绘制命令如下: 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 1e63df5002792b90232dd73cec7b10643a90ab39..adefdb3b18bdb8c659de833cc953a31c280c0d69 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 @@ -42,7 +42,7 @@ Polygon(value?: {width?: string | number, height?: string | number}) | strokeLineJoin | [LineJoinStyle](ts-appendix-enums.md#linejoinstyle) | LineJoinStyle.Miter | 设置边框拐角绘制样式。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | strokeMiterLimit | number \| string | 4 | 设置斜接长度与边框宽度比值的极限值。斜接长度表示外边框外边交点到内边交点的距离,边框宽度即strokeWidth属性的值。
**说明:**
该属性取值需大于等于1,且在strokeLineJoin属性取值LineJoinStyle.Miter时生效。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | strokeOpacity | number \| string \| [Resource](ts-types.md#resource类型) | 1 | 设置边框透明度。
**说明:**
该属性的取值范围是[0.0, 1.0],若给定值小于0.0,则取值为0.0;若给定值大于1.0,则取值为1.0。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| strokeWidth | Length | 1 | 设置边框宽度。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| strokeWidth | Length | 1 | 设置边框宽度。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
该属性若为string类型, 暂不支持百分比。| | antiAlias | boolean | true | 是否开启抗锯齿效果。
从API version 9开始,该接口支持在ArkTS卡片中使用。| ## Point diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polyline.md b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polyline.md index 4cb64ed2723d69c7139e087bcc93e89f20bfe3a1..cfe8a337950e9f2fc577271a0d18da8d5128a5b9 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polyline.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polyline.md @@ -42,7 +42,7 @@ Polyline(value?: {width?: string | number, height?: string | number}) | strokeLineJoin | [LineJoinStyle](ts-appendix-enums.md#linejoinstyle) | LineJoinStyle.Miter | 设置线条拐角绘制样式。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | strokeMiterLimit | number \| string | 4 | 设置斜接长度与边框宽度比值的极限值。斜接长度表示外边框外边交点到内边交点的距离,边框宽度即strokeWidth属性的值。
**说明:**
该属性取值需大于等于1,且在strokeLineJoin属性取值LineJoinStyle.Miter时生效。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | strokeOpacity | number \| string \| [Resource](ts-types.md#resource类型) | 1 | 设置线条透明度。
**说明:**
该属性的取值范围是[0.0, 1.0],若给定值小于0.0,则取值为0.0;若给定值大于1.0,则取值为1.0。
从API version 9开始,该接口支持在ArkTS卡片中使用。| -| strokeWidth | Length | 1 | 设置线条宽度。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| strokeWidth | Length | 1 | 设置线条宽度。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
该属性若为string类型, 暂不支持百分比。 | | antiAlias | boolean | true | 是否开启抗锯齿效果。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | ## Point 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 889b9f2f0d91311d2ec934cc8e46f6f4a67dc61b..23b4108f2f30db5d7f176ae7d9e870326ae201a3 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 @@ -48,7 +48,7 @@ Rect(value?: {width?: string | number,height?: string | number,radius?: string | | strokeLineJoin | [LineJoinStyle](ts-appendix-enums.md#linejoinstyle) | LineJoinStyle.Miter | 设置边框拐角绘制样式。
从API version 9开始,该接口支持在ArkTS卡片中使用。| | strokeMiterLimit | number \| string | 4 | 设置斜接长度与边框宽度比值的极限值。斜接长度表示外边框外边交点到内边交点的距离,边框宽度即strokeWidth属性的值。
**说明:**
该属性取值需大于等于1,且在strokeLineJoin属性取值LineJoinStyle.Miter时生效。
从API version 9开始,该接口支持在ArkTS卡片中使用。| | strokeOpacity | number \| string \| [Resource](ts-types.md#resource类型) | 1 | 设置边框透明度。
**说明:**
该属性的取值范围是[0.0, 1.0],若给定值小于0.0,则取值为0.0;若给定值大于1.0,则取值为1.0。
从API version 9开始,该接口支持在ArkTS卡片中使用。| -| strokeWidth | Length | 1 | 设置边框宽度。
从API version 9开始,该接口支持在ArkTS卡片中使用。| +| strokeWidth | Length | 1 | 设置边框宽度。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
该属性若为string类型, 暂不支持百分比。| | antiAlias | boolean | true | 是否开启抗锯齿效果。
从API version 9开始,该接口支持在ArkTS卡片中使用。| 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 7586e24fe930715e2b7f3b6cf6d12dce50043dca..cdba2df4d4dfe6a55d1b4bf41e51f9ce56e74889 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 @@ -36,7 +36,7 @@ Shape(value?: PixelMap) | 名称 | 类型 | 默认值 | 描述 | | -------- | -------- | -------- | -------- | -| viewPort | {
x?: number \| string,
y?: number \| string,
width?: number \| string,
height?: number \| string
} | { x:0, y:0, width:0, height:0 } | 形状的视口。
从API version 9开始,该接口支持在ArkTS卡片中使用。| +| viewPort | {
x?: number \| string,
y?: number \| string,
width?: number \| string,
height?: number \| string
} | { x:0, y:0, width:0, height:0 } | 形状的视口。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
该属性若为string类型, 暂不支持百分比。| | fill | [ResourceColor](ts-types.md) | Color.Black | 设置填充区域颜色。
从API version 9开始,该接口支持在ArkTS卡片中使用。| | fillOpacity | number \| string \| [Resource](ts-types.md#resource类型) | 1 | 设置填充区域透明度。
从API version 9开始,该接口支持在ArkTS卡片中使用。| | stroke | [ResourceColor](ts-types.md) | - | 设置边框颜色,不设置时,默认没有边框线条。
从API version 9开始,该接口支持在ArkTS卡片中使用。| @@ -46,7 +46,7 @@ Shape(value?: PixelMap) | strokeLineJoin | [LineJoinStyle](ts-appendix-enums.md#linejoinstyle) | LineJoinStyle.Miter | 设置边框拐角绘制样式。
从API version 9开始,该接口支持在ArkTS卡片中使用。| | strokeMiterLimit | number \| string | 4 | 设置斜接长度与边框宽度比值的极限值。斜接长度表示外边框外边交点到内边交点的距离,边框宽度即strokeWidth属性的值。
**说明:**
该属性取值需大于等于1,且在strokeLineJoin属性取值LineJoinStyle.Miter时生效。
从API version 9开始,该接口支持在ArkTS卡片中使用。| | strokeOpacity | number \| string \| [Resource](ts-types.md#resource类型) | 1 | 设置边框透明度。
**说明:**
该属性的取值范围是[0.0, 1.0],若给定值小于0.0,则取值为0.0;若给定值大于1.0,则取值为1.0。
从API version 9开始,该接口支持在ArkTS卡片中使用。| -| strokeWidth | number \| string | 1 | 设置边框宽度。
从API version 9开始,该接口支持在ArkTS卡片中使用。| +| strokeWidth | number \| string | 1 | 设置边框宽度。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
该属性若为string类型, 暂不支持百分比。| | antiAlias | boolean | true | 是否开启抗锯齿效果。
从API version 9开始,该接口支持在ArkTS卡片中使用。| | mesh8+ | Array<number>,number,number | [],0,0 | 设置mesh效果。第一个参数为长度(column + 1)* (row + 1)* 2的数组,它记录了扭曲后的位图各个顶点位置,第二个参数为mesh矩阵列数column,第三个参数为mesh矩阵行数row。
从API version 9开始,该接口支持在ArkTS卡片中使用。| diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-gesture-settings.md b/zh-cn/application-dev/reference/arkui-ts/ts-gesture-settings.md index ee9d0f394150788b1aea9b45311fb81267cb6ed4..5621f3d58d9bac09a1623628b1f3871403dc908f 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-gesture-settings.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-gesture-settings.md @@ -34,7 +34,7 @@ | 名称 | 描述 | | -------- | -------- | | Normal | 不屏蔽子组件的手势,按照默认手势识别顺序进行识别。 | -| IgnoreInternal | 屏蔽子组件的手势,仅当前容器的手势进行识别。
子组件上系统内置的手势不会被屏蔽,如子组件为List组件时,内置的滑动手势仍然会触发。 | +| IgnoreInternal | 屏蔽子组件的手势,包括子组件上系统内置的手势,如子组件为List组件时,内置的滑动手势同样会被屏蔽。 | ## 响应手势事件 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-motion-path-animation.md b/zh-cn/application-dev/reference/arkui-ts/ts-motion-path-animation.md index 5218253c46b068d548aac0ffd9fb70a6198962e1..7b7bbcf002c7b6c351e3ef1e0d21f809d1383b14 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-motion-path-animation.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-motion-path-animation.md @@ -11,7 +11,7 @@ | 名称 | 参数类型 | 默认值 | 描述 | | -------- | -------- | -------- | -------- | -| motionPath | {
path: string,
from?: number,
to?: number,
rotatable?: boolean
}
**说明:**
path中支持使用start和end进行起点和终点的替代,如:
'Mstart.x start.y L50 50 Lend.x end.y Z',更多说明请参考[绘制路径](../../ui/ui-js-components-svg-path.md)。 | {
'',
0.0,
1.0,
false
} | 设置组件的运动路径,入参说明如下:
- path:位移动画的运动路径,使用svg路径字符串。
- from:运动路径的起点,默认为0.0。
- to:运动路径的终点,默认为1.0。
- rotatable:是否跟随路径进行旋转。 | +| motionPath | {
path: string,
from?: number,
to?: number,
rotatable?: boolean
}
**说明:**
path中支持使用start和end进行起点和终点的替代,如:
'Mstart.x start.y L50 50 Lend.x end.y Z',更多说明请参考[绘制路径](../../ui/ui-js-components-svg-path.md)。 | {
'',
0.0,
1.0,
false
} | 设置组件的运动路径,入参说明如下:
- path:位移动画的运动路径,使用svg路径字符串。
- from:运动路径的起点。
默认值:0.0
取值范围:[0, 1]
设置小于0的值时,按值为0处理。设置大于1的值时,按值为1处理。
- to:运动路径的终点。
默认值:1.0
取值范围:[0, 1]
设置小于0的值时,按值为0处理。设置大于1的值时,按值为1处理。
- rotatable:是否跟随路径进行旋转。 | ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-page-transition-animation.md b/zh-cn/application-dev/reference/arkui-ts/ts-page-transition-animation.md index f2331b28049e098d21a064f5f75519e69e9d1075..a9d7d861eb286acef5bfe4c2efc1563a41ae9d1c 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-page-transition-animation.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-page-transition-animation.md @@ -1,6 +1,6 @@ # 页面间转场 -在全局pageTransition方法内配置页面入场和页面退场时的自定义转场动效。 +当路由进行切换时,可以通过 在pageTransition中自定义页面入场和页面退场的转场动效。 > **说明:** > @@ -8,10 +8,10 @@ > -| 名称 | 参数 | 参数描述 | -| ------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | -| PageTransitionEnter | {
type?: RouteType,
duration?: number,
curve?: [Curve](ts-appendix-enums.md#curve) \| string,
delay?: number
} | 设置当前页面的自定义入场动效。
- type:页面转场效果生效的路由类型。
默认值:RouteType.None。
**说明:** 没有匹配时使用系统默认的页面转场效果(根据设备可能会有差异),如需禁用系统默认页面转场效果,可以指定duration为0。
- duration:动画的时长,单位为毫秒。
- curve:动画曲线。string类型的取值支持"ease"、"ease-in"、"ease-out"、"ease-in-out"、"extreme-deceleration"、"fast-out-linear-in"、"fast-out-slow-in"、"friction"、"linear"、"linear-out-slow-in"、"rhythm"、"sharp"、"smooth"。
默认值:Curve.Linear
- delay:动画延迟时长,单位为毫秒,默认不延迟播放。 | -| PageTransitionExit | {
type?: RouteType,
duration?: number,
curve?: [Curve](ts-appendix-enums.md#curve) \| string,
delay?: number
} | 设置当前页面的自定义退场动效。
- type:页面转场效果生效的路由类型。
默认值:RouteType.None。
**说明:** 没有匹配时使用系统默认的页面转场效果(根据设备可能会有差异),如需禁用系统默认页面转场效果,可以指定duration为0。
- duration:动画的时长,单位为毫秒。
- curve:动画曲线,string类型取值与PageTransitionEnter相同。
 默认值:Curve.Linear
- delay:动画延迟时长,单位为毫秒,默认不延迟播放。 | +| 名称 | 参数 | 必填 | 参数描述 | +| ------------------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | +| PageTransitionEnter | {
type?: RouteType,
duration?: number,
curve?: [Curve](ts-appendix-enums.md#curve) \| string,
delay?: number
} | 否 | 设置当前页面的自定义入场动效。
- type:页面转场效果生效的路由类型。
默认值:RouteType.None。
**说明:**
没有匹配时使用系统默认的页面转场效果(根据设备可能会有差异),如需禁用系统默认页面转场效果,可以指定duration为0。
- duration:动画的时长
单位:毫秒
- curve:动画曲线。string类型的取值支持"ease"、"ease-in"、"ease-out"、"ease-in-out"、"extreme-deceleration"、"fast-out-linear-in"、"fast-out-slow-in"、"friction"、"linear"、"linear-out-slow-in"、"rhythm"、"sharp"、"smooth"。
默认值:Curve.Linear
- delay:动画延迟时长。
默认值:0
单位:毫秒 | +| PageTransitionExit | {
type?: RouteType,
duration?: number,
curve?: [Curve](ts-appendix-enums.md#curve) \| string,
delay?: number
} | 否 | 设置当前页面的自定义退场动效。
- type:页面转场效果生效的路由类型。
默认值:RouteType.None。
**说明:**
没有匹配时使用系统默认的页面转场效果(根据设备可能会有差异),如需禁用系统默认页面转场效果,可以指定duration为0。
- duration:动画的时长,单位为毫秒。
- curve:动画曲线,string类型取值与PageTransitionEnter相同。
 默认值:Curve.Linear
- delay:动画延迟时长。
默认值:0
单位:毫秒 | ## RouteType枚举说明 @@ -45,8 +45,8 @@ | 事件 | 功能描述 | | ------------------------------------------------------------ | ------------------------------------------------------------ | -| onEnter(event: (type?: RouteType, progress?: number) => void) | 回调入参为当前入场动画的归一化进度[0 - 1]。
- type:跳转方法。
- progress:当前进度。 | -| onExit(event: (type?: RouteType, progress?: number) => void) | 回调入参为当前退场动画的归一化进度[0 - 1]。
- type:跳转方法。
- progress:当前进度。 | +| onEnter(event: (type?: RouteType, progress?: number) => void) | 回调入参为当前入场动画的归一化进度[0 - 1]。
- type:跳转方法。
- progress:当前进度。
触发该事件的条件:
逐帧回调,直到入场动画结束,progress从0变化到1。 | +| onExit(event: (type?: RouteType, progress?: number) => void) | 回调入参为当前退场动画的归一化进度[0 - 1]。
- type:跳转方法。
- progress:当前进度。
触发该事件的条件:
逐帧回调,直到退场动画结束,progress从0变化到1。 | ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-transition-animation-component.md b/zh-cn/application-dev/reference/arkui-ts/ts-transition-animation-component.md index f61a0286729dd0b62396baf06aa74e0269eb811f..27e49abebea9cec1e379b5ff2168fb034e819dff 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-transition-animation-component.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-transition-animation-component.md @@ -12,17 +12,17 @@ | 名称 | 参数类型 | 参数描述 | | -------- | -------- | -------- | -| transition | TransitionOptions | 所有参数均为可选参数,详细描述见TransitionOptions参数说明。 | +| transition | TransitionOptions | 设置组件插入显示和删除隐藏的过渡效果。
默认值:不设置任何过渡效果时,默认有透明度从0到1的过渡效果。若设置了其他过渡效果,以设置的过渡效果为准。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
所有参数均为可选参数,详细描述见TransitionOptions参数说明。 | ## TransitionOptions参数说明 | 参数名称 | 参数类型 | 必填 | 参数描述 | | -------- | -------- | -------- | -------- | -| type | [TransitionType](ts-appendix-enums.md#transitiontype) | 否 | 默认包括组件新增和删除。
默认值:TransitionType.All
**说明:**
不指定Type时说明插入删除使用同一种效果。 | -| opacity | number | 否 | 设置组件转场时的透明度效果,为插入时起点和删除时终点的值。
默认值:1 | -| translate | {
x? : number \| string,
y? : number \| string,
z? : number \| string
} | 否 | 设置组件转场时的平移效果,为插入时起点和删除时终点的值。
-x:横向的平移距离。
-y:纵向的平移距离。
-z:竖向的平移距离。 | -| scale | {
x? : number,
y? : number,
z? : number,
centerX? : number \| string,
centerY? : number \| string
} | 否 | 设置组件转场时的缩放效果,为插入时起点和删除时终点的值。
-x:横向放大倍数(或缩小比例)。
-y:纵向放大倍数(或缩小比例)。
-z:竖向放大倍数(或缩小比例)。
- centerX、centerY指缩放中心点,centerX和centerY默认值是"50%"。
- 中心点为0时,默认的是组件的左上角。
| -| rotate | {
x?: number,
y?: number,
z?: number,
angle?: number \| string,
centerX?: number \| string,
centerY?: number \| string
} | 否 | 设置组件转场时的旋转效果,为插入时起点和删除时终点的值。
-x:横向的旋转向量。
-y:纵向的旋转向量。
-z:竖向的旋转向量。
- centerX,centerY指旋转中心点,centerX和centerY默认值是"50%"。
- 中心点为(0,0)时,默认的是组件的左上角。 | +| type | [TransitionType](ts-appendix-enums.md#transitiontype) | 否 | 默认包括组件新增和删除。
默认值:TransitionType.All
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
不指定Type时说明插入删除使用同一种效果。 | +| opacity | number | 否 | 设置组件转场时的透明度效果,为插入时起点和删除时终点的值。
默认值:1
取值范围: [0, 1]
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
设置小于0的值时,按值为0处理;设置大于1的值时,按值为1处理。 | +| translate | {
x? : number \| string,
y? : number \| string,
z? : number \| string
} | 否 | 设置组件转场时的平移效果,为插入时起点和删除时终点的值。
-x:横向的平移距离。
-y:纵向的平移距离。
-z:竖向的平移距离。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| scale | {
x? : number,
y? : number,
z? : number,
centerX? : number \| string,
centerY? : number \| string
} | 否 | 设置组件转场时的缩放效果,为插入时起点和删除时终点的值。
-x:横向放大倍数(或缩小比例)。
-y:纵向放大倍数(或缩小比例)。
-z:竖向放大倍数(或缩小比例)。
- centerX、centerY指缩放中心点,centerX和centerY默认值是"50%"。
- 中心点为0时,默认的是组件的左上角。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| rotate | {
x?: number,
y?: number,
z?: number,
angle?: number \| string,
centerX?: number \| string,
centerY?: number \| string
} | 否 | 设置组件转场时的旋转效果,为插入时起点和删除时终点的值。
-x:横向的旋转向量。
-y:纵向的旋转向量。
-z:竖向的旋转向量。
- centerX,centerY指旋转中心点,centerX和centerY默认值是"50%"。
- 中心点为(0,0)时,默认的是组件的左上角。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | ## 示例 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 a30820399e7e66b72019e7a5a111b3157308a27f..87c656eecb0d185fa13b2a88577f02faa6e60c34 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 @@ -1,6 +1,6 @@ # 共享元素转场 -设置页面间转场时共享元素的转场动效。 +当路由进行切换时,可以通过设置组件的 sharedTransition 属性将该元素标记为共享元素并设置对应的共享元素转场动效。 > **说明:** > @@ -12,7 +12,7 @@ | 名称 | 参数 | 参数描述 | | ---------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | -| sharedTransition | id: string,
{
 duration?: number,
 curve?: Curve \| string,
 delay?: number,
 motionPath?:
{
 path: string,
 form?: number,
 to?: number,
 rotatable?: boolean
},
zIndex?: number,
type?: [SharedTransitionEffectType](ts-appendix-enums.md#sharedtransitioneffecttype)
} | 两个页面中id值相同且不为空字符串的组件即为共享元素,在页面转场时可显示共享元素转场动效。
- id:设置组件的id。
- duration:单位为毫秒,默认动画时长为1000毫秒。
- curve:默认曲线为Linear,有效值参见[Curve](ts-animatorproperty.md)说明。
- delay:单位为毫秒,默认不延时播放。
- motionPath:运动路径信息,详细说明请参考[路径动画](ts-motion-path-animation.md)。
- path:设置路径。
- from:设置起始值。
- to:设置终止值。
- rotatable:是否旋转。
- zIndex:设置Z轴。
- type:动画类型。 | +| sharedTransition | id: string,
{
 duration?: number,
 curve?: Curve \| string,
 delay?: number,
 motionPath?:
{
 path: string,
 form?: number,
 to?: number,
 rotatable?: boolean
},
zIndex?: number,
type?: [SharedTransitionEffectType](ts-appendix-enums.md#sharedtransitioneffecttype)
} | 两个页面中id值相同且不为空字符串的组件即为共享元素,在页面转场时可显示共享元素转场动效。
- id:设置组件的id。
- duration:描述共享元素转场动效播放时长。
默认值:1000
单位:毫秒
取值范围:[0, +∞)
值为0时表示无动画。设置小于0的值时,按值为0处理。
- curve:默认曲线为Linear,有效值参见[Curve](ts-animatorproperty.md)说明。
- delay:用来描述共享元素转场动效延迟播放的时长。
默认值:0
单位:毫秒
取值范围:[0, +∞)
设置小于0的值时,按值为0处理。
- motionPath:运动路径信息,详细说明请参考[路径动画](ts-motion-path-animation.md)。
- path:设置路径。
- from:设置起始值。
- to:设置终止值。
- rotatable:是否旋转。
- zIndex:设置Z轴。
- type:动画类型。 | ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-types.md b/zh-cn/application-dev/reference/arkui-ts/ts-types.md index 6dea36b625b7a3d267bf8f9066b6d244e298f1f7..114b23b9ee5b7ce4da2b93c96cd1da0fce0fee32 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-types.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-types.md @@ -224,3 +224,13 @@ | ------------- | ---------------------- | ---------------------------------------- | | CustomBuilder | () => any | 该方法类型必须使用@Builder装饰器修饰。具体用法见[@Builder](../../quick-start/arkts-dynamic-ui-elememt-building.md#builder)。 | +## PixelStretchEffectOptions10+ + +像素扩展属性集合,用于描述像素扩展的信息。 + +| 名称 | 类型 | 必填 | 说明 | +| ----------- | ------ | ---- | ---------- | +| left | [Length](#length) | 否 | 组件图像左边沿扩展距离。 | +| right | [Length](#length) | 否 | 组件图像右边沿像素扩展距离。 | +| top | [Length](#length) | 否 | 组件图像上边沿像素扩展距离。 | +| bottom | [Length](#length) | 否 | 组件图像下边沿像素扩展距离。 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-background.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-background.md index d3ce69c6dae140a33f2a6f68ebf0757a9c9fc09c..4107ebe46ad7c0104ea0500e3121483272197ef4 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-background.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-background.md @@ -11,8 +11,8 @@ | 名称 | 参数类型 | 描述 | | -------- | -------- | -------- | | backgroundColor | [ResourceColor](ts-types.md#resourcecolor) | 设置组件的背景色。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| backgroundImage | src: [ResourceStr](ts-types.md#resourcestr),
repeat?: [ImageRepeat](ts-appendix-enums.md#imagerepeat) | src:图片地址,支持网络图片资源和本地图片资源地址(不支持svg类型的图片)。
repeat:设置背景图片的重复样式,默认不重复。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| backgroundImageSize | {
width?: [Length](ts-types.md#length),
height?: [Length](ts-types.md#length)
} \| [ImageSize](ts-appendix-enums.md#imagesize) | 设置背景图像的高度和宽度。当输入为{width: Length, height: Length}对象时,如果只设置一个属性,则第二个属性保持图片原始宽高比进行调整。默认保持原图的比例不变。
默认值:ImageSize.Auto
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| backgroundImage | src: [ResourceStr](ts-types.md#resourcestr),
repeat?: [ImageRepeat](ts-appendix-enums.md#imagerepeat) | src:图片地址,支持网络图片资源地址和本地图片资源地址和Base64,不支持svg类型的图片。
repeat:设置背景图片的重复样式,默认不重复。当设置的背景图片为透明底色图片,且同时设置了backgroundColor时,二者叠加显示,背景颜色在最底部。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| backgroundImageSize | {
width?: [Length](ts-types.md#length),
height?: [Length](ts-types.md#length)
} \| [ImageSize](ts-appendix-enums.md#imagesize) | 设置背景图像的高度和宽度。当输入为{width: Length, height: Length}对象时,如果只设置一个属性,则第二个属性保持图片原始宽高比进行调整。默认保持原图的比例不变。
width和height取值范围: [0, +∞)
默认值:ImageSize.Auto
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
设置为小于0的值时,按值为0显示。当设置了height未设置width时,width根据图片原始宽高比进行调整。 | | backgroundImagePosition | [Position](ts-types.md#position8) \| [Alignment](ts-appendix-enums.md#alignment) | 设置背景图在组件中显示位置,即相对于组件左上角的坐标。
默认值:
{
x: 0,
y: 0
}
x和y值设置百分比时,偏移量是相对组件自身宽高计算的。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-gradient-color.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-gradient-color.md index bd84c5ac35432f3649a2f6c3e7d0365746a1858f..bb90448db55d8c50bb909e7f0a549e4d7ee9b478 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-gradient-color.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-gradient-color.md @@ -12,9 +12,9 @@ | 名称 | 参数类型 | 描述 | | -------------- | -------------------------------------------- | ----------------------------------- | -| linearGradient | {
angle?: number \| string,
direction?: [GradientDirection](ts-appendix-enums.md#gradientdirection),
colors: Array<[ColorStop](ts-basic-components-gauge.md#colorstop)>,
repeating?: boolean
} | 线性渐变。
- angle: 线性渐变的起始角度。0点方向顺时针旋转为正向角度。
默认值:180
- direction: 线性渐变的方向,设置angle后不生效。
默认值:GradientDirection.Bottom
- colors: 为渐变的颜色描述。
- repeating: 为渐变的颜色重复着色。
默认值:false
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| sweepGradient | {
center: Point,
start?: number \| string,
end?: number \| string,
rotation?: number\|string,
colors: Array<[ColorStop](ts-basic-components-gauge.md#colorstop)>,
repeating?: boolean
} | 角度渐变,仅绘制0-360度范围内的角度,超出时不绘制渐变色,只绘制纯色。
- center:为角度渐变的中心点,即相对于当前组件左上角的坐标。
- start:角度渐变的起点。
默认值:0
- end:角度渐变的终点。
默认值:0
- rotation: 角度渐变的旋转角度。
默认值:0
- colors: 为渐变的颜色描述。
- repeating: 为渐变的颜色重复着色。
默认值:false
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| radialGradient | {
center: Point,
radius: number \| string,
colors: Array<[ColorStop](ts-basic-components-gauge.md#colorstop)>,
repeating?: boolean
} | 径向渐变。
- center:径向渐变的中心点,即相对于当前组件左上角的坐标。
- radius:径向渐变的半径。
- colors: 为渐变的颜色描述。
- repeating: 为渐变的颜色重复着色。
默认值:false
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| linearGradient | {
angle?: number \| string,
direction?: [GradientDirection](ts-appendix-enums.md#gradientdirection),
colors: Array<[ColorStop](ts-basic-components-gauge.md#colorstop)>,
repeating?: boolean
} | 线性渐变。
- angle: 线性渐变的起始角度。0点方向顺时针旋转为正向角度。
默认值:180
- direction: 线性渐变的方向,设置angle后不生效。
默认值:GradientDirection.Bottom
- colors: 渐变的颜色描述。
- repeating: 为渐变的颜色重复着色。
默认值:false
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| sweepGradient | {
center: Point,
start?: number \| string,
end?: number \| string,
rotation?: number\|string,
colors: Array<[ColorStop](ts-basic-components-gauge.md#colorstop)>,
repeating?: boolean
} | 角度渐变,仅绘制0-360度范围内的角度,超出时不绘制渐变色,只绘制纯色。
- center:为角度渐变的中心点,即相对于当前组件左上角的坐标。
- start:角度渐变的起点。
 默认值:0
- end:角度渐变的终点。
 默认值:0
- rotation: 角度渐变的旋转角度。
 默认值:0
- colors: 为渐变的颜色描述。
- repeating: 为渐变的颜色重复着色。
默认值:false
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
设置为小于0的值时,按值为0处理,设置为大于360的值时,按值为360处理。
当start、end、rotation的数据类型为string,值为"90"或"90%",与90效果一致 | +| radialGradient | {
center: Point,
radius: number \| string,
colors: Array<[ColorStop](ts-basic-components-gauge.md#colorstop)>,
repeating?: boolean
} | 径向渐变。
- center:径向渐变的中心点,即相对于当前组件左上角的坐标。
- radius:径向渐变的半径。
 取值范围 [0,+∞)
  **说明:**
设置为小于的0值时,按值为0处理。
- colors: 为渐变的颜色描述。
- repeating: 为渐变的颜色重复着色。
默认值:false
从API version 9开始,该接口支持在ArkTS卡片中使用。 | ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-image-effect.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-image-effect.md index 36fbde66b13830a33a59b8811ee733531d583cb7..a2666355283735e6935d12b6faf42a3fba6d683b 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-image-effect.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-image-effect.md @@ -12,16 +12,16 @@ | 名称 | 参数类型 | 默认值 | 描述 | | ----------------------------- | ------------------------------------------------------------ | ------ | ------------------------------------------------------------ | -| blur | number | - | 为当前组件添加内容模糊效果,入参为模糊半径,模糊半径越大越模糊,为0时不模糊。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| backdropBlur | number | - | 为当前组件添加背景模糊效果,入参为模糊半径,模糊半径越大越模糊,为0时不模糊。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| blur | number | - | 为当前组件添加内容模糊效果,入参为模糊半径,模糊半径越大越模糊,为0时不模糊。
取值范围:[0, +∞)
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| backdropBlur | number | - | 为当前组件添加背景模糊效果,入参为模糊半径,模糊半径越大越模糊,为0时不模糊。
取值范围:[0, +∞)
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | shadow | [ShadowOptions](#shadowoptions对象说明) \| [ShadowStyle](#shadowstyle10枚举说明) | - | 为当前组件添加阴影效果。
入参类型为ShadowOptions时,可以指定模糊半径、阴影的颜色、X轴和Y轴的偏移量。
入参类型为ShadowStyle时,可指定不同阴影样式。
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
ArkTS卡片上不支持参数为 [ShadowStyle](#shadowstyle10枚举说明)类型。 | -| grayscale | number | 0.0 | 为当前组件添加灰度效果。值定义为灰度转换的比例,入参1.0则完全转为灰度图像,入参则0.0图像无变化,入参在0.0和1.0之间时,效果呈线性变化。(百分比)
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| brightness | number | 1.0 | 为当前组件添加高光效果,入参为高光比例,值为1时没有效果,小于1时亮度变暗,0为全黑;大于1时亮度增加,数值越大亮度越大。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| saturate | number | 1.0 | 为当前组件添加饱和度效果,饱和度为颜色中的含色成分和消色成分(灰)的比例,入参为1时,显示原图像,大于1时含色成分越大,饱和度越大;小于1时消色成分越大,饱和度越小。(百分比)
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| contrast | number | 1.0 | 为当前组件添加对比度效果,入参为对比度的值,值为1时,显示原图;大于1时,值越大对比度越高,图像越清晰醒目;小于1时,值越小对比度越低;当对比度为0时,图像变为全灰。(百分比)
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| invert | number | 0 | 反转输入的图像。入参为图像反转的比例。值为1时完全反转。值为0则图像无变化。(百分比)
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| sepia | number | 0 | 将图像转换为深褐色。入参为图像反转的比例。值为1则完全是深褐色的,值为0图像无变化。 (百分比)
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| hueRotate | number \| string | '0deg' | 色相旋转效果,输入参数为旋转角度。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| grayscale | number | 0.0 | 为当前组件添加灰度效果。值定义为灰度转换的比例,入参1.0则完全转为灰度图像,入参则0.0图像无变化,入参在0.0和1.0之间时,效果呈线性变化。(百分比)
取值范围:[0, 1]
**说明:**
设置小于0的值时,按值为0处理,设置大于1的值时,按值为1处理。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| brightness | number | 1.0 | 为当前组件添加高光效果,入参为高光比例,值为1时没有效果,小于1时亮度变暗,0为全黑,大于1时亮度增加,数值越大亮度越大。
取值范围:[0, +∞)
**说明:**
设置小于0的值时,按值为0处理。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| saturate | number | 1.0 | 为当前组件添加饱和度效果,饱和度为颜色中的含色成分和消色成分(灰)的比例,入参为1时,显示原图像,大于1时含色成分越大,饱和度越大,小于1时消色成分越大,饱和度越小。(百分比)
取值范围:[0, +∞)
**说明:**
设置小于0的值时,按值为0处理。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| contrast | number | 1.0 | 为当前组件添加对比度效果,入参为对比度的值。值为1时,显示原图,大于1时,值越大对比度越高,图像越清晰醒目,小于1时,值越小对比度越低,当对比度为0时,图像变为全灰。(百分比)
取值范围:[0, +∞)
**说明:**
设置小于0的值时,按值为0处理。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| invert | number | 0 | 反转输入的图像。入参为图像反转的比例,值为1时完全反转,值为0则图像无变化。(百分比)
取值范围:[0, 1]
**说明:**
设置小于0的值时,按值为0处理。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| sepia | number | 0 | 将图像转换为深褐色。入参为图像反转的比例,值为1则完全是深褐色的,值为0图像无变化。 (百分比)
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| hueRotate | number \| string | '0deg' | 色相旋转效果,输入参数为旋转角度。
取值范围:(-∞, +∞)
**说明:**
色调旋转360度会显示原始颜色。先将色调旋转180 度,然后再旋转-180度会显示原始颜色。数据类型为number时,值为90和'90deg'效果一致。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | colorBlend 8+ | [Color](ts-appendix-enums.md#color) \| string \| [Resource](ts-types.md#resource) | - | 为当前组件添加颜色叠加效果,入参为叠加的颜色。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | ## ShadowOptions对象说明 @@ -32,8 +32,8 @@ | 名称 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | --------------- | -| radius | number \| [Resource](ts-types.md#resource) | 是 | 阴影模糊半径。 | -| color | [Color](ts-appendix-enums.md#color) \| string \| [Resource](ts-types.md#resource) | 否 | 阴影的颜色。
默认为灰色。 | +| radius | number \| [Resource](ts-types.md#resource) | 是 | 阴影模糊半径。
取值范围:[0, +∞)
**说明:**
设置小于0的值时,按值为0处理。 | +| color | [Color](ts-appendix-enums.md#color) \| string \| [Resource](ts-types.md#resource) | 否 | 阴影的颜色。
默认为黑色。 | | offsetX | number \| [Resource](ts-types.md#resource) | 否 | 阴影的X轴偏移量。
默认为0。 | | offsetY | number \| [Resource](ts-types.md#resource) | 否 | 阴影的Y轴偏移量。
默认为0。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-lightUpEffect.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-lightUpEffect.md new file mode 100644 index 0000000000000000000000000000000000000000..a9bb7528afe070280842971a5984ad069b6e6fa5 --- /dev/null +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-lightUpEffect.md @@ -0,0 +1,80 @@ +# 图像渐亮效果 + +设置组件的图像渐亮效果。 + +> **说明:** +> +> 从API Version 10开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。此接口为系统接口。 + +## 属性 + +| 名称 | 参数类型 | 描述 | +| -------- | -------- | -------- | +| lightUpEffect | [number] | 设置组件图像亮起程度。
取值范围:[0,1]。
如果value等于0则图像为全黑,如果value等于1则图像为全亮效果。0到1之间数值越大,表示图像亮度越高。`value < 0` 或者 `value > 1`为异常情况,`value < 0`按0处理,`value > 1`按1处理。 | + +## 示例 + +### 示例1 +```ts +// xxx.ets +@Entry +@Component +struct LightUpExample { + build() { + Stack() { + Text('This is the text content with letterSpacing 0.') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(0.6) + }.alignContent(Alignment.Center).width("100%").height("100%") + } +} + +``` +效果图如下: + +![textLightUp3](figures/textLightUp3.png) + +修改lightUpEffect参数值为0.2: + +![textLightUp2](figures/textLightUp2.png) + +去掉lightUpEffect的设置,效果如下: + +![textLightUp1](figures/textLightUp1.png) +### 示例2 + +```ts +// xxx.ets +@Entry +@Component +struct LightUpExample { + @State isLunar: boolean = false + private selectedDate: Date = new Date('2028-08-08') + build() { + Stack() { + 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)) + }) + .lightUpEffect(0.6) + + }.alignContent(Alignment.Center).width("100%").height("100%") + } +} +``` + +![datePickerLightUp2](figures/datePickerLightUp2.png) + +去掉lightUpEffect的设置,效果如下: + +![datePickerLightUp1](figures/datePickerLightUp1.png) \ No newline at end of file diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-pixelStretchEffect.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-pixelStretchEffect.md new file mode 100644 index 0000000000000000000000000000000000000000..d99b8e9f43e3f86d4831f4341bf72680d14f683b --- /dev/null +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-pixelStretchEffect.md @@ -0,0 +1,76 @@ +# 图像边缘像素扩展效果 + +设置组件的图像边缘像素扩展效果。 + +> **说明:** +> +> 从API Version 10开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。此接口为系统接口。 + +## 属性 + +| 名称 | 参数类型 | 描述 | +| -------- | -------- | -------- | +| pixelStretchEffect | [PixelStretchEffectOptions](ts-types.md#PixelStretchEffectOptions) | 设置组件的图像边缘像素扩展距离。
参数`options`包括上下左右四个方向的边缘像素扩展距离。
**说明:**
1、如果距离为正值,表示向外扩展,放大原来图像大小。上下左右四个方向分别用边缘像素填充,填充的距离即为设置的边缘扩展的距离。
2、如果距离为负值,表示内缩,但是最终图像大小不变。内缩方式:1、图像根据`options`的设置缩小,缩小大小为四个方向边缘扩展距离的绝对值。2、图像用边缘像素扩展到原来大小。
3、对`options`的输入约束:1、上下左右四个方向的扩展统一为非正值或者非负值。即四个边同时向外扩或者内缩,方向一致。2、所有方向的输入均为百分比或者具体值,不支持百分比和具体值混用。3、所有异常情况下,显示为{0,0,0,0}效果,即跟原图保持一致。| + +## 示例 + +### 示例1 + +```ts +// xxx.ets +@Entry +@Component +struct PixelStretchExample { + build() { + Stack() { + Text('This is the text content with letterSpacing 0.') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .pixelStretchEffect({top:10,left:10,right:10,bottom:10 }) + }.alignContent(Alignment.Center).width("100%").height("100%") + } +} + +``` +效果图如下: + +![textPixelStretch1](figures/textPixelStretch1.png) + +去掉pixelStretchEffect的设置,原图效果如下: + +![textPixelStretch2](figures/textPixelStretch2.png) + +对比发现,如果边缘扩展距离设置为正值,图像向外扩展了边缘距离。 + +### 示例2 + +基于示例1,现在把边缘扩展距离改为非正值。 + +```ts +// xxx.ets +@Entry +@Component +struct PixelStretchExample { + build() { + Stack() { + Text('This is the text content with letterSpacing 0.') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .pixelStretchEffect({top:-10,left:-10,right:-10,bottom:-10 }) + }.alignContent(Alignment.Center).width("100%").height("100%") + } +} +``` +效果图如下: + +![textPixelStretch3](figures/textPixelStretch3.png) + +跟原图对比发现,效果图分两步实现:
1、原图大小缩小,缩小后的大小为原图大小减去像素 +收缩的距离。例如,原图大小为`100*100`,设置了`pixelStretchEffect({top:-10,left:-10, +right:-10,bottom:-10 })`,则缩小后的大小为`(100-10-10)*(100-10-10)`,即`80*80`。
2、使用边缘像素扩展,将图像扩展为原图大小。 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 f3b2f7d831c4d6fc6d83ae28e222238d8215d79f..2b9226798f870d35fb1d06072aab189e4d5a8a1f 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 @@ -42,7 +42,7 @@ | builder | [CustomBuilder](ts-types.md#custombuilder8) | 是 | 提示气泡内容的构造器。 | | placement | [Placement](ts-appendix-enums.md#placement8) | 否 | 气泡组件优先显示的位置,当前位置显示不下时,会自动调整位置。
默认值:Placement.Bottom | | popupColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 提示气泡的颜色。 | -| enableArrow | boolean | 否 | 是否显示箭头。
从API Version 9开始,如果箭头所在方位侧的气泡长度不足以显示下箭头,则会默认不显示箭头。比如:placement设置为Left,但气泡高度小于箭头的宽度的两倍(64vp),则实际不会显示箭头。
默认值:true | +| enableArrow | boolean | 否 | 是否显示箭头。
从API Version 9开始,如果箭头所在方位侧的气泡长度不足以显示下箭头,则会默认不显示箭头。比如:placement设置为Left,此时如果气泡高度小于箭头的宽度(32vp)与气泡圆角两倍(48vp)之和(80vp),则实际不会显示箭头。
默认值: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-size.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-size.md index c091d5e51f1954fe78e4750bf8401dc797163d5e..ae2a96ee9a199d25f891ccb2c566a7d85d8d4495 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-size.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-size.md @@ -18,7 +18,7 @@ | padding | [Padding](ts-types.md#padding) \| [Length](ts-types.md#length) | 设置内边距属性。
参数为Length类型时,四个方向内边距同时生效。
默认值:0
padding设置百分比时,上下左右内边距均以父容器的width作为基础值。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | margin | [Margin](ts-types.md#margin) \| [Length](ts-types.md#length) | 设置外边距属性。
参数为Length类型时,四个方向外边距同时生效。
默认值:0
margin设置百分比时,上下左右外边距均以父容器的width作为基础值。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | constraintSize | {
minWidth?: [Length](ts-types.md#length),
maxWidth?: [Length](ts-types.md#length),
minHeight?: [Length](ts-types.md#length),
maxHeight?: [Length](ts-types.md#length)
} | 设置约束尺寸,组件布局时,进行尺寸范围限制。constraintSize的优先级高于Width和Height。若设置的minWidth大于maxWidth,则minWidth生效,minHeight与maxHeight同理。
默认值:
{
minWidth: 0,
maxWidth: Infinity,
minHeight: 0,
maxHeight: Infinity
}
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| layoutWeight | number \| string | 父容器尺寸确定时,设置了layoutWeight属性的子元素与兄弟元素占主轴尺寸按照权重进行分配,忽略元素本身尺寸设置,表示自适应占满剩余空间。
**说明:**
仅在Row/Column/Flex布局中生效。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| layoutWeight | number \| string | 父容器尺寸确定时,设置了layoutWeight属性的子元素与兄弟元素占主轴尺寸按照权重进行分配,忽略元素本身尺寸设置,表示自适应占满剩余空间。
默认值:0
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
仅在Row/Column/Flex布局中生效。
可选值为大于等于0的数字,或者可以转换为数字的字符串。 | ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-sphericalEffect.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-sphericalEffect.md new file mode 100644 index 0000000000000000000000000000000000000000..921a8085250cae49106d0c3c15ff148c747f8045 --- /dev/null +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-sphericalEffect.md @@ -0,0 +1,49 @@ +# 图像球面效果 + +设置组件的图像球面效果。 + +> **说明:** +> +> 从API Version 10开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。此接口为系统接口。 + +## 属性 + +| 名称 | 参数类型 | 描述 | +| -------- | -------- | -------- | +| sphericalEffect | [number] | 设置组件的图像球面化程度。
取值范围:[0,1]。
**说明:**
1、如果value等于0则图像保持原样,如果value等于1则图像为完全球面化效果。在0和1之间,数值越大,则球面化程度越高。
`value < 0 `或者` value > 1`为异常情况,`value < 0`按0处理,`value > 1`按1处理。
2、如果组件的图像使用异步加载,则不支持球面效果。例如Image组件默认使用异步加载,如果要使用球面效果,就要设置`syncLoad`为`true`,但是这种做法不推荐。`backgroundImage`也是使用异步加载,所以如果设置了`backgroundImage`,不支持球面效果。
3、如果组件设置了阴影,不支持球面效果。| + +## 示例 + +### 示例1 +```ts +// xxx.ets +@Entry +@Component +struct SphericalEffectExample { + build() { + Stack() { + TextInput({ placeholder: "请输入变化范围百分比([0%,100%])"}) + .width('50%') + .height(35) + .type(InputType.Number) + .enterKeyType(EnterKeyType.Done) + .caretColor(Color.Red) + .placeholderColor(Color.Blue) + .placeholderFont({ + size: 20, + style: FontStyle.Italic, + weight: FontWeight.Bold + }) + .sphericalEffect(0.5) + }.alignContent(Alignment.Center).width("100%").height("100%") + } +} + +``` +效果图如下: + +![textInputSpherical1](figures/textInputSpherical1.png) + +去掉sphericalEffect的设置,效果如下: + +![textInputSpherical2](figures/textInputSpherical2.png) \ No newline at end of file diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-events-drag-drop.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-events-drag-drop.md index 36e78d99aa07c8075996ca40eaf879b3c8b895dc..39760592bf318d9c0f0166ab0fd4a75f9e7e251d 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-events-drag-drop.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-events-drag-drop.md @@ -67,7 +67,7 @@ struct DragExample { @State bananaVisible: Visibility = Visibility.Visible private dragList: string[] = ['apple', 'orange', 'banana'] @State fruitVisible: Visibility[] = [Visibility.Visible, Visibility.Visible, Visibility.Visible] - @State index: number = 0 + @State idx: number = 0 // 自定义拖拽过程中显示的内容 @Builder pixelMapBuilder() { @@ -104,7 +104,7 @@ struct DragExample { .onTouch((event: TouchEvent) => { if (event.type === TouchType.Down) { this.eventType = 'Down' - this.index = index + this.idx = index } if (event.type === TouchType.Up) { this.eventType = 'Up' @@ -157,7 +157,7 @@ struct DragExample { this.numbers.splice(jsonString.insertIndex, 0, this.text) this.bool = false } - this.fruitVisible[this.index] = Visibility.None + this.fruitVisible[this.idx] = Visibility.None }) }.width('100%').height('100%').padding({ top: 20 }).margin({ top: 20 }) } diff --git a/zh-cn/application-dev/reference/errorcodes/Readme-CN.md b/zh-cn/application-dev/reference/errorcodes/Readme-CN.md index 6267fa52fc5786b5b355242dcced764b3112ea15..6d2b4759009d19670e0b20ca65cbf31246c8ae97 100644 --- a/zh-cn/application-dev/reference/errorcodes/Readme-CN.md +++ b/zh-cn/application-dev/reference/errorcodes/Readme-CN.md @@ -57,6 +57,7 @@ - [网络共享错误码](errorcode-net-sharing.md) - [策略管理错误码](errorcode-net-policy.md) - 通信与连接 + - [Bluetooth错误码](errorcode-bluetoothManager.md) - [WIFI错误码](errorcode-wifi.md) - [NFC错误码](errorcode-nfc.md) - [RPC错误码](errorcode-rpc.md) diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-ability.md b/zh-cn/application-dev/reference/errorcodes/errorcode-ability.md index bace485b136291d552d4247aef0d95d9b4e06ec3..1ef393a59db3a5110c1510b8c4683812917fc0fa 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-ability.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-ability.md @@ -186,6 +186,24 @@ The context does not exist. 请检查上下文对象是否可用。 +## 16000017 上一个Ability未启动完成,先缓存在队列中等待后续启动。 + +**错误信息** + +The previous ability is starting, wait start later. + +**错误描述** + +需要启动的Ability过多,由于系统处理能力有限,会先将请求缓存在队列中,按照顺序依次处理。 + +**可能原因** + +系统并发大。 + +**处理步骤** + +无需处理,等待启动即可。 + ## 16000050 内部错误 **错误信息** diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-bundle.md b/zh-cn/application-dev/reference/errorcodes/errorcode-bundle.md index 7f3f91ebc64dc31aa15732ad69928d3a2623d873..c68152ab39b592fb7c7c4b7abfcf71da535605e7 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-bundle.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-bundle.md @@ -471,7 +471,7 @@ The specified bundle is an overlay bundle. ## 17700036 共享库缺少AllowAppShareLibrary特权导致安装失败 **错误信息**
-Failed to install because without allow app shared bundle permission. +Failed to install the HSP because lacks appropriate permissions. **错误描述**
共享库未申请配置AllowAppShareLibrary特权,可能存在安全隐私风险,不允许安装。 @@ -514,4 +514,34 @@ The specified shared bundle does not exist. 1. 检查被卸载的shared library是否存在于当前设备中。 2. 检查被卸载的版本是否存在于被卸载的shared library中。 +## 17700039 不允许安装应用间共享库 +**错误信息**
+Failed to install because disallow install a shared bundle by hapFilePaths. + +**错误描述**
+安装应用时,传入的安装包为应用间共享库类型。 + +**可能原因**
+1. 通过bm工具安装应用时,-p参数传入了应用间共享库的安装包路径。 +2. 通过install接口安装应用时,hapFilePaths参数传入了应用间共享库的安装包路径。 + +**处理步骤**
+1. 通过-s参数指定应用间共享库的安装包路径。 +2. 通过installParam参数的sharedBundleDirPaths字段指定应用间共享库的安装包路径。 + +## 17700040 不允许卸载应用间共享库 +**错误信息**
+The specified bundle is a shared bundle which cannot be uninstalled. + +**错误描述**
+卸载应用时,传入的是应用间共享库的包名。 + +**可能原因**
+1. 通过bm工具卸载应用时,-n参数传入了应用间共享库的包名。 +2. 通过uninstall接口卸载应用时,bundleName传入的是应用间共享库的包名。 + +**处理步骤**
+1. 通过-s参数指定卸载的应用为共享库应用。 +2. 通过UninstallParam参数的bundleName及versionCode指定卸载的共享库的包名及版本。 + \ No newline at end of file diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-data-rdb.md b/zh-cn/application-dev/reference/errorcodes/errorcode-data-rdb.md index 1b6a13893ed3c8dd093745f60e27ec866bd4e0d0..5fee0c6d8619bee3085668be83cc2450769f7422 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-data-rdb.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-data-rdb.md @@ -81,3 +81,22 @@ The column value is null or the column type is incompatible. 1. 检查结果集是否为空。 2. 检查结果集当前行号、列号是否超出范围。 3. 检查当前列数据类型是否支持。 + +## 14800047 WAL文件大小超过默认上限 + +**错误信息** + +The WAL file size exceeds the default limit. + +**错误描述** + +WAL文件大小超过默认上限(200M)。 + +**可能原因** + +在开启读事务或者结果集未关闭的情况下,不断执行增删改操作,导致WAL文件大小超过默认上限。 + +**处理步骤** + +1. 检查结果集或者事务是否未关闭。 +2. 关闭所有的结果集或者事务。 diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-telephony.md b/zh-cn/application-dev/reference/errorcodes/errorcode-telephony.md index 0bedc184892704b721dfd6eb94f5f3c22bbf30e2..de54fa37a38ea3ad19d9bac634e09e78f0627ad4 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-telephony.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-telephony.md @@ -169,8 +169,8 @@ UT未连接 **可能原因** -当前运营商不支持从Wifi下发UT请求,但是当前手机Wifi已连上。 +当前运营商不支持从WIFI下发UT请求,但是当前设备WIFI已连上。 **处理步骤** -断开wifi,再重发UT请求。 +断开WIFI,再重发UT请求。 diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-webview.md b/zh-cn/application-dev/reference/errorcodes/errorcode-webview.md index 6158032e12d0e9359550be693a66510bcb041f00..5f7b09ca0e830ac13f6cb507f5deede60309647f 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-webview.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-webview.md @@ -229,3 +229,41 @@ Invalid web storage origin. 2. 如果已经使用,检查调用失败原因,如databaseAccess开发是否打开。 + +## 17100013 申请内存失败 + +**错误信息** + +New failed, out of memeory. + +**错误描述** + +申请失败,内存不足。 + +**可能原因** + +需要发送的数据过大,导致申请内存失败。 + +**处理步骤** + +检查需要发送的数据的长度。 + + +## 17100014 类型和值不匹配 + +**错误信息** + +The type does not match with the value of the message. + +**错误描述** + +消息的类型和值不匹配。 + +**可能原因** + +获取消息的值和消息本身的类型不匹配。 + +**处理步骤** + +需要根据消息的类型调用相应的接口来获取消息的值。举例:如获取到的类型是BOOLEAN,则需要调用GetBoolean接口来获取布尔值。 + 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 57d24f5758b2a53cee3d86da8e59f3bf07181668..dee9088c444b0a20e691f168170b29b892bd831a 100644 --- a/zh-cn/application-dev/reference/native-apis/_mind_spore.md +++ b/zh-cn/application-dev/reference/native-apis/_mind_spore.md @@ -19,13 +19,13 @@ | 文件名称 | 描述 | | -------- | -------- | -| [context.h](context_8h.md) | 提供了Context相关的接口,可以配置运行时信息。 | -| [data_type.h](data__type_8h.md) | 声明了张量的数据的类型。 | -| [format.h](format_8h.md) | 提供张量数据的排列格式。 | -| [model.h](model_8h.md) | 提供了模型相关接口,可以用于模型创建、模型推理等。 | -| [status.h](status_8h.md) | 提供了Mindspore Lite运行时的状态码。 | -| [tensor.h](tensor_8h.md) | 提供了张量相关的接口,可用于创建和修改张量信息。 | -| [types.h](types_8h.md) | 提供了MindSpore Lite支持的模型文件类型和设备类型。 | +| [context.h](context_8h.md) | 提供了Context相关的接口,可以配置运行时信息。
引用文件:\ | +| [data_type.h](data__type_8h.md) | 声明了张量的数据的类型。
引用文件:\ | +| [format.h](format_8h.md) | 提供张量数据的排列格式。
引用文件:\ | +| [model.h](model_8h.md) | 提供了模型相关接口,可以用于模型创建、模型推理等。
引用文件:\ | +| [status.h](status_8h.md) | 提供了Mindspore Lite运行时的状态码。
引用文件:\ | +| [tensor.h](tensor_8h.md) | 提供了张量相关的接口,可用于创建和修改张量信息。
引用文件:\ | +| [types.h](types_8h.md) | 提供了MindSpore Lite支持的模型文件类型和设备类型。
引用文件:\ | ### 结构体 diff --git a/zh-cn/application-dev/reference/native-apis/_neural_nework_runtime.md b/zh-cn/application-dev/reference/native-apis/_neural_nework_runtime.md index e265384899356daddc00292c13c345bd28152d49..71314462cb1b34f6fb1a4c191d2b089d120c3024 100644 --- a/zh-cn/application-dev/reference/native-apis/_neural_nework_runtime.md +++ b/zh-cn/application-dev/reference/native-apis/_neural_nework_runtime.md @@ -20,8 +20,8 @@ | 文件名称 | 描述 | | -------- | -------- | -| [neural_network_runtime.h](neural__network__runtime_8h.md) | Neural Network Runtime部件接口定义,AI推理框架通过Neural Network Runtime提供的Native接口,完成模型构造与编译,并在加速硬件上执行推理计算。 | -| [neural_network_runtime_type.h](neural__network__runtime__type_8h.md) | Neural Network Runtime定义的结构体和枚举值。 | +| [neural_network_runtime.h](neural__network__runtime_8h.md) | Neural Network Runtime部件接口定义,AI推理框架通过Neural Network Runtime提供的Native接口,完成模型构造与编译,并在加速硬件上执行推理计算。
引用文件:\ | +| [neural_network_runtime_type.h](neural__network__runtime__type_8h.md) | Neural Network Runtime定义的结构体和枚举值。
引用文件:\ | ### 结构体 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 b97542018deb536c968092148abab85c8f06cfa0..457fd4b628f8d8a3968c09ab85409534c8f8b6bd 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 @@ -54,23 +54,23 @@ | 名称 | 描述 | | -------- | -------- | -| [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_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 \* | -| [OH_MD_KEY_MAX_INPUT_SIZE](_codec_base.md#oh_md_key_max_input_size) | const char \* | -| [OH_MD_KEY_WIDTH](_codec_base.md#oh_md_key_width) | const char \* | -| [OH_MD_KEY_HEIGHT](_codec_base.md#oh_md_key_height) | const char \* | -| [OH_MD_KEY_PIXEL_FORMAT](_codec_base.md#oh_md_key_pixel_format) | const char \* | -| [OH_MD_KEY_AUDIO_SAMPLE_FORMAT](_codec_base.md#oh_md_key_audio_sample_format) | const char \* | -| [OH_MD_KEY_FRAME_RATE](_codec_base.md#oh_md_key_frame_rate) | const char \* | -| [OH_MD_KEY_VIDEO_ENCODE_BITRATE_MODE](_codec_base.md#oh_md_key_video_encode_bitrate_mode) | const char \* | -| [OH_MD_KEY_PROFILE](_codec_base.md#oh_md_key_profile) | const char \* | -| [OH_MD_KEY_AUD_CHANNEL_COUNT](_codec_base.md#oh_md_key_aud_channel_count) | const char \* | -| [OH_MD_KEY_AUD_SAMPLE_RATE](_codec_base.md#oh_md_key_aud_sample_rate) | const char \* | -| [OH_MD_KEY_I_FRAME_INTERVAL](_codec_base.md#oh_md_key_i_frame_interval) | const char \* | -| [OH_MD_KEY_ROTATION](_codec_base.md#oh_md_key_rotation) | const char \* | +| [OH_AVCODEC_MIMETYPE_VIDEO_AVC](_codec_base.md#oh_avcodec_mimetype_video_avc) | AVC视频编解码器的MIME类型。| +| [OH_AVCODEC_MIMETYPE_AUDIO_AAC](_codec_base.md#oh_avcodec_mimetype_audio_aac) | AAC音频编解码器的MIME类型。| +| [OH_ED_KEY_TIME_STAMP](_codec_base.md#oh_ed_key_time_stamp) | 提供统一的surface Buffer附属数据的字符描述符。| +| [OH_ED_KEY_EOS](_codec_base.md#oh_ed_key_eos) | surface附属数据中结束流的字符描述符,值类型为bool。 | +| [OH_MD_KEY_TRACK_TYPE](_codec_base.md#oh_md_key_track_type) | 为媒体播放框架提供统一的字符描述符。| +| [OH_MD_KEY_CODEC_MIME](_codec_base.md#oh_md_key_codec_mime) | MIME类型的字符描述符,值类型为string。 | +| [OH_MD_KEY_DURATION](_codec_base.md#oh_md_key_duration) |duration的字符描述符,值类型为int64_t。| +| [OH_MD_KEY_BITRATE](_codec_base.md#oh_md_key_bitrate) | 比特率的字符描述符,值类型为uint32_t。 | +| [OH_MD_KEY_MAX_INPUT_SIZE](_codec_base.md#oh_md_key_max_input_size) | 最大输入尺寸的字符描述符,值类型为uint32_t。 | +| [OH_MD_KEY_WIDTH](_codec_base.md#oh_md_key_width) | 视频宽度的字符描述符,值类型为uint32_t。 | +| [OH_MD_KEY_HEIGHT](_codec_base.md#oh_md_key_height) | 视频高度的字符描述符,值类型为uint32_t。 | +| [OH_MD_KEY_PIXEL_FORMAT](_codec_base.md#oh_md_key_pixel_format) | 视频像素格式的字符描述符,值类型为int32_t,具体见[OH_AVPixelFormat](_core.md#oh_avpixelformat)。 | +| [OH_MD_KEY_AUDIO_SAMPLE_FORMAT](_codec_base.md#oh_md_key_audio_sample_format) | 音频采样格式的字符描述符,值类型为uint32_t。 | +| [OH_MD_KEY_FRAME_RATE](_codec_base.md#oh_md_key_frame_rate) | 视频帧率的字符描述符,值类型为double。| +| [OH_MD_KEY_VIDEO_ENCODE_BITRATE_MODE](_codec_base.md#oh_md_key_video_encode_bitrate_mode) | 视频编码比特率模式的字符描述符,值类型为int32_t,具体见[OH_VideoEncodeBitrateMode](_video_encoder.md#oh_videoencodebitratemode)。 | +| [OH_MD_KEY_PROFILE](_codec_base.md#oh_md_key_profile) | 音视频编码能力的字符描述符,值类型为int32_t,具体见[OH_AVCProfile](_codec_base.md#oh_avcprofile)或[OH_AACProfile](_codec_base.md#oh_aacprofile)。 | +| [OH_MD_KEY_AUD_CHANNEL_COUNT](_codec_base.md#oh_md_key_aud_channel_count) | 音频声道数的字符描述符,值类型为uint32_t。 | +| [OH_MD_KEY_AUD_SAMPLE_RATE](_codec_base.md#oh_md_key_aud_sample_rate) | 音频采样率的字符描述符,值类型为uint32_t。 | +| [OH_MD_KEY_I_FRAME_INTERVAL](_codec_base.md#oh_md_key_i_frame_interval) | I帧间隔时长的字符描述符,值类型为int32_t,单位是毫秒。| +| [OH_MD_KEY_ROTATION](_codec_base.md#oh_md_key_rotation) | surface旋转角度的字符描述符,值类型为int32_t,限于{0, 90, 180, 270},默认值为0。 | diff --git a/zh-cn/application-dev/reference/native-apis/rawfile.md b/zh-cn/application-dev/reference/native-apis/rawfile.md index c416450e827cde5420c6cda924c0b8c687243fc1..286cbd6f131c777f0681ee362716462f69bbafc9 100644 --- a/zh-cn/application-dev/reference/native-apis/rawfile.md +++ b/zh-cn/application-dev/reference/native-apis/rawfile.md @@ -20,9 +20,9 @@ | 文件名称 | 描述 | | ---------------------------------------- | ------------------ | -| [raw_dir.h](raw__dir_8h.md) | 提供rawfile目录相关功能。 | -| [raw_file.h](raw__file_8h.md) | 提供rawfile文件相关功能。 | -| [raw_file_manager.h](raw__file__manager_8h.md) | 提供资源管理rawfile相关功能。 | +| [raw_dir.h](raw__dir_8h.md) | 提供rawfile目录相关功能。
引用文件:\ | +| [raw_file.h](raw__file_8h.md) | 提供rawfile文件相关功能。
引用文件:\ | +| [raw_file_manager.h](raw__file__manager_8h.md) | 提供资源管理rawfile相关功能。
引用文件:\ | ### 结构体 diff --git a/zh-cn/application-dev/reference/native-lib/Readme-CN.md b/zh-cn/application-dev/reference/native-lib/Readme-CN.md index 6ab376d22cdee59e3d8c3ba5b1c1a702012b1b92..f57483012a11397f554c2a01aad7c0872241faec 100644 --- a/zh-cn/application-dev/reference/native-lib/Readme-CN.md +++ b/zh-cn/application-dev/reference/native-lib/Readme-CN.md @@ -5,4 +5,5 @@ - 附录 - [Native api中没有导出的符号列表](third_party_libc/musl-peculiar-symbol.md) - [Native api中导出的EGL符号列表](third_party_opengl/egl-symbol.md) - - [Native api中导出的OpenGL ES 3.0符号列表](third_party_opengl/openglesv3-symbol.md) \ No newline at end of file + - [Native api中导出的OpenGL ES 3.0符号列表](third_party_opengl/openglesv3-symbol.md) + - [Native api中支持的OpenSL ES接口列表](third_party_opensles/opensles.md) \ No newline at end of file diff --git a/zh-cn/application-dev/reference/native-lib/third_party_libc/musl.md b/zh-cn/application-dev/reference/native-lib/third_party_libc/musl.md index 3fc992e9a9b9a6c2096eec828766d270f4fb829c..611b370f28a5a3251c516bae6eff9aac450a1119 100644 --- a/zh-cn/application-dev/reference/native-lib/third_party_libc/musl.md +++ b/zh-cn/application-dev/reference/native-lib/third_party_libc/musl.md @@ -31,7 +31,7 @@ libdl:dlopen等动态链接器接口。 C标准函数库是在C语言程序设计中,所有符合标准的头文件的集合,以及常用的函数库实现程序(如I/O输入输出和字符串控制)。 -**musl** +**musl** [native api中没有导出的符号列表](musl-peculiar-symbol.md) @@ -53,6 +53,10 @@ C++11、C++14标准已完全支持,C++17和C++20标准正在完善。 [OpenSL ES](https://www.khronos.org/registry/OpenSL-ES/)是一个嵌入式跨平台的音频处理库。 +**支持的能力** + +[Native api中支持的OpenSL ES接口列表](../third_party_opensles/opensles.md) + ## zlib [Zlib](https://zlib.net/)是基于C/C++语言实现的一个通用的数据压缩库。 @@ -75,4 +79,6 @@ OpenGL ES 3.0 **标准库中导出的符号列表** -[native api中导出的OpenGL ES 3.0符号列表](../third_party_opengl/openglesv3-symbol.md) \ No newline at end of file +[native api中导出的OpenGL ES 3.0符号列表](../third_party_opengl/openglesv3-symbol.md) + + \ No newline at end of file diff --git a/zh-cn/application-dev/reference/native-lib/third_party_opensles/opensles.md b/zh-cn/application-dev/reference/native-lib/third_party_opensles/opensles.md new file mode 100644 index 0000000000000000000000000000000000000000..68ee1a999ca8455196707a29e6185af05b3f9cfb --- /dev/null +++ b/zh-cn/application-dev/reference/native-lib/third_party_opensles/opensles.md @@ -0,0 +1,29 @@ +# Native api中支持的OpenSL ES接口列表 + +## 简介 + +OpenSL ES(Open Sound Library for Embedded System)即嵌入式音频加速标准。为开发者提供了标准化、高性能以及低响应时间的音频功能开发的对象和接口。相对于开源免费的OpenSL ES,OpenHarmony基于[OpenSL ES](https://www.khronos.org/opensles/) 1.0.1 API规范实现了部分Native API,相关接口开放情况介绍如下: + +## 支持的API + +|对象 |对外接口 |接口调用详情 |是否支持 |说明 | +| ------------------ | -------------------- | -------------------------------------------------------------------------------------|----------| -------------------- | +|SLEngineItf |CreateAudioPlayer |CreateAudioPlayer(SLEngineItf self, SLObjectItf *pPlayer, SLDataSource *pAudioSrc, SLDataSink *pAudioSnk, SLuint32 numInterfaces, const SLInterfaceID *pInterfaceIds, const SLboolean *pInterfaceRequired) |是 |创建音频播放机。 | +|SLEngineItf |CreateAudioRecorder |reateAudioRecorder(SLEngineItf self, SLObjectItf *pRecorder, SLDataSource *pAudioSrc, SLDataSink *pAudioSnk, SLuint32 numInterfaces, const SLInterfaceID *pInterfaceIds, const SLboolean *pInterfaceRequired)|是 |创建音频录制器。 | +|SLEngineItf |CreateAudioOutputMix |CreateOutputMix(SLEngineItf self, SLObjectItf *pMix, SLuint32 numInterfaces, const SLInterfaceID *pInterfaceIds, const SLboolean *pInterfaceRequired)|是 |创建混音器。 | +|SLObjectItf |Realize |Realize(SLObjectItf self, SLboolean async) |是 |创建音频播放机。 | +|SLObjectItf |getState |GetState(SLObjectItf self, SLuint32 *state) |是 |获取状态。 | +|SLObjectItf |getInterface |GetInterface(SLObjectItf self, const SLInterfaceID iid, void *interface) |是 |获取接口。 | +|SLObjectItf |Destroy |Destroy(SLObjectItf self) |是 |销毁对象。 | +|SLOHBufferQueueItf |Enqueue |Enqueue(SLOHBufferQueueItf self, const void *buffer, SLuint32 size) |是 |将buffer加入实际队列中。| +|SLOHBufferQueueItf |clear |Clear(SLOHBufferQueueItf self) |是 |释放buffer队列 | +|SLOHBufferQueueItf |getState |GetState(SLOHBufferQueueItf self, SLOHBufferQueueState *state) |是 |获取BufferQueue状态。 | +|SLOHBufferQueueItf |getBuffer |GetBuffer(SLOHBufferQueueItf self, SLuint8 **buffer, SLuint32 *size) |是 |获取buffer。 | +|SLOHBufferQueueItf |RegisterCallback |RegisterCallback(SLOHBufferQueueItf self, SlOHBufferQueueCallback callback, void *pContext) |是 |注册回调函数。 | +|SLPlayItf |SetPlayState |SetPlayState(SLPlayItf self, SLuint32 state) |是 |设置播放状态。 | +|SLPlayItf |GetPlayState |GetPlayState(SLPlayItf self, SLuint32 *state) |是 |获取播放状态。 | +|SLRecordItf |SetRecordState |SetRecordState(SLRecordItf self, SLuint32 state) |是 |设置录制状态。 | +|SLRecordItf |GetRecordState |GetRecordState(SLRecordItf self, SLuint32 *pState) |是 |获取录制状态。 | +|SLVolumeItf |SetVolumeLevel |SetVolumeLevel(SLVolumeItf self, SLmillibel *level) |是 |设置音量。 | +|SLVolumeItf |GetVolumeLevel |GetVolumeLevel(SLVolumeItf self, SLmillibel level) |是 |获取音量。 | +|SLVolumeItf |GetMaxVolumeLevel |GetMaxVolumeLevel(SLVolumeItf self, SLmillibel *maxLevel) |是 |获取最大音量。 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/syscap-list.md b/zh-cn/application-dev/reference/syscap-list.md index bf16e4e60f4b369a0b6b7d097bc6ad637e2068bd..937ebfdbd333267cb5e78e4e02b43201247dff19 100644 --- a/zh-cn/application-dev/reference/syscap-list.md +++ b/zh-cn/application-dev/reference/syscap-list.md @@ -4,6 +4,8 @@ SysCap,全称SystemCapability,即系统能力,指操作系统中每一个 开发者使用某个接口进行开发前,建议先阅读[SysCap使用指南](syscap.md),了解Syscap的定义和使用指导。再结合下文中的表格判断具体能力集是否支持某个设备,提高开发效率。 +> 说明:default代表了一个功能比较全面的OpenHarmony设备,具有大部分的通用能力。在尚未明确设备具体能力集的情况下,可使用default类型进行开发。 + ## SystemCapability.ArkUI.ArkUI.Full ArKUI标准系统 diff --git a/zh-cn/application-dev/security/accesstoken-guidelines.md b/zh-cn/application-dev/security/accesstoken-guidelines.md index 7e1b4947bfecd9fc8f09281002c720d92b612c1e..98b075a8cd8168f0167124850dfb94e688e40db3 100644 --- a/zh-cn/application-dev/security/accesstoken-guidelines.md +++ b/zh-cn/application-dev/security/accesstoken-guidelines.md @@ -110,7 +110,7 @@ "acls":{ "allowed-acls":[ "ohos.permission.WRITE_AUDIO", - "ohos.permission.CAPTURE_SCREEN" + "ohos.permission.CAPTURE_SCREEN" ] } } @@ -131,7 +131,7 @@ 以允许应用读取日历信息为例进行说明。 -1. 申请`ohos.permission.READ_CALENDAR`权限,配置方式请参见[访问控制授权申请](#配置文件权限声明)。 +1. 申请`ohos.permission.READ_CALENDAR`权限,配置方式请参见[配置文件权限声明](#配置文件权限声明)。 2. 校验当前是否已经授权。 @@ -335,4 +335,4 @@ reqPermissions() { 针对访问控制,有以下相关实例可供参考: - [AbilityAccessCtrl:访问权限控制(ArkTS)(Full SDK)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/master/code/SystemFeature/Security/AbilityAccessCtrl) -- [为应用添加运行时权限(ArkTS)(Full SDK)(API9)](https://gitee.com/openharmony/codelabs/tree/master/Ability/AccessPermission) \ No newline at end of file +- [为应用添加运行时权限(ArkTS)(Full SDK)(API9)](https://gitee.com/openharmony/codelabs/tree/master/Ability/AccessPermission) diff --git a/zh-cn/application-dev/security/cryptoFramework-guidelines.md b/zh-cn/application-dev/security/cryptoFramework-guidelines.md index 934a986b4b775e0c2b55da87764323584516ca2e..cbfd2ba12b1b336730567bc1aafd45f98c3a45a7 100644 --- a/zh-cn/application-dev/security/cryptoFramework-guidelines.md +++ b/zh-cn/application-dev/security/cryptoFramework-guidelines.md @@ -129,12 +129,14 @@ function convertAsyKey() { 2. 调用convertKey方法,传入公钥二进制和私钥二进制(二者非必选项,可只传入其中一个),转换为KeyPair对象。 ```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + 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"); + let generator = cryptoFramework.createAsyKeyGenerator("ECC256"); generator.convertKey(pubKeyBlob, priKeyBlob, (error, data) => { if (error) { AlertDialog.show({message : "Convert keypair fail"}); @@ -1287,41 +1289,51 @@ function LoopMdPromise(algName, loopSize) { **开发步骤** -1. 生成ECC密钥。通过createAsyKeyGenerator接口创建AsyKeyGenerator对象,并生成ECC非对称密钥。 -2. 基于ECC密钥的私钥及公钥执行ECDH操作。 +1. 通过createKeyAgreement接口创建KeyAgreement对象,用于后续的密钥协商操作。 +2. 调用KeyAgreement对象提供的generateSecret方法,传入对端的ECC公钥对象,以及本地生成的ECC私钥对象。 ```javascript import cryptoFramework from "@ohos.security.cryptoFramework" -let globalKeyPair; +let globalSelfPriKey; +let globalPeerPubKey; function ecdhPromise() { + let peerPubKeyArray = 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 peerPubKeyBlob = { data: peerPubKeyArray }; 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); + eccGenerator.convertKey(peerPubKeyBlob, null).then((peerKeyPair) => { + globalPeerPubKey = peerKeyPair.pubKey; + return eccGenerator.generateKeyPair(); + }).then((keyPair) => { + globalSelfPriKey = keyPair.priKey; + return eccKeyAgreement.generateSecret(globalSelfPriKey, globalPeerPubKey); }).then((secret) => { - console.info("ecdh output is " + secret.data); + console.info("ecdh promise output is " + secret.data); }).catch((error) => { console.error("ecdh error."); }); } function ecdhCallback() { + let peerPubKeyArray = 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 peerPubKeyBlob = { data: peerPubKeyArray }; 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); + eccGenerator.convertKey(peerPubKeyBlob, null, function (err, peerKeyPair) { + globalPeerPubKey = peerKeyPair.pubKey; + eccGenerator.generateKeyPair(function (err, keyPair) { + globalSelfPriKey = keyPair.priKey; + eccKeyAgreement.generateSecret(globalSelfPriKey, globalPeerPubKey, function (err, secret) { + if (err) { + console.error("ecdh error."); + return; + } + console.info("ecdh callback output is " + secret.data); + }); }); - }); + }) } ``` diff --git a/zh-cn/application-dev/security/huks-appendix.md b/zh-cn/application-dev/security/huks-appendix.md index 317d78b22dd3088f4179a83d62238bdb97048526..17375d29547456c2b7139fbe7401dc42a068b1f6 100644 --- a/zh-cn/application-dev/security/huks-appendix.md +++ b/zh-cn/application-dev/security/huks-appendix.md @@ -1,70 +1,91 @@ # 通用密钥库密码算法规格 +## 规格实现范围说明 +本文档将说明密钥管理服务规格全景,面向OpenHarmony的厂商适配密钥管理服务规格分为必选规格和可选规格。必选规格为所有厂商均支持的算法规格。而对于可选规格,厂商将基于实际情况决定是否实现,如需使用,请查阅具体厂商提供的说明,确保规格支持再使用。 +**建议开发者使用必选规格开发应用,可保证全平台兼容。** + ## 支持的算法类型及参数组合 ### 导入\生成密钥规格 -| 算法                    | API级别 | 支持的密钥长度 | -| -------------- | :---------------: | ------------------ | -| AES | 8+ | 128、192、256 | -| RSA | 8+ | 512、768、1024、2048、3072、4096 | -| HMAC | 8+ | 8-1024(含),必须是8的倍数 | -| ECC | 8+ | 224、256、384、521 | -| ED25519 | 8+ | 256 | -| X25519 | 8+ | 256 | -| DSA | 8+ | 8-1024(含),8的倍数 | -| DH | 8+ | 2048、3072、4096 | -| SM2 | 9+ | 256 | -| SM3 | 9+ | 256 | -| SM4 | 9+ | 128 | - -### 加密解密 - -| 算法                    | API级别 | 备注 | -| ----------------------- | :----: | ---------------- | -| AES/CBC/NoPadding
AES/ECB/NoPadding
AES/CTR/NoPadding
AES/GCM/NoPadding
AES/CBC/PKCS7
AES/ECB/PKCS7 | 8+ | 1. CBC\ECB\CTR模式IV参数必选
2. GCM模式下Nonce、AAD、AEAD参数必选 | -| RSA/ECB/NoPadding
RSA/ECB/PKCS1_V1_5
RSA/ECB/OAEP | 8+ | | -| SM4/CTR/NoPadding
SM4/ECB/NoPadding
SM4/CBC/NoPadding
SM4/ECB/PKCS7
SM4/CBC/PKCS7 | 9+ | | - - - -### 签名验签 - - -| 算法 | API级别 | 备注 | -| --------- | :----------: | ----------------- | -| RSA/MD5/PKCS1_V1_5
RSA/SHA1/PKCS1_V1_5
RSA/SHA224/PKCS1_V1_5
RSA/SHA256/PKCS1_V1_5
RSA/SHA384/PKCS1_V1_5
RSA/SHA512/PKCS1_V1_5
RSA/SHA1/PSS
RSA/SHA224/PSS
RSA/SHA256/PSS
RSA/SHA384/PSS | 8+ | | -| RSA/NoDigest/PKCS1_V1_5 | 9+ | | -| DSA/SHA1
DSA/SHA224
DSA/SHA256
DSA/SHA384
DSA/SHA512 | 8+ | | -| DSA/NoDigest | 9+ | | -| ECC/SHA1
ECC/SHA224
ECC/SHA256
ECC/SHA384
ECC/SHA512 | 8+ | | -| ECC/NoDigest | 9+ | | -| ED25519/SHA1
ED25519/SHA224
ED25519/SHA256
ED25519/SHA384
ED25519/SHA512 |8+ | | -| ED25519/NoDigest | 9+ | | -| SM2/SM3
SM2/NoDigest |9+ | | - -### 密钥协商 - -| 算法                    | API级别 | 备注 | -| ------ | :-----------: | ------------------------------ | -| ECDH | 8+ | 协商密钥类型为ECC类型密钥 | -| DH | 8+ | | -| X25519 | 8+ | | - -### 密钥派生 - -| 算法                    |API级别 | 派生密钥及长度 | 备注 | -| ------------------------- | :-----------: | ------------ | ----------------- | -| HKDF/SHA256
HKDF/SHA384
HKDF/SHA512 | 8+ | 算法:AES、HMAC、SM4 长度:256、384、512 | 派生出的密钥可以存储到HUKS或者直接返回明文 | -| PBKDF2/SHA256
PBKDF2/SHA384
PBKDF2/SHA512 | 8+ | 算法:AES、HMAC、SM4 长度:256、384、512 | 派生出的密钥可以存储到HUKS或者直接返回明文 | +| 算法                    | API级别 | 支持的密钥长度 |是否必选规格| +| -------------- | :---------------: | ------------------ |:------------------: | +| AES | 8+ | 128、192、256 | 是 | +| RSA | 8+ | 512、768、1024|否| +| RSA | 8+ | 2048、3072、4096 |是| +| HMAC | 8+ | 8-1024(含),必须是8的倍数 |是| +| ECC | 8+ | 224 |否| +| ECC | 8+ | 256、384、521 |是| +| ED25519 | 8+ | 256 |是| +| X25519 | 8+ | 256 |是| +| DSA | 8+ | 8-1024(含),8的倍数 |否| +| DH | 8+ | 2048 |是| +| DH | 8+ | 3072、4096 |否| +| SM2 | 9+ | 256 |是| +| SM4 | 9+ | 128 |是| + +### 加密&解密流程算法与分组、填充模式的组合规格 + +| 算法/分组模式/填充模式                    | API级别 | 备注 |是否必选规格| +| ----------------------- | :----: | ---------------- | :----------------: | +| AES/ECB/NoPadding
AES/ECB/PKCS7 | 8+ | |否| +| AES/CBC/NoPadding
AES/CBC/PKCS7
AES/CTR/NoPadding| 8+ | IV参数必选 |是| +| AES/GCM/NoPadding | 8+ | Nonce、AAD、AEAD参数必选 |是| +| RSA/ECB/NoPadding
RSA/ECB/PKCS1_V1_5
RSA/ECB/OAEP | 8+ | OAEP填充模式支持的摘要算法:SHA256/SHA384/SHA512 | 是 | +| SM4/ECB/NoPadding
SM4/ECB/PKCS7
SM4/CBC/PKCS7 | 9+ | CBC模式下 IV 参数必选 |否 | +| SM4/CTR/NoPadding
SM4/CBC/NoPadding
| 9+ | IV 参数必选 |是 | + + + +### 签名&验签流程算法与摘要算法、填充模式的组合规格 + + +| 算法/摘要算法/填充模式 | API级别 | 备注 |是否必选规格| +| --------- | :----------: | ---------- | :-----------------: | +| RSA/MD5/PKCS1_V1_5
RSA/SHA1/PKCS1_V1_5
RSA/SHA224/PKCS1_V1_5
RSA/SHA224/PSS| 8+ | |否| +| RSA/SHA256/PKCS1_V1_5
RSA/SHA384/PKCS1_V1_5
RSA/SHA512/PKCS1_V1_5
RSA/SHA256/PSS
RSA/SHA384/PSS
RSA/SHA512/PSS | 8+ | | 是 +| RSA/NoDigest/PKCS1_V1_5 | 9+ |NoDigest 需要指定TAG HuksKeyDigest.HUKS_DIGEST_NONE |否| +| DSA/SHA1
DSA/SHA224
DSA/SHA256
DSA/SHA384
DSA/SHA512 | 8+ | |否| +| DSA/NoDigest | 9+ |NoDigest 需要指定TAG HuksKeyDigest.HUKS_DIGEST_NONE|否| +| ECC/SHA1
ECC/SHA224 | 8+ | |否| +| ECC/SHA256
ECC/SHA384
ECC/SHA512 | 8+ | |是| +| ECC/NoDigest | 9+ |NoDigest 需要指定TAG HuksKeyDigest.HUKS_DIGEST_NONE |否| +| ED25519/NoDigest | 8+ | NoDigest 需要指定TAG HuksKeyDigest.HUKS_DIGEST_NONE |是| +| SM2/SM3|9+ | |是| +| SM2/NoDigest |9+ | |否| + +### 密钥协商算法 + +| 算法                    | API级别 | 备注 | 是否必选规格| +| ------ | :-----------: | ------------------------------ |:-----------: | +| ECDH | 8+ | 协商密钥类型为ECC类型密钥 | 是| +| DH | 8+ | |是| +| X25519 | 8+ | |是| + +### HMAC 密钥长度与摘要组合规格 +| 摘要 | 密钥长度 | API级别 | 是否必选规格| +| ------ | :-----------: |:-----------: |:-----------: | +| SHA256 |192-1024(8的倍数)| 8+ | 是| +| SHA384 |256-1024(8的倍数) | 8+ | 是| +| SHA512 |256-1024(8的倍数)| 8+ | 是| +### 派生算法/摘要组合规格 + +| 算法/摘要   | 派生密钥的算法/长度     | 派生结果密钥可用算法/长度 | 备注 |API级别 |是否必选规格| +| ----------------- |-------------------------------- | ----------------------- | :------------: |:---------: |:--:| +| HKDF/SHA256 | AES/192-256 | AES/128/192/256
HMAC/8-1024
SM4/128 | 派生密钥是业务基于三段式得到密钥会话结果,业务可决定派生密钥是否由HUKS管理(即密钥不出TEE)亦或是业务独立管理 |8+|是| +| HKDF/SHA384 | AES/256 | AES/128/192/256
HMAC/8-1024
SM4/128 | 派生密钥是业务基于三段式得到密钥会话结果,业务可决定派生密钥是否由HUKS管理(即密钥不出TEE)亦或是业务独立管理 |8+|是| +|HKDF/SHA512 | AES/256 | AES/128/192/256
HMAC/8-1024
SM4/128 | 派生密钥是业务基于三段式得到密钥会话结果,业务可决定派生密钥是否由HUKS管理(即密钥不出TEE)亦或是业务独立管理 |8+|是| +| PBKDF2/SHA256 | AES/192-256 | AES/128/192/256
HMAC/8-1024
SM4/128 | 派生密钥是业务基于三段式得到密钥会话结果,业务可决定派生密钥是否由HUKS管理(即密钥不出TEE)亦或是业务独立管理 |8+|是| +| PBKDF2/SHA384 |AES/256 | AES/128/192/256
HMAC/8-1024
SM4/128 | 派生密钥是业务基于三段式得到密钥会话结果,业务可决定派生密钥是否由HUKS管理(即密钥不出TEE)亦或是业务独立管理 |8+|是| +| PBKDF2/SHA512 | AES/256 | AES/128/192/256
HMAC/8-1024
SM4/128 | 派生密钥是业务基于三段式得到密钥会话结果,业务可决定派生密钥是否由HUKS管理(即密钥不出TEE)亦或是业务独立管理 |8+|是| ### 密钥证明 -| 算法                    |API级别 | 备注 | -| ------------------ | :-----: | ------------------------------------------------------------ | -| RSA | 9+ | 仅支持Padding为PSS的密钥 | -| ECC | 9+ | | -| X25519 | 9+ | | +| 算法                    |API级别 | 备注 | 是否必选规格| +| ------------------ | :-----: | ----------------------------- | :-------:| +| RSA | 9+ | 支持Padding为 PSS 与 PKCS1_V1_5的密钥 |是| +| ECC | 9+ | |是| +| X25519 | 9+ | |是| ## 密钥材料格式 针对不同密码算法的密钥对、公钥、私钥,HUKS定义了一套密钥材料格式。 diff --git a/zh-cn/application-dev/security/permission-list.md b/zh-cn/application-dev/security/permission-list.md index 529065010a1210acc0e5f768e94498589d50d522..e89b3ef3fd297eefe2dd73e38f388d95333b74e4 100644 --- a/zh-cn/application-dev/security/permission-list.md +++ b/zh-cn/application-dev/security/permission-list.md @@ -964,6 +964,16 @@ **ACL使能**:TRUE +## ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY + +允许设备管理员设置包安装管理策略。 + +**权限级别**:system_basic + +**授权方式**:system_grant + +**ACL使能**:TRUE + ## ohos.permission.NFC_TAG 允许应用读取Tag卡片。 diff --git a/zh-cn/application-dev/task-management/reminder-agent-development.md b/zh-cn/application-dev/task-management/reminder-agent-development.md index cc57f01db881131f73ea7b11392005dd03fc0442..ed069b3469316412901df7eef20a13c03aadcfd8 100644 --- a/zh-cn/application-dev/task-management/reminder-agent-development.md +++ b/zh-cn/application-dev/task-management/reminder-agent-development.md @@ -19,7 +19,7 @@ ## 开发步骤 -1. 申请`ohos.permission.PUBLISH_AGENT_REMINDER`权限,配置方式请参见[访问控制授权申请](../security/accesstoken-guidelines.md#配置文件权限声明)。 +1. 需要申请`ohos.permission.PUBLISH_AGENT_REMINDER`权限,配置方式请参见[配置文件权限声明](../security/accesstoken-guidelines.md#配置文件权限声明)。 2. [使能通知开关](../notification/notification-enable.md),获得用户授权后,才能使用代理提醒功能。 @@ -180,4 +180,4 @@ 基于后台代理提醒的开发,有以下相关实例可供参考: -- [闹钟(ArkTS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/CommonEventAndNotification/AlarmClock) \ No newline at end of file +- [闹钟(ArkTS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/CommonEventAndNotification/AlarmClock) diff --git a/zh-cn/application-dev/task-management/work-scheduler-dev-guide.md b/zh-cn/application-dev/task-management/work-scheduler-dev-guide.md index f98f682fe5ce9792071103e460adf78129383c3f..d8e227f4c5423214146078003b07b9ba4bbb71fe 100644 --- a/zh-cn/application-dev/task-management/work-scheduler-dev-guide.md +++ b/zh-cn/application-dev/task-management/work-scheduler-dev-guide.md @@ -186,7 +186,7 @@ try{ try{ workScheduler.isLastWorkTimeOut(500, (error, res) =>{ if (error) { - onsole.error(`workschedulerLog isLastWorkTimeOut failed. code is ${error.code} message is ${error.message}`); + console.error(`workschedulerLog isLastWorkTimeOut failed. code is ${error.code} message is ${error.message}`); } else { console.info(`workschedulerLog isLastWorkTimeOut success, data is: ${res}`); } diff --git a/zh-cn/application-dev/windowmanager/application-window-stage.md b/zh-cn/application-dev/windowmanager/application-window-stage.md index 6a8c67a9c395620bd8660db34559e795ab2f31c7..209481afbeb2873152d3e096d620ba99bdce3e66 100644 --- a/zh-cn/application-dev/windowmanager/application-window-stage.md +++ b/zh-cn/application-dev/windowmanager/application-window-stage.md @@ -320,7 +320,6 @@ export default class EntryAbility extends UIAbility { ```ts import UIAbility from '@ohos.app.ability.UIAbility'; - import ExtensionContext from '@ohos.app.ability.ServiceExtensionAbility'; import window from '@ohos.window'; export default class EntryAbility extends UIAbility { diff --git a/zh-cn/device-dev/Readme-CN.md b/zh-cn/device-dev/Readme-CN.md index d85370b5314c3d80254582f529f124f240307404..0ee0a90d465c6b126a4baeca742ce2cec4cd1882 100644 --- a/zh-cn/device-dev/Readme-CN.md +++ b/zh-cn/device-dev/Readme-CN.md @@ -38,8 +38,7 @@ - [图形图像](subsystems/subsys-graphics-overview.md) - [媒体](subsystems/subsys-multimedia-camera-overview.md) - [公共基础](subsystems/subsys-utils-guide.md) - - [AI框架](subsystems/subsys-ai-aiframework-devguide.md) - - [数据管理](subsystems/subsys-data-relational-database-overview.md) + - [AI框架](subsystems/subsys-ai-aiframework-devguide.md) - [Sensor服务](subsystems/subsys-sensor-overview.md) - [用户程序框架](subsystems/subsys-application-framework-overview.md) - [OTA升级](subsystems/subsys-ota-guide.md) diff --git a/zh-cn/device-dev/subsystems/Readme-CN.md b/zh-cn/device-dev/subsystems/Readme-CN.md index 8db80acc71b81397c3178ca20d343836bdb8ec35..0d791ec1960c411b8ecf08997969a0f105d4b921 100644 --- a/zh-cn/device-dev/subsystems/Readme-CN.md +++ b/zh-cn/device-dev/subsystems/Readme-CN.md @@ -38,14 +38,9 @@ - [音视频播放开发指导](subsys-multimedia-video-play-guide.md) - [音视频录制开发指导](subsys-multimedia-video-record-guide.md) - [公共基础库开发指导](subsys-utils-guide.md) -- [AI框架开发指导](subsys-ai-aiframework-devguide.md) -- 数据管理 - - 关系型数据库 - - [关系型数据库概述](subsys-data-relational-database-overview.md) - - [关系型数据库开发指导](subsys-data-relational-database-guide.md) - - 轻量级数据存储 - - [轻量级数据存储概述](subsys-data-storage-overview.md) - - [轻量级数据存储开发指导](subsys-data-storage-guide.md) +- AI服务 + - [AI框架开发指导](subsys-ai-aiframework-devguide.md) + - [NNRt开发指导](subsys-ai-nnrt-guide.md) - Sensor服务 - [Sensor服务概述](subsys-sensor-overview.md) - [Sensor服务使用指导](subsys-sensor-guide.md) @@ -108,3 +103,10 @@ - 电源管理 - 显示管理 - [系统亮度范围定制开发指导](subsys-power-brightness-customization.md) + - 电池管理 + - [电量与LED灯颜色的定制开发指导](subsys-power-level-LED-color.md) + - [电池温度保护定制开发指导](subsys-power-temperature-protection.md) + - [电量等级定制开发指导](subsys-power-battery-level-customization.md) + - [充电限流限压定制开发指导](subsys-power-charge-current-voltage-limit.md) + - [充电类型定制开发指导](subsys-power-charge-type-customization.md) + - [关机充电动画开发指导](subsys-power-poweroff-charge-animation.md) diff --git a/zh-cn/device-dev/subsystems/figures/animation_charging_power2.jpg b/zh-cn/device-dev/subsystems/figures/animation_charging_power2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4ddfc92f26d3fede4a878e449a2364140085d745 Binary files /dev/null and b/zh-cn/device-dev/subsystems/figures/animation_charging_power2.jpg differ diff --git a/zh-cn/device-dev/subsystems/figures/animation_charing_power.jpg b/zh-cn/device-dev/subsystems/figures/animation_charing_power.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6da51e0ee4e353007f2c78b0a6a47a79c2771907 Binary files /dev/null and b/zh-cn/device-dev/subsystems/figures/animation_charing_power.jpg differ diff --git a/zh-cn/device-dev/subsystems/figures/animation_initial_power.jpg b/zh-cn/device-dev/subsystems/figures/animation_initial_power.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c1417a4cc98fe5a413bba5facf5998ed48310f48 Binary files /dev/null and b/zh-cn/device-dev/subsystems/figures/animation_initial_power.jpg differ diff --git a/zh-cn/device-dev/subsystems/figures/animation_initial_power2.jpg b/zh-cn/device-dev/subsystems/figures/animation_initial_power2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..72e77043f06ac4298604b7798ca79597c2b30153 Binary files /dev/null and b/zh-cn/device-dev/subsystems/figures/animation_initial_power2.jpg differ diff --git a/zh-cn/device-dev/subsystems/figures/animation_low_power.jpg b/zh-cn/device-dev/subsystems/figures/animation_low_power.jpg new file mode 100644 index 0000000000000000000000000000000000000000..64d03fe47d45deab0e8a40c99142e9fa0c47b6f8 Binary files /dev/null and b/zh-cn/device-dev/subsystems/figures/animation_low_power.jpg differ diff --git a/zh-cn/device-dev/subsystems/figures/animation_low_power2.jpg b/zh-cn/device-dev/subsystems/figures/animation_low_power2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d3ff1ba4e6b715cce3a0a9263726b86ad8b18ddd Binary files /dev/null and b/zh-cn/device-dev/subsystems/figures/animation_low_power2.jpg differ diff --git a/zh-cn/device-dev/subsystems/figures/battery_limit_current_test_report.jpg b/zh-cn/device-dev/subsystems/figures/battery_limit_current_test_report.jpg new file mode 100644 index 0000000000000000000000000000000000000000..fa16e626dfa1aef0609d14a6cb073fe87a15a02c Binary files /dev/null and b/zh-cn/device-dev/subsystems/figures/battery_limit_current_test_report.jpg differ diff --git a/zh-cn/device-dev/subsystems/figures/charger_type1.jpg b/zh-cn/device-dev/subsystems/figures/charger_type1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a9ef478f0f8f04b6e32787729bfbe5276dc121cf Binary files /dev/null and b/zh-cn/device-dev/subsystems/figures/charger_type1.jpg differ diff --git a/zh-cn/device-dev/subsystems/figures/high_power_led.jpg b/zh-cn/device-dev/subsystems/figures/high_power_led.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e9dbb9c347d0a0c05d286257a29ffbb940964e9b Binary files /dev/null and b/zh-cn/device-dev/subsystems/figures/high_power_led.jpg differ diff --git a/zh-cn/device-dev/subsystems/figures/high_power_led_alter.jpg b/zh-cn/device-dev/subsystems/figures/high_power_led_alter.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6557a55c7dc7c502bd9c37011d9cab7e6005504d Binary files /dev/null and b/zh-cn/device-dev/subsystems/figures/high_power_led_alter.jpg differ diff --git a/zh-cn/device-dev/subsystems/figures/low_power_led.jpg b/zh-cn/device-dev/subsystems/figures/low_power_led.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ce9f005ef08061fb4475ced34983cb9a3df82cb0 Binary files /dev/null and b/zh-cn/device-dev/subsystems/figures/low_power_led.jpg differ diff --git a/zh-cn/device-dev/subsystems/figures/low_power_led_alter.jpg b/zh-cn/device-dev/subsystems/figures/low_power_led_alter.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7156f28712106629be96177ef654c4820cb9b189 Binary files /dev/null and b/zh-cn/device-dev/subsystems/figures/low_power_led_alter.jpg differ diff --git a/zh-cn/device-dev/subsystems/figures/nnrt_arch_diagram.png b/zh-cn/device-dev/subsystems/figures/nnrt_arch_diagram.png new file mode 100644 index 0000000000000000000000000000000000000000..d0a721c2156ddb3c0df79feec763a8dfe6680c5d Binary files /dev/null and b/zh-cn/device-dev/subsystems/figures/nnrt_arch_diagram.png differ diff --git a/zh-cn/device-dev/subsystems/figures/nnrt_dev_flow.png b/zh-cn/device-dev/subsystems/figures/nnrt_dev_flow.png new file mode 100644 index 0000000000000000000000000000000000000000..ca50b6ac1800e972a5a5f5dcb116771ac8730360 Binary files /dev/null and b/zh-cn/device-dev/subsystems/figures/nnrt_dev_flow.png differ diff --git a/zh-cn/device-dev/subsystems/figures/normal_power_led.jpg b/zh-cn/device-dev/subsystems/figures/normal_power_led.jpg new file mode 100644 index 0000000000000000000000000000000000000000..dacb5083b679885d1ab786291b081114b883c57b Binary files /dev/null and b/zh-cn/device-dev/subsystems/figures/normal_power_led.jpg differ diff --git a/zh-cn/device-dev/subsystems/figures/normal_power_led_alter.jpg b/zh-cn/device-dev/subsystems/figures/normal_power_led_alter.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c0b974a1b70dd4f455de48775a9bf607e835c44c Binary files /dev/null and b/zh-cn/device-dev/subsystems/figures/normal_power_led_alter.jpg differ diff --git a/zh-cn/device-dev/subsystems/subsys-ai-nnrt-guide.md b/zh-cn/device-dev/subsystems/subsys-ai-nnrt-guide.md new file mode 100644 index 0000000000000000000000000000000000000000..02d436659491564874cd32956c6afbc33466369b --- /dev/null +++ b/zh-cn/device-dev/subsystems/subsys-ai-nnrt-guide.md @@ -0,0 +1,404 @@ +# NNRt设备开发指导 + +## 概述 + +### 功能简介 + +NNRt(Neural Network Runtime,神经网络运行时)是面向AI领域的跨芯片推理计算运行时,作为中间桥梁连通上层AI推理框架和底层加速芯片,实现AI模型的跨芯片推理计算。 + +NNRt开放了设备接口,芯片厂商通过设备接口将专有加速芯片接入NNRt,实现接入OpenHarmony的社区生态,以下将介绍芯片如何接入NNRt。 + +### 基本概念 +在开发前,开发者需要先了解以下概念,以便更好地理解全文内容: + +- HDI(Hardware Device Interface):OpenHarmony硬件设备接口,定义系统中跨进程通信的接口,实现服务间的跨进程通信。 +- IDL(Interface Description Language):接口描述语言,是HDI接口的语言格式。 + +### 约束与限制 +- 系统版本:OpenHarmony主干版本。 +- 开发环境:Ubuntu 18.04及以上。 +- 接入设备:具备AI计算能力的芯片。 + +### 运作机制 +NNRt通过HDI接口实现与设备芯片的对接,由HDI接口实现跨进程通信。 + +**图1** NNRt架构图 + +![架构图](./figures/nnrt_arch_diagram.png) + +整个架构主要分为三层,AI应用在应用层,AI推理框架和NNRt在系统层,设备服务在芯片层。AI应用如要使用专用加速芯片模型推理,需要经过AI推理框架和NNRt才能调用到底层专用加速芯片,而NNRt就是负责适配底层各种专用加速芯片,它开放了标准统一的设备接口,众多的第三方芯片设备都可以通过HDI接口接入OpenHarmony。 + +程序运行时,AI应用、AI推理框架、NNRt都在用户进程中,底层设备服务在服务进程中,NNRt根据HDI接口实现了HDI Client,服务端也需要根据HDI接口实现HDI Service,使得两个进程间能够跨进程通信。 + +## 开发指导 + +### 场景介绍 +当需要将一款AI加速芯片接入NNRt的时候,可以参考下文。下文以RK3568芯片为例,展示RK3568 CPU如何通过HDI接口接入NNRt,并完成AI模型推理。 +> 依赖说明:该教程展示的RK3568 CPU接入NNRt并没有实际去写CPU的驱动,而是借用了MindSpore Lite的CPU算子,故会依赖MindSpore Lite的动态库以及头文件,实际开发时并不需要依赖MindSpore Lite的任何库或者头文件。 + +### 开发流程 +专用加速芯片接入NNRt的整体流程如下: + +**图2** 专用加速芯片接入NNRt流程 + +![开发流程](./figures/nnrt_dev_flow.png) + +### 开发步骤 +开发者具体可通过以下步骤实现芯片对接NNRt: +#### 生成HDI头文件 +开源社区下载OpenHarmony的代码,编译drivers_interface部件,生成HDI接口的头文件。 + +1. [下载源码](../get-code/sourcecode-acquire.md)。 + +2. 编译接口IDL文件。 + ```shell + ./build.sh --product-name productname –ccache --build-target drivers_interface_nnrt + ``` + > productname为产品名称,此处为RK3568。 + + 编译完成后,在```out/rk3568/gen/drivers/interface/nnrt```目录下生成HDI头文件,默认语言类型为C++。若需要生成C类型的头文件,请在编译之前使用如下命令对```drivers/interface/nnrt/v1_0/BUILD.gn```文件中的```language```配置项进行设置。 + + ```shell + language = "c" + ``` + + 生成头文件目录如下所示: + ```text + out/rk3568/gen/drivers/interface/nnrt + └── v1_0 + ├── drivers_interface_nnrt__libnnrt_proxy_1.0_external_deps_temp.json + ├── drivers_interface_nnrt__libnnrt_stub_1.0_external_deps_temp.json + ├── innrt_device.h # 设备接口头文件 + ├── iprepared_model.h # 编译AI模型对象头文件 + ├── libnnrt_proxy_1.0__notice.d + ├── libnnrt_stub_1.0__notice.d + ├── model_types.cpp # AI模型结构定义实现文件 + ├── model_types.h # AI模型结构定义头文件 + ├── nnrt_device_driver.cpp # 设备驱动实现参考样例 + ├── nnrt_device_proxy.cpp + ├── nnrt_device_proxy.h + ├── nnrt_device_service.cpp # 设备服务端实现参考样例 + ├── nnrt_device_service.h # 设备服务端头文件 + ├── nnrt_device_stub.cpp + ├── nnrt_device_stub.h + ├── nnrt_types.cpp # 数据类型定义实现文件 + ├── nnrt_types.h # 数据类型定义头文件 + ├── node_attr_types.cpp # AI模型算子属性定义实现文件 + ├── node_attr_types.h # AI模型算子属性定义 + ├── prepared_model_proxy.cpp + ├── prepared_model_proxy.h + ├── prepared_model_service.cpp # 编译AI模型对象服务端实现参考样例 + ├── prepared_model_service.h # 编译AI模型对象服务端头文件 + ├── prepared_model_stub.cpp + └── prepared_model_stub.h + ``` + +#### 实现HDI服务 + +1. 在drivers/peripheral目录下新建开发目录,用于HDI服务开发,开发目录结构如下所示: + ```text + drivers/peripheral/nnrt + ├── BUILD.gn # 代码编译脚本文件 + ├── bundle.json + └── hdi_cpu_service # 自定义目录 + ├── BUILD.gn # 代码编译脚本文件 + ├── include + │   ├── nnrt_device_service.h # 设备服务端头文件 + │   ├── node_functions.h # 非必须,由具体实现决定 + │   ├── node_registry.h # 非必须,由具体实现决定 + │   └── prepared_model_service.h # 编译AI模型对象服务端头文件 + └── src + ├── nnrt_device_driver.cpp # 设备驱动实现文件 + ├── nnrt_device_service.cpp # 设备服务端实现文件 + ├── nnrt_device_stub.cpp # 非必须,由具体实现决定 + ├── node_attr_types.cpp # 非必须,由具体实现决定 + ├── node_functions.cpp # 非必须,由具体实现决定 + ├── node_registry.cpp # 非必须,由具体实现决定 + └── prepared_model_service.cpp # 编译AI模型对象服务端实现文件 + ``` + +2. 实现设备驱动,无特殊需求可直接使用步骤1中生成的nnrt_device_driver.cpp文件,否则根据具体驱动开发。 + +3. 实现服务接口,可参考nnrt_device_service.cpp和prepared_model_service.cpp实现文件,接口定义可以参考[NNRt的HDI接口定义](https://gitee.com/openharmony/drivers_interface/tree/master/nnrt)。 + +4. 编译驱动和服务的实现文件为共享库。 + + 在```drivers/peripheral/nnrt/hdi_cpu_service/```下新建```BUILD.gn```文件,文件内容如下所示,相关参数配置内容可参考[Build教程](https://gitee.com/openharmony/build)。 + + ```shell + import("//build/ohos.gni") + import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") + + ohos_shared_library("libnnrt_service_1.0") { + include_dirs = [] + sources = [ + "src/nnrt_device_service.cpp", + "src/prepared_model_service.cpp", + "src/node_registry.cpp", + "src/node_functions.cpp", + "src/node_attr_types.cpp" + ] + public_deps = [ "//drivers/interface/nnrt/v1_0:nnrt_idl_headers" ] + external_deps = [ + "hdf_core:libhdf_utils", + "hiviewdfx_hilog_native:libhilog", + "ipc:ipc_single", + "c_utils:utils", + ] + + install_images = [ chipset_base_dir ] + subsystem_name = "hdf" + part_name = "drivers_peripheral_nnrt" + } + + ohos_shared_library("libnnrt_driver") { + include_dirs = [] + sources = [ "src/nnr_device_driver.cpp" ] + deps = [ "//drivers/peripheral/nnrt/hdi_cpu_service:libnnrt_service_1.0" ] + + external_deps = [ + "hdf_core:libhdf_host", + "hdf_core:libhdf_ipc_adapter", + "hdf_core:libhdf_utils", + "hiviewdfx_hilog_native:libhilog", + "ipc:ipc_single", + "c_utils:utils", + ] + + install_images = [ chipset_base_dir ] + subsystem_name = "hdf" + part_name = "drivers_peripheral_nnrt" + } + + group("hdf_nnrt_service") { + deps = [ + ":libnnrt_driver", + ":libnnrt_service_1.0", + ] + } + ``` + + 将```group("hdf_nnrt_service")```添加到```drivers/peripheral/nnrt/BUILD.gn```文件中,以便在更上目录层级就能引用。 + ```shell + if (defined(ohos_lite)) { + group("nnrt_entry") { + deps = [ ] + } + } else { + group("nnrt_entry") { + deps = [ + "./hdi_cpu_service:hdf_nnrt_service", + ] + } + } + ``` + + 新建```drivers/peripheral/nnrt/bundle.json```用于定义新增的```drivers_peripheral_nnrt```部件。 + ```json + { + "name": "drivers_peripheral_nnrt", + "description": "Neural network runtime device driver", + "version": "3.2", + "license": "Apache License 2.0", + "component": { + "name": "drivers_peripheral_nnrt", + "subsystem": "hdf", + "syscap": [""], + "adapter_system_type": ["standard"], + "rom": "1024KB", + "ram": "2048KB", + "deps": { + "components": [ + "ipc", + "hdf_core", + "hiviewdfx_hilog_native", + "c_utils" + ], + "third_part": [ + "bounds_checking_function" + ] + }, + "build": { + "sub_component": [ + "//drivers/peripheral/nnrt:nnrt_entry" + ], + "test": [ + ], + "inner_kits": [ + ] + } + } + } + ``` + +#### 声明HDI服务 + + 在对应产品的uhdf hcs配置文件中声明用户态驱动与服务,例如针对RK3568服务需要在```vendor/hihope/rk3568/hdf_config/uhdf/device_info.hcs```文件中新增如下配置: + ```text + nnrt :: host { + hostName = "nnrt_host"; + priority = 50; + uid = ""; + gid = ""; + caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"]; + nnrt_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libnnrt_driver.z.so"; + serviceName = "nnrt_device_service"; + } + } + } + ``` +> 注意:修改hcs文件需要删除out目录重新编译,才能生效。 + +#### 配置host进程用户ID和组ID + 对于新增的nnrt_host进程的场景,需要配置对应进程的用户ID和组ID。 进程的用户ID在文件```base/startup/init/services/etc/passwd```中配置,进程的组ID在文件```base/startup/init/services/etc/group```中配置。 + ```text + # 在base/startup/init/services/etc/passwd新增 + nnrt_host:x:3311:3311:::/bin/false + + # 在base/startup/init/services/etc/group新增 + nnrt_host:x:3311: + ``` + +#### 配置SELinux + +OpenHarmony已经开启SELinux特性,需要对新增的进程和服务配置相应的SELinux规则,用于运行host进程启动访问某些资源、发布HDI服务。 + +1. 在```base/security/selinux/sepolicy/ohos_policy/drivers/adapter/vendor/type.te```文件中配置nnrt_host进程安全上下文,新增配置如下: + ```text + # 新增配置 + type nnrt_host, hdfdomain, domain; + ``` + > nnrt_host为上文配置的进程名称。 + +2. 由于SeLinux是白名单访问的权限机制,需要根据实际权限需求配置。将服务启动之后,可通过以下dmesg命令查看avc告警, +avc告警会给出缺少的权限。SeLinux的配置也可以参考[OpenHarmony SeLinux子系统的说明](https://gitee.com/openharmony/security_selinux/blob/master/README.md)。 + ```shell + hdc_std shell + dmesg | grep nnrt + ``` + +3. 新建nnrt_host.te配置文件,将权限配置到nnrt_host.te文件中。 + ```shell + # 创建nnrt文件夹 + mkdir base/security/selinux/sepolicy/ohos_policy/drivers/peripheral/nnrt + + # 创建vendor文件夹 + mkdir base/security/selinux/sepolicy/ohos_policy/drivers/peripheral/nnrt/vendor + + # 创建nnrt_host.te文件 + touch base/security/selinux/sepolicy/ohos_policy/drivers/peripheral/nnrt/vendor/nnrt_host.te + ``` + +4. 将所需的权限写入nnrt_host.te文件中,比如: + ```text + allow nnrt_host dev_hdf_kevent:chr_file { ioctl }; + allow nnrt_host hilog_param:file { read }; + allow nnrt_host sh:binder { transfer }; + allow nnrt_host dev_ashmem_file:chr_file { open }; + allow sh nnrt_host:fd { use }; + ``` + +#### 配置部件编译入口 +以RK3568产品为例: +```shell +vim //productdefine/common/inherit/chipset_common.json +``` +在"subsystems", "subsystem":"hdf", "components"中添加: +```shell +{ + "component": "drivers_peripheral_foo", + "features": [] +} +``` + +#### 删除out目录并编译整个系统 +```shell +# 删除out目录 +rm -rf ./out + +# 编译 +./build.sh --product-name rk3568 –ccache --jobs=4 +``` + + +### 调测验证 +服务开发完成后,可以使用XTS用例验证基本功能和兼容性,开发者可通过以下步骤进行验证: + +1. 编译NNRt的hats用例,用例在```test/xts/hats/hdf/nnrt```目录下。 + ```shell + # 进入hats目录 + cd test/xts/hats + + # 编译hats测试用例 + ./build.sh suite=hats system_size=standard --product-name rk3568 + + # 回到代码根目录 + cd - + ``` + 编译好的测试用例会输出到相对代码根目录的```out/rk3568/suites/hats/testcases/HatsHdfNnrtFunctionTest```路径下。 + +2. 将测试用例push到设备上。 + ```shell + # 将测试用例可执行文件推送到设备上,HatsHdfNnrtFunctionTest是测试用例可执行文件。 + hdc_std file send out/rk3568/suites/hats/testcases/HartsHdfNnrtFunctionTest /data/local/tmp/ + + # 给测试用例可执行文件加上权限。 + hdc_std shell "chmod +x /data/local/tmp/HatsHdfNnrtFunctionTest" + ``` + +3. 执行用例并查看结果。 + ```shell + # 执行测试用例 + hdc_std shell "/data/local/tmp/HatsHdfNnrtFunctionTest" + ``` + + 所有hats用例执行成功,可以看到测试报告显示已通过47个用例,说明服务通过了兼容性测试。 + ```text + ... + [----------] Global test environment tear-down + Gtest xml output finished + [==========] 47 tests from 3 test suites ran. (515 ms total) + [ PASSED ] 47 tests. + ``` + +### 开发实例 +完整Demo代码可以参考[社区实现](https://gitee.com/openharmony/ai_neural_network_runtime/tree/master/example/drivers)。 + +1. 拷贝```example/driver/nnrt```目录到```drivers/peripheral```路径下。 + ```shell + cp -r example/driver/nnrt drivers/peripheral + ``` + +2. 补充bundle.json文件到```drivers/peripheral/nnrt```,bundle.json参考本教程上面的[开发步骤](#开发步骤)章节。 + +3. 由于Demo依赖MindSpore Lite CPU算子,故需要添加MindSpore Lite依赖文件。 + - 下载MindSpore Lite的头文件,[MindSpore Lite 1.5.0](https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.5.0/MindSpore/lite/release/linux/mindspore-lite-1.5.0-linux-x64.tar.gz)。 + - 在```drivers/peripheral/nnrt```目录下新建mindspore目录,用于存放mindspore依赖库和头文件。 + ```shell + mkdir drivers/peripheral/nnrt/mindspore + ``` + - 解压mindspore-lite-1.5.0-linux-x64.tar.gz文件,将```runtime/include```目录拷贝到```drivers/peripheral/nnrt/mindspore```目录下。 + - Demo还依赖mindspore的schema文件。 + ```shell + # 创建mindspore_schema目录 + mkdir drivers/peripheral/nnrt/hdi_cpu_service/include/mindspore_schema + + # 拷贝mindspore schema文件 + cp third_party/mindspore/mindspore/lite/schema/* drivers/peripheral/nnrt/hdi_cpu_service/include/mindspore_schema/ + ``` + - 编译MindSpore Lite的动态库,并将动态库放到mindspore目录下。 + ```shell + # 编译mindspore动态库 + ./build.sh --product-name rk3568 -ccaache --jobs 4 --build-target mindspore_lib + + # 将mindspore动态库 + mkdir drivers/peripheral/nnrt/mindspore/mindspore + + # 将mindspore动态拷贝到drivers/peripheral/nnrt/mindspore/mindspore。 + cp out/rk3568/package/phone/system/lib/libmindspore-lite.huawei.so drivers/peripheral/nnrt/mindspore/mindspore/ + ``` +4. 其他配置请参考本教程上面的[开发步骤](#开发步骤)章节。 \ No newline at end of file diff --git a/zh-cn/device-dev/subsystems/subsys-build-component-building-rules.md b/zh-cn/device-dev/subsystems/subsys-build-component-building-rules.md index 7b4c0ea74e43d12e29c0eefe31bd87274e6ac047..e7333059216749fcd6cac36e31d4e7e3da3b8448 100644 --- a/zh-cn/device-dev/subsystems/subsys-build-component-building-rules.md +++ b/zh-cn/device-dev/subsystems/subsys-build-component-building-rules.md @@ -105,7 +105,7 @@ bundle.json是定义部件的描述文件,包含了部件的根目录、名称 | 字段 | 类型 | 看护手段 | |---|---|---| -|name|string。部件的HPM(鸿蒙包管理器)包名称,必填。命名规则:@{organization}/{component_name}。"component_name"为部件的名称,须满足规则1.1。|静态检查| +|name|string。部件的HPM(OpenHarmony包管理器)包名称,必填。命名规则:@{organization}/{component_name}。"component_name"为部件的名称,须满足规则1.1。|静态检查| |version|string。部件版本号,必填,命名和升级跟随OpenHarmony版本号。|静态检查| |destPath|string。部件源码的根目录,必填。部件的根目录须独立唯一,不允许存在多个根目录。|静态检查| |component:name|string。部件名,必填。须满足规则1.1。|静态检查| diff --git a/zh-cn/device-dev/subsystems/subsys-data-relational-database-guide.md b/zh-cn/device-dev/subsystems/subsys-data-relational-database-guide.md deleted file mode 100644 index 888c1d09552d9b77beaaf73dd3912f892e42b2df..0000000000000000000000000000000000000000 --- a/zh-cn/device-dev/subsystems/subsys-data-relational-database-guide.md +++ /dev/null @@ -1,346 +0,0 @@ -# 关系型数据库开发指导 - -## 场景介绍 - -关系型数据库是在SQLite基础上实现的本地数据操作机制,提供给用户无需编写原生SQL语句就能进行数据增删改查的方法,同时也支持原生SQL语句操作。 - -## 接口说明 -### 数据库的创建和删除 - -关系型数据库提供了数据库创建方式,以及对应的删除接口,涉及的API如下所示。 - -表1 数据库创建和删除API - -| 类名 | 接口名 | 描述 | -| ---- | ---- | ---- | -| RdbStoreConfig | RdbStoreConfig(const std::string &path,
StorageMode storageMode = StorageMode::MODE_DISK,
bool readOnly = false,
const std::vector &encryptKey = std::vector(),
const std::string &journalMode = "",
const std::string &syncMode = "",
const std::string &databaseFileType = "",
const std::string &databaseFileSecurityLevel = "") | 对数据库进行配置,包括设置数据库名、存储模式、日志模式、同步模式,是否为只读,及数据库加密。

  • path:数据库路径;
  • readOnly:是否只读;
  • storageMode:存储模式;
  • encryptKey:加密密钥;
  • journalMode:日志模式;
  • syncMode:同步模式;
  • databaseFileType:数据库类型;
  • databaseFileSecurityLevel:安全等级
| -| RdbOpenCallback | int OnCreate(RdbStore &rdbStore) | 数据库创建时被回调,开发者可以在该方法中初始化表结构,并添加一些应用使用到的初始化数据。 | -| RdbOpenCallback | int OnUpgrade(RdbStore &rdbStore, int currentVersion, int targetVersion) | 数据库升级时被回调。 | -| RdbOpenCallback | int OnDowngrade(RdbStore &rdbStore, int currentVersion, int targetVersion) | 数据库降级时被回调。 | -| RdbHelper | std::shared_ptr\ GetRdbStore(const RdbStoreConfig &config, int version, RdbOpenCallback &openCallback, int &errCode) | 根据配置创建或打开数据库。 | -| RdbHelper | int DeleteRdbStore(const std::string &path) | 删除指定的数据库。 | - -### 数据库谓词的使用 - -关系型数据库提供了用于设置数据库操作条件的谓词AbsRdbPredicates,其中包括两个实现子类RdbPredicates和RawRdbPredicates: - -- RdbPredicates:开发者无需编写复杂的SQL语句,仅通过调用该类中条件相关的方法,如equalTo、notEqualTo、groupBy、orderByAsc、beginsWith等,就可自动完成SQL语句拼接,方便用户聚焦业务操作。 -- RawRdbPredicates:可满足复杂SQL语句的场景,支持开发者自己设置where条件子句和whereArgs参数。不支持equalTo等条件接口的使用。 - - 表2 数据库谓词API - | 类名 | 接口名 | 描述 | - | ---- | ---- | ---- | - | RdbPredicates | AbsPredicates *EqualTo(std::string field, std::string value) | 设置谓词条件,满足field字段与value值相等。 | - | RdbPredicates | AbsPredicates *NotEqualTo(std::string field, std::string value) | 设置谓词条件,满足field字段与value值不相等。 | - | RdbPredicates | AbsPredicates *BeginsWith(std::string field, std::string value) | 设置谓词条件,满足field字段以value值开头。 | - | RdbPredicates | AbsPredicates *Between(std::string field, std::string low, std::string high) | 设置谓词条件,满足field字段在最小值low和最大值high之间。 | - | RdbPredicates | AbsPredicates *OrderByAsc(std::string field) | 设置谓词条件,根据field字段升序排列。 | - | RdbPredicates | void SetWhereClause(std::string whereClause) | 设置where条件子句。 | - | RdbPredicates | void SetWhereArgs(std::vector\ whereArgs) | 设置whereArgs参数,该值表示where子句中占位符的值。 | - | RdbPredicates | AbsRdbPredicates *InDevices(std::vector& devices) | 设置谓词条件,同步分布式数据库时指定组网内的远程设备。 | - | RdbPredicates | AbsRdbPredicates *InAllDevices() | 设置谓词条件,同步分布式数据库时连接到组网内的所有远程设备。| - - -### 数据表的增删改查 - -关系型数据库提供对本地数据增删改查操作的能力,相关API如下所示。 - -- 新增 - - 关系型数据库提供了插入数据的接口,通过ValuesBucket输入要存储的数据,通过返回值判断是否插入成功,插入成功时返回最新插入数据所在的行号,失败时则返回-1。 - - 表3 数据表插入API - - | 类名 | 接口名 | 描述 | - | ---- | ---- | ---- | - | RdbStore | int Insert(int64_t &outRowId, const std::string &table, const ValuesBucket &initialValues) | 向数据库插入数据。
  • table:待添加数据的表名。
  • initialValues:以ValuesBucket存储的待插入的数据。它提供一系列put方法,如PutString(const std::string &columnName, const std::string &value),PutDouble(const std::string &columnName, double value),用于向ValuesBucket中添加数据。
| - -- 删除 - - 调用删除接口,通过AbsRdbPredicates指定删除条件。该接口的返回值表示删除的数据行数,可根据此值判断是否删除成功。如果删除失败,则返回0。 - - 表4 数据表删除API - | 类名 | 接口名 | 描述 | - | ---- | ---- | ---- | - | RdbStore | int Delete(int &deletedRows, const AbsRdbPredicates &predicates) | 删除数据。
  • deletedRows:删除的记录条数。
  • predicates:Rdb谓词,指定了删除操作的表名和条件。AbsRdbPredicates的实现类有两个:RdbPredicates和RawRdbPredicates。
    • RdbPredicates:支持调用谓词提供的equalTo等接口,设置删除条件。
    • RawRdbPredicates:仅支持设置表名、where条件子句、whereArgs三个参数,不支持equalTo等接口调用。
| - -- 更新 - - 调用更新接口,传入要更新的数据,并通过AbsRdbPredicates指定更新条件。该接口的返回值表示更新操作影响的行数。如果更新失败,则返回0。 - - 表5 数据表更新API - | 类名 | 接口名 | 描述 | - | ---- | ---- | ---- | - | RdbStore | int Update(int &changedRows, const ValuesBucket &values, const AbsRdbPredicates &predicates) | 更新数据库表中符合谓词指定条件的数据。
  • changedRows:更新的记录条数。
  • values:以ValuesBucket存储的要更新的数据。
  • predicates:指定了更新操作的表名和条件。AbsRdbPredicates的实现类有两个:RdbPredicates和RawRdbPredicates。
    • RdbPredicates:支持调用谓词提供的equalTo等接口,设置更新条件。
    • RawRdbPredicates:仅支持设置表名、where条件子句、whereArgs三个参数,不支持equalTo等接口调用。
| - -- 查询 - - 关系型数据库提供了两种查询数据的方式: - - - 直接调用查询接口。使用该接口,会将包含查询条件的谓词自动拼接成完整的SQL语句进行查询操作,无需用户传入原生的SQL语句。 - - 执行原生的SQL语句进行查询操作。 - - 表6 数据表查询API - | 类名 | 接口名 | 描述 | - | ---- | ---- | ---- | - | RdbStore | std::unique_ptr Query(const AbsRdbPredicates &predicates, const std::vector\ columns) | 查询数据。
  • predicates:谓词,可以设置查询条件。AbsRdbPredicates的实现类有两个:RdbPredicates和RawRdbPredicates。
    • RdbPredicates:支持调用谓词提供的equalTo等接口,设置查询条件。
    • RawRdbPredicates:仅支持设置表名、where条件子句、whereArgs三个参数,不支持equalTo等接口调用。
  • columns:规定查询返回的列。
| - | RdbStore | std::unique_ptr QuerySql(const std::string &sql, const std::vector\ &selectionArgs = std::vector\()) | 执行原生的用于查询操作的SQL语句。
  • sql:原生用于查询的sql语句。
  • selectionArgs:sql语句中占位符参数的值,若select语句中没有使用占位符,该参数可以设置为null。
| - -### 查询结果集的使用 - -关系型数据库提供了查询返回的结果集ResultSet,其指向查询结果中的一行数据,供用户对查询结果进行遍历和访问。ResultSet对外API如下所示。 - -表7 结果集API -| 类名 | 接口名 | 描述 | -| ---- | ---- | ---- | -| ResultSet | int GoTo(int offset) | 从结果集当前位置移动指定偏移量。 | -| ResultSet | int GoToRow(int position) | 将结果集移动到指定位置。 | -| ResultSet | int GoToNextRow() | 将结果集向后移动一行。 | -| ResultSet | int GoToPreviousRow() | 将结果集向前移动一行。 | -| ResultSet | int IsStarted(bool &result) | 判断结果集是否被移动过。 | -| ResultSet | int IsEnded(bool &result) | 判断结果集是否被移动到最后一行之后。 | -| ResultSet | int IsAtFirstRow(bool &result) | 判断结果集当前位置是否在第一行。 | -| ResultSet | int IsAtLastRow(bool &result) | 判断结果集当前位置是否在最后一行。 | -| ResultSet | int GetRowCount(int &count) | 获取当前结果集中的记录条数。 | -| ResultSet | int GetColumnCount(int &count) | 获取结果集中的列数。 | -| ResultSet | int GetString(int columnIndex, std::string &value) | 获取当前行指定列的值,以String类型返回。 | -| ResultSet | int GetBlob(int columnIndex, std::vector\ &blob) | 获取当前行指定列的值,以字节数组形式返回。 | -| ResultSet | int GetDouble(int columnIndex, double &value) | 获取当前行指定列的值,以double型返回。 | - -### 设置分布式列表 - -用户可以对当前数据库中的列表设置为分布式列表。 - -表8 设置分布式列表 -| 类名 | 接口名 | 描述 | -| ---- | ---- | ---- | -| RdbStore | bool SetDistributedTables(const std::vector& tables) | 设置分布式列表。
  • tables:要设置的分布式列表表名
- -### 根据本地表名获取指定远程设备的分布式表名 - -用户根据本地表名获取指定远程设备的分布式表名。在查询远程设备数据库时,需要使用分布式表名。 - -表9 根据本地表名获取指定远程设备的分布式表名 -| 类名 | 接口名 | 描述 | -| ---- | ---- | ---- | -| RdbStore | std::string ObtainDistributedTableName(const std::string& device, const std::string& table) | 根据本地表名获取指定远程设备的分布式表名。在查询远程设备数据库时,需要使用分布式表名。
  • device:远程设备ID
  • table:本地表名
- -### 在设备之间同步数据 - -表10 在设备之间同步数据 -| 类名 | 接口名 | 描述 | -| ---- | ---- | ---- | -| RdbStore | bool Sync(const SyncOption& option, const AbsRdbPredicates& predicate, const SyncCallback& callback) | 在设备之间同步数据。
  • option:同步选项;mode:同步模式(PUSH表示数据从本地设备推送到远程设备/PULL表示数据从远程设备拉至本地设备);isBlock:是否阻塞
  • callback:指定的callback回调函数
- -### 注册数据库的观察者 - -表11 注册数据库的观察者 -| 类名 | 接口名 | 描述 | -| ---- | ---- | ---- | -| RdbStore | bool Subscribe(const SubscribeOption& option, RdbStoreObserver *observer) | 注册数据库的观察者。当分布式数据库中的数据发生更改时,将调用回调。
  • option:订阅类型;
  • observer:指分布式数据库中数据更改事件的观察者
- -### 从数据库中删除指定类型的指定观察者 - -表12 从数据库中删除指定类型的指定观察者 -| 类名 | 接口名 | 描述 | -| ---- | ---- | ---- | -| RdbStore | bool UnSubscribe(const SubscribeOption& option, RdbStoreObserver *observer) | 从数据库中删除指定类型的指定观察者。
  • option:订阅类型;
  • observer:指已注册的数据更改观察者
- -### 数据库的备份和恢复 - -关系型数据库提供对本地数据库文件的备份和恢复能力,相关API如下所示。 - -- 备份 - - 关系型数据库提供了备份数据库文件的接口,通过databasePath指定的备份文件名(支持路径)备份当前数据库文件。通过返回值判断是否备份成功,成功时返回0,失败时则返回相应的错误码。 - - 表13 数据库备份API - - | 类名 | 接口名 | 描述 | - | ---- | ---- | ---- | - | RdbStore | int Backup(const std::string databasePath, const std::vector<uint8_t> destEncryptKey) | 备份数据库文件。
  • databasePath:指定的备份文件名。
  • destEncryptKey:数据库的加密密钥。注意:当前只支持非加密数据库的备份。
| - -- 恢复 - - 关系型数据库提供了恢复数据库文件的接口,通过backupPath指定的备份文件名(支持路径)恢复当前数据库文件。通过返回值判断是否恢复成功,成功时返回0,失败时则返回相应的错误码。 - - 表14 数据库恢复API - - | 类名 | 接口名 | 描述 | - | ---- | ---- | ---- | - | RdbStore | int Restore(const std::string backupPath, const std::vector<uint8_t> &newKey) | 恢复数据库文件。
  • backupPath:指定的备份文件名。
  • newKey:数据库的加密密钥。注意:当前只支持非加密数据库的恢复。
| - -### 事务 - - 事务(Transaction)是一个对数据库执行工作单元。通过返回值判断事务是否成功,成功时返回0,失败时则返回相应的错误码。 - - 表15 事务API - - | 类名 | 接口名 | 描述 | - | ---- | ---- | ---- | - | RdbStore | int BeginTransaction() | 开启一个事务。 | - | RdbStore | int Commit() | 保存更改。 | - | RdbStore | int RollBack() | 回滚所做的更改。 | - -## 约束与限制 - -无。 - -## 开发步骤 - -1. 创建数据库。 - - a. 配置数据库相关信息,包括数据库的名称、存储模式、是否为只读模式等。 - - b. 初始化数据库表结构和相关数据。 - - c. 创建数据库。 - - 示例代码如下: - ```c++ - const std::string DATABASE_NAME = RDB_TEST_PATH + "RdbStoreTest.db"; - const std::string CREATE_TABLE_TEST = "CREATE TABLE IF NOT EXISTS test (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, age INTEGER, salary REAL, blobType BLOB)"; - - class OpenCallback : public RdbOpenCallback { - public: - int OnCreate(RdbStore &rdbStore) override; - int OnUpgrade(RdbStore &rdbStore, int oldVersion, int newVersion) override; - }; - - int OpenCallback::OnCreate(RdbStore &store) - { - return store.ExecuteSql(CREATE_TABLE_TEST); - } - - RdbStoreConfig config(DATABASE_NAME); - OpenCallback callback; - - std::shared_ptr store = RdbHelper::GetRdbStore(config, 1, callback, 0); - ``` - -2. 插入数据。 - - a. 构造要插入的数据,以ValuesBucket形式存储。 - - b. 调用关系型数据库提供的插入接口。 - - c. 创建数据库。 - - 示例代码如下: - ```c++ - ValuesBucket values; - - values.PutInt("id", 1); - values.PutString("name", std::string("Tom")); - values.PutInt("age", 18); - values.PutDouble("salary", 100.5); - values.PutBlob("blobType", std::vector{ 1, 2, 3 }); - store->Insert(id, "test", values); - ``` - -3. 查询数据。 - - a. 构造用于查询的谓词对象,设置查询条件。 - - b. 指定查询返回的数据列。 - - c. 调用查询接口查询数据。 - - d. 调用结果集接口,遍历返回结果。 - - 示例代码如下: - ```c++ - std::vector columns = {"id", "name", "age", "salary"}; - - RdbPredicates predicates("test"); - predicates.EqualTo("age", "25")->OrderByAsc("salary"); - std::unique_ptr resultSet = store->Query(predicates, columns) - resultSet.goToNextRow(); - ``` - -4. 设置分布式同步表 - - a. 调用接口设置分布式同步表。 - - 示例代码如下: - - ```c++ - store->SetDistributedTables("test"); - ``` - -5. 分布式数据同步 - - a. 定义同步模式和阻塞状态。 - - b. 构造用于同步分布式表的谓词对象,指定组网内的远程设备。 - - c. 调用接口同步数据。 - - 示例代码如下: - - ```c++ - SyncOption option; - option.mode = PUSH; - option.isBlock = true; - AbsRdbPredicates predicate("test"); - predicate.InAllDevices(); - store->Sync(option, predicate, [](const SyncResult& result) { - for (const auto& [device, status] : result) { - LogI("device=%s status=%d", device.c_str(), status); - } - }); - ``` - -6. 分布式数据订阅 - - a. 重写数据更改观察者OnChange()函数。 - - b. 定义分布式数据订阅类型。 - - c. 调用接口实现分布式数据订阅,或取消订阅。 - - 示例代码如下: - - ```c++ - class MyObserver : public RdbStoreObserver { - public: - void OnChange(const std::vector& devices) override { - for (const auto& device : devices) { - LOGI("device=%s data change", device.c_str()); - } - } - }; - - SubscribeOption option; - option.mode = SubscribeMode::REMOTE; - MyObserver observer; - store->Subscribe(option, &observer); // 分布式数据订阅 - - store->UnSubscribe(option, &observer); // 取消订阅 - ``` - -7. 跨设备查询 - - a. 根据本地表名获取指定远程设备的分布式表名。 - - b. 根据指定SQL语句查询数据库中的数据。 - - 示例代码如下: - ```c++ - std::string tableName = store->ObtainDistributedTableName("123456789abcd", "test"); - auto resultSet = store->QuerySql("SELECT * from ?;", tableName); - ``` - -8. 数据库的备份和恢复 - - a. 根据指定的数据库备份文件名备份当前数据库。 - - b. 根据指定的数据库备份文件恢复当前数据库。 - - 示例代码如下: - ```c++ - std::string backupName = "backup.db"; // 指定数据库的备份文件名 - std::vector key; // 数据库的加密密钥 - int errno = store->Backup(backupName, key); - errno = store->Restore(backupName, key); - ``` \ No newline at end of file diff --git a/zh-cn/device-dev/subsystems/subsys-data-relational-database-overview.md b/zh-cn/device-dev/subsystems/subsys-data-relational-database-overview.md deleted file mode 100644 index 90ef4efc82a04fd03a0083f9ecc92c54f3fec8f6..0000000000000000000000000000000000000000 --- a/zh-cn/device-dev/subsystems/subsys-data-relational-database-overview.md +++ /dev/null @@ -1,39 +0,0 @@ -# 关系型数据库概述 - -关系型数据库(Relational Database,RDB)是一种基于关系模型来管理数据的数据库。OpenHarmony关系型数据库基于SQLite组件提供了一套完整的对本地数据库进行管理的机制,对外提供了一系列的增、删、改、查等接口,也可以直接运行用户输入的SQL语句来满足复杂的场景需要。 - -## 基本概念 - -- 关系型数据库 - - 基于关系模型来管理数据的数据库,以行和列的形式存储数据。 - -- 谓词 - - 数据库中用来代表数据实体的性质、特征或者数据实体之间关系的词项,主要用来定义数据库的操作条件。 - -- 结果集 - - 指用户查询之后的结果集合,可以对数据进行访问。结果集提供了灵活的数据访问方式,可以更方便的拿到用户想要的数据。 - -- SQLite数据库 - - 一款遵守ACID的轻型开源关系型数据库管理系统。 - -## 运作机制 -OpenHarmony关系型数据库对外提供通用的操作接口(即Rdb Store接口),底层使用第三方开源组件SQLite作为持久化存储引擎,支持SQLite具有的所有数据库特性。 - -**图1** 关系型数据库运作机制 - -![](figures/zh-cn_image_0000001115980740.png) - -## 默认配置 -- 如果不指定数据库的日志模式,那么系统默认日志方式是WAL(Write Ahead Log)模式。 -- 如果不指定数据库的落盘模式,那么系统默认落盘方式是FULL模式。 -- OpenHarmony数据库使用的共享内存默认大小是8MB,单次查询使用的共享内存默认大小是2MB。 - -## 约束与限制 -- 数据库中连接池的最大数量是4个,用以管理用户的读操作。 -- 为保证数据的准确性,数据库同一时间只能支持一个写操作。 - - diff --git a/zh-cn/device-dev/subsystems/subsys-data-storage-guide.md b/zh-cn/device-dev/subsystems/subsys-data-storage-guide.md deleted file mode 100755 index edadbed8f145320327af3d3f1cdb158df1428ae4..0000000000000000000000000000000000000000 --- a/zh-cn/device-dev/subsystems/subsys-data-storage-guide.md +++ /dev/null @@ -1,193 +0,0 @@ -# 轻量级数据存储开发指导 - -## 场景介绍 - -轻量级数据存储功能通常用于保存应用的一些常用配置信息,并不适合需要存储大量数据和频繁改变数据的场景。应用的数据保存在文件中,这些文件可以持久化地存储在设备上。需要注意的是,应用访问的实例包含文件所有数据,这些数据会一直加载在设备的内存中,直到应用主动从内存中将其移除前,应用可以通过Preferences的API进行数据操作。 - -## 接口说明 - -轻量级存储为应用提供key-value键值型的文件数据处理能力,支持应用对数据进行轻量级存储及查询。数据存储形式为键值对,键的类型为字符串型,值的存储数据类型包括字符串型、布尔型、整数型、长整型、浮点型、双精度类型和字符串数组。 - -**创建存储实例** - -读取指定文件,将数据加载到Preferences实例,即可创建一个存储实例,用于数据操作。 - -**表 1** 轻量级数据存储实例创建接口 - -| 类名 | 方法名 | 描述 | -| --- | ----- | ----| -| PreferencesHelper | static std::shared_ptr GetPreferences(const std::string &path, int &errCode); | path:应用程序内部数据存储路径。
errCode:错误码。
返回值:轻量级存储实例。 | - -**存入数据** - -通过Put系列方法,可以增加或修改Preferences实例中的数据。 - -**表 2** 轻量级偏好数据库存入接口 - -| 类名 | 方法名 | 描述 | -| --- | ----- | ----| -| Preferences | int PutInt(const std::string &key, int value); | key:将要存储的key名称,不能为空。
value:将要存储的value。
返回值:错误码。 | -| Preferences | int PutString(const std::string &key, const std::string &value); | key:将要存储的key名称,不能为空。
value:将要存储的value。
返回值:错误码。 | -| Preferences | int PutBool(const std::string &key, bool value); | key:将要存储的key名称,不能为空。
value:将要存储的value。
返回值:错误码。 | -| Preferences | int PutLong(const std::string &key, int64_t value); | key:将要存储的key名称,不能为空。
value:将要存储的value。
返回值:错误码。 | -| Preferences | int PutFloat(const std::string &key, float value); | key:将要存储的key名称,不能为空。
value:将要存储的value。
返回值:错误码。 | -| Preferences | int PutDouble(const std::string &key, double value); | key:将要存储的key名称,不能为空。
value:将要存储的value。
返回值:错误码。 | -| Preferences | int PutStringSet(const std::string &key, const std::set\ &value); | key:将要存储的key名称,不能为空。
value:将要存储的。
返回值:错误码。 | - -**读取数据** - -通过调用Get系列方法,可以读取Preferences中的数据。 - -**表 3** 轻量级数据读取接口 - -| 类名 | 方法名 | 描述 | -| --- | ----- | ----| -| Preferences | int GetInt(const std::string &key, const int defValue = 0); | key:要获取的存储key名称,不能为空。
defValue:若获取失败或value不存在返回此默认值。
返回值:value。 | -| Preferences | std::string GetString(const std::string &key, const std::string &defValue = {}); | key:要获取的存储key名称,不能为空。
defValue:若获取失败或value不存在返回此默认值。
返回值:value。 | -| Preferences | bool GetBool(const std::string &key, const bool defValue = false); | key:要获取的存储key名称,不能为空。
defValue:若获取失败或value不存在返回此默认值。
返回值:value。 | -| Preferences | float GetFloat(const std::string &key, const float defValue = 0); | key:要获取的存储key名称,不能为空。
defValue:若获取失败或value不存在返回此默认值。
返回值:value。 | -| Preferences | double GetDouble(const std::string &key, const double defValue = 0); | key:要获取的存储key名称,不能为空。
defValue:若获取失败或value不存在返回此默认值。
返回值:value。 | -| Preferences | int64_t GetLong(const std::string &key, const int64_t defValue = 0); | key:要获取的存储key名称,不能为空。
defValue:若获取失败或value不存在返回此默认值。
返回值:value。 | -| Preferences | std::set\ GetStringSet(const std::string &key, const std::set\ &defValue = {}); | key:要获取的存储key名称,不能为空。
defValue:若获取失败或value不存在返回此默认值。
返回值:value。 | - -**数据持久化** - -通过执行Flush()或者FlushSync()方法,应用可以将缓存的数据再次写回文本文件中进行持久化存储。 - -**表 5** 轻量级数据数据持久化接口 - -| 类名 | 方法名 | 描述 | -| --- | ----- | ----| -| Preferences | void Flush(); | 将Preferences实例通过异步线程回写入文件中。 | -| Preferences | int FlushSync(); | 将Preferences实例通过同步线程回写入文件中,并返回错误码。 | - -**订阅数据变化** - -订阅数据变化需要指定PreferencesObserver作为回调方法。订阅的key的值发生变更后,当执行flush方法时,PreferencesObserver被回调。 - -**表 5** 轻量级数据变化订阅接口 - -| 类名 | 方法名 | 描述 | -| --- | ----- | ----| -| Preferences | void RegisterObserver(std::shared_ptr preferencesObserver); | preferencesObserver:需要订阅的回调对象实例。 | -| Preferences | void UnRegisterObserver(std::shared_ptr preferencesObserver); | preferencesObserver:需要注销订阅的回调对象实例。 | - -**删除数据文件** - -通过调用以下两种接口,可以删除数据实例或对应的文件。 - -**表 6** 轻量级数据存储删除接口 - -| 类名 | 方法名 | 描述 | -| --- | ----- | ----| -| PreferencesHelper | int DeletePreferences(const std::string &path); | 将Preferences实例从内存中移除,同时删除其在设备上的持久化文件。path:应用程序内部数据存储路径。
返回值:错误码。 | -| PreferencesHelper | int RemovePreferencesFromCache(const std::string &path); | 仅将Preferences实例从内存中移除。path:应用程序内部数据存储路径。
返回值:错误码。 | - -## 开发步骤 - -1. 准备工作,引入preferences以及相关的头文件到开发环境。 - - ``` C++ - 头文件路径://distributeddatamgr_appdatamgr/interfaces/innerkits/native_preferences/include - ``` - -2. 获取Preferences实例。 - - 读取指定文件,将数据加载到Preferences实例,用于数据操作。 - - ``` C++ - int errCode = E_OK; - Preferences pref = PreferencesHelper::GetPreferences(PREF_TEST_PATH + "test.xml", errCode); // PREF_TEST_PATH须为应用沙箱路径。 - EXPECT_EQ(errCode, E_OK); - ``` - - -3. 存入数据。 - - 使用Preferences put方法保存数据到缓存的实例中。 - - ```C++ - pref->PutString("test", "remove"); - ``` - -4. 读取数据。 - - 使用Preferences get方法读取数据。 - - ``` C++ - std::string ret = pref->GetString("test", "defaultValue"); - EXPECT_EQ(ret, "remove"); - ``` - - -5. 数据持久化。 - - 应用存入数据到Preferences实例后,可以通过Flush()或者FlushSync()方法将Preferences实例回写到文件中。 - - ```C++ - int err = pref->FlushSync(); - EXPECT_EQ(ret, E_OK); - ``` - -6. 订阅数据变化。 - - 应用订阅数据变化需要指定PreferencesObserver作为回调方法。订阅的key的值发生变更后,当执行flush或者flushSync方法时,PreferencesObserver被触发回调。不再需要PreferencesObserver时请注销。 - - 自定义类,实现PreferencesObserver接口: - ``` C++ - class PreferencesObserverCounter : public PreferencesObserver { - public: - virtual ~PreferencesObserverCounter(); - void OnChange(Preferences &preferences, const std::string &key) override; - - std::atomic_int notifyTimes; - static const std::vector NOTIFY_KEYS_VECTOR; - }; - - PreferencesObserverCounter::~PreferencesObserverCounter() {} - - void PreferencesObserverCounter::OnChange(Preferences &preferences, const std::string &key) - { - for (auto it = NOTIFY_KEYS_VECTOR.cbegin(); it != NOTIFY_KEYS_VECTOR.cend(); it++) { - if (key.compare(*it)) { - notifyTimes++; - break; - } - } - } - - const std::vector PreferencesObserverCounter::NOTIFY_KEYS_VECTOR = { PreferencesTest::KEY_TEST_INT_ELEMENT, - PreferencesTest::KEY_TEST_LONG_ELEMENT, PreferencesTest::KEY_TEST_FLOAT_ELEMENT, - PreferencesTest::KEY_TEST_BOOL_ELEMENT, PreferencesTest::KEY_TEST_STRING_ELEMENT }; - ``` - - 订阅数据变化,并触发执行回调方法: - ``` C++ - std::shared_ptr counter = - std::make_shared(); - pref->RegisterObserver(counter); // 注册数据变化的回调。 - - pref->PutString(PreferencesTest::KEY_TEST_STRING_ELEMENT, "test"); - pref->Flush(); // 触发执行counter的onChanged回调方法。 - EXPECT_EQ(static_cast(counter.get())->notifyTimes, 1); - - /* same value */ - pref->PutInt(PreferencesTest::KEY_TEST_INT_ELEMENT, 2); - pref->PutString(PreferencesTest::KEY_TEST_STRING_ELEMENT, "test"); - pref->Flush(); - EXPECT_EQ(static_cast(counter.get())->notifyTimes, 2); - - pref->UnRegisterObserver(counter); // 注销注册数据变化的回调。 - ``` - - -7. 删除指定文件。 - - 从使用PreferencesHelper内存中移除指定文件对应的Preferences单实例,并删除指定文件及其备份文件、损坏文件。删除指定文件时,应用不允许再使用该实例进行数据操作,否则会出现数据一致性问题。删除后,数据及文件将不可恢复。 - - ``` C++ - pref = nullptr; - int ret = PreferencesHelper::DeletePreferences("/data/test/test"); - EXPECT_EQ(ret, E_OK); - ``` - diff --git a/zh-cn/device-dev/subsystems/subsys-data-storage-overview.md b/zh-cn/device-dev/subsystems/subsys-data-storage-overview.md deleted file mode 100755 index 67dfa96b86233202ae94f46c0492377fcd87ccb3..0000000000000000000000000000000000000000 --- a/zh-cn/device-dev/subsystems/subsys-data-storage-overview.md +++ /dev/null @@ -1,31 +0,0 @@ -# 轻量级数据存储概述 - -轻量级数据存储适用于对Key-Value结构的数据进行存取和持久化操作。应用获取某个轻量级存储对象后,该存储对象中的数据将会被缓存在内存中,以便应用获得更快的数据存取速度。应用也可以将缓存的数据再次写回文本文件中进行持久化存储,由于文件读写将产生不可避免的系统资源开销,建议应用减少对持久化文件的读写频率。 - -## 基本概念 - -- **Key-Value数据结构** - - 一种键值结构数据类型。Key是不重复的关键字,Value是数据值。 - -- **非关系型数据库** - - 区别于关系数据库,不保证遵循ACID(Atomic、Consistency、Isolation及Durability)特性,不采用关系模型来组织数据,数据之间无关系。 - - -## 运作机制 - -1. 应用通过指定Preferences文件将其中的数据加载到Preferences实例,系统会通过静态容器将该实例存储在内存中,同一应用或进程中每个文件仅存在一个Preferences实例,直到应用主动从内存中移除该实例或者删除该Preferences文件。 -2. 应用获取到Preferences文件对应的实例后,可以从Preferences实例中读取数据,或者将数据存入Preferences实例中。通过调用flush或者flushSync方法可以将Preferences实例中的数据回写到文件里。 - -**图 1** 轻量级数据存储运作机制 - - -![](figures/zh-cn_image_0000001192123772.png) - -## 约束与限制 - -- 因Preferences实例会加载到内存中,建议存储的数据不超过一万条,并及时清理不再使用的实例,以便减少非内存开销。 -- 数据中的key为string类型,要求非空且字符长度不超过80个。 -- 当数据中的value为string类型时,允许为空,字符长度不超过8192个。 - diff --git a/zh-cn/device-dev/subsystems/subsys-power-battery-level-customization.md b/zh-cn/device-dev/subsystems/subsys-power-battery-level-customization.md new file mode 100644 index 0000000000000000000000000000000000000000..907d4d25356c87e142b3b3c2146e34ef92646f73 --- /dev/null +++ b/zh-cn/device-dev/subsystems/subsys-power-battery-level-customization.md @@ -0,0 +1,312 @@ +# 电量等级定制开发指导 + +## 概述 + +### 简介 + +OpenHarmony默认提供了电量等级,根据当前的电量来定义系统统一的电量等级,如满电量、高电量、低电量、极低电量等。系统可以根据当前的电量等级对用户进行提示或处理相关业务。但是电量等级对应的电量值在不同的产品上规格是不同的,产品希望根据产品的设计规格来定制此特性。为此OpenHarmony提供了电量等级的定制方式,产品定制开发者可根据设计规格来定制此特性。 + +### 约束与限制 + +配置策略: +产品定制的配置路径,需要根据[配置策略](https://gitee.com/openharmony/customization_config_policy)决定。本开发指导中的定制路径以/vendor进行举例,请开发者根据具体的产品配置策略,修改定制路径。 + +## 开发指导 + +### 搭建环境 + +设备要求: + +标准系统开发板,如DAYU200/Hi3516DV300开源套件。 + +环境要求: + +Linux调测环境,相关要求和配置可参考《[快速入门](../quick-start/quickstart-overview.md)》 + +### 开发步骤 + +本文以[DAYU200](https://gitee.com/openharmony/vendor_hihope/tree/master/rk3568)为例介绍电池温度保护机制的定制方法。 + +1. 在产品目录[(/vendor/hihope/rk3568)](https://gitee.com/openharmony/vendor_hihope/tree/master/rk3568)下创建battery文件夹。 + +2. 参考[默认电量等级配置文件夹](https://gitee.com/openharmony/powermgr_battery_manager/tree/master/services/native/profile)创建目标文件夹,并安装到`//vendor/hihope/rk3568/battery`目录下,文件格式如下: + + ```text + profile + ├── BUILD.gn + ├── battery_config.json + ``` + +3. 参考[默认电量等级的配置文件夹中的battery_config.json](https://gitee.com/openharmony/powermgr_battery_manager/blob/master/services/native/profile/battery_config.json)编写定制的battery_config.json,包含定制后的电量等级配置如下: + + ```json + { + "soc": { + "shutdown": 5, + "critical": 10, + "warning": 15, + "low": 30, + "normal": 60, + "high": 90, + "full": 100 + } + } + ``` + + **表1** 电量等级配置说明 + + | 电量等级 | 电量 | 说明 | + | -------- | -------- | -------- | + | shutdown | 5 | 关机电量 | + | critical | 10 | 极低电量 | + | warning | 15 | 告警电量 | + | low | 30 | 低电量 | + | normal | 60 | 正常电量 | + | high | 90 | 高电量 | + | full | 100 | 满电量 | + + +4. 参考[默认电量等级的配置文件夹中的BUILD.gn](https://gitee.com/openharmony/powermgr_battery_manager/blob/master/services/native/profile/BUILD.gn)编写BUILD.gn文件,将battery_config.json打包到`//vendor/etc/battery`目录下,配置如下: + + ```shell + import("//build/ohos.gni") #引用build/ohos.gni + + ohos_prebuilt_etc("battery_config") { + source = "battery_config.json" + relative_install_dir = "battery" + install_images = [ chipset_base_dir ] #安装到vendor目录下的必要配置 + part_name = "product_rk3568" #part_name为product_rk3568,以实现后续编译 + } + ``` + +5. 将编译目标添加到`/vendor/hihope/rk3568`目录下[ohos.build](https://gitee.com/openharmony/vendor_hihope/blob/master/rk3568/ohos.build)的"module_list"中,例如: + + ```json + { + "parts": { + "product_rk3568": { + "module_list": [ + "//vendor/hihope/rk3568/default_app_config:default_app_config", + "//vendor/hihope/rk3568/image_conf:custom_image_conf", + "//vendor/hihope/rk3568/preinstall-config:preinstall-config", + "//vendor/hihope/rk3568/resourceschedule:resourceschedule", + "//vendor/hihope/rk3568/etc:product_etc_conf", + "//vendor/hihope/rk3568/battery/profile:battery_config" #添加battery_config的编译 + ] + } + }, + "subsystem": "product_hihope" + } + ``` + “//vendor/hihope/rk3568/battery/”为文件夹路径,“profile”为创建的文件夹名字,“battery_config”为编译目标。 + +6. 参考《[快速入门](../quick-start/quickstart-overview.md)》编译定制版本,编译命令如下: + + ```shell + ./build.sh --product-name rk3568 --ccache + ``` + +7. 将定制版本烧录到DAYU200开发板中。 + +### 调测验证 + +1. 开机后,进入shell命令行: + ``` + hdc shell + ``` + +2. 进入电池电量的节点路径(以当前DAYU开发版路径为例)。 + ``` + cd /data/service/el0/battery/battery/ + ``` + +3. 默认充电类型的映射配置数据为例,修改充电状态,模拟电池信息上报,观察发送是否发送对应充电类型广播。 + + 1. 修改电量信息。 + ``` + echo 100 > capacity + ``` + 2. 上报电量信息改变,获取当前电量等级。 + ``` + hidumper -s 3302 -a -i + ``` + 3. 成功获取电量等级如下: + + ``` + -------------------------------[ability]------------------------------- + + + ----------------------------------BatteryService--------------------------------- + Current time: 2017-08-05 17:22:48.589 + + ······(省略其他,只显示batteryLevel的配置) + + batteryLevel: 1 + + ······ + ``` + + 4. 修改电量信息。 + ``` + echo 90 > capacity + ``` + 5. 上报电量信息改变,获取当前电量等级。 + ``` + hidumper -s 3302 -a -i + ``` + 6. 成功获取电量等级如下: + + ``` + -------------------------------[ability]------------------------------- + + + ----------------------------------BatteryService--------------------------------- + Current time: 2017-08-05 17:24:29.716 + + ······(省略其他,只显示batteryLevel的配置) + + batteryLevel: 2 + + ······ + ``` + + 7. 修改电量信息。 + ``` + echo 60 > capacity + ``` + 8. 上报电量信息改变,获取当前电量等级。 + ``` + hidumper -s 3302 -a -i + ``` + 9. 成功获取电量等级如下: + + ``` + -------------------------------[ability]------------------------------- + + + ----------------------------------BatteryService--------------------------------- + Current time: 2017-08-05 17:25:09.837 + + ······(省略其他,只显示batteryLevel的配置) + + batteryLevel: 3 + + ······ + ``` + + 10. 修改电量信息。 + ``` + echo 30 > capacity + ``` + 11. 上报电量信息改变,获取当前电量等级。 + ``` + hidumper -s 3302 -a -i + ``` + 12. 成功获取电量等级如下: + + ``` + -------------------------------[ability]------------------------------- + + + ----------------------------------BatteryService--------------------------------- + Current time: 2017-08-05 17:26:20.495 + + ······(省略其他,只显示batteryLevel的配置) + + batteryLevel: 4 + + ······ + ``` + + 13. 修改电量信息。 + ``` + echo 15 > capacity + ``` + 14. 上报电量信息改变,获取当前电量等级。 + ``` + hidumper -s 3302 -a -i + ``` + 15. 成功获取电量等级如下: + + ``` + -------------------------------[ability]------------------------------- + + + ----------------------------------BatteryService--------------------------------- + Current time: 2017-08-05 17:27:05.312 + + ······(省略其他,只显示batteryLevel的配置) + + batteryLevel: 5 + + ······ + ``` + + 16. 修改电量信息。 + ``` + echo 10 > capacity + ``` + 17. 上报电量信息改变,获取当前电量等级。 + ``` + hidumper -s 3302 -a -i + ``` + 18. 成功获取电量等级如下: + + ``` + -------------------------------[ability]------------------------------- + + + ----------------------------------BatteryService--------------------------------- + Current time: 2017-08-05 17:27:56.270 + + ······(省略其他,只显示batteryLevel的配置) + + batteryLevel: 6 + + ······ + ``` + + 19. 修改电量信息。 + ``` + echo 5 > capacity + ``` + 20. 上报电量信息改变,获取当前电量等级。 + ``` + hidumper -s 3302 -a -i + ``` + 21. 成功获取电量等级如下: + + ``` + -------------------------------[ability]------------------------------- + + + ----------------------------------BatteryService--------------------------------- + Current time: 2017-08-05 17:28:38.066 + + ······(省略其他,只显示batteryLevel的配置) + + batteryLevel: 7 + + ······ + ``` + +## 参考 +开发过程中可参考的配置文件路径:[电量等级配置源码路径](https://gitee.com/openharmony/powermgr_battery_manager/tree/master/services/native/profile/) + +默认配置: + +```json +{ + "soc": { + "shutdown": 1, + "critical": 5, + "warning": 10, + "low": 20, + "normal": 90, + "high": 99, + "full": 100 + } +} +``` + +打包路径:/system/etc/battery diff --git a/zh-cn/device-dev/subsystems/subsys-power-charge-current-voltage-limit.md b/zh-cn/device-dev/subsystems/subsys-power-charge-current-voltage-limit.md new file mode 100644 index 0000000000000000000000000000000000000000..990a97e3660d31cfe09e51ea8530143c32212566 --- /dev/null +++ b/zh-cn/device-dev/subsystems/subsys-power-charge-current-voltage-limit.md @@ -0,0 +1,124 @@ +# 充电限流限压定制开发指导 + +## 概述 + +### 简介 + +OpenHarmony默认提供了充电限流限压的特性。在对终端设备进行充电时,由于环境影响,可能会导致电池温度过高,因此需要对充电电流或电压进行限制,从而保证终端设备使用的安全性。但是充电时的电流电压对安全性的影响在不同的产品上规格是不同的,产品希望根据产品的设计规格来定制此特性。为此OpenHarmony提供了充电限流限压的定制方式,产品定制开发者可根据产品的设计规格来定制此特性。 + +### 约束与限制 + +配置策略: +产品定制的配置路径,需要根据[配置策略](https://gitee.com/openharmony/customization_config_policy)决定。本开发指导中的定制路径以/vendor进行举例,请开发者根据具体的产品配置策略,修改定制路径。 + +## 开发指导 + +### 搭建环境 + +设备要求: + +标准系统开发板,如DAYU200/Hi3516DV300开源套件。 + +环境要求: + +Linux调测环境,相关要求和配置可参考《[快速入门](../quick-start/quickstart-overview.md)》。 + +### 开发步骤 + +本文以[DAYU200](https://gitee.com/openharmony/vendor_hihope/tree/master/rk3568)为例介绍电池温度保护机制的定制方法。 + +1. 在产品目录[(/vendor/hihope/rk3568)](https://gitee.com/openharmony/vendor_hihope/tree/master/rk3568)下创建battery文件夹。 + +2. 参考[默认充电限流限压配置文件夹](https://gitee.com/openharmony/powermgr_battery_manager/tree/master/services/native/profile)创建目标文件夹,并安装到`//vendor/hihope/rk3568/battery`目录下,文件格式如下: + + ```text + profile + ├── BUILD.gn + ├── battery_config.json + ``` + +3. 参考[默认充电限流限压的配置文件夹中的battery_config.json](https://gitee.com/openharmony/powermgr_battery_manager/blob/master/services/native/profile/battery_config.json)编写定制的battery_config.json,包含定制后的充电限流限压配置如下: + + ```json + { + "charger": { + "current_limit":{ + "path": "/data/service/el0/battery/current_limit" + }, + "voltage_limit":{ + "path": "/data/service/el0/battery/voltage_limit" + } + } + } + ``` + +4. 参考[默认充电限流限压的配置文件夹中的BUILD.gn](https://gitee.com/openharmony/powermgr_battery_manager/blob/master/services/native/profile/BUILD.gn)编写BUILD.gn文件,将battery_config.json打包到`//vendor/etc/battery`目录下,配置如下: + + ```shell + import("//build/ohos.gni") #引用build/ohos.gni + + ohos_prebuilt_etc("battery_config") { + source = "battery_config.json" + relative_install_dir = "battery" + install_images = [ chipset_base_dir ] #安装到vendor目录下的必要配置 + part_name = "product_rk3568" #part_name为product_rk3568,以实现后续编译 + } + ``` + +5. 将编译目标添加到`/vendor/hihope/rk3568`目录下[ohos.build](https://gitee.com/openharmony/vendor_hihope/blob/master/rk3568/ohos.build)的"module_list"中,例如: + + ```json + { + "parts": { + "product_rk3568": { + "module_list": [ + "//vendor/hihope/rk3568/default_app_config:default_app_config", + "//vendor/hihope/rk3568/image_conf:custom_image_conf", + "//vendor/hihope/rk3568/preinstall-config:preinstall-config", + "//vendor/hihope/rk3568/resourceschedule:resourceschedule", + "//vendor/hihope/rk3568/etc:product_etc_conf", + "//vendor/hihope/rk3568/battery/profile:battery_config" #添加battery_config的编译 + ] + } + }, + "subsystem": "product_hihope" + } + ``` + “//vendor/hihope/rk3568/battery/”为文件夹路径,“profile”为创建的文件夹名字,“battery_config”为编译目标。 + +6. 参考《[快速入门](../quick-start/quickstart-overview.md)》编译定制版本,编译命令如下: + + ```shell + ./build.sh --product-name rk3568 --ccache + ``` + +7. 将定制版本烧录到DAYU200开发板中。 + +### 调测验证 + +1. 编译battery对应的hats测试用例,编译命令与框架搭建参考[XTS子系统](https://gitee.com/openharmony/xts_hats)。 + +2. 用框架执行测试,输出测试报告。 + + ![battery_limit_current_test_report](figures/battery_limit_current_test_report.jpg) + +## 参考 + +开发过程中可参考[默认充电限流限压的配置文件夹中的battery_config.json](https://gitee.com/openharmony/powermgr_battery_manager/blob/master/services/native/profile/battery_config.json) + +默认配置: + +```json +{ + "charger": { + "current_limit":{ + "path": "/data/service/el0/battery/current_limit" + }, + "voltage_limit":{ + "path": "/data/service/el0/battery/voltage_limit" + } + } +} +``` + +打包路径:/system/etc/battery \ No newline at end of file diff --git a/zh-cn/device-dev/subsystems/subsys-power-charge-type-customization.md b/zh-cn/device-dev/subsystems/subsys-power-charge-type-customization.md new file mode 100644 index 0000000000000000000000000000000000000000..2d533347e869c4bb114fa69d0e0939d428d58013 --- /dev/null +++ b/zh-cn/device-dev/subsystems/subsys-power-charge-type-customization.md @@ -0,0 +1,157 @@ +# 充电类型定制开发指导 + +## 概述 + +### 简介 + +OpenHarmony默认提供了充电类型的特性。在对终端设备进行充电时,可以使用不同的充电器类型,如有线快充、无线快充等。系统可以根据当前的充电类型展示相应的动画或处理相关业务,但是不同产品支持的充电类型不同,需要根据产品的设计规格来定制此特性。为此OpenHarmony提供了充电类型的定制方式,产品定制开发者可根据产品的设计规格来定制此特性。 + +### 约束与限制 + +配置策略: +产品定制的配置路径,需要根据[配置策略](https://gitee.com/openharmony/customization_config_policy)决定。本开发指导中的定制路径以/vendor进行举例,请开发者根据具体的产品配置策略,修改定制路径。 + +## 开发指导 + +### 搭建环境 + +设备要求: + +标准系统开发板,如DAYU200/Hi3516DV300开源套件。 + +环境要求: + +Linux调测环境,相关要求和配置可参考《[快速入门](../quick-start/quickstart-overview.md)》。 + +### 开发步骤 + +本文以[DAYU200](https://gitee.com/openharmony/vendor_hihope/tree/master/rk3568)为例介绍电池温度保护机制的定制方法。 + +1. 在产品目录[(/vendor/hihope/rk3568)](https://gitee.com/openharmony/vendor_hihope/tree/master/rk3568)下创建battery文件夹。 + +2. 参考[默认充电类型配置文件夹](https://gitee.com/openharmony/powermgr_battery_manager/tree/master/services/native/profile)创建目标文件夹,并安装到`//vendor/hihope/rk3568/battery`目录下,文件格式如下: + + ```text + profile + ├── BUILD.gn + ├── battery_config.json + ``` + +3. 参考[默认充电类型的配置文件夹中的battery_config.json](https://gitee.com/openharmony/powermgr_battery_manager/blob/master/services/native/profile/battery_config.json)编写定制的battery_config.json,包含定制后的充电类型配置如下: + + ```shell + { + "charger": { + "type": { + "path": "/data/service/el0/battery/charger_type" + } + } + } + ``` + +4. 参考[默认充电类型的配置文件夹中的BUILD.gn](https://gitee.com/openharmony/powermgr_battery_manager/blob/master/services/native/profile/BUILD.gn)编写BUILD.gn文件,将battery_config.json打包到`//vendor/etc/battery`目录下,配置如下: + + ```shell + import("//build/ohos.gni") #引用build/ohos.gni + + ohos_prebuilt_etc("battery_config") { + source = "battery_config.json" + relative_install_dir = "battery" + install_images = [ chipset_base_dir ] #安装到vendor目录下的必要配置 + part_name = "product_rk3568" #part_name为product_rk3568,以实现后续编译 + } + ``` + +5. 将编译目标添加到`/vendor/hihope/rk3568`目录下[ohos.build](https://gitee.com/openharmony/vendor_hihope/blob/master/rk3568/ohos.build)的"module_list"中,例如: + + ```json + { + "parts": { + "product_rk3568": { + "module_list": [ + "//vendor/hihope/rk3568/default_app_config:default_app_config", + "//vendor/hihope/rk3568/image_conf:custom_image_conf", + "//vendor/hihope/rk3568/preinstall-config:preinstall-config", + "//vendor/hihope/rk3568/resourceschedule:resourceschedule", + "//vendor/hihope/rk3568/etc:product_etc_conf", + "//vendor/hihope/rk3568/battery/profile:battery_config" #添加battery_config的编译 + ] + } + }, + "subsystem": "product_hihope" + } + ``` + “//vendor/hihope/rk3568/battery/”为文件夹路径,“profile”为创建的文件夹名字,“battery_config”为编译目标。 + +6. 参考《[快速入门](../quick-start/quickstart-overview.md)》编译定制版本,编译命令如下: + + ```shell + ./build.sh --product-name rk3568 --ccache + ``` + +7. 将定制版本烧录到DAYU200开发板中。 + +### 调测验证 + + +1. 开机后,进入shell命令行: + ``` + hdc shell + ``` + +2. 进入电池电量的节点路径(以当前DAYU开发版路径为例)。 + ``` + cd /data/service/el0/battery/ + ``` + +3. 默认充电类型的映射配置数据为例,修改充电状态,模拟电池信息上报,观察发送是否发送对应充电类型广播。 + 1. 修改充电类型 + ``` + echo 1 > charger_type + ``` + 2. 上报改变充电状态,触发映射 + ``` + hidumper -s 3302 -a -r + ``` + 3. 输出定制后的充电类型 + ``` + hidumper -s 3302 -a -i + ``` + ``` + -------------------------------[ability]---------------------------- + ------------------------------BatteryService------------------------ + capacity: 11 + batteryLevel: 4 + chargingStatus: 1 + healthState: 1 + pluggedType: 2 + voltage: 4123456 + present: 0 + technology: Li-ion + nowCurrent: 1000 + currentAverage: 1000 + totalEnergy: 4000000 + remainingEnergy: 4000000 + remainingChargeTime: 0 + temperature: 222 + chargeType: 1 + ``` + ![charger_type1](figures/charger_type1.jpg) + + +## 参考 +开发过程中可参考的配置文件路径:[充电类型的配置bundle.json](https://gitee.com/openharmony/powermgr_battery_manager/tree/master/services/native/profile/) + +默认配置 + + ```shell + { + "charger": { + "type": { + "path": "/data/service/el0/battery/charger_type" + } + } + } + ``` + +打包路径:/system/etc/battery diff --git a/zh-cn/device-dev/subsystems/subsys-power-level-LED-color.md b/zh-cn/device-dev/subsystems/subsys-power-level-LED-color.md new file mode 100644 index 0000000000000000000000000000000000000000..9ac5e5d617e9133ad84bb9f4496d77d83dc07f5a --- /dev/null +++ b/zh-cn/device-dev/subsystems/subsys-power-level-LED-color.md @@ -0,0 +1,232 @@ +# 电量与LED灯颜色的定制开发指导 + +## 概述 + +### 简介 + +OpenHarmony默认提供了电量与LED灯颜色的映射关系。对于部分产品形态(如Pad),会使用LED灯的颜色来展示当前设备充电时的电量信息,如高电量使用绿色、低电量黄色、极低电量使用红色。这种电量与LED灯颜色的映射关系,需要根据产品进行自定义。为此OpenHarmony提供了电量与LED灯颜色映射的定制方式,产品定制开发者可根据产品的设计规格来定制此特性。 + +### 约束与限制 + +配置策略: +产品定制的配置路径,需要根据[配置策略](https://gitee.com/openharmony/customization_config_policy)决定。本开发指导中的定制路径以/vendor进行举例,请开发者根据具体的产品配置策略,修改定制路径。 + +## 开发指导 + +### 搭建环境 + +设备要求: + +标准系统开发板,如DAYU200/Hi3516DV300开源套件。 + +环境要求: + +Linux调测环境,相关要求和配置可参考《[快速入门](../quick-start/quickstart-overview.md)》。 + +### 开发步骤 + +本文以[DAYU200](https://gitee.com/openharmony/vendor_hihope/tree/master/rk3568)为例介绍电池温度保护机制的定制方法。 + +1. 在产品目录[(/vendor/hihope/rk3568)](https://gitee.com/openharmony/vendor_hihope/tree/master/rk3568)下创建battery文件夹。 + +2. 参考[默认电量与LED灯颜色映射的配置文件夹](https://gitee.com/openharmony/powermgr_battery_manager/tree/master/services/native/profile)创建目标文件夹,并安装到`//vendor/hihope/rk3568/battery`目录下,文件格式如下: + + ```text + profile + ├── BUILD.gn + ├── battery_config.json + ``` + +3. 参考[默认电量与LED灯颜色映射的配置文件夹中的battery_config.json](https://gitee.com/openharmony/powermgr_battery_manager/blob/master/services/native/profile/battery_config.json)编写定制的battery_config.json。包含定制后的电量与LED灯颜色映射配置如下: + + ```json + { + "light": { + "low": { + "soc": [0, 20], + "rgb": [255, 192, 203] + }, + "normal": { + "soc": [20, 95], + "rgb": [255, 0, 255] + }, + "high": { + "soc": [95, 100], + "rgb": [0, 0, 255] + } + } + } + ``` + + **表1** 电量与LED灯颜色映射配置说明 + + | 节点名称 | 作用 | + | -------- | -------- | + | low | 低电量 | + | normal | 正常电量 | + | high | 高电量 | + | soc | 电量区间 | + | rgb | LED灯RGB组合 | + + +4. 参考[默认电量与LED灯颜色映射的配置文件夹中的BUILD.gn](https://gitee.com/openharmony/powermgr_battery_manager/blob/master/services/native/profile/BUILD.gn)编写BUILD.gn文件,将battery_config.json打包到`//vendor/etc/battery`目录下,配置如下: + + ```shell + import("//build/ohos.gni") #引用build/ohos.gni + + ohos_prebuilt_etc("battery_config") { + source = "battery_config.json" + relative_install_dir = "battery" + install_images = [ chipset_base_dir ] #安装到vendor目录下的必要配置 + part_name = "product_rk3568" #part_name为product_rk3568,以实现后续编译 + } + ``` + +5. 将编译目标添加到`/vendor/hihope/rk3568`目录下[ohos.build](https://gitee.com/openharmony/vendor_hihope/blob/master/rk3568/ohos.build)的"module_list"中,例如: + + ```json + { + "parts": { + "product_rk3568": { + "module_list": [ + "//vendor/hihope/rk3568/default_app_config:default_app_config", + "//vendor/hihope/rk3568/image_conf:custom_image_conf", + "//vendor/hihope/rk3568/preinstall-config:preinstall-config", + "//vendor/hihope/rk3568/resourceschedule:resourceschedule", + "//vendor/hihope/rk3568/etc:product_etc_conf", + "//vendor/hihope/rk3568/battery/profile:battery_config" #添加battery_config的编译 + ] + } + }, + "subsystem": "product_hihope" + } + ``` + “//vendor/hihope/rk3568/battery/”为文件夹路径,“profile”为创建的文件夹名字,“battery_config”为编译目标。 + +6. 参考《[快速入门](../quick-start/quickstart-overview.md)》编译定制版本,编译命令如下: + + ```shell + ./build.sh --product-name rk3568 --ccache + ``` + +7. 将定制版本烧录到DAYU200开发板中。 + +### 调测验证 + +1. 开机后,进入shell命令行。 + ``` + hdc shell + ``` + +2. 进入电池电量的节点路径(以当前DAYU开发版路径为例)。 + ``` + cd /data/service/el0/battery/battery + ``` + +3. 以默认的电量与LED灯颜色的映射配置数据为例,修改电量数值,模拟电池信息上报,并观察LED亮灯颜色变化。 + + 1. 修改电量数值 + ``` + echo 5 > capacity + ``` + 2. 上报电量信息改变,触发LED灯映射 + ``` + hidumper -s 3302 -a -r + ``` + ![low_power_led](figures/low_power_led.jpg) + + 3. 修改电量数值 + ``` + echo 50 > capacity + ``` + 4. 上报电量信息改变,触发LED灯映射 + ``` + hidumper -s 3302 -a -r + ``` + ![normal_power_led](figures/normal_power_led.jpg) + + 5. 修改电量数值 + ``` + echo 100 > capacity + ``` + 6. 上报电量信息改变,触发LED灯映射 + ``` + hidumper -s 3302 -a -r + ``` + ![high_power_led](figures/high_power_led.jpg) + +4. 以新的电量与LED灯颜色的映射配置数据为例,更改之后: + ```json + { + "light": { + "low": { + "soc": [0, 20], + "rgb": [255, 192, 203] + }, + "normal": { + "soc": [20, 95], + "rgb": [255, 0, 255] + }, + "high": { + "soc": [95, 100], + "rgb": [0, 0, 255] + } + } + } + ``` + + 1. 修改电量数值 + ``` + echo 15 > capacity + ``` + 2. 上报电量信息改变,触发LED灯映射 + ``` + hidumper -s 3302 -a -r + ``` + ![low_power_led_alter](figures/low_power_led_alter.jpg) + + 3. 修改电量数值 + ``` + echo 95 > capacity + ``` + 4. 上报电量信息改变,触发LED灯映射 + ``` + hidumper -s 3302 -a -r + ``` + ![normal_power_led_alter](figures/normal_power_led_alter.jpg) + + 5. 修改电量数值 + ``` + echo 99 > capacity + ``` + 6. 上报电量信息改变,触发LED灯映射 + ``` + hidumper -s 3302 -a -r + ``` + ![high_power_led_alter](figures/high_power_led_alter.jpg) + +## 参考 +开发过程中可参考的配置文件路径:[系统默认亮度范围配置源码路径](https://gitee.com/openharmony/powermgr_battery_manager/tree/master/services/native/profile/) + +默认配置: + +```json +{ + "light": { + "low": { + "soc": [0, 10], + "rgb": [255, 0, 0] + }, + "normal": { + "soc": [10, 90], + "rgb": [255, 255, 0] + }, + "high": { + "soc": [90, 100], + "rgb": [0, 255, 0] + } + } +} +``` + +打包路径:/system/etc/battery diff --git a/zh-cn/device-dev/subsystems/subsys-power-poweroff-charge-animation.md b/zh-cn/device-dev/subsystems/subsys-power-poweroff-charge-animation.md new file mode 100644 index 0000000000000000000000000000000000000000..927a6141a84431451005bc046223303800278e7c --- /dev/null +++ b/zh-cn/device-dev/subsystems/subsys-power-poweroff-charge-animation.md @@ -0,0 +1,435 @@ +# 关机充电动画开发指导 + +## 概述 + +### 简介 + +OpenHarmony默认提供了关机充电动画的特性,展示关机状态下的充电电量、充电动画等信息。由于定制厂商希望定制符合自身规则和特点的显示样式,希望根据产品的设计规格来定制此特性。为此OpenHarmony提供了关机充电动画的定制方式,产品定制开发者可根据产品的设计规格来定制此特性。 + +### 约束与限制 + +配置策略: +产品定制的配置路径,需要根据[配置策略](https://gitee.com/openharmony/customization_config_policy)决定。本开发指导中的定制路径以/vendor进行举例,请开发者根据具体的产品配置策略,修改定制路径。 + +## 开发指导 + +### 搭建环境 + +设备要求: + +标准系统开发板,如DAYU200/Hi3516DV300开源套件。 + +环境要求: + +Linux调测环境,相关要求和配置可参考《[快速入门](../quick-start/quickstart-overview.md)》。 + +### 开发步骤 + +本文以[DAYU200](https://gitee.com/openharmony/vendor_hihope/tree/master/rk3568)为例介绍电池温度保护机制的定制方法。 + +1. 在产品目录[(/vendor/hihope/rk3568)](https://gitee.com/openharmony/vendor_hihope/tree/master/rk3568)下创建animation文件夹。 + +2. 参考[默认关机充电动画配置文件夹](https://gitee.com/openharmony/powermgr_battery_manager/tree/master/charger/sa_profile)创建目标文件夹,并安装到`//vendor/hihope/rk3568/animation`目录下,文件格式如下: + + ```text + profile + ├── BUILD.gn + ├── animation.json + ``` + +3. 参考[关机充电动画图片资源](https://gitee.com/openharmony/powermgr_battery_manager/tree/master/charger/resources)创建resources文件夹放置构成动画的图片文件,并安装到`//vendor/hihope/rk3568/animation`目录下,文件格式如下: + + ```text + animation + ├── resources + ├── profile + ``` + +4. 参考[关机充电动画图片资源中的BUILD.gn](https://gitee.com/openharmony/powermgr_battery_manager/blob/master/charger/resources/BUILD.gn)编写BUILD.gn文件,放入`//vendor/hihope/rk3568/animation/resource`目录下,例如: + ```shell + import("//build/ohos.gni") + + ohos_prebuilt_etc("resources_config0") { + source = "loop00000.png" #图片资源 + relative_install_dir = "poweroff_charger_animation/resources" + install_images = [ chipset_base_dir ] #安装到vendor目录下的必要配置 + part_name = "product_rk3568" + } + +5. 参考[默认关机充电动画的配置文件夹中的animation.json](https://gitee.com/openharmony/powermgr_battery_manager/blob/master/charger/sa_profile/animation.json)编写定制的animation.json。包含定制后的关机充电动画配置如下: + + ```json + { + "id": "Charger", + "screenWidth": 720, + "screenHeight": 1280, + "dir": "/vendor/etc/charger/resources", + "bgColor": "#000000ff", + "subpages": [ + { + "id": "Animation", + "coms": [ + "Charging_Animation_Image", + "Charging_Percent_Label" + ], + "bgColor": "#000000ff" + }, + { + "id": "Lackpower_Charging_Prompt", + "coms": [ + "LackPower_Charging_Label" + ], + "bgColor": "#000000ff" + }, + { + "id": "Lackpower_Not_Charging_Prompt", + "coms": [ + "LackPower_Not_Charging_Label" + ], + "bgColor": "#000000ff" + } + ], + "default": { + "Common": { + "visible": false + }, + "UILabel": { + "bgColor": "#00000000", + "fontColor": "#ffffffe6", + "align": "center" + }, + "UIImageView": { + "imgCnt": 1, + "updInterval": 0, + "filePrefix": "" + } + }, + "coms": [ + { + "type": "UIImageView", + "id": "Charging_Animation_Image", + "x": 180, + "y": 410, + "w": 400, + "h": 400, + "resPath": "/vendor/etc/charger/resources/", + "imgCnt": 62, + "updInterval": 60, + "filePrefix": "loop" + }, + { + "type": "UILabel", + "id": "Charging_Percent_Label", + "text": "", + "x": 365, + "y": 580, + "w": 65, + "h": 43, + "fontSize": 32 + }, + { + "type": "UILabel", + "id": "LackPower_Charging_Label", + "text": "电池电量低", + "x": 229, + "y": 1037, + "w": 250, + "h": 45, + "fontSize": 42, + "fontColor": "#ff0000ff" + }, + { + "type": "UILabel", + "id": "LackPower_Not_Charging_Label", + "text": "电池电量低,请连接电源", + "x": 110, + "y": 1037, + "w": 500, + "h": 45, + "fontSize": 42, + "fontColor": "#ff0000ff" + } + ] + } + ``` + + **表1** 关机充电动画配置说明 + | 节点名称 | 作用 | + | -------- | -------- | + | id | 充电界面的唯一标识符 | + | screenWidth | 充电界面的屏幕宽度(像素点) | + | screenHeight | 充电界面的屏幕高度(像素点) | + | dir | 资源路径 | + | bgColor | 充电界面的背景颜色 | + | subpages | 充电界面的子页面 | + | coms | 充电界面的所有组件 | + | visible | 元素是否可见 | + | text | 组件的文本内容 | + | x | 组件的X轴坐标 | + | y | 组件的Y轴坐标 | + | w | 组件的宽度(像素点) | + | h | 组件的高度(像素点) | + | fontSize | 组件的字体大小 | + | fontColor | 文本的字体颜色 | + | align | 文本对齐方式 | + | imgCnt | 图片数量 | + | updInterval | 图片更新的时间间隔(毫秒) | + | filePrefix | 图片文件名的前缀 | + | type | 组件的类型 | + | resPath | 组件的资源文件路径 | + + + +6. 参考[默认关机充电动画的配置文件夹中的BUILD.gn](https://gitee.com/openharmony/powermgr_battery_manager/blob/master/charger/sa_profile/BUILD.gn)编写BUILD.gn文件,将animation.json打包到`/vendor/etc/charger`目录下,配置如下: + + ```shell + import("//build/ohos.gni") + + ohos_prebuilt_etc("animation_config") { + source = "animation.json" #引用build/ohos.gni + relative_install_dir = "animation/resources" + install_images = [ chipset_base_dir ] #安装到vendor目录下的必要配置 + part_name = "product_rk3568" #part_name为product_rk3568,以实现后续编译 + } + ``` + +7. 将编译目标添加到`/vendor/hihope/rk3568`目录下[ohos.build](https://gitee.com/openharmony/vendor_hihope/blob/master/rk3568/ohos.build)的"module_list"中,例如: + + ```json + { + "parts": { + "product_rk3568": { + "module_list": [ + "//vendor/hihope/rk3568/default_app_config:default_app_config", + "//vendor/hihope/rk3568/image_conf:custom_image_conf", + "//vendor/hihope/rk3568/preinstall-config:preinstall-config", + "//vendor/hihope/rk3568/resourceschedule:resourceschedule", + "//vendor/hihope/rk3568/etc:product_etc_conf", + "//vendor/hihope/rk3568/battery/profile:battery_config", + "//vendor/hihope/rk3568/animation/profile:animation_config" #添加animation_config的编译 + "//vendor/hihope/rk3568/animation/resource/resources_config0" #添加图片资源的编译 + ] + } + }, + "subsystem": "product_hihope" + } + ``` + “//vendor/hihope/rk3568/animation/”为文件夹路径,“profile”为创建的文件夹名字,“animation_config”为编译目标。 + +8. 参考《[快速入门](../quick-start/quickstart-overview.md)》编译定制版本,编译命令如下: + + ```shell + ./build.sh --product-name rk3568 --ccache + ``` + +9. 将定制版本烧录到DAYU200开发板中。 + +### 调测验证 + +1. 修改代码配置: + + 修改代码路径:base/startup/init/services/init/init_config.c + + 修改函数:ReadConfig + ``` + 修改后: + void ReadConfig(void) + { + // parse cfg + char buffer[32] = {0}; // 32 reason max leb + uint32_t len = sizeof(buffer); + SystemReadParam("ohos.boot.reboot_reason", buffer, &len); + INIT_LOGV("ohos.boot.reboot_reason %s", buffer); + ParseInitCfg(INIT_CONFIGURATION_FILE, NULL); //新增代码 + ReadFileInDir(OTHER_CHARGE_PATH, ".cfg", ParseInitCfg, NULL); //新增代码 + if (strcmp(buffer, "poweroff_charge") == 0) { + ParseInitCfg(INIT_CONFIGURATION_FILE, NULL); + ReadFileInDir(OTHER_CHARGE_PATH, ".cfg", ParseInitCfg, NULL); + } else if (InUpdaterMode() == 0) { + ParseInitCfg(INIT_CONFIGURATION_FILE, NULL); + ParseInitCfgByPriority(); + } else { + ReadFileInDir("/etc", ".cfg", ParseInitCfg, NULL); + } + } + ``` + +2. 使用hdc执行如下命令,使开发板进入关机充电状态。 + ``` + hdc shell + reboot charger + ``` + + ![animation_initial_power](figures/animation_initial_power.jpg) + +3. 进入电池电量的节点路径(以当前DAYU开发版路径为例)。 + ``` + cd /data/service/el0/battery/battery + ``` + +4. 修改电量数值,并观察充电动画数值变化。 + ``` + cat capacity + ``` + 修改当前电量为3 + ``` + echo 3 > capacity + ``` + ![animation_charing_power](figures/animation_charing_power.jpg) + +5. 在极低电量时(此处默认1%)修改充电状态,不同的充电状态对应显示动画或关机。 + + 1. 进入电池电量的节点路径。 + ``` + cd /data/service/el0/battery/battery + ``` + ``` + cat capacity + ``` + 2. 修改当前电量为1。 + ``` + echo 1 > capacity + ``` + 3. 查看当前状态。 + ``` + cat status + ``` + 当前状态为Charging + + ![animation_low_power](figures/animation_low_power.jpg) + + 4. 改变当前状态,为未连接电源状态。 + ``` + echo Not charging > status + ``` + ![animation_low_power2](figures/animation_low_power2.jpg) + + 5. 切为Discharging状态,直接进入关机状态。 + ``` + echo Discharging > status + ``` + +6. 以下对关机动画的图片进行可定制化的测试修改,步骤与上方相同,只是图片作出替换。 + + 1. 初始状态。 + + ![animation_charging_power2](figures/animation_charging_power2.jpg) + + 2. %3电量状态。 + + ![animation_initial_power2](figures/animation_initial_power2.jpg) + + 3. 1%电量,充电状态。 + + ![animation_low_power](figures/animation_low_power.jpg) + + 4. 1%电量,未充电状态。 + + ![animation_low_power2](figures/animation_low_power2.jpg) + + 5. 1%电量,Discharing状态。 + + 设备进入关机状态 + + + +## 参考 +开发过程中可参考的配置文件路径:[默认关机充电动画配置源码路径](https://gitee.com/openharmony/powermgr_battery_manager/blob/master/charger/sa_profile/animation.json) + +默认配置: +```json + { + "id": "Charger", + "screenWidth": 720, + "screenHeight": 1280, + "dir": "/vendor/etc/charger/resources", + "bgColor": "#000000ff", + "subpages": [ + { + "id": "Animation", + "coms": [ + "Charging_Animation_Image", + "Charging_Percent_Label" + ], + "bgColor": "#000000ff" + }, + { + "id": "Lackpower_Charging_Prompt", + "coms": [ + "LackPower_Charging_Label" + ], + "bgColor": "#000000ff" + }, + { + "id": "Lackpower_Not_Charging_Prompt", + "coms": [ + "LackPower_Not_Charging_Label" + ], + "bgColor": "#000000ff" + } + ], + "default": { + "Common": { + "visible": false + }, + "UILabel": { + "bgColor": "#00000000", + "fontColor": "#ffffffe6", + "align": "center" + }, + "UIImageView": { + "imgCnt": 1, + "updInterval": 0, + "filePrefix": "" + } + }, + "coms": [ + { + "type": "UIImageView", + "id": "Charging_Animation_Image", + "x": 180, + "y": 410, + "w": 400, + "h": 400, + "resPath": "/vendor/etc/charger/resources/", + "imgCnt": 62, + "updInterval": 60, + "filePrefix": "loop" + }, + { + "type": "UILabel", + "id": "Charging_Percent_Label", + "text": "", + "x": 365, + "y": 580, + "w": 65, + "h": 43, + "fontSize": 32 + }, + { + "type": "UILabel", + "id": "LackPower_Charging_Label", + "text": "电池电量低", + "x": 229, + "y": 1037, + "w": 250, + "h": 45, + "fontSize": 42, + "fontColor": "#ff0000ff" + }, + { + "type": "UILabel", + "id": "LackPower_Not_Charging_Label", + "text": "电池电量低,请连接电源", + "x": 110, + "y": 1037, + "w": 500, + "h": 45, + "fontSize": 42, + "fontColor": "#ff0000ff" + } + ] + } +``` + +打包路径:/system/etc/charger/resource diff --git a/zh-cn/device-dev/subsystems/subsys-power-temperature-protection.md b/zh-cn/device-dev/subsystems/subsys-power-temperature-protection.md new file mode 100644 index 0000000000000000000000000000000000000000..32e9ca73439657e6c5fc9f83660ac40f61b92696 --- /dev/null +++ b/zh-cn/device-dev/subsystems/subsys-power-temperature-protection.md @@ -0,0 +1,178 @@ +# 电池温度保护定制开发指导 + +## 概述 + +### 简介 + +OpenHarmony默认提供了电池温度保护的特性。终端设备会在不同的温度环境中使用,当温度过高或过低时,都会影响到电池的安全性,因此需要进行一定的温度保护措施,如当温度过高或过低时,将设备关机。但是不同的电池设备支持的温度范围不同,需要根据产品的设计规格来定制此特性。为此OpenHarmony提供了电池温度保护的定制方式,产品定制开发者可根据产品的设计规格来定制此特性。 + +### 约束与限制 + +配置策略: +产品定制的配置路径,需要根据[配置策略](https://gitee.com/openharmony/customization_config_policy)决定。本开发指导中的定制路径以/vendor进行举例,请开发者根据具体的产品配置策略,修改定制路径。 + +## 开发指导 + +### 搭建环境 + +设备要求: + +标准系统开发板,如DAYU200/Hi3516DV300开源套件。 + +环境要求: + +Linux调测环境,相关要求和配置可参考《[快速入门](../quick-start/quickstart-overview.md)》。 + +### 开发步骤 +本文以[DAYU200](https://gitee.com/openharmony/vendor_hihope/tree/master/rk3568)为例介绍电池温度保护机制的定制方法。 + +1. 在产品目录[(/vendor/hihope/rk3568)](https://gitee.com/openharmony/vendor_hihope/tree/master/rk3568)下创建battery文件夹。 + +2. 参考[默认电池温度保护配置文件夹](https://gitee.com/openharmony/powermgr_battery_manager/tree/master/services/native/profile)创建目标文件夹,并安装到`//vendor/hihope/rk3568/battery`目录下,文件格式如下: + + ```text + profile + ├── BUILD.gn + ├── battery_config.json + ``` + +3. 参考[默认电池温度保护的配置文件夹中的battery_config.json](https://gitee.com/openharmony/powermgr_battery_manager/blob/master/services/native/profile/battery_config.json)编写定制的battery_config.json,包含定制后的电池温度保护配置如下: + + ```json + { + "temperature": { + "high": 500, + "low": -400 + } + } + ``` + + **表1** 温度保护参数说明 + | 温度保护机制阈值 | 温度(摄氏度)| + | -------- | -------- | + | high | 600 | + | low | -500 | + + +4. 参考[默认电池温度保护的配置文件夹中的BUILD.gn](https://gitee.com/openharmony/powermgr_battery_manager/blob/master/services/native/profile/BUILD.gn)编写BUILD.gn文件,将battery_config.json打包到`//vendor/etc/battery`目录下,配置如下: + + ```shell + import("//build/ohos.gni") #引用build/ohos.gni + + ohos_prebuilt_etc("battery_config") { + source = "battery_config.json" + relative_install_dir = "battery" + install_images = [ chipset_base_dir ] #安装到vendor目录下的必要配置 + part_name = "product_rk3568" #part_name为product_rk3568,以实现后续编译 + } + ``` + +5. 将编译目标添加到`/vendor/hihope/rk3568`目录下[ohos.build](https://gitee.com/openharmony/vendor_hihope/blob/master/rk3568/ohos.build)的"module_list"中,例如: + + ```json + { + "parts": { + "product_rk3568": { + "module_list": [ + "//vendor/hihope/rk3568/default_app_config:default_app_config", + "//vendor/hihope/rk3568/image_conf:custom_image_conf", + "//vendor/hihope/rk3568/preinstall-config:preinstall-config", + "//vendor/hihope/rk3568/resourceschedule:resourceschedule", + "//vendor/hihope/rk3568/etc:product_etc_conf", + "//vendor/hihope/rk3568/battery/profile:battery_config" #添加battery_config的编译 + ] + } + }, + "subsystem": "product_hihope" + } + ``` + “//vendor/hihope/rk3568/battery/”为文件夹路径,“profile”为创建的文件夹名字,“battery_config”为编译目标。 + +6. 参考《[快速入门](../quick-start/quickstart-overview.md)》编译定制版本,编译命令如下: + + ```shell + ./build.sh --product-name rk3568 --ccache + ``` + +7. 将定制版本烧录到DAYU200开发板中。 + +### 调测验证 + +1. 开机后,进入shell命令行。 + ``` + hdc shell + ``` + +2. 进入电源温度的节点路径(以当前DAYU开发版路径为例)。 + ``` + cd /data/service/el0/battery/battery + ``` + +3. 以默认的电源温度保护配置数据为例,修改电池温度的模拟节点数值。 + + ``` + echo 700 > temp + ``` +4. 上报电池信息改变,触发温度保护。 + ``` + hidumper -s 3302 -a -r + ``` + 设备进入关机状态 + +5. 重新开机进入shell命令行,进入电源温度的节点路径。 + ``` + echo -600 > temp + ``` +6. 上报电池信息改变,触发温度保护。 + ``` + hidumper -s 3302 -a -r + ``` + 设备进入关机状态 + +7. 以新的电源温度保护配置数据为例,更改之后: + + ```json + { + "temperature": { + "high": 500, + "low": -400 + } + } + ``` + +8. 修改电池温度的模拟节点数值。 + ``` + echo 550 > temp + ``` + +9. 上报电池信息改变,触发温度保护。 + ``` + hidumper -s 3302 -a -r + ``` + 设备进入关机状态 + +10. 重新开机进入shell命令行,进入电源温度的节点路径。 + ``` + echo -450 > temp + ``` + +11. 上报电池信息改变,触发温度保护。 + ``` + hidumper -s 3302 -a -r + ``` + 设备进入关机状态 + +## 参考 +开发过程中可参考的配置文件路径:[系统默认电源温度保护范围配置源码路径](https://gitee.com/openharmony/powermgr_battery_manager/tree/master/services/native/profile/) + +默认配置: +```json +{ + "temperature": { + "high": 600, + "low": -500 + } +} +``` +打包路径:/system/etc/battery + diff --git a/zh-cn/device-dev/subsystems/subsys-security-huks-guide.md b/zh-cn/device-dev/subsystems/subsys-security-huks-guide.md index e019d626238f9516e78fc512228e79b7facdd9ff..606c7df8fa0bcce378ca4e234d4df3b622f7e665 100644 --- a/zh-cn/device-dev/subsystems/subsys-security-huks-guide.md +++ b/zh-cn/device-dev/subsystems/subsys-security-huks-guide.md @@ -84,6 +84,7 @@ HUKS Core作为向应用提供密钥库能力的基础,包括密钥管理及 | [HuksHdiGetKeyProperties()](#hukshdigetkeyproperties) | 获取密钥属性。 |无 | getKeyProperties(keyAlias: string, options: HuksOptions)| | [HuksHdiAttestKey()](#hukshdiattestkey) | 获取密钥证书。 |出参要遵循certChain格式 | attestKey(keyAlias: string, options: HuksOptions)| | [HuksHdiExportChipsetPlatformPublicKey()](#hukshdiexportchipsetplatformpublickey) | 导出芯片平台级密钥对的公钥。 | 出参为ECC P256的x y轴值裸数据,各32字节 | 无 | +| [HuksHdiUpgradeKey()](#hukshdiupgradekey) | 升级密钥文件。 | 无 | 无 | - - - @@ -602,6 +603,40 @@ HUKS Core的初始化,包括锁,加密算法库,authtoken key和根密钥 - - - +#### HuksHdiUpgradeKey + +**接口描述** + +升级密钥文件。当密钥文件版本号小于最新版本号时,触发该升级能力。 + +**接口原型** +
int32_t (*HuksHdiUpgradeKey)(const struct HksBlob *oldKey, const struct HksParamSet *paramSet, struct HksBlob *newKey);
+ +
+ 参数说明 +
+  const struct HksBlob *oldKey
+  待升级的密钥文件数据
+  

+ const struct HksParamSet *paramSet + 升级密钥文件数据的参数 +

+ struct HksBlob *newKey + 出参,升级后的密钥文件数据 +
+
+

+ +
+ 返回值 + + - HKS_SUCCESS:成功 + + - 其他:失败 +
+ +- - - + ### 开发步骤 HDI接口到HUKS Core的适配在以下目录中: diff --git a/zh-cn/device-dev/website.md b/zh-cn/device-dev/website.md index 828da2a577fbd9258ae5b60131e58df35fab64ef..acf6bc882e0f63f45e16b7ecf0c2499d9cf0ca18 100644 --- a/zh-cn/device-dev/website.md +++ b/zh-cn/device-dev/website.md @@ -417,14 +417,9 @@ - [音视频播放开发指导](subsystems/subsys-multimedia-video-play-guide.md) - [音视频录制开发指导](subsystems/subsys-multimedia-video-record-guide.md) - [公共基础库开发指导](subsystems/subsys-utils-guide.md) - - [AI框架开发指导](subsystems/subsys-ai-aiframework-devguide.md) - - 数据管理 - - 关系型数据库 - - [关系型数据库概述](subsystems/subsys-data-relational-database-overview.md) - - [关系型数据库开发指导](subsystems/subsys-data-relational-database-guide.md) - - 轻量级数据存储 - - [轻量级数据存储概述](subsystems/subsys-data-storage-overview.md) - - [轻量级数据存储开发指导](subsystems/subsys-data-storage-guide.md) + - AI服务 + - [AI框架开发指导](subsystems/subsys-ai-aiframework-devguide.md) + - [NNRt开发指导](subsystems/subsys-ai-nnrt-guide.md) - Sensor服务 - [Sensor服务概述](subsystems/subsys-sensor-overview.md) - [Sensor服务使用指导](subsystems/subsys-sensor-guide.md) diff --git a/zh-cn/readme/ARK-Runtime-Subsystem-zh.md b/zh-cn/readme/ARK-Runtime-Subsystem-zh.md index 514bbb14842b9aa7846e18e4aa209d2b699f86bd..109c85f387afb3bf745110d453911ed7e8442452 100644 --- a/zh-cn/readme/ARK-Runtime-Subsystem-zh.md +++ b/zh-cn/readme/ARK-Runtime-Subsystem-zh.md @@ -8,7 +8,7 @@ ## 简介 -方舟编译器\(ArkCompiler\)是为支持多种编程语言、多种芯片平台的联合编译、运行而设计的统一编译运行时平台。它支持包括动态类型和静态类型语言在内的多种编程语言,如JS、TS、ArkTS;它是支撑鸿蒙系统成为打通手机、PC、平板、电视、车机和智能穿戴等多种设备的操作系统的编译运行时底座。 +方舟编译器\(ArkCompiler\)是为支持多种编程语言、多种芯片平台的联合编译、运行而设计的统一编译运行时平台。它支持包括动态类型和静态类型语言在内的多种编程语言,如JS、TS、ArkTS;它是支撑OpenHarmony系统成为打通手机、PC、平板、电视、车机和智能穿戴等多种设备的操作系统的编译运行时底座。 ArkCompiler主要分成两个部分:编译工具链与运行时. @@ -57,7 +57,7 @@ ArkCompiler运行时直接运行字节码文件,实现对应语言规范的语 - 原生支持TypeScript: ECMAScript规范没有提供并发语义表述;业界引擎,如浏览器或者Node.js,通常会提供基于Actor并发模型的Worker API来支持多线程开发。Actor模型下执行体之间不共享任何数据对象,通过消息机制进行通信。因此Web引擎或者Node.js引擎的Worker都有启动速度慢、内存占用高这些缺陷。 针对这些缺陷,ArkCompiler的运行时已经实现了Actor实例中的不可变或者不易变的对象(方法和字节码)的共享,较大程度地优化了Actor的启动性能和启动内存。 - 方舟编译运行时不只提供了业界通用的Worker API,还提供了TaskPool作为并发API的增强。TaskPool是一个支持优先级调度、工作线程自动扩缩容的任务池功能库。开发者无需关心并发实例的生命周期,也无需关心任务负载变化时需要创建或者销毁并发实例,极大地简化了高性能多线程鸿蒙应用的开发。 + 方舟编译运行时不只提供了业界通用的Worker API,还提供了TaskPool作为并发API的增强。TaskPool是一个支持优先级调度、工作线程自动扩缩容的任务池功能库。开发者无需关心并发实例的生命周期,也无需关心任务负载变化时需要创建或者销毁并发实例,极大地简化了高性能多线程OpenHarmony应用的开发。 - 安全 @@ -75,7 +75,7 @@ ArkCompiler运行时直接运行字节码文件,实现对应语言规范的语 ## 使用指南 -[方舟运行时使用指南](https://gitee.com/openharmony/arkcompiler_ets_runtime/blob/master/docs/ARK-Runtime-Usage-Guide-zh.md) +[方舟运行时使用指南](https://gitee.com/openharmony/arkcompiler_ets_runtime/blob/master/docs/README_zh.md) ## 相关仓 diff --git "a/zh-cn/readme/\345\206\205\346\240\270\345\255\220\347\263\273\347\273\237.md" "b/zh-cn/readme/\345\206\205\346\240\270\345\255\220\347\263\273\347\273\237.md" index 6f9c571461072ad5b20c7131570c3848b8046d17..f8ce7de1145bfd293d218a1546675ef1114b54e7 100644 --- "a/zh-cn/readme/\345\206\205\346\240\270\345\255\220\347\263\273\347\273\237.md" +++ "b/zh-cn/readme/\345\206\205\346\240\270\345\255\220\347\263\273\347\273\237.md" @@ -230,6 +230,4 @@ Linux: [kernel\_linux\_build](https://gitee.com/openharmony/kernel_linux_build/blob/master/README_zh.md) -[kernel\_linux\_4.19](https://gitee.com/openharmony/kernel_linux_4.19/blob/master/README) - [kernel\_linux\_5.10](https://gitee.com/openharmony/kernel_linux_5.10/blob/master/README) diff --git a/zh-cn/release-notes/OpenHarmony-1-0.md b/zh-cn/release-notes/OpenHarmony-1-0.md index 10935823396f1044c333f60e313b6c7f965eccb6..a9f5e60b8a285f77957135220da52eb4dc736307 100755 --- a/zh-cn/release-notes/OpenHarmony-1-0.md +++ b/zh-cn/release-notes/OpenHarmony-1-0.md @@ -1,4 +1,4 @@ -# OpenHarmony 1.0(2020-09-10) +# OpenHarmony 1.0(2020-09-10)(停止维护) ## 版本概述 @@ -35,4 +35,4 @@ repo sync -c ```shell git clone https://gitee.com/openharmony/manifest.git -b master -``` \ No newline at end of file +``` diff --git a/zh-cn/release-notes/OpenHarmony-1-1-0-LTS.md b/zh-cn/release-notes/OpenHarmony-1-1-0-LTS.md index 3c26f84f6e6b535c0b41f40abfa65467a9c1c9cf..88f2ac06e7f41279dad244c994b9362f2012ee5f 100755 --- a/zh-cn/release-notes/OpenHarmony-1-1-0-LTS.md +++ b/zh-cn/release-notes/OpenHarmony-1-1-0-LTS.md @@ -1,4 +1,4 @@ -# OpenHarmony 1.1.0 LTS(2021-04-01) +# OpenHarmony 1.1.0 LTS(2021-04-01)(停止维护) ## 版本概述 diff --git a/zh-cn/release-notes/OpenHarmony-1-1-1-LTS.md b/zh-cn/release-notes/OpenHarmony-1-1-1-LTS.md index 31eeea9bde4d857f6f9ad4a0c515ee2051cecb18..2a8ab607f2e7c5e204dd947784064496cfb4e1ea 100755 --- a/zh-cn/release-notes/OpenHarmony-1-1-1-LTS.md +++ b/zh-cn/release-notes/OpenHarmony-1-1-1-LTS.md @@ -1,4 +1,4 @@ -# OpenHarmony 1.1.1 LTS(2021-06-22) +# OpenHarmony 1.1.1 LTS(2021-06-22)(停止维护) ## 版本概述 diff --git a/zh-cn/release-notes/OpenHarmony-v1-1-3-LTS.md b/zh-cn/release-notes/OpenHarmony-v1-1-3-LTS.md index 06220f8a394909e0599b45be324bea2416c0c3b8..acab8de1d8383896cd57a26873ecc879047fc739 100644 --- a/zh-cn/release-notes/OpenHarmony-v1-1-3-LTS.md +++ b/zh-cn/release-notes/OpenHarmony-v1-1-3-LTS.md @@ -1,4 +1,4 @@ -# OpenHarmony v1.1.3 LTS +# OpenHarmony v1.1.3 LTS (停止维护) ## 版本概述 diff --git a/zh-cn/release-notes/OpenHarmony-v1-1-4-LTS.md b/zh-cn/release-notes/OpenHarmony-v1-1-4-LTS.md index f12df131aa6cec6c96bdc526ea47f89dffd65386..8965da787ff93a3cb63e59cde2c50368aeb83134 100644 --- a/zh-cn/release-notes/OpenHarmony-v1-1-4-LTS.md +++ b/zh-cn/release-notes/OpenHarmony-v1-1-4-LTS.md @@ -1,4 +1,4 @@ -# OpenHarmony 1.1.4 LTS +# OpenHarmony 1.1.4 LTS (停止维护) ## 版本概述 diff --git a/zh-cn/release-notes/OpenHarmony-v1.1.2-LTS.md b/zh-cn/release-notes/OpenHarmony-v1.1.2-LTS.md index 69048b3421fe3c5b6e2740135534e1e338a17e71..ca3c8d336f2c17ee3b0f6cff7316df2190ef0801 100644 --- a/zh-cn/release-notes/OpenHarmony-v1.1.2-LTS.md +++ b/zh-cn/release-notes/OpenHarmony-v1.1.2-LTS.md @@ -1,4 +1,4 @@ -# OpenHarmony v1.1.2 LTS +# OpenHarmony v1.1.2 LTS (停止维护) ## 版本概述 diff --git a/zh-cn/release-notes/OpenHarmony-v1.1.5-LTS.md b/zh-cn/release-notes/OpenHarmony-v1.1.5-LTS.md index 0dfc9e23fa0c16514f8f74c9b214a371b4c4e66c..627b7c1ff3bd48f7e2902c613d9eb4a2e4f29316 100644 --- a/zh-cn/release-notes/OpenHarmony-v1.1.5-LTS.md +++ b/zh-cn/release-notes/OpenHarmony-v1.1.5-LTS.md @@ -1,4 +1,4 @@ -# OpenHarmony 1.1.5 LTS +# OpenHarmony 1.1.5 LTS (停止维护) ## 版本概述 diff --git a/zh-cn/release-notes/OpenHarmony-v3.1.2-release.md b/zh-cn/release-notes/OpenHarmony-v3.1.2-release.md index c65099937519384a18c9911814ad5b5d5149635e..48e9fb91a17a869302a1004405e54209a9742a1c 100644 --- a/zh-cn/release-notes/OpenHarmony-v3.1.2-release.md +++ b/zh-cn/release-notes/OpenHarmony-v3.1.2-release.md @@ -87,8 +87,8 @@ repo forall -c 'git lfs pull' | Hi3516标准系统解决方案(二进制) | 3.1.2 Release | [站点](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/standard_hi3516.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/standard_hi3516.tar.gz.sha256) | | RK3568标准系统解决方案(二进制) | 3.1.2 Release | [站点](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/standard_rk3568.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/standard_rk3568.tar.gz.sha256) | | Hi3861轻量系统解决方案(二进制) | 3.1.2 Release | [站点](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/hispark_pegasus.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/hispark_pegasus.tar.gz.sha256) | -| Hi3516轻量系统解决方案-LiteOS(二进制) | 3.1.2 Release | [站点](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/hispark_taurus.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/hispark_taurus.tar.gz.sha256) | -| Hi3516轻量系统解决方案-Linux(二进制) | 3.1.2 Release | [站点](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/hispark_taurus_linux.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/hispark_taurus_linux.tar.gz.sha256) | +| Hi3516小型系统解决方案-LiteOS(二进制) | 3.1.2 Release | [站点](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/hispark_taurus.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/hispark_taurus.tar.gz.sha256) | +| Hi3516小型系统解决方案-Linux(二进制) | 3.1.2 Release | [站点](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/hispark_taurus_linux.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/hispark_taurus_linux.tar.gz.sha256) | | 标准系统Full SDK包(Mac) | 3.1.7.5 | [站点](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/ohos-sdk-mac-full.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/ohos-sdk-mac-full.tar.gz.sha256) | | 标准系统Full SDK包(Windows\Linux) | 3.1.7.5 | [站点](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/ohos-sdk-full.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/ohos-sdk-full.tar.gz.sha256) | | 标准系统Public SDK包(Mac) | 3.1.7.5 | [站点](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/ohos-sdk-mac-public.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/harmonyos/os/3.1.2/ohos-sdk-mac-public.tar.gz.sha256) | diff --git a/zh-cn/release-notes/OpenHarmony-v3.1.3-release.md b/zh-cn/release-notes/OpenHarmony-v3.1.3-release.md index 47b48ac3385903392c30a14f651ecdd58817bfe6..5eddc0ec5a2560960e797ce5f0abced24a440bf1 100644 --- a/zh-cn/release-notes/OpenHarmony-v3.1.3-release.md +++ b/zh-cn/release-notes/OpenHarmony-v3.1.3-release.md @@ -77,7 +77,7 @@ repo forall -c 'git lfs pull' | -------- | -------- | -------- | -------- | | 全量代码(标准、轻量和小型系统) | 3.1.3 Release | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/code-v3.1.3-Release.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/code-v3.1.3-Release.tar.gz.sha256) | | Hi3516标准系统解决方案(二进制) | 3.1.3 Release | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/standard_hi3516.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/standard_hi3516.tar.gz.sha256) | -| RK3568标准系统解决方案(二进制) | 3.1.3 Release | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/code-v3.1.3-Release.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/standard_rk3568.tar.gz.sha256) | +| RK3568标准系统解决方案(二进制) | 3.1.3 Release | [站点](https://mirrors.huaweicloud.com/harmonyos/os/3.1.3/standard_rk3568.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/standard_rk3568.tar.gz.sha256) | | Hi3861轻量系统解决方案(二进制) | 3.1.3 Release | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/hispark_pegasus.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/hispark_pegasus.tar.gz.sha256) | | Hi3516小型系统解决方案-LiteOS(二进制) | 3.1.3 Release | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/hispark_taurus.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/hispark_taurus.tar.gz.sha256) | | Hi3516小型系统解决方案-Linux(二进制) | 3.1.3 Release | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/hispark_taurus_linux.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.3/hispark_taurus_linux.tar.gz.sha256) | diff --git a/zh-cn/release-notes/OpenHarmony-v3.1.7-release.md b/zh-cn/release-notes/OpenHarmony-v3.1.7-release.md new file mode 100644 index 0000000000000000000000000000000000000000..fc672fff5a3c3ac050d73a70ede5997cd6b86edd --- /dev/null +++ b/zh-cn/release-notes/OpenHarmony-v3.1.7-release.md @@ -0,0 +1,156 @@ +# OpenHarmony 3.1.7 Release + + +## 版本概述 + +当前版本在OpenHarmony 3.1.6 Release的基础上,修复了内存泄漏及linux kernel等开源组件的安全漏洞,增强了系统安全性。修复了部分系统稳定性的issue,增强了系统稳定性。更新配套的SDK版本。 + + +## 配套关系 + + **表1** 版本软件和工具配套关系 + +| 软件 | 版本 | 备注 | +| ------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| OpenHarmony | 3.1.7 Release | NA | +| Full SDK | Ohos_sdk_full 3.1.13.5 (API Version 8 Relese) | 面向OEM厂商提供,包含了需要使用系统权限的系统接口。
使用Full SDK时需要手动从镜像站点获取,并在DevEco Studio中替换,具体操作可参考[替换指南](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/full-sdk-switch-guide.md)。 | +| Public SDK | Ohos_sdk_public 3.1.13.5 (API Version 8 Release) | 面向应用开发者提供,不包含需要使用系统权限的系统接口。
DevEco Studio 3.0 Beta4版本起,通过DevEco Studio获取的SDK默认为Public SDK。 | +| HUAWEI DevEco Studio(可选) | 3.1 Preview for OpenHarmony | OpenHarmony应用开发推荐使用。 | +| HUAWEI DevEco Device Tool(可选) | 3.0 Release | OpenHarmony智能设备集成开发环境推荐使用。 | + + +## 源码获取 + + +### 前提条件 + +1. 注册码云gitee账号。 + +2. 注册码云SSH公钥,请参考[码云帮助中心](https://gitee.com/help/articles/4191)。 + +3. 安装[git客户端](https://gitee.com/link?target=https%3A%2F%2Fgit-scm.com%2Fbook%2Fzh%2Fv2%2F%25E8%25B5%25B7%25E6%25AD%25A5-%25E5%25AE%2589%25E8%25A3%2585-Git)和[git-lfs](https://gitee.com/vcs-all-in-one/git-lfs?_from=gitee_search#downloading)并配置用户信息。 + + ``` + git config --global user.name "yourname" + git config --global user.email "your-email-address" + git config --global credential.helper store + ``` + +4. 安装码云repo工具,可以执行如下命令。 + + ``` + curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo #如果没有权限,可下载至其他目录,并将其配置到环境变量中chmod a+x /usr/local/bin/repo + pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests + ``` + + +### 通过repo获取 + +**方式一(推荐)** + +通过repo + ssh 下载(需注册公钥,请参考[码云帮助中心](https://gitee.com/help/articles/4191))。 + + +``` +repo init -u git@gitee.com:openharmony/manifest.git -b refs/tags/OpenHarmony-v3.1.7-Release --no-repo-verify +repo sync -c +repo forall -c 'git lfs pull' +``` + +**方式二** + +通过repo + https 下载。 + + +``` +repo init -u https://gitee.com/openharmony/manifest.git -b refs/tags/OpenHarmony-v3.1.7-Release --no-repo-verify +repo sync -c +repo forall -c 'git lfs pull' +``` + + +### 从镜像站点获取 + +**表2** 获取源码路径 + +| 版本源码 | **版本信息** | **下载站点** | **SHA256校验码** | +| ------------------------------------------ | ------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| 全量代码(标准、轻量和小型系统) | 3.1.7 Release | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.7/code-v3.1.7-Release.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.7/code-v3.1.7-Release.tar.gz.sha256) | +| Hi3516标准系统解决方案(二进制) | 3.1.7 Release | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.7/standard_hi3516.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.7/standard_hi3516.tar.gz.sha256) | +| RK3568标准系统解决方案(二进制) | 3.1.7 Release | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.7/standard_rk3568.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.7/standard_rk3568.tar.gz.sha256) | +| Hi3861轻量系统解决方案(二进制) | 3.1.7 Release | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.7/hispark_pegasus.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.7/hispark_pegasus.tar.gz.sha256) | +| Hi3516小型系统解决方案-LiteOS(二进制) | 3.1.7 Release | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.7/hispark_taurus.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.7/hispark_taurus.tar.gz.sha256) | +| Hi3516小型系统解决方案-Linux(二进制) | 3.1.7 Release | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.7/hispark_taurus_linux.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.7/hispark_taurus_linux.tar.gz.sha256) | +| 标准系统Full SDK包(Mac) | 3.1.13.5 | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.7/ohos-sdk-mac-full.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.7/ohos-sdk-mac-full.tar.gz.sha256) | +| 标准系统Full SDK包(Windows\Linux) | 3.1.13.5 | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.7/ohos-sdk-full.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.7/ohos-sdk-full.tar.gz.sha256) | +| 标准系统Public SDK包(Mac) | 3.1.13.5 | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.7/ohos-sdk-mac-public.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.7/ohos-sdk-mac-public.tar.gz.sha256) | +| 标准系统Public SDK包(Windows\Linux) | 3.1.13.5 | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.7/ohos-sdk-public.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.7/ohos-sdk-public.tar.gz.sha256) | + + +## 更新说明 + +本版本在OpenHarmony 3.1.7 Release的基础上有如下变更。 + + +### 特性变更 + +本次版本无新增特性及变更。 + +### API变更 + +3.1.7 Release对比3.1.6 Release API接口无变更。 + + + +### 芯片及开发板适配 + +芯片及开发板适配状态请参考[SIG-Devboard](https://gitee.com/openharmony/community/blob/master/sig/sig-devboard/sig_devboard_cn.md)信息。 + + +### 修复缺陷列表 + +**表3** 修复缺陷issue列表 + +| 子系统 | 问题描述 | +| ------------ | ------------------------------------------------------------ | +| 应用子系统 | 进入联系人页面时“无联系人”默认页面一闪而过,进入联系人列表([I5ET9R](https://gitee.com/openharmony/applications_contacts/issues/I5ET9R))
新建卡片推包到rk版,将卡片添加到桌面,长按桌面卡片,弹出服务卡片和移除按钮的同时也打开了应用([I5YB1O](https://gitee.com/openharmony/applications_hap/issues/I5YB1O))
通过工具测出CPPCrash问题([I65H83](https://gitee.com/openharmony/applications_permission_manager/issues/I65H83))
通过工具测出CPPCrash问题([I65TVW](https://gitee.com/openharmony/applications_permission_manager/issues/I65TVW))
Launcher 反复点击recent 按钮会出现内存泄漏([I67SRG](https://gitee.com/openharmony/xts_acts/issues/I67SRG)) | +| 媒体子系统 | 打开图库应用,选择相册页签,点击相机,高概率闪退值桌面([I5QUSZ](https://gitee.com/openharmony/applications_hap/issues/I5QUSZ))
通过工具测出CPPCrash问题([I65GZ1](https://gitee.com/openharmony/multimedia_medialibrary_standard/issues/I65GZ1)) | +| 全球化子系统 | 通过工具测出CPPCrash问题([I65GR8](https://gitee.com/openharmony/global_resmgr_standard/issues/I65GR8)) | +| 无障碍子系统 | 安全注入攻击测试,测试报告中存在服务接口ohos.accessibility.IAccessibleAbilityManagerServiceClient存在注入异常([I65PHE](https://gitee.com/openharmony/accessibility/issues/I65PHE)) | +| ArkUI子系统 | 图像效果功能失效([I65UID](https://gitee.com/openharmony/arkui_ace_engine/issues/I65UID)) | +| 元能力子系统 | 两个窗口分屏配对后,关闭B窗口另一个窗口也会关闭([I6AF0Y](https://gitee.com/openharmony/ability_ability_runtime/issues/I6AF0Y)) | +| DFX子系统 | ohos.samples.distributedmusicplayer出现libhilog.z.so崩溃([I6DCSL](https://gitee.com/openharmony/hiviewdfx_hilog/issues/I6DCSL)) | + + + + +### 修复安全漏洞列表 + +**表4** 修复安全问题列表 + +| ISSUE | 问题描述 | 修复链接 | +| ------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| I67XCL | 修复组件kernel_linux_5.10上的CVE-2022-3640安全漏洞 | [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/659) | +| I6A56Q | 修复组件kernel_linux_5.10上的CVE-2023-20928安全漏洞 | [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/653) | +| I6B0K7 | 修复组件kernel_linux_5.10上的CVE-2022-4696安全漏洞 | [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/663) | +| I6BNVW | 修复组件mbedtls上的CVE-2021-44732、CVE-2021-45450安全漏洞 | [PR](https://gitee.com/openharmony/third_party_mbedtls/pulls/78) | +| I6BTZM | 修复组件flutter上的CVE-2022-37434安全漏洞 | [PR](https://gitee.com/openharmony/third_party_flutter/pulls/247) | +| I6BXT0 | 修复组件kernel_linux_5.10上的CVE-2023-23559、CVE-2023-0179、CVE-2023-23454、CVE-2023-23455安全漏洞 | [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/661) | +| I6DQAH | 修复组件kernel_linux_5.10上的CVE-2023-0590、CVE-2022-3707安全漏洞 | [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/687) | +| I6DTV8 | 修复组件libexif上的CVE-2019-9278安全漏洞 | [PR](https://github.com/libexif/libexif/commit/75aa73267fdb1e0ebfbc00369e7312bac43d0566) | +| I6E5KA | 修复组件openssl上的CVE-2023-0286安全漏洞 | [PR](https://gitee.com/openharmony/third_party_openssl/pulls/83) | +| I6FFUV | 修复组件kernel_linux_5.10上的CVE-2023-20938、CVE-2023-0045、CVE-2023-0615安全漏洞 | [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/696) | +| I6FZ3A | 修复组件cares上的CVE-2022-4904安全漏洞 | [PR](https://gitee.com/openharmony/third_party_cares/pulls/12) | +| I6HYRO | 修复组件kernel_linux_4.19上的CVE-2022-3028安全漏洞 | [PR](https://gitee.com/openharmony/kernel_linux_4.19/pulls/98) | +| I6JH1I | 修复组件kernel_linux_5.10上的CVE-2023-0461、CVE-2023-23004、CVE-2023-23000、CVE-2023-1078、CVE-2023-1076、CVE-2023-1118、CVE-2023-22995、CVE-2023-26545安全漏洞 | [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/725) | +| I6JH1L | 修复组件kernel_linux_4.19上的CVE-2023-0461、CVE-2023-26545、CVE-2022-0480、CVE-2023-1118、CVE-2022-1652、CVE-2021-3760安全漏洞 | [PR](https://gitee.com/openharmony/kernel_linux_4.19/pulls/107) | +| I6JH2L | 修复组件kernel_linux_4.19上的CVE-2023-23559、CVE-2022-47929、CVE-2022-2873、CVE-2023-23455安全漏洞 | [PR](https://gitee.com/openharmony/kernel_linux_4.19/pulls/103) | +| I6LCHO | 修复组件kernel_linux_4.19上的CVE-2023-0030安全漏洞 | [PR](https://gitee.com/openharmony/kernel_linux_4.19/pulls/111) | + +## + +**表5** 遗留缺陷列表 + +| issue | 问题描述 | 影响 | 计划解决日期 | +| ------------------------------------------------------------ | -------------------------------------- | -------------- | ------------ | +| [I6HAUC](https://gitee.com/openharmony/xts_acts/issues/I6HAUC) | 【3.1】调用Windows接口横竖屏鼠标会变形 | 影响开发者体验 | 2023-04-28 | \ No newline at end of file diff --git a/zh-cn/release-notes/Readme.md b/zh-cn/release-notes/Readme.md index de2478b990ec99ec4eeb16ad5117796ad1baee82..01ccb35c2358f600ea31658dc200c256b22bb6b2 100644 --- a/zh-cn/release-notes/Readme.md +++ b/zh-cn/release-notes/Readme.md @@ -7,6 +7,8 @@ - [OpenHarmony v3.2 Beta2 (2022-07-30)](OpenHarmony-v3.2-beta2.md) - [OpenHarmony v3.2 Beta1 (2022-05-31)](OpenHarmony-v3.2-beta1.md) - [OpenHarmony v3.1 Release (2022-03-30)](OpenHarmony-v3.1-release.md) +- [OpenHarmony v3.1.6 Release (2023-01-30)](OpenHarmony-v3.1.6-release.md) +- [OpenHarmony v3.1.5 Release (2022-12-30)](OpenHarmony-v3.1.5-release.md) - [OpenHarmony v3.1.4 Release (2022-11-02)](OpenHarmony-v3.1.4-release.md) - [OpenHarmony v3.1.3 Release (2022-09-30)](OpenHarmony-v3.1.3-release.md) - [OpenHarmony v3.1.2 Release (2022-08-24)](OpenHarmony-v3.1.2-release.md) @@ -25,7 +27,7 @@ - [OpenHarmony v2.2 beta2 (2021-08-04)](OpenHarmony-v2.2-beta2.md) - [OpenHarmony 2.0 Canary (2021-06-01)](OpenHarmony-2-0-Canary.md) -## OpenHarmony 1.x Releases +## OpenHarmony 1.x Releases(停止维护) - [OpenHarmony v1.0 (2020-09-10)](OpenHarmony-1-0.md) - [OpenHarmony v1.1.5 LTS (2022-08-24)](OpenHarmony-v1.1.5-LTS.md) diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-ability.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-ability.md new file mode 100644 index 0000000000000000000000000000000000000000..cf031c5dc0cac65e5ad23d85e92c470cc50a718b --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-ability.md @@ -0,0 +1,260 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法 or 属性: FOCUS = 2|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|类名:appManager
方法or属性:function getRunningProcessInformation(): Promise\>;|@ohos.app.ability.appManager.d.ts| +|新增|NA|类名:appManager
方法or属性:function getRunningProcessInformation(callback: AsyncCallback\>): void;|@ohos.app.ability.appManager.d.ts| +|新增|NA|类名:RestartFlag
方法or属性:RESTART_WHEN_JS_CRASH = 0x0001|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|类名:RestartFlag
方法or属性:RESTART_WHEN_APP_FREEZE = 0x0002|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: dialogRequest|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: RequestInfo|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: ResultCode|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: ResultCode
方法 or 属性: RESULT_OK = 0|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: ResultCode
方法 or 属性: RESULT_CANCEL = 1|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: RequestResult|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: RequestResult
方法 or 属性: result: ResultCode;|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: RequestCallback|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: RequestCallback
方法 or 属性: setRequestResult(result: RequestResult): void;|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: dialogRequest
方法 or 属性: function getRequestInfo(want: Want): RequestInfo;|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: dialogRequest
方法 or 属性: function getRequestCallback(want: Want): RequestCallback;|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|类名:Want
方法or属性:parameters?: {[key: string]: Object};|@ohos.app.ability.Want.d.ts| +|新增|NA|类名:CompleteData
方法or属性:extraInfo?: { [key: string]: Object };|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|类名:Params
方法or属性:|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params
方法 or 属性:DLP_PARAMS_SANDBOX = "ohos.dlp.params.sandbox"|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|类名:Params
方法or属性:DLP_PARAMS_SANDBOX = "ohos.dlp.params.sandbox"|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params
方法 or 属性:DLP_PARAMS_BUNDLE_NAME = "ohos.dlp.params.bundleName"|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|类名:Params
方法or属性:DLP_PARAMS_BUNDLE_NAME = "ohos.dlp.params.bundleName"|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params
方法 or 属性:DLP_PARAMS_MODULE_NAME = "ohos.dlp.params.moduleName"|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|类名:Params
方法or属性:DLP_PARAMS_MODULE_NAME = "ohos.dlp.params.moduleName"|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params
方法 or 属性:DLP_PARAMS_ABILITY_NAME = "ohos.dlp.params.abilityName"|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|类名:Params
方法or属性:DLP_PARAMS_ABILITY_NAME = "ohos.dlp.params.abilityName"|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params
方法 or 属性:DLP_PARAMS_INDEX = "ohos.dlp.params.index"|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|类名:Params
方法or属性:DLP_PARAMS_INDEX = "ohos.dlp.params.index"|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params
方法 or 属性:ABILITY_BACK_TO_OTHER_MISSION_STACK = "ability.params.backToOtherMissionStack"|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|类名:Params
方法or属性:ABILITY_BACK_TO_OTHER_MISSION_STACK = "ability.params.backToOtherMissionStack"|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|类名:continuationManager
方法or属性:function on(type: "deviceSelected", token: number, callback: Callback\>): void;|@ohos.continuation.continuationManager.d.ts| +|新增|NA|类名:continuationManager
方法or属性:function off(type: "deviceSelected", token: number): void;|@ohos.continuation.continuationManager.d.ts| +|新增|NA|类名:continuationManager
方法or属性:function on(type: "deviceUnselected", token: number, callback: Callback\>): void;|@ohos.continuation.continuationManager.d.ts| +|新增|NA|类名:continuationManager
方法or属性:function off(type: "deviceUnselected", token: number): void;|@ohos.continuation.continuationManager.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: addAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: addAbilityMonitor(monitor: AbilityMonitor): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: addAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: addAbilityStageMonitor(monitor: AbilityStageMonitor): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: removeAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: removeAbilityMonitor(monitor: AbilityMonitor): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: removeAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: removeAbilityStageMonitor(monitor: AbilityStageMonitor): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: waitAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: waitAbilityMonitor(monitor: AbilityMonitor, timeout: number, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: waitAbilityMonitor(monitor: AbilityMonitor, timeout?: number): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: waitAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: waitAbilityStageMonitor(monitor: AbilityStageMonitor, timeout: number, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: waitAbilityStageMonitor(monitor: AbilityStageMonitor, timeout?: number): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: getAppContext(): Context;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: getAbilityState(ability: UIAbility): number;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: getCurrentTopAbility(callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: getCurrentTopAbility(): Promise\|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: startAbility(want: Want, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: startAbility(want: Want): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: doAbilityForeground(ability: UIAbility, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: doAbilityForeground(ability: UIAbility): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: doAbilityBackground(ability: UIAbility, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: doAbilityBackground(ability: UIAbility): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: print(msg: string, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: print(msg: string): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: printSync(msg: string): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: executeShellCommand(cmd: string, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: executeShellCommand(cmd: string, timeoutSecs?: number): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: finishTest(msg: string, code: number, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: finishTest(msg: string, code: number): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor|AbilityMonitor.d.ts| +|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: abilityName: string;|AbilityMonitor.d.ts| +|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: moduleName?: string;|AbilityMonitor.d.ts| +|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onAbilityCreate?:(ability: UIAbility) => void;|AbilityMonitor.d.ts| +|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onAbilityForeground?:(ability: UIAbility) => void;|AbilityMonitor.d.ts| +|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onAbilityBackground?:(ability: UIAbility) => void;|AbilityMonitor.d.ts| +|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onAbilityDestroy?:(ability: UIAbility) => void;|AbilityMonitor.d.ts| +|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onWindowStageCreate?:(ability: UIAbility) => void;|AbilityMonitor.d.ts| +|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onWindowStageRestore?:(ability: UIAbility) => void;|AbilityMonitor.d.ts| +|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onWindowStageDestroy?:(ability: UIAbility) => void;|AbilityMonitor.d.ts| +|新增|NA|模块名: AbilityStageMonitor
类名: AbilityStageMonitor|AbilityStageMonitor.d.ts| +|新增|NA|模块名: AbilityStageMonitor
类名: AbilityStageMonitor
方法 or 属性: moduleName: string;|AbilityStageMonitor.d.ts| +|新增|NA|模块名: AbilityStageMonitor
类名: AbilityStageMonitor
方法 or 属性: srcEntrance: string;|AbilityStageMonitor.d.ts| +|新增|NA|类名:ApplicationContext
方法or属性:getRunningProcessInformation(): Promise\>;|ApplicationContext.d.ts| +|新增|NA|类名:ApplicationContext
方法or属性:getRunningProcessInformation(callback: AsyncCallback\>): void;|ApplicationContext.d.ts| +|新增|NA|类名:ApplicationContext
方法or属性:killAllProcesses(): Promise\;|ApplicationContext.d.ts| +|新增|NA|类名:ApplicationContext
方法or属性:killAllProcesses(callback: AsyncCallback\);|ApplicationContext.d.ts| +|新增|NA|类名:Context
方法or属性:area: contextConstant.AreaMode;|Context.d.ts| +|新增|NA|模块名: ProcessInformation
类名: ProcessInformation|ProcessInformation.d.ts| +|新增|NA|模块名: ProcessInformation
类名: ProcessInformation
方法 or 属性: pid: number;|ProcessInformation.d.ts| +|新增|NA|模块名: ProcessInformation
类名: ProcessInformation
方法 or 属性: uid: number;|ProcessInformation.d.ts| +|新增|NA|模块名: ProcessInformation
类名: ProcessInformation
方法 or 属性: processName: string;|ProcessInformation.d.ts| +|新增|NA|模块名: ProcessInformation
类名: ProcessInformation
方法 or 属性: bundleNames: Array\;|ProcessInformation.d.ts| +|新增|NA|类名:ServiceExtensionContext
方法or属性:startRecentAbility(want: Want, callback: AsyncCallback\): void;|ServiceExtensionContext.d.ts| +|新增|NA|类名:ServiceExtensionContext
方法or属性:startRecentAbility(want: Want, options: StartOptions, callback: AsyncCallback\): void;|ServiceExtensionContext.d.ts| +|新增|NA|类名:ServiceExtensionContext
方法or属性:startRecentAbility(want: Want, options?: StartOptions): Promise\;|ServiceExtensionContext.d.ts| +|新增|NA|类名:UIAbilityContext
方法or属性:startRecentAbility(want: Want, callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|类名:UIAbilityContext
方法or属性:startRecentAbility(want: Want, options: StartOptions, callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|类名:UIAbilityContext
方法or属性:startRecentAbility(want: Want, options?: StartOptions): Promise\;|UIAbilityContext.d.ts| +|新增|NA|类名:UIAbilityContext
方法or属性:requestDialogService(want: Want, result: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|类名:UIAbilityContext
方法or属性:requestDialogService(want: Want): Promise\;|UIAbilityContext.d.ts| +|删除|模块名: ohos.ability.wantConstant
类名: Action
方法 or 属性:ACTION_APP_ACCOUNT_AUTH = "ohos.appAccount.action.auth"|NA|@ohos.ability.wantConstant.d.ts| +|删除|模块名: ohos.ability.wantConstant
类名: Action
方法 or 属性:ACTION_MARKET_DOWNLOAD = "ohos.want.action.marketDownload"|NA|@ohos.ability.wantConstant.d.ts| +|删除|模块名: ohos.ability.wantConstant
类名: Action
方法 or 属性:ACTION_MARKET_CROWDTEST = "ohos.want.action.marketCrowdTest"|NA|@ohos.ability.wantConstant.d.ts| +|删除|模块名: ohos.ability.wantConstant
类名: Action
方法 or 属性:DLP_PARAMS_SANDBOX = "ohos.dlp.params.sandbox"|NA|@ohos.ability.wantConstant.d.ts| +|删除|模块名: ohos.ability.wantConstant
类名: Action
方法 or 属性:DLP_PARAMS_BUNDLE_NAME = "ohos.dlp.params.bundleName"|NA|@ohos.ability.wantConstant.d.ts| +|删除|模块名: ohos.ability.wantConstant
类名: Action
方法 or 属性:DLP_PARAMS_MODULE_NAME = "ohos.dlp.params.moduleName"|NA|@ohos.ability.wantConstant.d.ts| +|删除|模块名: ohos.ability.wantConstant
类名: Action
方法 or 属性:DLP_PARAMS_ABILITY_NAME = "ohos.dlp.params.abilityName"|NA|@ohos.ability.wantConstant.d.ts| +|删除|模块名: ohos.ability.wantConstant
类名: Action
方法 or 属性:DLP_PARAMS_INDEX = "ohos.dlp.params.index"|NA|@ohos.ability.wantConstant.d.ts| +|删除|模块名:ohos.app.ability.appManager
类名:appManager
方法 or 属性:function getProcessRunningInformation(): Promise\>;|NA|@ohos.app.ability.appManager.d.ts| +|删除|模块名:ohos.app.ability.appManager
类名:appManager
方法 or 属性:function getProcessRunningInformation(callback: AsyncCallback\>): void;|NA|@ohos.app.ability.appManager.d.ts| +|删除|模块名:ohos.app.ability.appRecovery
类名:RestartFlag
方法 or 属性:CPP_CRASH_NO_RESTART = 0x0001|NA|@ohos.app.ability.appRecovery.d.ts| +|删除|模块名:ohos.app.ability.appRecovery
类名:RestartFlag
方法 or 属性:JS_CRASH_NO_RESTART = 0x0002|NA|@ohos.app.ability.appRecovery.d.ts| +|删除|模块名:ohos.app.ability.appRecovery
类名:RestartFlag
方法 or 属性:APP_FREEZE_NO_RESTART = 0x0004|NA|@ohos.app.ability.appRecovery.d.ts| +|删除|模块名: ohos.app.ability.common
类名: AreaMode|NA|@ohos.app.ability.common.d.ts| +|删除|模块名: ohos.app.ability.common
类名: AreaMode
方法 or 属性:EL1 = 0|NA|@ohos.app.ability.common.d.ts| +|删除|模块名: ohos.app.ability.common
类名: AreaMode
方法 or 属性:EL2 = 1|NA|@ohos.app.ability.common.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_HOME = "ohos.want.action.home"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_DIAL = "ohos.want.action.dial"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_SEARCH = "ohos.want.action.search"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_WIRELESS_SETTINGS = "ohos.settings.wireless"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_MANAGE_APPLICATIONS_SETTINGS = "ohos.settings.manage.applications"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_APPLICATION_DETAILS_SETTINGS = "ohos.settings.application.details"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_SET_ALARM = "ohos.want.action.setAlarm"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_SHOW_ALARMS = "ohos.want.action.showAlarms"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_SNOOZE_ALARM = "ohos.want.action.snoozeAlarm"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_DISMISS_ALARM = "ohos.want.action.dismissAlarm"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_DISMISS_TIMER = "ohos.want.action.dismissTimer"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_SEND_SMS = "ohos.want.action.sendSms"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_CHOOSE = "ohos.want.action.choose"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_IMAGE_CAPTURE = "ohos.want.action.imageCapture"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_VIDEO_CAPTURE = "ohos.want.action.videoCapture"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_SELECT = "ohos.want.action.select"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_SEND_DATA = "ohos.want.action.sendData"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_SEND_MULTIPLE_DATA = "ohos.want.action.sendMultipleData"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_SCAN_MEDIA_FILE = "ohos.want.action.scanMediaFile"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_VIEW_DATA = "ohos.want.action.viewData"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_EDIT_DATA = "ohos.want.action.editData"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:INTENT_PARAMS_INTENT = "ability.want.params.INTENT"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:INTENT_PARAMS_TITLE = "ability.want.params.TITLE"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_FILE_SELECT = "ohos.action.fileSelect"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:PARAMS_STREAM = "ability.params.stream"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_APP_ACCOUNT_AUTH = "ohos.appAccount.action.auth"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_MARKET_DOWNLOAD = "ohos.want.action.marketDownload"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_MARKET_CROWDTEST = "ohos.want.action.marketCrowdTest"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:DLP_PARAMS_SANDBOX = "ohos.dlp.params.sandbox"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:DLP_PARAMS_BUNDLE_NAME = "ohos.dlp.params.bundleName"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:DLP_PARAMS_MODULE_NAME = "ohos.dlp.params.moduleName"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:DLP_PARAMS_ABILITY_NAME = "ohos.dlp.params.abilityName"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:DLP_PARAMS_INDEX = "ohos.dlp.params.index"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Entity|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Entity
方法 or 属性:ENTITY_DEFAULT = "entity.system.default"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Entity
方法 or 属性:ENTITY_HOME = "entity.system.home"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Entity
方法 or 属性:ENTITY_VOICE = "entity.system.voice"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Entity
方法 or 属性:ENTITY_BROWSABLE = "entity.system.browsable"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Entity
方法 or 属性:ENTITY_VIDEO = "entity.system.video"|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_ABILITY_FORWARD_RESULT = 0x00000004|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_ABILITY_CONTINUATION = 0x00000008|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_NOT_OHOS_COMPONENT = 0x00000010|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_ABILITY_FORM_ENABLED = 0x00000020|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_AUTH_PERSISTABLE_URI_PERMISSION = 0x00000040|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_AUTH_PREFIX_URI_PERMISSION = 0x00000080|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_ABILITYSLICE_MULTI_DEVICE = 0x00000100|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_START_FOREGROUND_ABILITY = 0x00000200|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_ABILITY_CONTINUATION_REVERSIBLE = 0x00000400|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_INSTALL_WITH_BACKGROUND_MODE = 0x80000000|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_ABILITY_CLEAR_MISSION = 0x00008000|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_ABILITY_NEW_MISSION = 0x10000000|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_ABILITY_MISSION_TOP = 0x20000000|NA|@ohos.app.ability.wantConstant.d.ts| +|删除|模块名: ohos.app.form.formInfo
类名: FormInfo
方法 or 属性:relatedBundleName: string;|NA|@ohos.app.form.formInfo.d.ts| +|删除|模块名:ohos.continuation.continuationManager
类名:continuationManager
方法 or 属性:function on(type: "deviceConnect", token: number, callback: Callback\>): void;|NA|@ohos.continuation.continuationManager.d.ts| +|删除|模块名:ohos.continuation.continuationManager
类名:continuationManager
方法 or 属性:function off(type: "deviceConnect", token: number): void;|NA|@ohos.continuation.continuationManager.d.ts| +|删除|模块名:ohos.continuation.continuationManager
类名:continuationManager
方法 or 属性:function on(type: "deviceDisconnect", token: number, callback: Callback\>): void;|NA|@ohos.continuation.continuationManager.d.ts| +|删除|模块名:ohos.continuation.continuationManager
类名:continuationManager
方法 or 属性:function off(type: "deviceDisconnect", token: number): void;|NA|@ohos.continuation.continuationManager.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:addAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:addAbilityMonitor(monitor: AbilityMonitor): Promise\;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:addAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:addAbilityStageMonitor(monitor: AbilityStageMonitor): Promise\;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:removeAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:removeAbilityMonitor(monitor: AbilityMonitor): Promise\;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:removeAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:removeAbilityStageMonitor(monitor: AbilityStageMonitor): Promise\;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:waitAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:waitAbilityMonitor(monitor: AbilityMonitor, timeout: number, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:waitAbilityMonitor(monitor: AbilityMonitor, timeout?: number): Promise\;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:waitAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:waitAbilityStageMonitor(monitor: AbilityStageMonitor, timeout: number, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:waitAbilityStageMonitor(monitor: AbilityStageMonitor, timeout?: number): Promise\;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:getAppContext(): Context;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:getAbilityState(ability: UIAbility): number;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:getCurrentTopAbility(callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:getCurrentTopAbility(): Promise\|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:startAbility(want: Want, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:startAbility(want: Want): Promise\;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:doAbilityForeground(ability: UIAbility, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:doAbilityForeground(ability: UIAbility): Promise\;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:doAbilityBackground(ability: UIAbility, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:doAbilityBackground(ability: UIAbility): Promise\;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:print(msg: string, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:print(msg: string): Promise\;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:printSync(msg: string): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:executeShellCommand(cmd: string, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:executeShellCommand(cmd: string, timeoutSecs?: number): Promise\;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:finishTest(msg: string, code: number, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:finishTest(msg: string, code: number): Promise\;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityMonitor
类名: AbilityMonitor|NA|abilityMonitor.d.ts| +|删除|模块名: abilityMonitor
类名: AbilityMonitor
方法 or 属性:abilityName: string;|NA|abilityMonitor.d.ts| +|删除|模块名: abilityMonitor
类名: AbilityMonitor
方法 or 属性:moduleName?: string;|NA|abilityMonitor.d.ts| +|删除|模块名: abilityMonitor
类名: AbilityMonitor
方法 or 属性:onAbilityCreate?:(ability: UIAbility) => void;|NA|abilityMonitor.d.ts| +|删除|模块名: abilityMonitor
类名: AbilityMonitor
方法 or 属性:onAbilityForeground?:(ability: UIAbility) => void;|NA|abilityMonitor.d.ts| +|删除|模块名: abilityMonitor
类名: AbilityMonitor
方法 or 属性:onAbilityBackground?:(ability: UIAbility) => void;|NA|abilityMonitor.d.ts| +|删除|模块名: abilityMonitor
类名: AbilityMonitor
方法 or 属性:onAbilityDestroy?:(ability: UIAbility) => void;|NA|abilityMonitor.d.ts| +|删除|模块名: abilityMonitor
类名: AbilityMonitor
方法 or 属性:onWindowStageCreate?:(ability: UIAbility) => void;|NA|abilityMonitor.d.ts| +|删除|模块名: abilityMonitor
类名: AbilityMonitor
方法 or 属性:onWindowStageRestore?:(ability: UIAbility) => void;|NA|abilityMonitor.d.ts| +|删除|模块名: abilityMonitor
类名: AbilityMonitor
方法 or 属性:onWindowStageDestroy?:(ability: UIAbility) => void;|NA|abilityMonitor.d.ts| +|删除|模块名: abilityStageMonitor
类名: AbilityStageMonitor|NA|abilityStageMonitor.d.ts| +|删除|模块名: abilityStageMonitor
类名: AbilityStageMonitor
方法 or 属性:moduleName: string;|NA|abilityStageMonitor.d.ts| +|删除|模块名: abilityStageMonitor
类名: AbilityStageMonitor
方法 or 属性:srcEntrance: string;|NA|abilityStageMonitor.d.ts| +|删除|模块名:ApplicationContext
类名:ApplicationContext
方法 or 属性:getProcessRunningInformation(): Promise\>;|NA|ApplicationContext.d.ts| +|删除|模块名:ApplicationContext
类名:ApplicationContext
方法 or 属性:getProcessRunningInformation(callback: AsyncCallback\>): void;|NA|ApplicationContext.d.ts| +|删除|模块名:ApplicationContext
类名:ApplicationContext
方法 or 属性:killProcessesBySelf(): Promise\;|NA|ApplicationContext.d.ts| +|删除|模块名:ApplicationContext
类名:ApplicationContext
方法 or 属性:killProcessesBySelf(callback: AsyncCallback\);|NA|ApplicationContext.d.ts| +|删除|模块名: Context
类名: AreaMode|NA|Context.d.ts| +|删除|模块名: Context
类名: AreaMode
方法 or 属性:EL1 = 0|NA|Context.d.ts| +|删除|模块名: Context
类名: AreaMode
方法 or 属性:EL2 = 1|NA|Context.d.ts| +|删除|模块名: ProcessRunningInformation
类名: ProcessRunningInformation|NA|ProcessRunningInformation.d.ts| +|删除|模块名: ProcessRunningInformation
类名: ProcessRunningInformation
方法 or 属性:pid: number;|NA|ProcessRunningInformation.d.ts| +|删除|模块名: ProcessRunningInformation
类名: ProcessRunningInformation
方法 or 属性:uid: number;|NA|ProcessRunningInformation.d.ts| +|删除|模块名: ProcessRunningInformation
类名: ProcessRunningInformation
方法 or 属性:processName: string;|NA|ProcessRunningInformation.d.ts| +|删除|模块名: ProcessRunningInformation
类名: ProcessRunningInformation
方法 or 属性:bundleNames: Array\;|NA|ProcessRunningInformation.d.ts| +|访问级别有变化|类名:WindowMode
访问级别:公开API|类名:WindowMode
访问级别:系统API|@ohos.app.ability.AbilityConstant.d.ts| +|访问级别有变化|类名:StartOptions
方法 or 属性:windowMode?: number;
访问级别:公开API|类名:StartOptions
方法 or 属性:windowMode?: number;
访问级别:系统API|@ohos.app.ability.StartOptions.d.ts| +|访问级别有变化|类名:ServiceExtensionContext
方法 or 属性:startAbility(want: Want, callback: AsyncCallback\): void;
访问级别:系统API|类名:ServiceExtensionContext
方法 or 属性:startAbility(want: Want, callback: AsyncCallback\): void;
访问级别:公开API|ServiceExtensionContext.d.ts| +|访问级别有变化|类名:ServiceExtensionContext
方法 or 属性:startAbility(want: Want, options: StartOptions, callback: AsyncCallback\): void;
访问级别:系统API|类名:ServiceExtensionContext
方法 or 属性:startAbility(want: Want, options: StartOptions, callback: AsyncCallback\): void;
访问级别:公开API|ServiceExtensionContext.d.ts| +|访问级别有变化|类名:ServiceExtensionContext
方法 or 属性:startAbility(want: Want, options?: StartOptions): Promise\;
访问级别:系统API|类名:ServiceExtensionContext
方法 or 属性:startAbility(want: Want, options?: StartOptions): Promise\;
访问级别:公开API|ServiceExtensionContext.d.ts| +|访问级别有变化|类名:ServiceExtensionContext
方法 or 属性:terminateSelf(callback: AsyncCallback\): void;
访问级别:系统API|类名:ServiceExtensionContext
方法 or 属性:terminateSelf(callback: AsyncCallback\): void;
访问级别:公开API|ServiceExtensionContext.d.ts| +|访问级别有变化|类名:ServiceExtensionContext
方法 or 属性:terminateSelf(): Promise\;
访问级别:系统API|类名:ServiceExtensionContext
方法 or 属性:terminateSelf(): Promise\;
访问级别:公开API|ServiceExtensionContext.d.ts| +|访问级别有变化|类名:UIAbilityContext
方法 or 属性:startAbilityByCall(want: Want): Promise\;
访问级别:系统API|类名:UIAbilityContext
方法 or 属性:startAbilityByCall(want: Want): Promise\;
访问级别:公开API|UIAbilityContext.d.ts| +|权限有变化|类名:distributedMissionManager
方法 or 属性:function continueMission(parameter: ContinueDeviceInfo, options: ContinueCallback, callback: AsyncCallback\): void;
权限:ohos.permission.MANAGE_MISSIONS|类名:distributedMissionManager
方法 or 属性:function continueMission(parameter: ContinueDeviceInfo, options: ContinueCallback, callback: AsyncCallback\): void;
权限:ohos.permission.MANAGE_MISSIONS and ohos.permission.DISTRIBUTED_DATASYNC|@ohos.distributedMissionManager.d.ts| +|权限有变化|类名:distributedMissionManager
方法 or 属性:function continueMission(parameter: ContinueDeviceInfo, options: ContinueCallback): Promise\;
权限:ohos.permission.MANAGE_MISSIONS|类名:distributedMissionManager
方法 or 属性:function continueMission(parameter: ContinueDeviceInfo, options: ContinueCallback): Promise\;
权限:ohos.permission.MANAGE_MISSIONS and ohos.permission.DISTRIBUTED_DATASYNC|@ohos.distributedMissionManager.d.ts| +|新增(权限)|类名:continuationManager
方法 or 属性:function registerContinuation(callback: AsyncCallback\): void;
权限:N/A|类名:continuationManager
方法 or 属性:function registerContinuation(callback: AsyncCallback\): void;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.continuation.continuationManager.d.ts| +|新增(权限)|类名:continuationManager
方法 or 属性:function registerContinuation(options: ContinuationExtraParams, callback: AsyncCallback\): void;
权限:N/A|类名:continuationManager
方法 or 属性:function registerContinuation(options: ContinuationExtraParams, callback: AsyncCallback\): void;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.continuation.continuationManager.d.ts| +|新增(权限)|类名:continuationManager
方法 or 属性:function registerContinuation(options?: ContinuationExtraParams): Promise\;
权限:N/A|类名:continuationManager
方法 or 属性:function registerContinuation(options?: ContinuationExtraParams): Promise\;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.continuation.continuationManager.d.ts| +|新增(权限)|类名:continuationManager
方法 or 属性:function unregisterContinuation(token: number, callback: AsyncCallback\): void;
权限:N/A|类名:continuationManager
方法 or 属性:function unregisterContinuation(token: number, callback: AsyncCallback\): void;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.continuation.continuationManager.d.ts| +|新增(权限)|类名:continuationManager
方法 or 属性:function unregisterContinuation(token: number): Promise\;
权限:N/A|类名:continuationManager
方法 or 属性:function unregisterContinuation(token: number): Promise\;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.continuation.continuationManager.d.ts| +|新增(权限)|类名:continuationManager
方法 or 属性:function updateContinuationState(token: number, deviceId: string, status: DeviceConnectState, callback: AsyncCallback\): void;
权限:N/A|类名:continuationManager
方法 or 属性:function updateContinuationState(token: number, deviceId: string, status: DeviceConnectState, callback: AsyncCallback\): void;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.continuation.continuationManager.d.ts| +|新增(权限)|类名:continuationManager
方法 or 属性:function updateContinuationState(token: number, deviceId: string, status: DeviceConnectState): Promise\;
权限:N/A|类名:continuationManager
方法 or 属性:function updateContinuationState(token: number, deviceId: string, status: DeviceConnectState): Promise\;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.continuation.continuationManager.d.ts| +|新增(权限)|类名:continuationManager
方法 or 属性:function startContinuationDeviceManager(token: number, callback: AsyncCallback\): void;
权限:N/A|类名:continuationManager
方法 or 属性:function startContinuationDeviceManager(token: number, callback: AsyncCallback\): void;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.continuation.continuationManager.d.ts| +|新增(权限)|类名:continuationManager
方法 or 属性:function startContinuationDeviceManager(token: number, options: ContinuationExtraParams, callback: AsyncCallback\): void;
权限:N/A|类名:continuationManager
方法 or 属性:function startContinuationDeviceManager(token: number, options: ContinuationExtraParams, callback: AsyncCallback\): void;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.continuation.continuationManager.d.ts| +|新增(权限)|类名:continuationManager
方法 or 属性:function startContinuationDeviceManager(token: number, options?: ContinuationExtraParams): Promise\;
权限:N/A|类名:continuationManager
方法 or 属性:function startContinuationDeviceManager(token: number, options?: ContinuationExtraParams): Promise\;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.continuation.continuationManager.d.ts| +|函数有变化|类名:CalleeCallback
方法 or 属性:(indata: rpc.MessageParcel): rpc.Sequenceable;
|类名:CalleeCallback
方法 or 属性:(indata: rpc.MessageSequence): rpc.Parcelable;
|@ohos.app.ability.UIAbility.d.ts| +|函数有变化|类名:Caller
方法 or 属性:call(method: string, data: rpc.Sequenceable): Promise\;
|类名:Caller
方法 or 属性:call(method: string, data: rpc.Parcelable): Promise\;
|@ohos.app.ability.UIAbility.d.ts| +|函数有变化|类名:Caller
方法 or 属性:callWithResult(method: string, data: rpc.Sequenceable): Promise\;
|类名:Caller
方法 or 属性:callWithResult(method: string, data: rpc.Parcelable): Promise\;
|@ohos.app.ability.UIAbility.d.ts| +|函数有变化|类名:UIAbility
方法 or 属性:onContinue(wantParam: { [key: string]: any }): AbilityConstant.OnContinueResult;
|类名:UIAbility
方法 or 属性:onContinue(wantParam: { [key: string]: Object }): AbilityConstant.OnContinueResult;
|@ohos.app.ability.UIAbility.d.ts| +|函数有变化|类名:UIAbility
方法 or 属性:onSaveState(reason: AbilityConstant.StateType, wantParam : {[key: string]: any}): AbilityConstant.OnSaveResult;
|类名:UIAbility
方法 or 属性:onSaveState(reason: AbilityConstant.StateType, wantParam : {[key: string]: Object}): AbilityConstant.OnSaveResult;
|@ohos.app.ability.UIAbility.d.ts| +|函数有变化|类名:FormExtensionAbility
方法 or 属性:onShareForm?(formId: string): { [key: string]: any };
|类名:FormExtensionAbility
方法 or 属性:onShareForm?(formId: string): { [key: string]: Object };
|@ohos.app.form.FormExtensionAbility.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-account.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-account.md new file mode 100644 index 0000000000000000000000000000000000000000..1554a18346dd53b275e99792447aac4c481fd1b5 --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-account.md @@ -0,0 +1,55 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:Authenticator
方法or属性:checkAccountRemovable(name: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:checkOsAccountConstraintEnabled(localId: number, constraint: string, callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:checkOsAccountConstraintEnabled(localId: number, constraint: string): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalId(callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalId(): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalIdForUid(uid: number, callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalIdForUid(uid: number): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalIdForDomain(domainInfo: DomainAccountInfo, callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalIdForDomain(domainInfo: DomainAccountInfo): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getActivatedOsAccountLocalIds(callback: AsyncCallback\>): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getActivatedOsAccountLocalIds(): Promise\>;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalIdForSerialNumber(serialNumber: number, callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalIdForSerialNumber(serialNumber: number): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getSerialNumberForOsAccountLocalId(localId: number, callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getSerialNumberForOsAccountLocalId(localId: number): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getBundleIdForUid(uid: number, callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getBundleIdForUid(uid: number): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountConstraintSourceTypes(localId: number, constraint: string, callback: AsyncCallback\>): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountConstraintSourceTypes(localId: number, constraint: string): Promise\>;|@ohos.account.osAccount.d.ts| +|删除|模块名: ohos.account.appAccount
类名: OAuthTokenInfo
方法 or 属性:account?: AppAccountInfo;|NA|@ohos.account.appAccount.d.ts| +|删除|模块名: ohos.account.appAccount
类名: AuthenticatorCallback
方法 or 属性:onRequestContinued?: () => void;|NA|@ohos.account.appAccount.d.ts| +|删除|模块名:ohos.account.appAccount
类名:Authenticator
方法 or 属性:isAccountRemovable(name: string, callback: AuthCallback): void;|NA|@ohos.account.appAccount.d.ts| +|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:checkConstraintEnabled(localId: number, constraint: string, callback: AsyncCallback\): void;|NA|@ohos.account.osAccount.d.ts| +|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:checkConstraintEnabled(localId: number, constraint: string): Promise\;|NA|@ohos.account.osAccount.d.ts| +|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:queryOsAccountLocalIdFromProcess(callback: AsyncCallback\): void;|NA|@ohos.account.osAccount.d.ts| +|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:queryOsAccountLocalIdFromProcess(): Promise\;|NA|@ohos.account.osAccount.d.ts| +|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:queryOsAccountLocalIdFromUid(uid: number, callback: AsyncCallback\): void;|NA|@ohos.account.osAccount.d.ts| +|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:queryOsAccountLocalIdFromUid(uid: number): Promise\;|NA|@ohos.account.osAccount.d.ts| +|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:queryOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo, callback: AsyncCallback\): void;|NA|@ohos.account.osAccount.d.ts| +|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:queryOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo): Promise\;|NA|@ohos.account.osAccount.d.ts| +|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:getActivatedOsAccountIds(callback: AsyncCallback\>): void;|NA|@ohos.account.osAccount.d.ts| +|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:getActivatedOsAccountIds(): Promise\>;|NA|@ohos.account.osAccount.d.ts| +|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:queryOsAccountLocalIdBySerialNumber(serialNumber: number, callback: AsyncCallback\): void;|NA|@ohos.account.osAccount.d.ts| +|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:queryOsAccountLocalIdBySerialNumber(serialNumber: number): Promise\;|NA|@ohos.account.osAccount.d.ts| +|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:querySerialNumberByOsAccountLocalId(localId: number, callback: AsyncCallback\): void;|NA|@ohos.account.osAccount.d.ts| +|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:querySerialNumberByOsAccountLocalId(localId: number): Promise\;|NA|@ohos.account.osAccount.d.ts| +|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:getBundleIdFromUid(uid: number, callback: AsyncCallback\): void;|NA|@ohos.account.osAccount.d.ts| +|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:getBundleIdFromUid(uid: number): Promise\;|NA|@ohos.account.osAccount.d.ts| +|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:queryOsAccountConstraintSourceTypes(localId: number, constraint: string, callback: AsyncCallback\>): void;|NA|@ohos.account.osAccount.d.ts| +|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:queryOsAccountConstraintSourceTypes(localId: number, constraint: string): Promise\>;|NA|@ohos.account.osAccount.d.ts| +|起始版本有变化|类名:ConstraintSourceType
方法 or 属性:CONSTRAINT_NOT_EXIST = 0
起始版本:N/A|类名:ConstraintSourceType
方法 or 属性:CONSTRAINT_NOT_EXIST = 0
起始版本:9|@ohos.account.osAccount.d.ts| +|起始版本有变化|类名:ConstraintSourceType
方法 or 属性:CONSTRAINT_TYPE_BASE = 1
起始版本:N/A|类名:ConstraintSourceType
方法 or 属性:CONSTRAINT_TYPE_BASE = 1
起始版本:9|@ohos.account.osAccount.d.ts| +|起始版本有变化|类名:ConstraintSourceType
方法 or 属性:CONSTRAINT_TYPE_DEVICE_OWNER = 2
起始版本:N/A|类名:ConstraintSourceType
方法 or 属性:CONSTRAINT_TYPE_DEVICE_OWNER = 2
起始版本:9|@ohos.account.osAccount.d.ts| +|起始版本有变化|类名:ConstraintSourceType
方法 or 属性:CONSTRAINT_TYPE_PROFILE_OWNER = 3
起始版本:N/A|类名:ConstraintSourceType
方法 or 属性:CONSTRAINT_TYPE_PROFILE_OWNER = 3
起始版本:9|@ohos.account.osAccount.d.ts| +|起始版本有变化|类名:ConstraintSourceTypeInfo
方法 or 属性:localId: number;
起始版本:N/A|类名:ConstraintSourceTypeInfo
方法 or 属性:localId: number;
起始版本:9|@ohos.account.osAccount.d.ts| +|起始版本有变化|类名:ConstraintSourceTypeInfo
方法 or 属性:type: ConstraintSourceType;
起始版本:N/A|类名:ConstraintSourceTypeInfo
方法 or 属性:type: ConstraintSourceType;
起始版本:9|@ohos.account.osAccount.d.ts| +|删除(权限)|类名:AccountManager
方法 or 属性:checkOsAccountVerified(callback: AsyncCallback\): void;
权限:ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS|类名:AccountManager
方法 or 属性:checkOsAccountVerified(callback: AsyncCallback\): void;
权限:N/A|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:PINAuth
方法 or 属性:unregisterInputer(): void;
错误码内容: 201|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:UserIdentityManager
方法 or 属性:closeSession(): void;
错误码内容: 201|@ohos.account.osAccount.d.ts| +|函数有变化|类名:AccountManager
方法 or 属性:checkOsAccountVerified(localId?: number): Promise\;
|类名:AccountManager
方法 or 属性:checkOsAccountVerified(): Promise\;
|@ohos.account.osAccount.d.ts| +|函数有变化|类名:AccountManager
方法 or 属性:checkOsAccountVerified(localId?: number): Promise\;
|类名:AccountManager
方法 or 属性:checkOsAccountVerified(localId: number): Promise\;
|@ohos.account.osAccount.d.ts| +|函数有变化|类名:IInputData
方法 or 属性:onSetData: (pinSubType: AuthSubType, data: Uint8Array) => void;
|类名:IInputData
方法 or 属性:onSetData: (authSubType: AuthSubType, data: Uint8Array) => void;
|@ohos.account.osAccount.d.ts| +|函数有变化|类名:IInputer
方法 or 属性:onGetData: (pinSubType: AuthSubType, callback: IInputData) => void;
|类名:IInputer
方法 or 属性:onGetData: (authSubType: AuthSubType, callback: IInputData) => void;
|@ohos.account.osAccount.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-application.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-application.md new file mode 100644 index 0000000000000000000000000000000000000000..7a13694e554b8cba70412e6bfb14b1035a907607 --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-application.md @@ -0,0 +1,4 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增(错误码)|NA|类名:call
方法 or 属性:function makeCall(phoneNumber: string, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function makeCall(phoneNumber: string): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-arkui.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-arkui.md new file mode 100644 index 0000000000000000000000000000000000000000..650285b5020b56c0fc8aaf4a992dbc32d5d0389d --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-arkui.md @@ -0,0 +1,1231 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.font
类名: font|@ohos.font.d.ts| +|新增|NA|模块名: ohos.font
类名: FontOptions|@ohos.font.d.ts| +|新增|NA|模块名: ohos.font
类名: FontOptions
方法 or 属性: familyName: string;|@ohos.font.d.ts| +|新增|NA|模块名: ohos.font
类名: FontOptions
方法 or 属性: familySrc: string;|@ohos.font.d.ts| +|新增|NA|模块名: ohos.font
类名: font
方法 or 属性: function registerFont(options: FontOptions):void;|@ohos.font.d.ts| +|新增|NA|模块名: ohos.measure
类名: MeasureOptions|@ohos.measure.d.ts| +|新增|NA|模块名: ohos.measure
类名: MeasureOptions
方法 or 属性: textContent: string;|@ohos.measure.d.ts| +|新增|NA|模块名: ohos.measure
类名: MeasureOptions
方法 or 属性: fontSize?: number \| string \| Resource;|@ohos.measure.d.ts| +|新增|NA|模块名: ohos.measure
类名: MeasureOptions
方法 or 属性: fontStyle?: number \| FontStyle;|@ohos.measure.d.ts| +|新增|NA|模块名: ohos.measure
类名: MeasureOptions
方法 or 属性: fontWeight?: number \| string \| FontWeight;|@ohos.measure.d.ts| +|新增|NA|模块名: ohos.measure
类名: MeasureOptions
方法 or 属性: fontFamily?: string \| Resource;|@ohos.measure.d.ts| +|新增|NA|模块名: ohos.measure
类名: MeasureOptions
方法 or 属性: letterSpacing?: number \| string;|@ohos.measure.d.ts| +|新增|NA|模块名: ohos.measure
类名: MeasureText|@ohos.measure.d.ts| +|新增|NA|模块名: ohos.measure
类名: MeasureText
方法 or 属性: static measureText(options: MeasureOptions): number;|@ohos.measure.d.ts| +|新增|NA|类名:PushParameterForStage
方法or属性:target: Want;|@ohos.pluginComponent.d.ts| +|新增|NA|类名:RequestParameterForStage
方法or属性:target: Want;|@ohos.pluginComponent.d.ts| +|新增|NA|类名:ShowToastOptions
方法or属性:message: string;|@ohos.prompt.d.ts| +|新增|NA|类名:Button
方法or属性:text: string;|@ohos.prompt.d.ts| +|新增|NA|类名:Button
方法or属性:color: string;|@ohos.prompt.d.ts| +|新增|NA|类名:ShowDialogOptions
方法or属性:title?: string;|@ohos.prompt.d.ts| +|新增|NA|类名:ShowDialogOptions
方法or属性:message?: string;|@ohos.prompt.d.ts| +|新增|NA|类名:ActionMenuOptions
方法or属性:title?: string;|@ohos.prompt.d.ts| +|新增|NA|类名:router
方法or属性:function showAlertBeforeBackPage(options: EnableAlertOptions):void;|@ohos.router.d.ts| +|新增|NA|类名:router
方法or属性:function hideAlertBeforeBackPage():void;|@ohos.router.d.ts| +|新增|NA|类名:CanvasRenderer
方法or属性:filter: string;|canvas.d.ts| +|新增|NA|类名:CanvasRenderer
方法or属性:imageSmoothingQuality: ImageSmoothingQuality;|canvas.d.ts| +|新增|NA|类名:CanvasRenderer
方法or属性:direction: CanvasDirection;|canvas.d.ts| +|新增|NA|类名:global
方法or属性:declare const Concurrent: MethodDecorator;|common.d.ts| +|新增|NA|类名:BorderImageOption
方法or属性:source?: string \| Resource \| LinearGradient,|common.d.ts| +|新增|NA|模块名: common
类名: LinearGradient|common.d.ts| +|新增|NA|类名:LinearGradient
方法or属性:|common.d.ts| +|新增|NA|模块名: common
类名: LinearGradient
方法 or 属性:angle?: number \| string;|common.d.ts| +|新增|NA|类名:LinearGradient
方法or属性:angle?: number \| string;|common.d.ts| +|新增|NA|模块名: common
类名: LinearGradient
方法 or 属性:direction?: GradientDirection;|common.d.ts| +|新增|NA|类名:LinearGradient
方法or属性:direction?: GradientDirection;|common.d.ts| +|新增|NA|模块名: common
类名: LinearGradient
方法 or 属性:colors: Array\;|common.d.ts| +|新增|NA|类名:LinearGradient
方法or属性:colors: Array\;|common.d.ts| +|新增|NA|模块名: common
类名: LinearGradient
方法 or 属性:repeating?: boolean;|common.d.ts| +|新增|NA|类名:LinearGradient
方法or属性:repeating?: boolean;|common.d.ts| +|新增|NA|类名:ImageAttribute
方法or属性:draggable(value: boolean): ImageAttribute;|image.d.ts| +|新增|NA|类名:ListAttribute
方法or属性:onScrollStart(event: () => void): ListAttribute;|list.d.ts| +|新增|NA|类名:ListAttribute
方法or属性:onScrollFrameBegin(event: (offset: number, state: ScrollState) => { offsetRemain: number }): ListAttribute;|list.d.ts| +|新增|NA|模块名: menu
类名: MenuInterface|menu.d.ts| +|新增|NA|模块名: menu
类名: MenuInterface
方法 or 属性: (): MenuAttribute;|menu.d.ts| +|新增|NA|模块名: menu
类名: MenuAttribute|menu.d.ts| +|新增|NA|模块名: menu
类名: MenuAttribute
方法 or 属性: fontSize(value: Length): MenuAttribute;|menu.d.ts| +|新增|NA|模块名: menu
类名: global
方法 or 属性: declare const Menu: MenuInterface;|menu.d.ts| +|新增|NA|模块名: menu
类名: global
方法 or 属性: declare const MenuInstance: MenuAttribute;|menu.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemOptions|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemOptions
方法 or 属性: startIcon?: ResourceStr;|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemOptions
方法 or 属性: content?: ResourceStr;|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemOptions
方法 or 属性: endIcon?: ResourceStr;|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemOptions
方法 or 属性: labelInfo?: ResourceStr;|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemOptions
方法 or 属性: builder?: CustomBuilder;|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemInterface|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemInterface
方法 or 属性: (value?: MenuItemOptions \| CustomBuilder): MenuItemAttribute;|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemAttribute|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemAttribute
方法 or 属性: selected(value: boolean): MenuItemAttribute;|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemAttribute
方法 or 属性: selectIcon(value: boolean): MenuItemAttribute;|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemAttribute
方法 or 属性: onChange(callback: (selected: boolean) => void): MenuItemAttribute;|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: global
方法 or 属性: declare const MenuItem: MenuItemInterface;|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: global
方法 or 属性: declare const MenuItemInstance: MenuItemAttribute;|menu_item.d.ts| +|新增|NA|模块名: menu_item_group
类名: MenuItemGroupOptions|menu_item_group.d.ts| +|新增|NA|模块名: menu_item_group
类名: MenuItemGroupOptions
方法 or 属性: header?: ResourceStr \| CustomBuilder;|menu_item_group.d.ts| +|新增|NA|模块名: menu_item_group
类名: MenuItemGroupOptions
方法 or 属性: footer?: ResourceStr \| CustomBuilder;|menu_item_group.d.ts| +|新增|NA|模块名: menu_item_group
类名: MenuItemGroupInterface|menu_item_group.d.ts| +|新增|NA|模块名: menu_item_group
类名: MenuItemGroupInterface
方法 or 属性: (value?: MenuItemGroupOptions): MenuItemGroupAttribute;|menu_item_group.d.ts| +|新增|NA|模块名: menu_item_group
类名: MenuItemGroupAttribute|menu_item_group.d.ts| +|新增|NA|模块名: menu_item_group
类名: global
方法 or 属性: declare const MenuItemGroup: MenuItemGroupInterface;|menu_item_group.d.ts| +|新增|NA|模块名: menu_item_group
类名: global
方法 or 属性: declare const MenuItemGroupInstance: MenuItemGroupAttribute;|menu_item_group.d.ts| +|新增|NA|类名:PluginComponentTemplate
方法or属性:bundleName: string;|plugin_component.d.ts| +|新增|NA|类名:ScrollAttribute
方法or属性:onScrollStart(event: () => void): ScrollAttribute;|scroll.d.ts| +|新增|NA|类名:ScrollAttribute
方法or属性:onScrollStop(event: () => void): ScrollAttribute;|scroll.d.ts| +|新增|NA|类名:ScrollAttribute
方法or属性:onScrollFrameBegin(event: (offset: number, state: ScrollState) => { offsetRemain: number }): ScrollAttribute;|scroll.d.ts| +|新增|NA|类名:ShapeInterface
方法or属性:(value: PixelMap): ShapeAttribute;|shape.d.ts| +|新增|NA|类名:ShapeInterface
方法or属性:(): ShapeAttribute;|shape.d.ts| +|新增|NA|模块名: tab_content
类名: SubTabBarStyle|tab_content.d.ts| +|新增|NA|类名:SubTabBarStyle
方法or属性:|tab_content.d.ts| +|新增|NA|模块名: tab_content
类名: SubTabBarStyle
方法 or 属性:constructor(content: string \| Resource);|tab_content.d.ts| +|新增|NA|类名:SubTabBarStyle
方法or属性:constructor(content: string \| Resource);|tab_content.d.ts| +|新增|NA|模块名: tab_content
类名: BottomTabBarStyle|tab_content.d.ts| +|新增|NA|类名:BottomTabBarStyle
方法or属性:|tab_content.d.ts| +|新增|NA|模块名: tab_content
类名: BottomTabBarStyle
方法 or 属性:constructor(icon: string \| Resource, text: string \| Resource);|tab_content.d.ts| +|新增|NA|类名:BottomTabBarStyle
方法or属性:constructor(icon: string \| Resource, text: string \| Resource);|tab_content.d.ts| +|新增|NA|类名:TabContentAttribute
方法or属性:tabBar(value: SubTabBarStyle \| BottomTabBarStyle): TabContentAttribute;|tab_content.d.ts| +|删除|模块名:ohos.pluginComponent
类名:PushParameterForStage
方法 or 属性:want: Want;|NA|@ohos.pluginComponent.d.ts| +|删除|模块名:ohos.pluginComponent
类名:RequestParameterForStage
方法 or 属性:want: Want;|NA|@ohos.pluginComponent.d.ts| +|删除|模块名:ohos.router
类名:router
方法 or 属性:function enableBackPageAlert(options: EnableAlertOptions):void;|NA|@ohos.router.d.ts| +|删除|模块名:canvas
类名:CanvasRenderer
方法 or 属性:filter(filter: string): void;|NA|canvas.d.ts| +|删除|模块名:canvas
类名:CanvasRenderer
方法 or 属性:imageSmoothingQuality(quality: ImageSmoothingQuality): void;|NA|canvas.d.ts| +|删除|模块名:canvas
类名:CanvasRenderer
方法 or 属性:direction(direction: CanvasDirection): void;|NA|canvas.d.ts| +|删除|模块名:list
类名:ListAttribute
方法 or 属性:onScrollBegin(event: (dx: number, dy: number) => { dxRemain: number, dyRemain: number }): ListAttribute;|NA|list.d.ts| +|删除|模块名:plugin_component
类名:PluginComponentTemplate
方法 or 属性:ability: string;|NA|plugin_component.d.ts| +|删除|模块名:scroll
类名:ScrollAttribute
方法 or 属性:onScrollBegin(event: (dx: number, dy: number) => { dxRemain: number, dyRemain: number }): ScrollAttribute;|NA|scroll.d.ts| +|删除|模块名: web
类名: WebMessagePort|NA|web.d.ts| +|删除|模块名: web
类名: WebMessagePort
方法 or 属性:constructor();|NA|web.d.ts| +|删除|模块名: web
类名: WebMessagePort
方法 or 属性:close(): void;|NA|web.d.ts| +|删除|模块名: web
类名: WebMessagePort
方法 or 属性:postMessageEvent(message: WebMessageEvent): void;|NA|web.d.ts| +|删除|模块名: web
类名: WebMessagePort
方法 or 属性:onMessageEvent(callback: (result: string) => void): void;|NA|web.d.ts| +|删除|模块名: web
类名: WebMessageEvent|NA|web.d.ts| +|删除|模块名: web
类名: WebMessageEvent
方法 or 属性:constructor();|NA|web.d.ts| +|删除|模块名: web
类名: WebMessageEvent
方法 or 属性:getData(): string;|NA|web.d.ts| +|删除|模块名: web
类名: WebMessageEvent
方法 or 属性:setData(data: string): void;|NA|web.d.ts| +|删除|模块名: web
类名: WebMessageEvent
方法 or 属性:getPorts(): Array\;|NA|web.d.ts| +|删除|模块名: web
类名: WebMessageEvent
方法 or 属性:setPorts(ports: Array\): void;|NA|web.d.ts| +|删除|模块名: web
类名: HitTestValue|NA|web.d.ts| +|删除|模块名: web
类名: HitTestValue
方法 or 属性:constructor();|NA|web.d.ts| +|删除|模块名: web
类名: HitTestValue
方法 or 属性:getType(): HitTestType;|NA|web.d.ts| +|删除|模块名: web
类名: HitTestValue
方法 or 属性:getExtra(): string;|NA|web.d.ts| +|删除|模块名: web
类名: WebCookie
方法 or 属性:isCookieAllowed(): boolean;|NA|web.d.ts| +|删除|模块名: web
类名: WebCookie
方法 or 属性:isThirdPartyCookieAllowed(): boolean;|NA|web.d.ts| +|删除|模块名: web
类名: WebCookie
方法 or 属性:isFileURICookieAllowed(): boolean;|NA|web.d.ts| +|删除|模块名: web
类名: WebCookie
方法 or 属性:putAcceptCookieEnabled(accept: boolean): void;|NA|web.d.ts| +|删除|模块名: web
类名: WebCookie
方法 or 属性:putAcceptThirdPartyCookieEnabled(accept: boolean): void;|NA|web.d.ts| +|删除|模块名: web
类名: WebCookie
方法 or 属性:putAcceptFileURICookieEnabled(accept: boolean): void;|NA|web.d.ts| +|删除|模块名: web
类名: WebCookie
方法 or 属性:setCookie(url: string, value: string): boolean;|NA|web.d.ts| +|删除|模块名: web
类名: WebCookie
方法 or 属性:saveCookieSync(): boolean;|NA|web.d.ts| +|删除|模块名: web
类名: WebCookie
方法 or 属性:getCookie(url: string): string;|NA|web.d.ts| +|删除|模块名: web
类名: WebCookie
方法 or 属性:existCookie(): boolean;|NA|web.d.ts| +|删除|模块名: web
类名: WebCookie
方法 or 属性:deleteEntireCookie(): void;|NA|web.d.ts| +|删除|模块名: web
类名: WebCookie
方法 or 属性:deleteSessionCookie(): void;|NA|web.d.ts| +|删除|模块名: web
类名: WebCookie
方法 or 属性:deleteExpiredCookie(): void;|NA|web.d.ts| +|删除|模块名: web
类名: WebController
方法 or 属性:zoomIn(): boolean;|NA|web.d.ts| +|删除|模块名: web
类名: WebController
方法 or 属性:zoomOut(): boolean;|NA|web.d.ts| +|删除|模块名: web
类名: WebController
方法 or 属性:createWebMessagePorts(): Array\;|NA|web.d.ts| +|删除|模块名: web
类名: WebController
方法 or 属性:postMessage(options: { message: WebMessageEvent, uri: string}): void;|NA|web.d.ts| +|删除|模块名: web
类名: WebController
方法 or 属性:getHitTestValue(): HitTestValue;|NA|web.d.ts| +|删除|模块名: web
类名: WebController
方法 or 属性:getWebId(): number;|NA|web.d.ts| +|删除|模块名: web
类名: WebController
方法 or 属性:getDefaultUserAgent(): string;|NA|web.d.ts| +|删除|模块名: web
类名: WebController
方法 or 属性:getTitle(): string;|NA|web.d.ts| +|删除|模块名: web
类名: WebController
方法 or 属性:getPageHeight(): number;|NA|web.d.ts| +|删除|模块名: web
类名: WebController
方法 or 属性:backOrForward(step: number): void;|NA|web.d.ts| +|删除|模块名: web
类名: WebController
方法 or 属性:searchAllAsync(searchString: string): void;|NA|web.d.ts| +|删除|模块名: web
类名: WebController
方法 or 属性:clearMatches(): void;|NA|web.d.ts| +|删除|模块名: web
类名: WebController
方法 or 属性:searchNext(forward: boolean): void;|NA|web.d.ts| +|删除|模块名: web
类名: WebController
方法 or 属性:clearSslCache(): void;|NA|web.d.ts| +|删除|模块名: web
类名: WebController
方法 or 属性:clearClientAuthenticationCache(): void;|NA|web.d.ts| +|删除|模块名: web
类名: WebController
方法 or 属性:getUrl(): string;|NA|web.d.ts| +|删除|模块名: web
类名: WebAttribute
方法 or 属性:webDebuggingAccess(webDebuggingAccess: boolean): WebAttribute;|NA|web.d.ts| +|访问级别有变化|类名:curves
方法 or 属性:function springMotion(response?: number, dampingFraction?: number, overlapDuration?: number): ICurve;
访问级别:系统API|类名:curves
方法 or 属性:function springMotion(response?: number, dampingFraction?: number, overlapDuration?: number): ICurve;
访问级别:公开API|@ohos.curves.d.ts| +|访问级别有变化|类名:curves
方法 or 属性:function responsiveSpringMotion(response?: number, dampingFraction?: number, overlapDuration?: number): ICurve;
访问级别:系统API|类名:curves
方法 or 属性:function responsiveSpringMotion(response?: number, dampingFraction?: number, overlapDuration?: number): ICurve;
访问级别:公开API|@ohos.curves.d.ts| +|访问级别有变化|类名:global
方法 or 属性:declare const Animator: AnimatorInterface;
访问级别:公开API|类名:global
方法 or 属性:declare const Animator: AnimatorInterface;
访问级别:系统API|animator.d.ts| +|访问级别有变化|类名:global
方法 or 属性:declare const AnimatorInstance: AnimatorAttribute;
访问级别:公开API|类名:global
方法 or 属性:declare const AnimatorInstance: AnimatorAttribute;
访问级别:系统API|animator.d.ts| +|访问级别有变化|类名:global
方法 or 属性:declare const Calendar: CalendarInterface;
访问级别:公开API|类名:global
方法 or 属性:declare const Calendar: CalendarInterface;
访问级别:系统API|calendar.d.ts| +|访问级别有变化|类名:global
方法 or 属性:declare const CalendarInstance: CalendarAttribute;
访问级别:公开API|类名:global
方法 or 属性:declare const CalendarInstance: CalendarAttribute;
访问级别:系统API|calendar.d.ts| +|访问级别有变化|类名:
方法 or 属性:function postCardAction(component: Object, action: Object): void;
访问级别:系统API|类名:
方法 or 属性:function postCardAction(component: Object, action: Object): void;
访问级别:公开API|common.d.ts| +|访问级别有变化|类名:BlurStyle
方法 or 属性:Thin
访问级别:系统API|类名:BlurStyle
方法 or 属性:Thin
访问级别:公开API|common.d.ts| +|访问级别有变化|类名:BlurStyle
方法 or 属性:Regular
访问级别:系统API|类名:BlurStyle
方法 or 属性:Regular
访问级别:公开API|common.d.ts| +|访问级别有变化|类名:BlurStyle
方法 or 属性:Thick
访问级别:系统API|类名:BlurStyle
方法 or 属性:Thick
访问级别:公开API|common.d.ts| +|访问级别有变化|类名:CommonMethod
方法 or 属性:backgroundBlurStyle(value: BlurStyle): T;
访问级别:系统API|类名:CommonMethod
方法 or 属性:backgroundBlurStyle(value: BlurStyle): T;
访问级别:公开API|common.d.ts| +|访问级别有变化|类名:global
方法 or 属性:declare const FormComponent: FormComponentInterface;
访问级别:公开API|类名:global
方法 or 属性:declare const FormComponent: FormComponentInterface;
访问级别:系统API|form_component.d.ts| +|访问级别有变化|类名:global
方法 or 属性:declare const FormComponentInstance: FormComponentAttribute;
访问级别:公开API|类名:global
方法 or 属性:declare const FormComponentInstance: FormComponentAttribute;
访问级别:系统API|form_component.d.ts| +|访问级别有变化|类名:global
方法 or 属性:declare const PluginComponent: PluginComponentInterface;
访问级别:公开API|类名:global
方法 or 属性:declare const PluginComponent: PluginComponentInterface;
访问级别:系统API|plugin_component.d.ts| +|访问级别有变化|类名:global
方法 or 属性:declare const PluginComponentInstance: PluginComponentAttribute;
访问级别:公开API|类名:global
方法 or 属性:declare const PluginComponentInstance: PluginComponentAttribute;
访问级别:系统API|plugin_component.d.ts| +|访问级别有变化|类名:global
方法 or 属性:declare const RemoteWindow: RemoteWindowInterface;
访问级别:公开API|类名:global
方法 or 属性:declare const RemoteWindow: RemoteWindowInterface;
访问级别:系统API|remote_window.d.ts| +|访问级别有变化|类名:global
方法 or 属性:declare const RemoteWindowInstance: RemoteWindowAttribute;
访问级别:公开API|类名:global
方法 or 属性:declare const RemoteWindowInstance: RemoteWindowAttribute;
访问级别:系统API|remote_window.d.ts| +|废弃版本有变化|类名:router
方法 or 属性:function disableAlertBeforeBackPage():void;
废弃版本:N/A|类名:router
方法 or 属性:function disableAlertBeforeBackPage():void;
废弃版本:9
代替接口:ohos.router.router|@ohos.router.d.ts| +|废弃版本有变化|类名:GridItemAttribute
方法 or 属性:forceRebuild(value: boolean): GridItemAttribute;
废弃版本:N/A|类名:GridItemAttribute
方法 or 属性:forceRebuild(value: boolean): GridItemAttribute;
废弃版本:9
代替接口:N/A|gridItem.d.ts| +|废弃版本有变化|类名:global
方法 or 属性:declare const GridContainer: GridContainerInterface
废弃版本:N/A|类名:global
方法 or 属性:declare const GridContainer: GridContainerInterface
废弃版本:9
代替接口:grid_col/|grid_container.d.ts| +|废弃版本有变化|类名:global
方法 or 属性:declare const GridContainerInstance: GridContainerAttribute;
废弃版本:N/A|类名:global
方法 or 属性:declare const GridContainerInstance: GridContainerAttribute;
废弃版本:9
代替接口:grid_col/|grid_container.d.ts| +|废弃版本有变化|类名:ScrollAttribute
方法 or 属性:onScrollEnd(event: () => void): ScrollAttribute;
废弃版本:N/A|类名:ScrollAttribute
方法 or 属性:onScrollEnd(event: () => void): ScrollAttribute;
废弃版本:9
代替接口:scroll/Scroll|scroll.d.ts| +|起始版本有变化|类名:CanvasPattern
起始版本:8|类名:CanvasPattern
起始版本:9|canvaspattern.d.ts| +|起始版本有变化|类名:CanvasPattern
方法 or 属性:setTransform(transform?: Matrix2D): void;
起始版本:8|类名:CanvasPattern
方法 or 属性:setTransform(transform?: Matrix2D): void;
起始版本:9|canvaspattern.d.ts| +|起始版本有变化|类名:Matrix2D
起始版本:8|类名:Matrix2D
起始版本:9|canvaspattern.d.ts| +|起始版本有变化|类名:Matrix2D
方法 or 属性:scaleX?: number;
起始版本:8|类名:Matrix2D
方法 or 属性:scaleX?: number;
起始版本:9|canvaspattern.d.ts| +|起始版本有变化|类名:Matrix2D
方法 or 属性:rotateY?: number;
起始版本:8|类名:Matrix2D
方法 or 属性:rotateY?: number;
起始版本:9|canvaspattern.d.ts| +|起始版本有变化|类名:Matrix2D
方法 or 属性:rotateX?: number;
起始版本:8|类名:Matrix2D
方法 or 属性:rotateX?: number;
起始版本:9|canvaspattern.d.ts| +|起始版本有变化|类名:Matrix2D
方法 or 属性:scaleY?: number;
起始版本:8|类名:Matrix2D
方法 or 属性:scaleY?: number;
起始版本:9|canvaspattern.d.ts| +|起始版本有变化|类名:Matrix2D
方法 or 属性:translateX?: number;
起始版本:8|类名:Matrix2D
方法 or 属性:translateX?: number;
起始版本:9|canvaspattern.d.ts| +|起始版本有变化|类名:Matrix2D
方法 or 属性:translateY?: number;
起始版本:8|类名:Matrix2D
方法 or 属性:translateY?: number;
起始版本:9|canvaspattern.d.ts| +|起始版本有变化|类名:Matrix2D
方法 or 属性:identity(): Matrix2D;
起始版本:8|类名:Matrix2D
方法 or 属性:identity(): Matrix2D;
起始版本:9|canvaspattern.d.ts| +|起始版本有变化|类名:Matrix2D
方法 or 属性:invert(): Matrix2D;
起始版本:8|类名:Matrix2D
方法 or 属性:invert(): Matrix2D;
起始版本:9|canvaspattern.d.ts| +|起始版本有变化|类名:Matrix2D
方法 or 属性:multiply(other?: Matrix2D): Matrix2D;
起始版本:8|类名:Matrix2D
方法 or 属性:multiply(other?: Matrix2D): Matrix2D;
起始版本:9|canvaspattern.d.ts| +|起始版本有变化|类名:Matrix2D
方法 or 属性:rotate(rx?: number, ry?: number): Matrix2D;
起始版本:8|类名:Matrix2D
方法 or 属性:rotate(rx?: number, ry?: number): Matrix2D;
起始版本:9|canvaspattern.d.ts| +|起始版本有变化|类名:Matrix2D
方法 or 属性:translate(tx?: number, ty?: number): Matrix2D;
起始版本:8|类名:Matrix2D
方法 or 属性:translate(tx?: number, ty?: number): Matrix2D;
起始版本:9|canvaspattern.d.ts| +|起始版本有变化|类名:Matrix2D
方法 or 属性:scale(sx?: number, sy?: number): Matrix2D;
起始版本:8|类名:Matrix2D
方法 or 属性:scale(sx?: number, sy?: number): Matrix2D;
起始版本:9|canvaspattern.d.ts| +|起始版本有变化|类名:Matrix2D
方法 or 属性:constructor();
起始版本:8|类名:Matrix2D
方法 or 属性:constructor();
起始版本:9|canvaspattern.d.ts| +|起始版本有变化|类名:console
起始版本:7|类名:console
起始版本:9|global.d.ts| +|起始版本有变化|类名:console
方法 or 属性:static debug(message: string, ...arguments: any[]): void;
起始版本:7|类名:console
方法 or 属性:static debug(message: string, ...arguments: any[]): void;
起始版本:9|global.d.ts| +|起始版本有变化|类名:console
方法 or 属性:static log(message: string, ...arguments: any[]): void;
起始版本:7|类名:console
方法 or 属性:static log(message: string, ...arguments: any[]): void;
起始版本:9|global.d.ts| +|起始版本有变化|类名:console
方法 or 属性:static info(message: string, ...arguments: any[]): void;
起始版本:7|类名:console
方法 or 属性:static info(message: string, ...arguments: any[]): void;
起始版本:9|global.d.ts| +|起始版本有变化|类名:console
方法 or 属性:static warn(message: string, ...arguments: any[]): void;
起始版本:7|类名:console
方法 or 属性:static warn(message: string, ...arguments: any[]): void;
起始版本:9|global.d.ts| +|起始版本有变化|类名:console
方法 or 属性:static error(message: string, ...arguments: any[]): void;
起始版本:7|类名:console
方法 or 属性:static error(message: string, ...arguments: any[]): void;
起始版本:9|global.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const AbilityComponent: AbilityComponentInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const AbilityComponent: AbilityComponentInterface;
起始版本:9|ability_component.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const AbilityComponentInstance: AbilityComponentAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const AbilityComponentInstance: AbilityComponentAttribute;
起始版本:9|ability_component.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const AlphabetIndexer: AlphabetIndexerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const AlphabetIndexer: AlphabetIndexerInterface;
起始版本:7|alphabet_indexer.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const AlphabetIndexerInstance: AlphabetIndexerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const AlphabetIndexerInstance: AlphabetIndexerAttribute;
起始版本:7|alphabet_indexer.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Animator: AnimatorInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Animator: AnimatorInterface;
起始版本:7|animator.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const AnimatorInstance: AnimatorAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const AnimatorInstance: AnimatorAttribute;
起始版本:7|animator.d.ts| +|起始版本有变化|类名:BadgePosition
起始版本:7|类名:BadgePosition
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgePosition
方法 or 属性:RightTop
起始版本:7|类名:BadgePosition
方法 or 属性:RightTop
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgePosition
方法 or 属性:Right
起始版本:7|类名:BadgePosition
方法 or 属性:Right
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgePosition
方法 or 属性:Left
起始版本:7|类名:BadgePosition
方法 or 属性:Left
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeStyle
起始版本:7|类名:BadgeStyle
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeStyle
方法 or 属性:color?: ResourceColor;
起始版本:7|类名:BadgeStyle
方法 or 属性:color?: ResourceColor;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeStyle
方法 or 属性:fontSize?: number \| string;
起始版本:7|类名:BadgeStyle
方法 or 属性:fontSize?: number \| string;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeStyle
方法 or 属性:badgeSize?: number \| string;
起始版本:7|类名:BadgeStyle
方法 or 属性:badgeSize?: number \| string;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeStyle
方法 or 属性:badgeColor?: ResourceColor;
起始版本:7|类名:BadgeStyle
方法 or 属性:badgeColor?: ResourceColor;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeParam
起始版本:7|类名:BadgeParam
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeParam
方法 or 属性:position?: BadgePosition;
起始版本:7|类名:BadgeParam
方法 or 属性:position?: BadgePosition;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeParam
方法 or 属性:style: BadgeStyle;
起始版本:7|类名:BadgeParam
方法 or 属性:style: BadgeStyle;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeParamWithNumber
起始版本:7|类名:BadgeParamWithNumber
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeParamWithNumber
方法 or 属性:count: number;
起始版本:7|类名:BadgeParamWithNumber
方法 or 属性:count: number;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeParamWithNumber
方法 or 属性:maxCount?: number;
起始版本:7|类名:BadgeParamWithNumber
方法 or 属性:maxCount?: number;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeParamWithString
起始版本:7|类名:BadgeParamWithString
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeParamWithString
方法 or 属性:value: string;
起始版本:7|类名:BadgeParamWithString
方法 or 属性:value: string;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeInterface
起始版本:7|类名:BadgeInterface
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeInterface
方法 or 属性:(value: BadgeParamWithNumber): BadgeAttribute;
起始版本:7|类名:BadgeInterface
方法 or 属性:(value: BadgeParamWithNumber): BadgeAttribute;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeInterface
方法 or 属性:(value: BadgeParamWithString): BadgeAttribute;
起始版本:7|类名:BadgeInterface
方法 or 属性:(value: BadgeParamWithString): BadgeAttribute;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeAttribute
起始版本:7|类名:BadgeAttribute
起始版本:9|badge.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Badge: BadgeInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Badge: BadgeInterface;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const BadgeInstance: BadgeAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const BadgeInstance: BadgeAttribute;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BlankInterface
起始版本:7|类名:BlankInterface
起始版本:9|blank.d.ts| +|起始版本有变化|类名:BlankInterface
方法 or 属性:(min?: number \| string): BlankAttribute;
起始版本:7|类名:BlankInterface
方法 or 属性:(min?: number \| string): BlankAttribute;
起始版本:9|blank.d.ts| +|起始版本有变化|类名:BlankAttribute
起始版本:7|类名:BlankAttribute
起始版本:9|blank.d.ts| +|起始版本有变化|类名:BlankAttribute
方法 or 属性:color(value: ResourceColor): BlankAttribute;
起始版本:7|类名:BlankAttribute
方法 or 属性:color(value: ResourceColor): BlankAttribute;
起始版本:9|blank.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Blank: BlankInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Blank: BlankInterface;
起始版本:9|blank.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const BlankInstance: BlankAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const BlankInstance: BlankAttribute;
起始版本:9|blank.d.ts| +|起始版本有变化|类名:ButtonType
起始版本:7|类名:ButtonType
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonType
方法 or 属性:Capsule
起始版本:7|类名:ButtonType
方法 or 属性:Capsule
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonType
方法 or 属性:Circle
起始版本:7|类名:ButtonType
方法 or 属性:Circle
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonType
方法 or 属性:Normal
起始版本:7|类名:ButtonType
方法 or 属性:Normal
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonOptions
起始版本:7|类名:ButtonOptions
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonOptions
方法 or 属性:type?: ButtonType;
起始版本:7|类名:ButtonOptions
方法 or 属性:type?: ButtonType;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonOptions
方法 or 属性:stateEffect?: boolean;
起始版本:7|类名:ButtonOptions
方法 or 属性:stateEffect?: boolean;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonInterface
起始版本:7|类名:ButtonInterface
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonInterface
方法 or 属性:(): ButtonAttribute;
起始版本:7|类名:ButtonInterface
方法 or 属性:(): ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonInterface
方法 or 属性:(options: ButtonOptions): ButtonAttribute;
起始版本:7|类名:ButtonInterface
方法 or 属性:(options: ButtonOptions): ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonInterface
方法 or 属性:(label: ResourceStr, options?: ButtonOptions): ButtonAttribute;
起始版本:7|类名:ButtonInterface
方法 or 属性:(label: ResourceStr, options?: ButtonOptions): ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonAttribute
起始版本:7|类名:ButtonAttribute
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonAttribute
方法 or 属性:type(value: ButtonType): ButtonAttribute;
起始版本:7|类名:ButtonAttribute
方法 or 属性:type(value: ButtonType): ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonAttribute
方法 or 属性:stateEffect(value: boolean): ButtonAttribute;
起始版本:7|类名:ButtonAttribute
方法 or 属性:stateEffect(value: boolean): ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonAttribute
方法 or 属性:fontColor(value: ResourceColor): ButtonAttribute;
起始版本:7|类名:ButtonAttribute
方法 or 属性:fontColor(value: ResourceColor): ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonAttribute
方法 or 属性:fontSize(value: Length): ButtonAttribute;
起始版本:7|类名:ButtonAttribute
方法 or 属性:fontSize(value: Length): ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): ButtonAttribute;
起始版本:7|类名:ButtonAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonAttribute
方法 or 属性:fontStyle(value: FontStyle): ButtonAttribute;
起始版本:8|类名:ButtonAttribute
方法 or 属性:fontStyle(value: FontStyle): ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonAttribute
方法 or 属性:fontFamily(value: string \| Resource): ButtonAttribute;
起始版本:8|类名:ButtonAttribute
方法 or 属性:fontFamily(value: string \| Resource): ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Button: ButtonInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Button: ButtonInterface;
起始版本:9|button.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ButtonInstance: ButtonAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ButtonInstance: ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Calendar: CalendarInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Calendar: CalendarInterface;
起始版本:7|calendar.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const CalendarInstance: CalendarAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const CalendarInstance: CalendarAttribute;
起始版本:7|calendar.d.ts| +|起始版本有变化|类名:CanvasGradient
起始版本:8|类名:CanvasGradient
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasGradient
方法 or 属性:addColorStop(offset: number, color: string): void;
起始版本:8|类名:CanvasGradient
方法 or 属性:addColorStop(offset: number, color: string): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasPath
起始版本:8|类名:CanvasPath
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasPath
方法 or 属性:arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
起始版本:8|类名:CanvasPath
方法 or 属性:arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasPath
方法 or 属性:arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
起始版本:8|类名:CanvasPath
方法 or 属性:arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasPath
方法 or 属性:bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
起始版本:8|类名:CanvasPath
方法 or 属性:bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasPath
方法 or 属性:closePath(): void;
起始版本:8|类名:CanvasPath
方法 or 属性:closePath(): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasPath
方法 or 属性:ellipse(
x: number,
y: number,
radiusX: number,
radiusY: number,
rotation: number,
startAngle: number,
endAngle: number,
counterclockwise?: boolean,
): void;
起始版本:8|类名:CanvasPath
方法 or 属性:ellipse(
x: number,
y: number,
radiusX: number,
radiusY: number,
rotation: number,
startAngle: number,
endAngle: number,
counterclockwise?: boolean,
): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasPath
方法 or 属性:lineTo(x: number, y: number): void;
起始版本:8|类名:CanvasPath
方法 or 属性:lineTo(x: number, y: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasPath
方法 or 属性:moveTo(x: number, y: number): void;
起始版本:8|类名:CanvasPath
方法 or 属性:moveTo(x: number, y: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasPath
方法 or 属性:quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
起始版本:8|类名:CanvasPath
方法 or 属性:quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasPath
方法 or 属性:rect(x: number, y: number, w: number, h: number): void;
起始版本:8|类名:CanvasPath
方法 or 属性:rect(x: number, y: number, w: number, h: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:Path2D
起始版本:8|类名:Path2D
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:Path2D
方法 or 属性:addPath(path: Path2D, transform?: Matrix2D): void;
起始版本:8|类名:Path2D
方法 or 属性:addPath(path: Path2D, transform?: Matrix2D): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:Path2D
方法 or 属性:constructor();
起始版本:8|类名:Path2D
方法 or 属性:constructor();
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:Path2D
方法 or 属性:constructor(path: Path2D);
起始版本:8|类名:Path2D
方法 or 属性:constructor(path: Path2D);
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:Path2D
方法 or 属性:constructor(d: string);
起始版本:8|类名:Path2D
方法 or 属性:constructor(d: string);
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
起始版本:8|类名:TextMetrics
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxAscent: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxAscent: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxDescent: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxDescent: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxLeft: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxLeft: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxRight: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxRight: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly alphabeticBaseline: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly alphabeticBaseline: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly emHeightAscent: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly emHeightAscent: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly emHeightDescent: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly emHeightDescent: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly fontBoundingBoxAscent: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly fontBoundingBoxAscent: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly fontBoundingBoxDescent: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly fontBoundingBoxDescent: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly hangingBaseline: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly hangingBaseline: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly ideographicBaseline: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly ideographicBaseline: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly width: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly width: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly height: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly height: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:ImageBitmap
起始版本:8|类名:ImageBitmap
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:ImageBitmap
方法 or 属性:readonly height: number;
起始版本:8|类名:ImageBitmap
方法 or 属性:readonly height: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:ImageBitmap
方法 or 属性:readonly width: number;
起始版本:8|类名:ImageBitmap
方法 or 属性:readonly width: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:ImageBitmap
方法 or 属性:close(): void;
起始版本:8|类名:ImageBitmap
方法 or 属性:close(): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:ImageBitmap
方法 or 属性:constructor(src: string);
起始版本:8|类名:ImageBitmap
方法 or 属性:constructor(src: string);
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:ImageData
起始版本:8|类名:ImageData
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:ImageData
方法 or 属性:readonly data: Uint8ClampedArray;
起始版本:8|类名:ImageData
方法 or 属性:readonly data: Uint8ClampedArray;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:ImageData
方法 or 属性:readonly height: number;
起始版本:8|类名:ImageData
方法 or 属性:readonly height: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:ImageData
方法 or 属性:readonly width: number;
起始版本:8|类名:ImageData
方法 or 属性:readonly width: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:ImageData
方法 or 属性:constructor(width: number, height: number, data?: Uint8ClampedArray);
起始版本:8|类名:ImageData
方法 or 属性:constructor(width: number, height: number, data?: Uint8ClampedArray);
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:RenderingContextSettings
起始版本:8|类名:RenderingContextSettings
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:RenderingContextSettings
方法 or 属性:antialias?: boolean;
起始版本:8|类名:RenderingContextSettings
方法 or 属性:antialias?: boolean;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:RenderingContextSettings
方法 or 属性:constructor(antialias?: boolean);
起始版本:8|类名:RenderingContextSettings
方法 or 属性:constructor(antialias?: boolean);
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
起始版本:8|类名:CanvasRenderer
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:globalAlpha: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:globalAlpha: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:globalCompositeOperation: string;
起始版本:8|类名:CanvasRenderer
方法 or 属性:globalCompositeOperation: string;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:drawImage(image: ImageBitmap \| PixelMap, dx: number, dy: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:drawImage(image: ImageBitmap \| PixelMap, dx: number, dy: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:drawImage(image: ImageBitmap \| PixelMap, dx: number, dy: number, dw: number, dh: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:drawImage(image: ImageBitmap \| PixelMap, dx: number, dy: number, dw: number, dh: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:drawImage(
image: ImageBitmap \| PixelMap,
sx: number,
sy: number,
sw: number,
sh: number,
dx: number,
dy: number,
dw: number,
dh: number,
): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:drawImage(
image: ImageBitmap \| PixelMap,
sx: number,
sy: number,
sw: number,
sh: number,
dx: number,
dy: number,
dw: number,
dh: number,
): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:beginPath(): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:beginPath(): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:clip(fillRule?: CanvasFillRule): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:clip(fillRule?: CanvasFillRule): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:clip(path: Path2D, fillRule?: CanvasFillRule): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:clip(path: Path2D, fillRule?: CanvasFillRule): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:fill(fillRule?: CanvasFillRule): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:fill(fillRule?: CanvasFillRule): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:fill(path: Path2D, fillRule?: CanvasFillRule): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:fill(path: Path2D, fillRule?: CanvasFillRule): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:stroke(): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:stroke(): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:stroke(path: Path2D): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:stroke(path: Path2D): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:fillStyle: string \| CanvasGradient \| CanvasPattern;
起始版本:8|类名:CanvasRenderer
方法 or 属性:fillStyle: string \| CanvasGradient \| CanvasPattern;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:strokeStyle: string \| CanvasGradient \| CanvasPattern;
起始版本:8|类名:CanvasRenderer
方法 or 属性:strokeStyle: string \| CanvasGradient \| CanvasPattern;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
起始版本:8|类名:CanvasRenderer
方法 or 属性:createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:createPattern(image: ImageBitmap, repetition: string \| null): CanvasPattern \| null;
起始版本:8|类名:CanvasRenderer
方法 or 属性:createPattern(image: ImageBitmap, repetition: string \| null): CanvasPattern \| null;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
起始版本:8|类名:CanvasRenderer
方法 or 属性:createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:createImageData(sw: number, sh: number): ImageData;
起始版本:8|类名:CanvasRenderer
方法 or 属性:createImageData(sw: number, sh: number): ImageData;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:createImageData(imagedata: ImageData): ImageData;
起始版本:8|类名:CanvasRenderer
方法 or 属性:createImageData(imagedata: ImageData): ImageData;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
起始版本:8|类名:CanvasRenderer
方法 or 属性:getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:putImageData(imagedata: ImageData, dx: number, dy: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:putImageData(imagedata: ImageData, dx: number, dy: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:putImageData(
imagedata: ImageData,
dx: number,
dy: number,
dirtyX: number,
dirtyY: number,
dirtyWidth: number,
dirtyHeight: number,
): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:putImageData(
imagedata: ImageData,
dx: number,
dy: number,
dirtyX: number,
dirtyY: number,
dirtyWidth: number,
dirtyHeight: number,
): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:imageSmoothingEnabled: boolean;
起始版本:8|类名:CanvasRenderer
方法 or 属性:imageSmoothingEnabled: boolean;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:lineCap: CanvasLineCap;
起始版本:8|类名:CanvasRenderer
方法 or 属性:lineCap: CanvasLineCap;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:lineDashOffset: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:lineDashOffset: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:lineJoin: CanvasLineJoin;
起始版本:8|类名:CanvasRenderer
方法 or 属性:lineJoin: CanvasLineJoin;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:lineWidth: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:lineWidth: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:miterLimit: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:miterLimit: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:getLineDash(): number[];
起始版本:8|类名:CanvasRenderer
方法 or 属性:getLineDash(): number[];
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:setLineDash(segments: number[]): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:setLineDash(segments: number[]): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:clearRect(x: number, y: number, w: number, h: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:clearRect(x: number, y: number, w: number, h: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:fillRect(x: number, y: number, w: number, h: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:fillRect(x: number, y: number, w: number, h: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:strokeRect(x: number, y: number, w: number, h: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:strokeRect(x: number, y: number, w: number, h: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:shadowBlur: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:shadowBlur: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:shadowColor: string;
起始版本:8|类名:CanvasRenderer
方法 or 属性:shadowColor: string;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:shadowOffsetX: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:shadowOffsetX: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:shadowOffsetY: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:shadowOffsetY: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:restore(): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:restore(): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:save(): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:save(): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:fillText(text: string, x: number, y: number, maxWidth?: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:fillText(text: string, x: number, y: number, maxWidth?: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:measureText(text: string): TextMetrics;
起始版本:8|类名:CanvasRenderer
方法 or 属性:measureText(text: string): TextMetrics;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:strokeText(text: string, x: number, y: number, maxWidth?: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:strokeText(text: string, x: number, y: number, maxWidth?: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:font: string;
起始版本:8|类名:CanvasRenderer
方法 or 属性:font: string;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:textAlign: CanvasTextAlign;
起始版本:8|类名:CanvasRenderer
方法 or 属性:textAlign: CanvasTextAlign;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:textBaseline: CanvasTextBaseline;
起始版本:8|类名:CanvasRenderer
方法 or 属性:textBaseline: CanvasTextBaseline;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:getTransform(): Matrix2D;
起始版本:8|类名:CanvasRenderer
方法 or 属性:getTransform(): Matrix2D;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:resetTransform(): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:resetTransform(): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:rotate(angle: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:rotate(angle: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:scale(x: number, y: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:scale(x: number, y: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:setTransform(transform?: Matrix2D): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:setTransform(transform?: Matrix2D): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:translate(x: number, y: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:translate(x: number, y: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:transferFromImageBitmap(bitmap: ImageBitmap): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:transferFromImageBitmap(bitmap: ImageBitmap): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderingContext2D
起始版本:8|类名:CanvasRenderingContext2D
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderingContext2D
方法 or 属性:readonly height: number;
起始版本:8|类名:CanvasRenderingContext2D
方法 or 属性:readonly height: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderingContext2D
方法 or 属性:readonly width: number;
起始版本:8|类名:CanvasRenderingContext2D
方法 or 属性:readonly width: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderingContext2D
方法 or 属性:toDataURL(type?: string, quality?: any): string;
起始版本:8|类名:CanvasRenderingContext2D
方法 or 属性:toDataURL(type?: string, quality?: any): string;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderingContext2D
方法 or 属性:constructor(settings?: RenderingContextSettings);
起始版本:8|类名:CanvasRenderingContext2D
方法 or 属性:constructor(settings?: RenderingContextSettings);
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:OffscreenCanvasRenderingContext2D
起始版本:8|类名:OffscreenCanvasRenderingContext2D
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:OffscreenCanvasRenderingContext2D
方法 or 属性:toDataURL(type?: string, quality?: any): string;
起始版本:8|类名:OffscreenCanvasRenderingContext2D
方法 or 属性:toDataURL(type?: string, quality?: any): string;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:OffscreenCanvasRenderingContext2D
方法 or 属性:transferToImageBitmap(): ImageBitmap;
起始版本:8|类名:OffscreenCanvasRenderingContext2D
方法 or 属性:transferToImageBitmap(): ImageBitmap;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:OffscreenCanvasRenderingContext2D
方法 or 属性:constructor(width: number, height: number, settings?: RenderingContextSettings);
起始版本:8|类名:OffscreenCanvasRenderingContext2D
方法 or 属性:constructor(width: number, height: number, settings?: RenderingContextSettings);
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:OffscreenCanvas
起始版本:8|类名:OffscreenCanvas
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:OffscreenCanvas
方法 or 属性:height: number;
起始版本:8|类名:OffscreenCanvas
方法 or 属性:height: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:OffscreenCanvas
方法 or 属性:width: number;
起始版本:8|类名:OffscreenCanvas
方法 or 属性:width: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:OffscreenCanvas
方法 or 属性:transferToImageBitmap(): ImageBitmap;
起始版本:8|类名:OffscreenCanvas
方法 or 属性:transferToImageBitmap(): ImageBitmap;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:OffscreenCanvas
方法 or 属性:constructor(width: number, height: number);
起始版本:8|类名:OffscreenCanvas
方法 or 属性:constructor(width: number, height: number);
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasInterface
起始版本:8|类名:CanvasInterface
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasInterface
方法 or 属性:(context?: CanvasRenderingContext2D): CanvasAttribute;
起始版本:8|类名:CanvasInterface
方法 or 属性:(context?: CanvasRenderingContext2D): CanvasAttribute;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasAttribute
方法 or 属性:onReady(event: () => void): CanvasAttribute;
起始版本:8|类名:CanvasAttribute
方法 or 属性:onReady(event: () => void): CanvasAttribute;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Canvas: CanvasInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Canvas: CanvasInterface;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const CanvasInstance: CanvasAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const CanvasInstance: CanvasAttribute;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CheckboxOptions
起始版本:8|类名:CheckboxOptions
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:CheckboxOptions
方法 or 属性:name?: string;
起始版本:8|类名:CheckboxOptions
方法 or 属性:name?: string;
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:CheckboxOptions
方法 or 属性:group?: string;
起始版本:8|类名:CheckboxOptions
方法 or 属性:group?: string;
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:CheckboxInterface
起始版本:8|类名:CheckboxInterface
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:CheckboxInterface
方法 or 属性:(options?: CheckboxOptions): CheckboxAttribute;
起始版本:8|类名:CheckboxInterface
方法 or 属性:(options?: CheckboxOptions): CheckboxAttribute;
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:CheckboxAttribute
起始版本:8|类名:CheckboxAttribute
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:CheckboxAttribute
方法 or 属性:select(value: boolean): CheckboxAttribute;
起始版本:8|类名:CheckboxAttribute
方法 or 属性:select(value: boolean): CheckboxAttribute;
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:CheckboxAttribute
方法 or 属性:selectedColor(value: ResourceColor): CheckboxAttribute;
起始版本:8|类名:CheckboxAttribute
方法 or 属性:selectedColor(value: ResourceColor): CheckboxAttribute;
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:CheckboxAttribute
方法 or 属性:onChange(callback: (value: boolean) => void): CheckboxAttribute;
起始版本:8|类名:CheckboxAttribute
方法 or 属性:onChange(callback: (value: boolean) => void): CheckboxAttribute;
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Checkbox: CheckboxInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Checkbox: CheckboxInterface;
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const CheckboxInstance: CheckboxAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const CheckboxInstance: CheckboxAttribute;
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:SelectStatus
起始版本:8|类名:SelectStatus
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:SelectStatus
方法 or 属性:All
起始版本:8|类名:SelectStatus
方法 or 属性:All
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:SelectStatus
方法 or 属性:Part
起始版本:8|类名:SelectStatus
方法 or 属性:Part
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:SelectStatus
方法 or 属性:None
起始版本:8|类名:SelectStatus
方法 or 属性:None
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupOptions
起始版本:8|类名:CheckboxGroupOptions
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupOptions
方法 or 属性:group?: string;
起始版本:8|类名:CheckboxGroupOptions
方法 or 属性:group?: string;
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupResult
起始版本:8|类名:CheckboxGroupResult
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupResult
方法 or 属性:name: Array\;
起始版本:8|类名:CheckboxGroupResult
方法 or 属性:name: Array\;
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupResult
方法 or 属性:status: SelectStatus;
起始版本:8|类名:CheckboxGroupResult
方法 or 属性:status: SelectStatus;
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupInterface
起始版本:8|类名:CheckboxGroupInterface
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupInterface
方法 or 属性:(options?: CheckboxGroupOptions): CheckboxGroupAttribute;
起始版本:8|类名:CheckboxGroupInterface
方法 or 属性:(options?: CheckboxGroupOptions): CheckboxGroupAttribute;
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupAttribute
起始版本:8|类名:CheckboxGroupAttribute
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupAttribute
方法 or 属性:selectAll(value: boolean): CheckboxGroupAttribute;
起始版本:8|类名:CheckboxGroupAttribute
方法 or 属性:selectAll(value: boolean): CheckboxGroupAttribute;
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupAttribute
方法 or 属性:selectedColor(value: ResourceColor): CheckboxGroupAttribute;
起始版本:8|类名:CheckboxGroupAttribute
方法 or 属性:selectedColor(value: ResourceColor): CheckboxGroupAttribute;
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupAttribute
方法 or 属性:onChange(callback: (event: CheckboxGroupResult) => void): CheckboxGroupAttribute;
起始版本:8|类名:CheckboxGroupAttribute
方法 or 属性:onChange(callback: (event: CheckboxGroupResult) => void): CheckboxGroupAttribute;
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const CheckboxGroup: CheckboxGroupInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const CheckboxGroup: CheckboxGroupInterface;
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const CheckboxGroupInstance: CheckboxGroupAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const CheckboxGroupInstance: CheckboxGroupAttribute;
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CircleOptions
起始版本:7|类名:CircleOptions
起始版本:9|circle.d.ts| +|起始版本有变化|类名:CircleOptions
方法 or 属性:width?: string \| number;
起始版本:7|类名:CircleOptions
方法 or 属性:width?: string \| number;
起始版本:9|circle.d.ts| +|起始版本有变化|类名:CircleOptions
方法 or 属性:height?: string \| number;
起始版本:7|类名:CircleOptions
方法 or 属性:height?: string \| number;
起始版本:9|circle.d.ts| +|起始版本有变化|类名:CircleInterface
起始版本:7|类名:CircleInterface
起始版本:9|circle.d.ts| +|起始版本有变化|类名:CircleInterface
方法 or 属性:new (value?: CircleOptions): CircleAttribute;
起始版本:7|类名:CircleInterface
方法 or 属性:new (value?: CircleOptions): CircleAttribute;
起始版本:9|circle.d.ts| +|起始版本有变化|类名:CircleInterface
方法 or 属性:(value?: CircleOptions): CircleAttribute;
起始版本:7|类名:CircleInterface
方法 or 属性:(value?: CircleOptions): CircleAttribute;
起始版本:9|circle.d.ts| +|起始版本有变化|类名:CircleAttribute
起始版本:7|类名:CircleAttribute
起始版本:9|circle.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Circle: CircleInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Circle: CircleInterface;
起始版本:9|circle.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const CircleInstance: CircleAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const CircleInstance: CircleAttribute;
起始版本:9|circle.d.ts| +|起始版本有变化|类名:ColumnInterface
起始版本:7|类名:ColumnInterface
起始版本:9|column.d.ts| +|起始版本有变化|类名:ColumnInterface
方法 or 属性:(value?: { space?: string \| number }): ColumnAttribute;
起始版本:7|类名:ColumnInterface
方法 or 属性:(value?: { space?: string \| number }): ColumnAttribute;
起始版本:9|column.d.ts| +|起始版本有变化|类名:ColumnAttribute
起始版本:7|类名:ColumnAttribute
起始版本:9|column.d.ts| +|起始版本有变化|类名:ColumnAttribute
方法 or 属性:alignItems(value: HorizontalAlign): ColumnAttribute;
起始版本:7|类名:ColumnAttribute
方法 or 属性:alignItems(value: HorizontalAlign): ColumnAttribute;
起始版本:9|column.d.ts| +|起始版本有变化|类名:ColumnAttribute
方法 or 属性:justifyContent(value: FlexAlign): ColumnAttribute;
起始版本:8|类名:ColumnAttribute
方法 or 属性:justifyContent(value: FlexAlign): ColumnAttribute;
起始版本:9|column.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Column: ColumnInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Column: ColumnInterface;
起始版本:9|column.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ColumnInstance: ColumnAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ColumnInstance: ColumnAttribute;
起始版本:9|column.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ColumnSplitInstance: ColumnSplitAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ColumnSplitInstance: ColumnSplitAttribute;
起始版本:7|column_split.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ColumnSplit: ColumnSplitInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const ColumnSplit: ColumnSplitInterface;
起始版本:7|column_split.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Component: ClassDecorator;
起始版本:7|类名:global
方法 or 属性:declare const Component: ClassDecorator;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Observed: ClassDecorator;
起始版本:7|类名:global
方法 or 属性:declare const Observed: ClassDecorator;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Preview: ClassDecorator & ((value: PreviewParams) => ClassDecorator);
起始版本:7|类名:global
方法 or 属性:declare const Preview: ClassDecorator & ((value: PreviewParams) => ClassDecorator);
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const BuilderParam: PropertyDecorator;
起始版本:7|类名:global
方法 or 属性:declare const BuilderParam: PropertyDecorator;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const State: PropertyDecorator;
起始版本:7|类名:global
方法 or 属性:declare const State: PropertyDecorator;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Prop: PropertyDecorator;
起始版本:7|类名:global
方法 or 属性:declare const Prop: PropertyDecorator;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Link: PropertyDecorator;
起始版本:7|类名:global
方法 or 属性:declare const Link: PropertyDecorator;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ObjectLink: PropertyDecorator;
起始版本:7|类名:global
方法 or 属性:declare const ObjectLink: PropertyDecorator;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Provide: PropertyDecorator & ((value: string) => PropertyDecorator);
起始版本:7|类名:global
方法 or 属性:declare const Provide: PropertyDecorator & ((value: string) => PropertyDecorator);
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Consume: PropertyDecorator & ((value: string) => PropertyDecorator);
起始版本:7|类名:global
方法 or 属性:declare const Consume: PropertyDecorator & ((value: string) => PropertyDecorator);
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Watch: (value: string) => PropertyDecorator;
起始版本:7|类名:global
方法 or 属性:declare const Watch: (value: string) => PropertyDecorator;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Builder: MethodDecorator;
起始版本:7|类名:global
方法 or 属性:declare const Builder: MethodDecorator;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Styles: MethodDecorator;
起始版本:8|类名:global
方法 or 属性:declare const Styles: MethodDecorator;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Extend: MethodDecorator & ((value: any) => MethodDecorator);
起始版本:7|类名:global
方法 or 属性:declare const Extend: MethodDecorator & ((value: any) => MethodDecorator);
起始版本:9|common.d.ts| +|起始版本有变化|类名:Configuration
起始版本:7|类名:Configuration
起始版本:9|common.d.ts| +|起始版本有变化|类名:Configuration
方法 or 属性:readonly colorMode: string;
起始版本:7|类名:Configuration
方法 or 属性:readonly colorMode: string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:Configuration
方法 or 属性:readonly fontScale: number;
起始版本:7|类名:Configuration
方法 or 属性:readonly fontScale: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:Rectangle
起始版本:8|类名:Rectangle
起始版本:9|common.d.ts| +|起始版本有变化|类名:Rectangle
方法 or 属性:x?: Length;
起始版本:8|类名:Rectangle
方法 or 属性:x?: Length;
起始版本:9|common.d.ts| +|起始版本有变化|类名:Rectangle
方法 or 属性:y?: Length;
起始版本:8|类名:Rectangle
方法 or 属性:y?: Length;
起始版本:9|common.d.ts| +|起始版本有变化|类名:Rectangle
方法 or 属性:width?: Length;
起始版本:8|类名:Rectangle
方法 or 属性:width?: Length;
起始版本:9|common.d.ts| +|起始版本有变化|类名:Rectangle
方法 or 属性:height?: Length;
起始版本:8|类名:Rectangle
方法 or 属性:height?: Length;
起始版本:9|common.d.ts| +|起始版本有变化|类名:
方法 or 属性:function $r(value: string, ...params: any[]): Resource;
起始版本:7|类名:
方法 or 属性:function $r(value: string, ...params: any[]): Resource;
起始版本:9|common.d.ts| +|起始版本有变化|类名:
方法 or 属性:function $rawfile(value: string): Resource;
起始版本:7|类名:
方法 or 属性:function $rawfile(value: string): Resource;
起始版本:9|common.d.ts| +|起始版本有变化|类名:AnimateParam
起始版本:7|类名:AnimateParam
起始版本:9|common.d.ts| +|起始版本有变化|类名:AnimateParam
方法 or 属性:duration?: number;
起始版本:7|类名:AnimateParam
方法 or 属性:duration?: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:AnimateParam
方法 or 属性:playMode?: PlayMode;
起始版本:7|类名:AnimateParam
方法 or 属性:playMode?: PlayMode;
起始版本:9|common.d.ts| +|起始版本有变化|类名:AnimateParam
方法 or 属性:onFinish?: () => void;
起始版本:7|类名:AnimateParam
方法 or 属性:onFinish?: () => void;
起始版本:9|common.d.ts| +|起始版本有变化|类名:TranslateOptions
起始版本:7|类名:TranslateOptions
起始版本:9|common.d.ts| +|起始版本有变化|类名:TranslateOptions
方法 or 属性:x?: number \| string;
起始版本:7|类名:TranslateOptions
方法 or 属性:x?: number \| string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:TranslateOptions
方法 or 属性:y?: number \| string;
起始版本:7|类名:TranslateOptions
方法 or 属性:y?: number \| string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:TranslateOptions
方法 or 属性:z?: number \| string;
起始版本:7|类名:TranslateOptions
方法 or 属性:z?: number \| string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:ScaleOptions
起始版本:7|类名:ScaleOptions
起始版本:9|common.d.ts| +|起始版本有变化|类名:ScaleOptions
方法 or 属性:x?: number;
起始版本:7|类名:ScaleOptions
方法 or 属性:x?: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:ScaleOptions
方法 or 属性:y?: number;
起始版本:7|类名:ScaleOptions
方法 or 属性:y?: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:ScaleOptions
方法 or 属性:z?: number;
起始版本:7|类名:ScaleOptions
方法 or 属性:z?: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:ScaleOptions
方法 or 属性:centerX?: number \| string;
起始版本:7|类名:ScaleOptions
方法 or 属性:centerX?: number \| string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:ScaleOptions
方法 or 属性:centerY?: number \| string;
起始版本:7|类名:ScaleOptions
方法 or 属性:centerY?: number \| string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:RotateOptions
方法 or 属性:x?: number;
起始版本:7|类名:RotateOptions
方法 or 属性:x?: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:RotateOptions
方法 or 属性:y?: number;
起始版本:7|类名:RotateOptions
方法 or 属性:y?: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:RotateOptions
方法 or 属性:z?: number;
起始版本:7|类名:RotateOptions
方法 or 属性:z?: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:RotateOptions
方法 or 属性:centerX?: number \| string;
起始版本:7|类名:RotateOptions
方法 or 属性:centerX?: number \| string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:RotateOptions
方法 or 属性:centerY?: number \| string;
起始版本:7|类名:RotateOptions
方法 or 属性:centerY?: number \| string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:RotateOptions
方法 or 属性:angle: number \| string;
起始版本:7|类名:RotateOptions
方法 or 属性:angle: number \| string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:TransitionOptions
起始版本:7|类名:TransitionOptions
起始版本:9|common.d.ts| +|起始版本有变化|类名:TransitionOptions
方法 or 属性:type?: TransitionType;
起始版本:7|类名:TransitionOptions
方法 or 属性:type?: TransitionType;
起始版本:9|common.d.ts| +|起始版本有变化|类名:TransitionOptions
方法 or 属性:opacity?: number;
起始版本:7|类名:TransitionOptions
方法 or 属性:opacity?: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:TransitionOptions
方法 or 属性:translate?: TranslateOptions;
起始版本:7|类名:TransitionOptions
方法 or 属性:translate?: TranslateOptions;
起始版本:9|common.d.ts| +|起始版本有变化|类名:TransitionOptions
方法 or 属性:scale?: ScaleOptions;
起始版本:7|类名:TransitionOptions
方法 or 属性:scale?: ScaleOptions;
起始版本:9|common.d.ts| +|起始版本有变化|类名:TransitionOptions
方法 or 属性:rotate?: RotateOptions;
起始版本:7|类名:TransitionOptions
方法 or 属性:rotate?: RotateOptions;
起始版本:9|common.d.ts| +|起始版本有变化|类名:
方法 or 属性:function animateTo(value: AnimateParam, event: () => void): void;
起始版本:7|类名:
方法 or 属性:function animateTo(value: AnimateParam, event: () => void): void;
起始版本:9|common.d.ts| +|起始版本有变化|类名:
方法 or 属性:function vp2px(value: number): number;
起始版本:7|类名:
方法 or 属性:function vp2px(value: number): number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:
方法 or 属性:function px2vp(value: number): number;
起始版本:7|类名:
方法 or 属性:function px2vp(value: number): number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:
方法 or 属性:function fp2px(value: number): number;
起始版本:7|类名:
方法 or 属性:function fp2px(value: number): number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:
方法 or 属性:function px2fp(value: number): number;
起始版本:7|类名:
方法 or 属性:function px2fp(value: number): number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:
方法 or 属性:function lpx2px(value: number): number;
起始版本:7|类名:
方法 or 属性:function lpx2px(value: number): number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:
方法 or 属性:function px2lpx(value: number): number;
起始版本:7|类名:
方法 or 属性:function px2lpx(value: number): number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:EventTarget
起始版本:8|类名:EventTarget
起始版本:9|common.d.ts| +|起始版本有变化|类名:EventTarget
方法 or 属性:area: Area;
起始版本:8|类名:EventTarget
方法 or 属性:area: Area;
起始版本:9|common.d.ts| +|起始版本有变化|类名:BaseEvent
起始版本:8|类名:BaseEvent
起始版本:9|common.d.ts| +|起始版本有变化|类名:BaseEvent
方法 or 属性:target: EventTarget;
起始版本:8|类名:BaseEvent
方法 or 属性:target: EventTarget;
起始版本:9|common.d.ts| +|起始版本有变化|类名:BaseEvent
方法 or 属性:timestamp: number;
起始版本:8|类名:BaseEvent
方法 or 属性:timestamp: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:BaseEvent
方法 or 属性:source: SourceType;
起始版本:8|类名:BaseEvent
方法 or 属性:source: SourceType;
起始版本:9|common.d.ts| +|起始版本有变化|类名:ClickEvent
起始版本:7|类名:ClickEvent
起始版本:9|common.d.ts| +|起始版本有变化|类名:ClickEvent
方法 or 属性:screenX: number;
起始版本:7|类名:ClickEvent
方法 or 属性:screenX: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:ClickEvent
方法 or 属性:screenY: number;
起始版本:7|类名:ClickEvent
方法 or 属性:screenY: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:ClickEvent
方法 or 属性:x: number;
起始版本:7|类名:ClickEvent
方法 or 属性:x: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:ClickEvent
方法 or 属性:y: number;
起始版本:7|类名:ClickEvent
方法 or 属性:y: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:StateStyles
起始版本:8|类名:StateStyles
起始版本:9|common.d.ts| +|起始版本有变化|类名:StateStyles
方法 or 属性:normal?: any;
起始版本:8|类名:StateStyles
方法 or 属性:normal?: any;
起始版本:9|common.d.ts| +|起始版本有变化|类名:StateStyles
方法 or 属性:pressed?: any;
起始版本:8|类名:StateStyles
方法 or 属性:pressed?: any;
起始版本:9|common.d.ts| +|起始版本有变化|类名:StateStyles
方法 or 属性:disabled?: any;
起始版本:8|类名:StateStyles
方法 or 属性:disabled?: any;
起始版本:9|common.d.ts| +|起始版本有变化|类名:StateStyles
方法 or 属性:focused?: any;
起始版本:8|类名:StateStyles
方法 or 属性:focused?: any;
起始版本:9|common.d.ts| +|起始版本有变化|类名:StateStyles
方法 or 属性:clicked?: any;
起始版本:8|类名:StateStyles
方法 or 属性:clicked?: any;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
起始版本:7|类名:CommonMethod
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:constructor();
起始版本:7|类名:CommonMethod
方法 or 属性:constructor();
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:width(value: Length): T;
起始版本:7|类名:CommonMethod
方法 or 属性:width(value: Length): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:height(value: Length): T;
起始版本:7|类名:CommonMethod
方法 or 属性:height(value: Length): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:responseRegion(value: Array\ \| Rectangle): T;
起始版本:8|类名:CommonMethod
方法 or 属性:responseRegion(value: Array\ \| Rectangle): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:size(value: SizeOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:size(value: SizeOptions): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:constraintSize(value: ConstraintSizeOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:constraintSize(value: ConstraintSizeOptions): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:layoutWeight(value: number \| string): T;
起始版本:7|类名:CommonMethod
方法 or 属性:layoutWeight(value: number \| string): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:padding(value: Padding \| Length): T;
起始版本:7|类名:CommonMethod
方法 or 属性:padding(value: Padding \| Length): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:margin(value: Margin \| Length): T;
起始版本:7|类名:CommonMethod
方法 or 属性:margin(value: Margin \| Length): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:backgroundColor(value: ResourceColor): T;
起始版本:7|类名:CommonMethod
方法 or 属性:backgroundColor(value: ResourceColor): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:backgroundImage(src: ResourceStr, repeat?: ImageRepeat): T;
起始版本:7|类名:CommonMethod
方法 or 属性:backgroundImage(src: ResourceStr, repeat?: ImageRepeat): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:backgroundImageSize(value: SizeOptions \| ImageSize): T;
起始版本:7|类名:CommonMethod
方法 or 属性:backgroundImageSize(value: SizeOptions \| ImageSize): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:backgroundImagePosition(value: Position \| Alignment): T;
起始版本:7|类名:CommonMethod
方法 or 属性:backgroundImagePosition(value: Position \| Alignment): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:opacity(value: number \| Resource): T;
起始版本:7|类名:CommonMethod
方法 or 属性:opacity(value: number \| Resource): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:border(value: BorderOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:border(value: BorderOptions): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:borderStyle(value: BorderStyle): T;
起始版本:7|类名:CommonMethod
方法 or 属性:borderStyle(value: BorderStyle): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:borderWidth(value: Length): T;
起始版本:7|类名:CommonMethod
方法 or 属性:borderWidth(value: Length): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:borderColor(value: ResourceColor): T;
起始版本:7|类名:CommonMethod
方法 or 属性:borderColor(value: ResourceColor): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:borderRadius(value: Length): T;
起始版本:7|类名:CommonMethod
方法 or 属性:borderRadius(value: Length): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:onClick(event: (event?: ClickEvent) => void): T;
起始版本:7|类名:CommonMethod
方法 or 属性:onClick(event: (event?: ClickEvent) => void): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:animation(value: AnimateParam): T;
起始版本:7|类名:CommonMethod
方法 or 属性:animation(value: AnimateParam): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:transition(value: TransitionOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:transition(value: TransitionOptions): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:blur(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:blur(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:brightness(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:brightness(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:contrast(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:contrast(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:grayscale(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:grayscale(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:colorBlend(value: Color \| string \| Resource): T;
起始版本:7|类名:CommonMethod
方法 or 属性:colorBlend(value: Color \| string \| Resource): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:saturate(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:saturate(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:sepia(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:sepia(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:invert(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:invert(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:hueRotate(value: number \| string): T;
起始版本:7|类名:CommonMethod
方法 or 属性:hueRotate(value: number \| string): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:backdropBlur(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:backdropBlur(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:translate(value: TranslateOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:translate(value: TranslateOptions): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:scale(value: ScaleOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:scale(value: ScaleOptions): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:rotate(value: RotateOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:rotate(value: RotateOptions): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:onAppear(event: () => void): T;
起始版本:7|类名:CommonMethod
方法 or 属性:onAppear(event: () => void): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:onDisAppear(event: () => void): T;
起始版本:7|类名:CommonMethod
方法 or 属性:onDisAppear(event: () => void): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:visibility(value: Visibility): T;
起始版本:7|类名:CommonMethod
方法 or 属性:visibility(value: Visibility): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:flexGrow(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:flexGrow(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:flexShrink(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:flexShrink(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:flexBasis(value: number \| string): T;
起始版本:7|类名:CommonMethod
方法 or 属性:flexBasis(value: number \| string): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:alignSelf(value: ItemAlign): T;
起始版本:7|类名:CommonMethod
方法 or 属性:alignSelf(value: ItemAlign): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:displayPriority(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:displayPriority(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:zIndex(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:zIndex(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:direction(value: Direction): T;
起始版本:7|类名:CommonMethod
方法 or 属性:direction(value: Direction): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:align(value: Alignment): T;
起始版本:7|类名:CommonMethod
方法 or 属性:align(value: Alignment): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:position(value: Position): T;
起始版本:7|类名:CommonMethod
方法 or 属性:position(value: Position): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:markAnchor(value: Position): T;
起始版本:7|类名:CommonMethod
方法 or 属性:markAnchor(value: Position): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:offset(value: Position): T;
起始版本:7|类名:CommonMethod
方法 or 属性:offset(value: Position): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:enabled(value: boolean): T;
起始版本:7|类名:CommonMethod
方法 or 属性:enabled(value: boolean): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:aspectRatio(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:aspectRatio(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:overlay(value: string, options?: { align?: Alignment; offset?: { x?: number; y?: number } }): T;
起始版本:7|类名:CommonMethod
方法 or 属性:overlay(value: string, options?: { align?: Alignment; offset?: { x?: number; y?: number } }): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:linearGradient(value: {
angle?: number \| string;
direction?: GradientDirection;
colors: Array\;
repeating?: boolean;
}): T;
起始版本:7|类名:CommonMethod
方法 or 属性:linearGradient(value: {
angle?: number \| string;
direction?: GradientDirection;
colors: Array\;
repeating?: boolean;
}): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:sweepGradient(value: {
center: Array\;
start?: number \| string;
end?: number \| string;
rotation?: number \| string;
colors: Array\;
repeating?: boolean;
}): T;
起始版本:7|类名:CommonMethod
方法 or 属性:sweepGradient(value: {
center: Array\;
start?: number \| string;
end?: number \| string;
rotation?: number \| string;
colors: Array\;
repeating?: boolean;
}): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:radialGradient(value: { center: Array\; radius: number \| string; colors: Array\; repeating?: boolean }): T;
起始版本:7|类名:CommonMethod
方法 or 属性:radialGradient(value: { center: Array\; radius: number \| string; colors: Array\; repeating?: boolean }): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:shadow(value: {
radius: number \| Resource;
color?: Color \| string \| Resource;
offsetX?: number \| Resource;
offsetY?: number \| Resource;
}): T;
起始版本:7|类名:CommonMethod
方法 or 属性:shadow(value: {
radius: number \| Resource;
color?: Color \| string \| Resource;
offsetX?: number \| Resource;
offsetY?: number \| Resource;
}): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:clip(value: boolean \| CircleAttribute \| EllipseAttribute \| PathAttribute \| RectAttribute): T;
起始版本:7|类名:CommonMethod
方法 or 属性:clip(value: boolean \| CircleAttribute \| EllipseAttribute \| PathAttribute \| RectAttribute): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:mask(value: CircleAttribute \| EllipseAttribute \| PathAttribute \| RectAttribute): T;
起始版本:7|类名:CommonMethod
方法 or 属性:mask(value: CircleAttribute \| EllipseAttribute \| PathAttribute \| RectAttribute): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:id(value: string): T;
起始版本:8|类名:CommonMethod
方法 or 属性:id(value: string): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:stateStyles(value: StateStyles): T;
起始版本:8|类名:CommonMethod
方法 or 属性:stateStyles(value: StateStyles): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonAttribute
起始版本:7|类名:CommonAttribute
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonInterface
起始版本:7|类名:CommonInterface
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const CommonInstance: CommonAttribute;
起始版本:7|类名:global
方法 or 属性:declare const CommonInstance: CommonAttribute;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Common: CommonInterface;
起始版本:7|类名:global
方法 or 属性:declare const Common: CommonInterface;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
起始版本:7|类名:CommonShapeMethod
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:constructor();
起始版本:7|类名:CommonShapeMethod
方法 or 属性:constructor();
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:stroke(value: ResourceColor): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:stroke(value: ResourceColor): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:fill(value: ResourceColor): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:fill(value: ResourceColor): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeDashOffset(value: number \| string): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeDashOffset(value: number \| string): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeLineCap(value: LineCapStyle): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeLineCap(value: LineCapStyle): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeLineJoin(value: LineJoinStyle): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeLineJoin(value: LineJoinStyle): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeMiterLimit(value: number \| string): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeMiterLimit(value: number \| string): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeOpacity(value: number \| string \| Resource): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeOpacity(value: number \| string \| Resource): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:fillOpacity(value: number \| string \| Resource): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:fillOpacity(value: number \| string \| Resource): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeWidth(value: Length): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeWidth(value: Length): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:antiAlias(value: boolean): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:antiAlias(value: boolean): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeDashArray(value: Array\): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeDashArray(value: Array\): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CustomComponent
方法 or 属性:build(): void;
起始版本:7|类名:CustomComponent
方法 or 属性:build(): void;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CustomComponent
方法 or 属性:aboutToAppear?(): void;
起始版本:7|类名:CustomComponent
方法 or 属性:aboutToAppear?(): void;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CustomComponent
方法 or 属性:aboutToDisappear?(): void;
起始版本:7|类名:CustomComponent
方法 or 属性:aboutToDisappear?(): void;
起始版本:9|common.d.ts| +|起始版本有变化|类名:View
起始版本:7|类名:View
起始版本:9|common.d.ts| +|起始版本有变化|类名:CounterInterface
起始版本:7|类名:CounterInterface
起始版本:9|counter.d.ts| +|起始版本有变化|类名:CounterInterface
方法 or 属性:(): CounterAttribute;
起始版本:7|类名:CounterInterface
方法 or 属性:(): CounterAttribute;
起始版本:9|counter.d.ts| +|起始版本有变化|类名:CounterAttribute
起始版本:7|类名:CounterAttribute
起始版本:9|counter.d.ts| +|起始版本有变化|类名:CounterAttribute
方法 or 属性:onInc(event: () => void): CounterAttribute;
起始版本:7|类名:CounterAttribute
方法 or 属性:onInc(event: () => void): CounterAttribute;
起始版本:9|counter.d.ts| +|起始版本有变化|类名:CounterAttribute
方法 or 属性:onDec(event: () => void): CounterAttribute;
起始版本:7|类名:CounterAttribute
方法 or 属性:onDec(event: () => void): CounterAttribute;
起始版本:9|counter.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const CounterInstance: CounterAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const CounterInstance: CounterAttribute;
起始版本:9|counter.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Counter: CounterInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Counter: CounterInterface;
起始版本:9|counter.d.ts| +|起始版本有变化|类名:DataPanelType
起始版本:8|类名:DataPanelType
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:DataPanelType
方法 or 属性:Line
起始版本:8|类名:DataPanelType
方法 or 属性:Line
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:DataPanelType
方法 or 属性:Circle
起始版本:8|类名:DataPanelType
方法 or 属性:Circle
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:DataPanelOptions
起始版本:7|类名:DataPanelOptions
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:DataPanelOptions
方法 or 属性:values: number[];
起始版本:7|类名:DataPanelOptions
方法 or 属性:values: number[];
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:DataPanelOptions
方法 or 属性:max?: number;
起始版本:7|类名:DataPanelOptions
方法 or 属性:max?: number;
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:DataPanelOptions
方法 or 属性:type?: DataPanelType;
起始版本:8|类名:DataPanelOptions
方法 or 属性:type?: DataPanelType;
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:DataPanelInterface
起始版本:7|类名:DataPanelInterface
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:DataPanelInterface
方法 or 属性:(options: DataPanelOptions): DataPanelAttribute;
起始版本:7|类名:DataPanelInterface
方法 or 属性:(options: DataPanelOptions): DataPanelAttribute;
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:DataPanelAttribute
起始版本:7|类名:DataPanelAttribute
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:DataPanelAttribute
方法 or 属性:closeEffect(value: boolean): DataPanelAttribute;
起始版本:7|类名:DataPanelAttribute
方法 or 属性:closeEffect(value: boolean): DataPanelAttribute;
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const DataPanel: DataPanelInterface
起始版本:N/A|类名:global
方法 or 属性:declare const DataPanel: DataPanelInterface
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const DataPanelInstance: DataPanelAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const DataPanelInstance: DataPanelAttribute;
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const DatePicker: DatePickerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const DatePicker: DatePickerInterface;
起始版本:8|date_picker.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const DatePickerInstance: DatePickerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const DatePickerInstance: DatePickerAttribute;
起始版本:8|date_picker.d.ts| +|起始版本有变化|类名:DividerInterface
起始版本:7|类名:DividerInterface
起始版本:9|divider.d.ts| +|起始版本有变化|类名:DividerInterface
方法 or 属性:(): DividerAttribute;
起始版本:7|类名:DividerInterface
方法 or 属性:(): DividerAttribute;
起始版本:9|divider.d.ts| +|起始版本有变化|类名:DividerAttribute
起始版本:7|类名:DividerAttribute
起始版本:9|divider.d.ts| +|起始版本有变化|类名:DividerAttribute
方法 or 属性:vertical(value: boolean): DividerAttribute;
起始版本:7|类名:DividerAttribute
方法 or 属性:vertical(value: boolean): DividerAttribute;
起始版本:9|divider.d.ts| +|起始版本有变化|类名:DividerAttribute
方法 or 属性:color(value: ResourceColor): DividerAttribute;
起始版本:7|类名:DividerAttribute
方法 or 属性:color(value: ResourceColor): DividerAttribute;
起始版本:9|divider.d.ts| +|起始版本有变化|类名:DividerAttribute
方法 or 属性:strokeWidth(value: number \| string): DividerAttribute;
起始版本:7|类名:DividerAttribute
方法 or 属性:strokeWidth(value: number \| string): DividerAttribute;
起始版本:9|divider.d.ts| +|起始版本有变化|类名:DividerAttribute
方法 or 属性:lineCap(value: LineCapStyle): DividerAttribute;
起始版本:7|类名:DividerAttribute
方法 or 属性:lineCap(value: LineCapStyle): DividerAttribute;
起始版本:9|divider.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Divider: DividerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Divider: DividerInterface;
起始版本:9|divider.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const DividerInstance: DividerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const DividerInstance: DividerAttribute;
起始版本:9|divider.d.ts| +|起始版本有变化|类名:EllipseInterface
起始版本:7|类名:EllipseInterface
起始版本:9|ellipse.d.ts| +|起始版本有变化|类名:EllipseInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): EllipseAttribute;
起始版本:7|类名:EllipseInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): EllipseAttribute;
起始版本:9|ellipse.d.ts| +|起始版本有变化|类名:EllipseInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): EllipseAttribute;
起始版本:7|类名:EllipseInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): EllipseAttribute;
起始版本:9|ellipse.d.ts| +|起始版本有变化|类名:EllipseAttribute
起始版本:7|类名:EllipseAttribute
起始版本:9|ellipse.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Ellipse: EllipseInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Ellipse: EllipseInterface;
起始版本:9|ellipse.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const EllipseInstance: EllipseAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const EllipseInstance: EllipseAttribute;
起始版本:9|ellipse.d.ts| +|起始版本有变化|类名:Color
起始版本:7|类名:Color
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:White
起始版本:7|类名:Color
方法 or 属性:White
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:Black
起始版本:7|类名:Color
方法 or 属性:Black
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:Blue
起始版本:7|类名:Color
方法 or 属性:Blue
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:Brown
起始版本:7|类名:Color
方法 or 属性:Brown
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:Gray
起始版本:7|类名:Color
方法 or 属性:Gray
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:Green
起始版本:7|类名:Color
方法 or 属性:Green
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:Grey
起始版本:7|类名:Color
方法 or 属性:Grey
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:Orange
起始版本:7|类名:Color
方法 or 属性:Orange
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:Pink
起始版本:7|类名:Color
方法 or 属性:Pink
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:Red
起始版本:7|类名:Color
方法 or 属性:Red
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:Yellow
起始版本:7|类名:Color
方法 or 属性:Yellow
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageFit
起始版本:7|类名:ImageFit
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageFit
方法 or 属性:Contain
起始版本:7|类名:ImageFit
方法 or 属性:Contain
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageFit
方法 or 属性:Cover
起始版本:7|类名:ImageFit
方法 or 属性:Cover
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageFit
方法 or 属性:Auto
起始版本:7|类名:ImageFit
方法 or 属性:Auto
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageFit
方法 or 属性:Fill
起始版本:7|类名:ImageFit
方法 or 属性:Fill
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageFit
方法 or 属性:ScaleDown
起始版本:7|类名:ImageFit
方法 or 属性:ScaleDown
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageFit
方法 or 属性:None
起始版本:7|类名:ImageFit
方法 or 属性:None
起始版本:9|enums.d.ts| +|起始版本有变化|类名:BorderStyle
起始版本:7|类名:BorderStyle
起始版本:9|enums.d.ts| +|起始版本有变化|类名:BorderStyle
方法 or 属性:Dotted
起始版本:7|类名:BorderStyle
方法 or 属性:Dotted
起始版本:9|enums.d.ts| +|起始版本有变化|类名:BorderStyle
方法 or 属性:Dashed
起始版本:7|类名:BorderStyle
方法 or 属性:Dashed
起始版本:9|enums.d.ts| +|起始版本有变化|类名:BorderStyle
方法 or 属性:Solid
起始版本:7|类名:BorderStyle
方法 or 属性:Solid
起始版本:9|enums.d.ts| +|起始版本有变化|类名:LineJoinStyle
起始版本:7|类名:LineJoinStyle
起始版本:9|enums.d.ts| +|起始版本有变化|类名:LineJoinStyle
方法 or 属性:Miter
起始版本:7|类名:LineJoinStyle
方法 or 属性:Miter
起始版本:9|enums.d.ts| +|起始版本有变化|类名:LineJoinStyle
方法 or 属性:Round
起始版本:7|类名:LineJoinStyle
方法 or 属性:Round
起始版本:9|enums.d.ts| +|起始版本有变化|类名:LineJoinStyle
方法 or 属性:Bevel
起始版本:7|类名:LineJoinStyle
方法 or 属性:Bevel
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TouchType
起始版本:7|类名:TouchType
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TouchType
方法 or 属性:Down
起始版本:7|类名:TouchType
方法 or 属性:Down
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TouchType
方法 or 属性:Up
起始版本:7|类名:TouchType
方法 or 属性:Up
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TouchType
方法 or 属性:Move
起始版本:7|类名:TouchType
方法 or 属性:Move
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TouchType
方法 or 属性:Cancel
起始版本:7|类名:TouchType
方法 or 属性:Cancel
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseButton
起始版本:8|类名:MouseButton
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseButton
方法 or 属性:Left
起始版本:8|类名:MouseButton
方法 or 属性:Left
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseButton
方法 or 属性:Right
起始版本:8|类名:MouseButton
方法 or 属性:Right
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseButton
方法 or 属性:Middle
起始版本:8|类名:MouseButton
方法 or 属性:Middle
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseButton
方法 or 属性:Back
起始版本:8|类名:MouseButton
方法 or 属性:Back
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseButton
方法 or 属性:Forward
起始版本:8|类名:MouseButton
方法 or 属性:Forward
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseButton
方法 or 属性:None
起始版本:8|类名:MouseButton
方法 or 属性:None
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseAction
起始版本:8|类名:MouseAction
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseAction
方法 or 属性:Press
起始版本:8|类名:MouseAction
方法 or 属性:Press
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseAction
方法 or 属性:Release
起始版本:8|类名:MouseAction
方法 or 属性:Release
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseAction
方法 or 属性:Move
起始版本:8|类名:MouseAction
方法 or 属性:Move
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseAction
方法 or 属性:Hover
起始版本:8|类名:MouseAction
方法 or 属性:Hover
起始版本:9|enums.d.ts| +|起始版本有变化|类名:AnimationStatus
起始版本:7|类名:AnimationStatus
起始版本:9|enums.d.ts| +|起始版本有变化|类名:AnimationStatus
方法 or 属性:Initial
起始版本:7|类名:AnimationStatus
方法 or 属性:Initial
起始版本:9|enums.d.ts| +|起始版本有变化|类名:AnimationStatus
方法 or 属性:Running
起始版本:7|类名:AnimationStatus
方法 or 属性:Running
起始版本:9|enums.d.ts| +|起始版本有变化|类名:AnimationStatus
方法 or 属性:Paused
起始版本:7|类名:AnimationStatus
方法 or 属性:Paused
起始版本:9|enums.d.ts| +|起始版本有变化|类名:AnimationStatus
方法 or 属性:Stopped
起始版本:7|类名:AnimationStatus
方法 or 属性:Stopped
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
起始版本:7|类名:Curve
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:Linear
起始版本:7|类名:Curve
方法 or 属性:Linear
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:Ease
起始版本:7|类名:Curve
方法 or 属性:Ease
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:EaseIn
起始版本:7|类名:Curve
方法 or 属性:EaseIn
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:EaseOut
起始版本:7|类名:Curve
方法 or 属性:EaseOut
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:EaseInOut
起始版本:7|类名:Curve
方法 or 属性:EaseInOut
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:FastOutSlowIn
起始版本:7|类名:Curve
方法 or 属性:FastOutSlowIn
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:LinearOutSlowIn
起始版本:7|类名:Curve
方法 or 属性:LinearOutSlowIn
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:FastOutLinearIn
起始版本:7|类名:Curve
方法 or 属性:FastOutLinearIn
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:ExtremeDeceleration
起始版本:7|类名:Curve
方法 or 属性:ExtremeDeceleration
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:Sharp
起始版本:7|类名:Curve
方法 or 属性:Sharp
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:Rhythm
起始版本:7|类名:Curve
方法 or 属性:Rhythm
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:Smooth
起始版本:7|类名:Curve
方法 or 属性:Smooth
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:Friction
起始版本:7|类名:Curve
方法 or 属性:Friction
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FillMode
起始版本:7|类名:FillMode
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FillMode
方法 or 属性:None
起始版本:7|类名:FillMode
方法 or 属性:None
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FillMode
方法 or 属性:Forwards
起始版本:7|类名:FillMode
方法 or 属性:Forwards
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FillMode
方法 or 属性:Backwards
起始版本:7|类名:FillMode
方法 or 属性:Backwards
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FillMode
方法 or 属性:Both
起始版本:7|类名:FillMode
方法 or 属性:Both
起始版本:9|enums.d.ts| +|起始版本有变化|类名:PlayMode
起始版本:7|类名:PlayMode
起始版本:9|enums.d.ts| +|起始版本有变化|类名:PlayMode
方法 or 属性:Normal
起始版本:7|类名:PlayMode
方法 or 属性:Normal
起始版本:9|enums.d.ts| +|起始版本有变化|类名:PlayMode
方法 or 属性:Reverse
起始版本:7|类名:PlayMode
方法 or 属性:Reverse
起始版本:9|enums.d.ts| +|起始版本有变化|类名:PlayMode
方法 or 属性:Alternate
起始版本:7|类名:PlayMode
方法 or 属性:Alternate
起始版本:9|enums.d.ts| +|起始版本有变化|类名:PlayMode
方法 or 属性:AlternateReverse
起始版本:7|类名:PlayMode
方法 or 属性:AlternateReverse
起始版本:9|enums.d.ts| +|起始版本有变化|类名:KeyType
起始版本:7|类名:KeyType
起始版本:9|enums.d.ts| +|起始版本有变化|类名:KeyType
方法 or 属性:Down
起始版本:7|类名:KeyType
方法 or 属性:Down
起始版本:9|enums.d.ts| +|起始版本有变化|类名:KeyType
方法 or 属性:Up
起始版本:7|类名:KeyType
方法 or 属性:Up
起始版本:9|enums.d.ts| +|起始版本有变化|类名:KeySource
起始版本:7|类名:KeySource
起始版本:9|enums.d.ts| +|起始版本有变化|类名:KeySource
方法 or 属性:Unknown
起始版本:7|类名:KeySource
方法 or 属性:Unknown
起始版本:9|enums.d.ts| +|起始版本有变化|类名:KeySource
方法 or 属性:Keyboard
起始版本:7|类名:KeySource
方法 or 属性:Keyboard
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Edge
起始版本:7|类名:Edge
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Edge
方法 or 属性:Top
起始版本:7|类名:Edge
方法 or 属性:Top
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Edge
方法 or 属性:Bottom
起始版本:7|类名:Edge
方法 or 属性:Bottom
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Edge
方法 or 属性:Start
起始版本:7|类名:Edge
方法 or 属性:Start
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Edge
方法 or 属性:End
起始版本:7|类名:Edge
方法 or 属性:End
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Week
起始版本:7|类名:Week
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Week
方法 or 属性:Mon
起始版本:7|类名:Week
方法 or 属性:Mon
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Week
方法 or 属性:Tue
起始版本:7|类名:Week
方法 or 属性:Tue
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Week
方法 or 属性:Wed
起始版本:7|类名:Week
方法 or 属性:Wed
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Week
方法 or 属性:Thur
起始版本:7|类名:Week
方法 or 属性:Thur
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Week
方法 or 属性:Fri
起始版本:7|类名:Week
方法 or 属性:Fri
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Week
方法 or 属性:Sat
起始版本:7|类名:Week
方法 or 属性:Sat
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Week
方法 or 属性:Sun
起始版本:7|类名:Week
方法 or 属性:Sun
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Direction
起始版本:7|类名:Direction
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Direction
方法 or 属性:Ltr
起始版本:7|类名:Direction
方法 or 属性:Ltr
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Direction
方法 or 属性:Rtl
起始版本:7|类名:Direction
方法 or 属性:Rtl
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Direction
方法 or 属性:Auto
起始版本:7|类名:Direction
方法 or 属性:Auto
起始版本:9|enums.d.ts| +|起始版本有变化|类名:BarState
起始版本:7|类名:BarState
起始版本:9|enums.d.ts| +|起始版本有变化|类名:BarState
方法 or 属性:Off
起始版本:7|类名:BarState
方法 or 属性:Off
起始版本:9|enums.d.ts| +|起始版本有变化|类名:BarState
方法 or 属性:Auto
起始版本:7|类名:BarState
方法 or 属性:Auto
起始版本:9|enums.d.ts| +|起始版本有变化|类名:BarState
方法 or 属性:On
起始版本:7|类名:BarState
方法 or 属性:On
起始版本:9|enums.d.ts| +|起始版本有变化|类名:EdgeEffect
起始版本:7|类名:EdgeEffect
起始版本:9|enums.d.ts| +|起始版本有变化|类名:EdgeEffect
方法 or 属性:Spring
起始版本:7|类名:EdgeEffect
方法 or 属性:Spring
起始版本:9|enums.d.ts| +|起始版本有变化|类名:EdgeEffect
方法 or 属性:Fade
起始版本:7|类名:EdgeEffect
方法 or 属性:Fade
起始版本:9|enums.d.ts| +|起始版本有变化|类名:EdgeEffect
方法 or 属性:None
起始版本:7|类名:EdgeEffect
方法 or 属性:None
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Alignment
起始版本:7|类名:Alignment
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Alignment
方法 or 属性:TopStart
起始版本:7|类名:Alignment
方法 or 属性:TopStart
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Alignment
方法 or 属性:Top
起始版本:7|类名:Alignment
方法 or 属性:Top
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Alignment
方法 or 属性:TopEnd
起始版本:7|类名:Alignment
方法 or 属性:TopEnd
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Alignment
方法 or 属性:Start
起始版本:7|类名:Alignment
方法 or 属性:Start
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Alignment
方法 or 属性:Center
起始版本:7|类名:Alignment
方法 or 属性:Center
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Alignment
方法 or 属性:End
起始版本:7|类名:Alignment
方法 or 属性:End
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Alignment
方法 or 属性:BottomStart
起始版本:7|类名:Alignment
方法 or 属性:BottomStart
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Alignment
方法 or 属性:Bottom
起始版本:7|类名:Alignment
方法 or 属性:Bottom
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Alignment
方法 or 属性:BottomEnd
起始版本:7|类名:Alignment
方法 or 属性:BottomEnd
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TransitionType
起始版本:7|类名:TransitionType
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TransitionType
方法 or 属性:All
起始版本:7|类名:TransitionType
方法 or 属性:All
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TransitionType
方法 or 属性:Insert
起始版本:7|类名:TransitionType
方法 or 属性:Insert
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TransitionType
方法 or 属性:Delete
起始版本:7|类名:TransitionType
方法 or 属性:Delete
起始版本:9|enums.d.ts| +|起始版本有变化|类名:RelateType
起始版本:7|类名:RelateType
起始版本:9|enums.d.ts| +|起始版本有变化|类名:RelateType
方法 or 属性:FILL
起始版本:7|类名:RelateType
方法 or 属性:FILL
起始版本:9|enums.d.ts| +|起始版本有变化|类名:RelateType
方法 or 属性:FIT
起始版本:7|类名:RelateType
方法 or 属性:FIT
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Visibility
起始版本:7|类名:Visibility
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Visibility
方法 or 属性:Visible
起始版本:7|类名:Visibility
方法 or 属性:Visible
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Visibility
方法 or 属性:Hidden
起始版本:7|类名:Visibility
方法 or 属性:Hidden
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Visibility
方法 or 属性:None
起始版本:7|类名:Visibility
方法 or 属性:None
起始版本:9|enums.d.ts| +|起始版本有变化|类名:LineCapStyle
起始版本:7|类名:LineCapStyle
起始版本:9|enums.d.ts| +|起始版本有变化|类名:LineCapStyle
方法 or 属性:Butt
起始版本:7|类名:LineCapStyle
方法 or 属性:Butt
起始版本:9|enums.d.ts| +|起始版本有变化|类名:LineCapStyle
方法 or 属性:Round
起始版本:7|类名:LineCapStyle
方法 or 属性:Round
起始版本:9|enums.d.ts| +|起始版本有变化|类名:LineCapStyle
方法 or 属性:Square
起始版本:7|类名:LineCapStyle
方法 or 属性:Square
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Axis
起始版本:7|类名:Axis
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Axis
方法 or 属性:Vertical
起始版本:7|类名:Axis
方法 or 属性:Vertical
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Axis
方法 or 属性:Horizontal
起始版本:7|类名:Axis
方法 or 属性:Horizontal
起始版本:9|enums.d.ts| +|起始版本有变化|类名:HorizontalAlign
起始版本:7|类名:HorizontalAlign
起始版本:9|enums.d.ts| +|起始版本有变化|类名:HorizontalAlign
方法 or 属性:Start
起始版本:7|类名:HorizontalAlign
方法 or 属性:Start
起始版本:9|enums.d.ts| +|起始版本有变化|类名:HorizontalAlign
方法 or 属性:Center
起始版本:7|类名:HorizontalAlign
方法 or 属性:Center
起始版本:9|enums.d.ts| +|起始版本有变化|类名:HorizontalAlign
方法 or 属性:End
起始版本:7|类名:HorizontalAlign
方法 or 属性:End
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexAlign
起始版本:7|类名:FlexAlign
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexAlign
方法 or 属性:Start
起始版本:7|类名:FlexAlign
方法 or 属性:Start
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexAlign
方法 or 属性:Center
起始版本:7|类名:FlexAlign
方法 or 属性:Center
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexAlign
方法 or 属性:End
起始版本:7|类名:FlexAlign
方法 or 属性:End
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexAlign
方法 or 属性:SpaceBetween
起始版本:7|类名:FlexAlign
方法 or 属性:SpaceBetween
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexAlign
方法 or 属性:SpaceAround
起始版本:7|类名:FlexAlign
方法 or 属性:SpaceAround
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexAlign
方法 or 属性:SpaceEvenly
起始版本:7|类名:FlexAlign
方法 or 属性:SpaceEvenly
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ItemAlign
起始版本:7|类名:ItemAlign
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ItemAlign
方法 or 属性:Auto
起始版本:7|类名:ItemAlign
方法 or 属性:Auto
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ItemAlign
方法 or 属性:Start
起始版本:7|类名:ItemAlign
方法 or 属性:Start
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ItemAlign
方法 or 属性:Center
起始版本:7|类名:ItemAlign
方法 or 属性:Center
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ItemAlign
方法 or 属性:End
起始版本:7|类名:ItemAlign
方法 or 属性:End
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ItemAlign
方法 or 属性:Baseline
起始版本:7|类名:ItemAlign
方法 or 属性:Baseline
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ItemAlign
方法 or 属性:Stretch
起始版本:7|类名:ItemAlign
方法 or 属性:Stretch
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexDirection
起始版本:7|类名:FlexDirection
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexDirection
方法 or 属性:Row
起始版本:7|类名:FlexDirection
方法 or 属性:Row
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexDirection
方法 or 属性:Column
起始版本:7|类名:FlexDirection
方法 or 属性:Column
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexDirection
方法 or 属性:RowReverse
起始版本:7|类名:FlexDirection
方法 or 属性:RowReverse
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexDirection
方法 or 属性:ColumnReverse
起始版本:7|类名:FlexDirection
方法 or 属性:ColumnReverse
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexWrap
起始版本:7|类名:FlexWrap
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexWrap
方法 or 属性:NoWrap
起始版本:7|类名:FlexWrap
方法 or 属性:NoWrap
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexWrap
方法 or 属性:Wrap
起始版本:7|类名:FlexWrap
方法 or 属性:Wrap
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexWrap
方法 or 属性:WrapReverse
起始版本:7|类名:FlexWrap
方法 or 属性:WrapReverse
起始版本:9|enums.d.ts| +|起始版本有变化|类名:VerticalAlign
起始版本:7|类名:VerticalAlign
起始版本:9|enums.d.ts| +|起始版本有变化|类名:VerticalAlign
方法 or 属性:Top
起始版本:7|类名:VerticalAlign
方法 or 属性:Top
起始版本:9|enums.d.ts| +|起始版本有变化|类名:VerticalAlign
方法 or 属性:Center
起始版本:7|类名:VerticalAlign
方法 or 属性:Center
起始版本:9|enums.d.ts| +|起始版本有变化|类名:VerticalAlign
方法 or 属性:Bottom
起始版本:7|类名:VerticalAlign
方法 or 属性:Bottom
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageRepeat
起始版本:7|类名:ImageRepeat
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageRepeat
方法 or 属性:NoRepeat
起始版本:7|类名:ImageRepeat
方法 or 属性:NoRepeat
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageRepeat
方法 or 属性:X
起始版本:7|类名:ImageRepeat
方法 or 属性:X
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageRepeat
方法 or 属性:Y
起始版本:7|类名:ImageRepeat
方法 or 属性:Y
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageRepeat
方法 or 属性:XY
起始版本:7|类名:ImageRepeat
方法 or 属性:XY
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageSize
起始版本:7|类名:ImageSize
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageSize
方法 or 属性:Auto
起始版本:7|类名:ImageSize
方法 or 属性:Auto
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageSize
方法 or 属性:Cover
起始版本:7|类名:ImageSize
方法 or 属性:Cover
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageSize
方法 or 属性:Contain
起始版本:7|类名:ImageSize
方法 or 属性:Contain
起始版本:9|enums.d.ts| +|起始版本有变化|类名:GradientDirection
起始版本:7|类名:GradientDirection
起始版本:9|enums.d.ts| +|起始版本有变化|类名:GradientDirection
方法 or 属性:Left
起始版本:7|类名:GradientDirection
方法 or 属性:Left
起始版本:9|enums.d.ts| +|起始版本有变化|类名:GradientDirection
方法 or 属性:Top
起始版本:7|类名:GradientDirection
方法 or 属性:Top
起始版本:9|enums.d.ts| +|起始版本有变化|类名:GradientDirection
方法 or 属性:Right
起始版本:7|类名:GradientDirection
方法 or 属性:Right
起始版本:9|enums.d.ts| +|起始版本有变化|类名:GradientDirection
方法 or 属性:Bottom
起始版本:7|类名:GradientDirection
方法 or 属性:Bottom
起始版本:9|enums.d.ts| +|起始版本有变化|类名:GradientDirection
方法 or 属性:LeftTop
起始版本:7|类名:GradientDirection
方法 or 属性:LeftTop
起始版本:9|enums.d.ts| +|起始版本有变化|类名:GradientDirection
方法 or 属性:LeftBottom
起始版本:7|类名:GradientDirection
方法 or 属性:LeftBottom
起始版本:9|enums.d.ts| +|起始版本有变化|类名:GradientDirection
方法 or 属性:RightTop
起始版本:7|类名:GradientDirection
方法 or 属性:RightTop
起始版本:9|enums.d.ts| +|起始版本有变化|类名:GradientDirection
方法 or 属性:RightBottom
起始版本:7|类名:GradientDirection
方法 or 属性:RightBottom
起始版本:9|enums.d.ts| +|起始版本有变化|类名:GradientDirection
方法 or 属性:None
起始版本:7|类名:GradientDirection
方法 or 属性:None
起始版本:9|enums.d.ts| +|起始版本有变化|类名:SharedTransitionEffectType
起始版本:7|类名:SharedTransitionEffectType
起始版本:9|enums.d.ts| +|起始版本有变化|类名:SharedTransitionEffectType
方法 or 属性:Static
起始版本:7|类名:SharedTransitionEffectType
方法 or 属性:Static
起始版本:9|enums.d.ts| +|起始版本有变化|类名:SharedTransitionEffectType
方法 or 属性:Exchange
起始版本:7|类名:SharedTransitionEffectType
方法 or 属性:Exchange
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FontStyle
起始版本:7|类名:FontStyle
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FontStyle
方法 or 属性:Normal
起始版本:7|类名:FontStyle
方法 or 属性:Normal
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FontStyle
方法 or 属性:Italic
起始版本:7|类名:FontStyle
方法 or 属性:Italic
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FontWeight
起始版本:7|类名:FontWeight
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FontWeight
方法 or 属性:Lighter
起始版本:7|类名:FontWeight
方法 or 属性:Lighter
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FontWeight
方法 or 属性:Normal
起始版本:7|类名:FontWeight
方法 or 属性:Normal
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FontWeight
方法 or 属性:Regular
起始版本:7|类名:FontWeight
方法 or 属性:Regular
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FontWeight
方法 or 属性:Medium
起始版本:7|类名:FontWeight
方法 or 属性:Medium
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FontWeight
方法 or 属性:Bold
起始版本:7|类名:FontWeight
方法 or 属性:Bold
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FontWeight
方法 or 属性:Bolder
起始版本:7|类名:FontWeight
方法 or 属性:Bolder
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextAlign
起始版本:7|类名:TextAlign
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextAlign
方法 or 属性:Center
起始版本:7|类名:TextAlign
方法 or 属性:Center
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextAlign
方法 or 属性:Start
起始版本:7|类名:TextAlign
方法 or 属性:Start
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextAlign
方法 or 属性:End
起始版本:7|类名:TextAlign
方法 or 属性:End
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextOverflow
起始版本:7|类名:TextOverflow
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextOverflow
方法 or 属性:Clip
起始版本:7|类名:TextOverflow
方法 or 属性:Clip
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextOverflow
方法 or 属性:Ellipsis
起始版本:7|类名:TextOverflow
方法 or 属性:Ellipsis
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextOverflow
方法 or 属性:None
起始版本:7|类名:TextOverflow
方法 or 属性:None
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextDecorationType
起始版本:7|类名:TextDecorationType
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextDecorationType
方法 or 属性:None
起始版本:7|类名:TextDecorationType
方法 or 属性:None
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextDecorationType
方法 or 属性:Underline
起始版本:7|类名:TextDecorationType
方法 or 属性:Underline
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextDecorationType
方法 or 属性:Overline
起始版本:7|类名:TextDecorationType
方法 or 属性:Overline
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextDecorationType
方法 or 属性:LineThrough
起始版本:7|类名:TextDecorationType
方法 or 属性:LineThrough
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextCase
起始版本:7|类名:TextCase
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextCase
方法 or 属性:Normal
起始版本:7|类名:TextCase
方法 or 属性:Normal
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextCase
方法 or 属性:LowerCase
起始版本:7|类名:TextCase
方法 or 属性:LowerCase
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextCase
方法 or 属性:UpperCase
起始版本:7|类名:TextCase
方法 or 属性:UpperCase
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ResponseType
起始版本:8|类名:ResponseType
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ResponseType
方法 or 属性:RightClick
起始版本:8|类名:ResponseType
方法 or 属性:RightClick
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ResponseType
方法 or 属性:LongPress
起始版本:8|类名:ResponseType
方法 or 属性:LongPress
起始版本:9|enums.d.ts| +|起始版本有变化|类名:HoverEffect
起始版本:8|类名:HoverEffect
起始版本:9|enums.d.ts| +|起始版本有变化|类名:HoverEffect
方法 or 属性:Auto
起始版本:8|类名:HoverEffect
方法 or 属性:Auto
起始版本:9|enums.d.ts| +|起始版本有变化|类名:HoverEffect
方法 or 属性:Scale
起始版本:8|类名:HoverEffect
方法 or 属性:Scale
起始版本:9|enums.d.ts| +|起始版本有变化|类名:HoverEffect
方法 or 属性:Highlight
起始版本:8|类名:HoverEffect
方法 or 属性:Highlight
起始版本:9|enums.d.ts| +|起始版本有变化|类名:HoverEffect
方法 or 属性:None
起始版本:8|类名:HoverEffect
方法 or 属性:None
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Placement
起始版本:8|类名:Placement
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Placement
方法 or 属性:Left
起始版本:8|类名:Placement
方法 or 属性:Left
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Placement
方法 or 属性:Right
起始版本:8|类名:Placement
方法 or 属性:Right
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Placement
方法 or 属性:Top
起始版本:8|类名:Placement
方法 or 属性:Top
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Placement
方法 or 属性:Bottom
起始版本:8|类名:Placement
方法 or 属性:Bottom
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Placement
方法 or 属性:TopLeft
起始版本:8|类名:Placement
方法 or 属性:TopLeft
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Placement
方法 or 属性:TopRight
起始版本:8|类名:Placement
方法 or 属性:TopRight
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Placement
方法 or 属性:BottomLeft
起始版本:8|类名:Placement
方法 or 属性:BottomLeft
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Placement
方法 or 属性:BottomRight
起始版本:8|类名:Placement
方法 or 属性:BottomRight
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexOptions
起始版本:7|类名:FlexOptions
起始版本:9|flex.d.ts| +|起始版本有变化|类名:FlexOptions
方法 or 属性:direction?: FlexDirection;
起始版本:7|类名:FlexOptions
方法 or 属性:direction?: FlexDirection;
起始版本:9|flex.d.ts| +|起始版本有变化|类名:FlexOptions
方法 or 属性:wrap?: FlexWrap;
起始版本:7|类名:FlexOptions
方法 or 属性:wrap?: FlexWrap;
起始版本:9|flex.d.ts| +|起始版本有变化|类名:FlexOptions
方法 or 属性:justifyContent?: FlexAlign;
起始版本:7|类名:FlexOptions
方法 or 属性:justifyContent?: FlexAlign;
起始版本:9|flex.d.ts| +|起始版本有变化|类名:FlexOptions
方法 or 属性:alignItems?: ItemAlign;
起始版本:7|类名:FlexOptions
方法 or 属性:alignItems?: ItemAlign;
起始版本:9|flex.d.ts| +|起始版本有变化|类名:FlexOptions
方法 or 属性:alignContent?: FlexAlign;
起始版本:7|类名:FlexOptions
方法 or 属性:alignContent?: FlexAlign;
起始版本:9|flex.d.ts| +|起始版本有变化|类名:FlexInterface
起始版本:7|类名:FlexInterface
起始版本:9|flex.d.ts| +|起始版本有变化|类名:FlexInterface
方法 or 属性:(value?: FlexOptions): FlexAttribute;
起始版本:7|类名:FlexInterface
方法 or 属性:(value?: FlexOptions): FlexAttribute;
起始版本:9|flex.d.ts| +|起始版本有变化|类名:FlexAttribute
起始版本:7|类名:FlexAttribute
起始版本:9|flex.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Flex: FlexInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Flex: FlexInterface;
起始版本:9|flex.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const FlexInstance: FlexAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const FlexInstance: FlexAttribute;
起始版本:9|flex.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const FlowItem: FlowItemInterface
起始版本:N/A|类名:global
方法 or 属性:declare const FlowItem: FlowItemInterface
起始版本:9|flow_item.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const FlowItemInstance: FlowItemAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const FlowItemInstance: FlowItemAttribute;
起始版本:9|flow_item.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const FormComponent: FormComponentInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const FormComponent: FormComponentInterface;
起始版本:7|form_component.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const FormComponentInstance: FormComponentAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const FormComponentInstance: FormComponentAttribute;
起始版本:7|form_component.d.ts| +|起始版本有变化|类名:ForEachInterface
起始版本:7|类名:ForEachInterface
起始版本:9|for_each.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ForEach: ForEachInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const ForEach: ForEachInterface;
起始版本:9|for_each.d.ts| +|起始版本有变化|类名:GaugeInterface
起始版本:8|类名:GaugeInterface
起始版本:9|gauge.d.ts| +|起始版本有变化|类名:GaugeInterface
方法 or 属性:(options: { value: number; min?: number; max?: number }): GaugeAttribute;
起始版本:8|类名:GaugeInterface
方法 or 属性:(options: { value: number; min?: number; max?: number }): GaugeAttribute;
起始版本:9|gauge.d.ts| +|起始版本有变化|类名:GaugeAttribute
起始版本:8|类名:GaugeAttribute
起始版本:9|gauge.d.ts| +|起始版本有变化|类名:GaugeAttribute
方法 or 属性:value(value: number): GaugeAttribute;
起始版本:8|类名:GaugeAttribute
方法 or 属性:value(value: number): GaugeAttribute;
起始版本:9|gauge.d.ts| +|起始版本有变化|类名:GaugeAttribute
方法 or 属性:startAngle(angle: number): GaugeAttribute;
起始版本:8|类名:GaugeAttribute
方法 or 属性:startAngle(angle: number): GaugeAttribute;
起始版本:9|gauge.d.ts| +|起始版本有变化|类名:GaugeAttribute
方法 or 属性:endAngle(angle: number): GaugeAttribute;
起始版本:8|类名:GaugeAttribute
方法 or 属性:endAngle(angle: number): GaugeAttribute;
起始版本:9|gauge.d.ts| +|起始版本有变化|类名:GaugeAttribute
方法 or 属性:colors(colors: Array\): GaugeAttribute;
起始版本:8|类名:GaugeAttribute
方法 or 属性:colors(colors: Array\): GaugeAttribute;
起始版本:9|gauge.d.ts| +|起始版本有变化|类名:GaugeAttribute
方法 or 属性:strokeWidth(length: Length): GaugeAttribute;
起始版本:8|类名:GaugeAttribute
方法 or 属性:strokeWidth(length: Length): GaugeAttribute;
起始版本:9|gauge.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Gauge: GaugeInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Gauge: GaugeInterface;
起始版本:9|gauge.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const GaugeInstance: GaugeAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const GaugeInstance: GaugeAttribute;
起始版本:9|gauge.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TapGesture: TapGestureInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TapGesture: TapGestureInterface;
起始版本:7|gesture.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const LongPressGesture: LongPressGestureInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const LongPressGesture: LongPressGestureInterface;
起始版本:7|gesture.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const PanGesture: PanGestureInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const PanGesture: PanGestureInterface;
起始版本:7|gesture.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const SwipeGesture: SwipeGestureInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const SwipeGesture: SwipeGestureInterface;
起始版本:7|gesture.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const PinchGesture: PinchGestureInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const PinchGesture: PinchGestureInterface;
起始版本:7|gesture.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const RotationGesture: RotationGestureInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const RotationGesture: RotationGestureInterface;
起始版本:7|gesture.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const GestureGroup: GestureGroupInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const GestureGroup: GestureGroupInterface;
起始版本:7|gesture.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Grid: GridInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Grid: GridInterface;
起始版本:7|grid.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const GridInstance: GridAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const GridInstance: GridAttribute;
起始版本:7|grid.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const GridItem: GridItemInterface
起始版本:N/A|类名:global
方法 or 属性:declare const GridItem: GridItemInterface
起始版本:7|gridItem.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const GridItemInstance: GridItemAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const GridItemInstance: GridItemAttribute;
起始版本:7|gridItem.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const GridCol: GridColInterface
起始版本:N/A|类名:global
方法 or 属性:declare const GridCol: GridColInterface
起始版本:9|grid_col.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const GridColInstance: GridColAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const GridColInstance: GridColAttribute;
起始版本:9|grid_col.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const GridContainer: GridContainerInterface
起始版本:N/A|类名:global
方法 or 属性:declare const GridContainer: GridContainerInterface
起始版本:7|grid_container.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const GridContainerInstance: GridContainerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const GridContainerInstance: GridContainerAttribute;
起始版本:7|grid_container.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const GridRow: GridRowInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const GridRow: GridRowInterface;
起始版本:9|grid_row.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const GridRowInstance: GridRowAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const GridRowInstance: GridRowAttribute;
起始版本:9|grid_row.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Hyperlink: HyperlinkInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Hyperlink: HyperlinkInterface;
起始版本:7|hyperlink.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const HyperlinkInterface: HyperlinkAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const HyperlinkInterface: HyperlinkAttribute;
起始版本:7|hyperlink.d.ts| +|起始版本有变化|类名:ImageRenderMode
起始版本:7|类名:ImageRenderMode
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageRenderMode
方法 or 属性:Original
起始版本:7|类名:ImageRenderMode
方法 or 属性:Original
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageRenderMode
方法 or 属性:Template
起始版本:7|类名:ImageRenderMode
方法 or 属性:Template
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageInterpolation
起始版本:7|类名:ImageInterpolation
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageInterpolation
方法 or 属性:None
起始版本:7|类名:ImageInterpolation
方法 or 属性:None
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageInterpolation
方法 or 属性:Low
起始版本:7|类名:ImageInterpolation
方法 or 属性:Low
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageInterpolation
方法 or 属性:Medium
起始版本:7|类名:ImageInterpolation
方法 or 属性:Medium
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageInterpolation
方法 or 属性:High
起始版本:7|类名:ImageInterpolation
方法 or 属性:High
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageInterface
起始版本:7|类名:ImageInterface
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageInterface
方法 or 属性:(src: string \| PixelMap \| Resource): ImageAttribute;
起始版本:7|类名:ImageInterface
方法 or 属性:(src: string \| PixelMap \| Resource): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
起始版本:7|类名:ImageAttribute
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:alt(value: string \| Resource): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:alt(value: string \| Resource): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:matchTextDirection(value: boolean): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:matchTextDirection(value: boolean): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:fitOriginalSize(value: boolean): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:fitOriginalSize(value: boolean): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:fillColor(value: ResourceColor): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:fillColor(value: ResourceColor): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:objectFit(value: ImageFit): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:objectFit(value: ImageFit): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:objectRepeat(value: ImageRepeat): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:objectRepeat(value: ImageRepeat): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:autoResize(value: boolean): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:autoResize(value: boolean): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:renderMode(value: ImageRenderMode): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:renderMode(value: ImageRenderMode): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:interpolation(value: ImageInterpolation): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:interpolation(value: ImageInterpolation): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:sourceSize(value: { width: number; height: number }): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:sourceSize(value: { width: number; height: number }): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:syncLoad(value: boolean): ImageAttribute;
起始版本:8|类名:ImageAttribute
方法 or 属性:syncLoad(value: boolean): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:onComplete(
callback: (event?: {
width: number;
height: number;
componentWidth: number;
componentHeight: number;
loadingStatus: number;
}) => void,
): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:onComplete(
callback: (event?: {
width: number;
height: number;
componentWidth: number;
componentHeight: number;
loadingStatus: number;
}) => void,
): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:onError(callback: (event?: { componentWidth: number; componentHeight: number }) => void): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:onError(callback: (event?: { componentWidth: number; componentHeight: number }) => void): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:onFinish(event: () => void): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:onFinish(event: () => void): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Image: ImageInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Image: ImageInterface;
起始版本:9|image.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ImageInstance: ImageAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ImageInstance: ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ImageAnimator: ImageAnimatorInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const ImageAnimator: ImageAnimatorInterface;
起始版本:7|image_animator.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ImageAnimatorInstance: ImageAnimatorAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ImageAnimatorInstance: ImageAnimatorAttribute;
起始版本:7|image_animator.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const LazyForEach: LazyForEachInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const LazyForEach: LazyForEachInterface;
起始版本:7|lazy_for_each.d.ts| +|起始版本有变化|类名:LineInterface
起始版本:7|类名:LineInterface
起始版本:9|line.d.ts| +|起始版本有变化|类名:LineInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): LineAttribute;
起始版本:7|类名:LineInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): LineAttribute;
起始版本:9|line.d.ts| +|起始版本有变化|类名:LineInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): LineAttribute;
起始版本:7|类名:LineInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): LineAttribute;
起始版本:9|line.d.ts| +|起始版本有变化|类名:LineAttribute
起始版本:7|类名:LineAttribute
起始版本:9|line.d.ts| +|起始版本有变化|类名:LineAttribute
方法 or 属性:startPoint(value: Array\): LineAttribute;
起始版本:7|类名:LineAttribute
方法 or 属性:startPoint(value: Array\): LineAttribute;
起始版本:9|line.d.ts| +|起始版本有变化|类名:LineAttribute
方法 or 属性:endPoint(value: Array\): LineAttribute;
起始版本:7|类名:LineAttribute
方法 or 属性:endPoint(value: Array\): LineAttribute;
起始版本:9|line.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Line: LineInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Line: LineInterface;
起始版本:9|line.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const LineInstance: LineAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const LineInstance: LineAttribute;
起始版本:9|line.d.ts| +|起始版本有变化|类名:ScrollState
起始版本:7|类名:ScrollState
起始版本:9|list.d.ts| +|起始版本有变化|类名:ScrollState
方法 or 属性:Idle
起始版本:7|类名:ScrollState
方法 or 属性:Idle
起始版本:9|list.d.ts| +|起始版本有变化|类名:ScrollState
方法 or 属性:Scroll
起始版本:7|类名:ScrollState
方法 or 属性:Scroll
起始版本:9|list.d.ts| +|起始版本有变化|类名:ScrollState
方法 or 属性:Fling
起始版本:7|类名:ScrollState
方法 or 属性:Fling
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListInterface
起始版本:7|类名:ListInterface
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListInterface
方法 or 属性:(value?: { initialIndex?: number; space?: number \| string; scroller?: Scroller }): ListAttribute;
起始版本:7|类名:ListInterface
方法 or 属性:(value?: { initialIndex?: number; space?: number \| string; scroller?: Scroller }): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
起始版本:7|类名:ListAttribute
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:listDirection(value: Axis): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:listDirection(value: Axis): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:scrollBar(value: BarState): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:scrollBar(value: BarState): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:edgeEffect(value: EdgeEffect): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:edgeEffect(value: EdgeEffect): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:divider(
value: {
strokeWidth: Length;
color?: ResourceColor;
startMargin?: Length;
endMargin?: Length;
} \| null,
): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:divider(
value: {
strokeWidth: Length;
color?: ResourceColor;
startMargin?: Length;
endMargin?: Length;
} \| null,
): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:multiSelectable(value: boolean): ListAttribute;
起始版本:8|类名:ListAttribute
方法 or 属性:multiSelectable(value: boolean): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:cachedCount(value: number): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:cachedCount(value: number): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:chainAnimation(value: boolean): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:chainAnimation(value: boolean): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:onScroll(event: (scrollOffset: number, scrollState: ScrollState) => void): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:onScroll(event: (scrollOffset: number, scrollState: ScrollState) => void): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:onScrollIndex(event: (start: number, end: number) => void): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:onScrollIndex(event: (start: number, end: number) => void): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:onReachStart(event: () => void): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:onReachStart(event: () => void): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:onReachEnd(event: () => void): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:onReachEnd(event: () => void): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:onScrollStop(event: () => void): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:onScrollStop(event: () => void): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const List: ListInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const List: ListInterface;
起始版本:9|list.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ListInstance: ListAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ListInstance: ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListItemInterface
起始版本:7|类名:ListItemInterface
起始版本:9|list_item.d.ts| +|起始版本有变化|类名:ListItemInterface
方法 or 属性:(value?: string): ListItemAttribute;
起始版本:7|类名:ListItemInterface
方法 or 属性:(value?: string): ListItemAttribute;
起始版本:9|list_item.d.ts| +|起始版本有变化|类名:ListItemAttribute
起始版本:7|类名:ListItemAttribute
起始版本:9|list_item.d.ts| +|起始版本有变化|类名:ListItemAttribute
方法 or 属性:onSelect(event: (isSelected: boolean) => void): ListItemAttribute;
起始版本:8|类名:ListItemAttribute
方法 or 属性:onSelect(event: (isSelected: boolean) => void): ListItemAttribute;
起始版本:9|list_item.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ListItemInstance: ListItemAttribute;
起始版本:7|类名:global
方法 or 属性:declare const ListItemInstance: ListItemAttribute;
起始版本:9|list_item.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ListItem: ListItemInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const ListItem: ListItemInterface;
起始版本:9|list_item.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ListItemGroup: ListItemGroupInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const ListItemGroup: ListItemGroupInterface;
起始版本:9|list_item_group.d.ts| +|起始版本有变化|类名:LoadingProgressStyle
起始版本:8|类名:LoadingProgressStyle
起始版本:9|loading_progress.d.ts| +|起始版本有变化|类名:LoadingProgressStyle
方法 or 属性:Default
起始版本:8|类名:LoadingProgressStyle
方法 or 属性:Default
起始版本:9|loading_progress.d.ts| +|起始版本有变化|类名:LoadingProgressStyle
方法 or 属性:Circular
起始版本:8|类名:LoadingProgressStyle
方法 or 属性:Circular
起始版本:9|loading_progress.d.ts| +|起始版本有变化|类名:LoadingProgressStyle
方法 or 属性:Orbital
起始版本:8|类名:LoadingProgressStyle
方法 or 属性:Orbital
起始版本:9|loading_progress.d.ts| +|起始版本有变化|类名:LoadingProgressInterface
起始版本:8|类名:LoadingProgressInterface
起始版本:9|loading_progress.d.ts| +|起始版本有变化|类名:LoadingProgressInterface
方法 or 属性:(): LoadingProgressAttribute;
起始版本:8|类名:LoadingProgressInterface
方法 or 属性:(): LoadingProgressAttribute;
起始版本:9|loading_progress.d.ts| +|起始版本有变化|类名:LoadingProgressAttribute
起始版本:8|类名:LoadingProgressAttribute
起始版本:9|loading_progress.d.ts| +|起始版本有变化|类名:LoadingProgressAttribute
方法 or 属性:color(value: ResourceColor): LoadingProgressAttribute;
起始版本:8|类名:LoadingProgressAttribute
方法 or 属性:color(value: ResourceColor): LoadingProgressAttribute;
起始版本:9|loading_progress.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const LoadingProgress: LoadingProgressInterface;
起始版本:8|类名:global
方法 or 属性:declare const LoadingProgress: LoadingProgressInterface;
起始版本:9|loading_progress.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const LoadingProgressInstance: LoadingProgressAttribute;
起始版本:8|类名:global
方法 or 属性:declare const LoadingProgressInstance: LoadingProgressAttribute;
起始版本:9|loading_progress.d.ts| +|起始版本有变化|类名:MarqueeInterface
起始版本:8|类名:MarqueeInterface
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:MarqueeInterface
方法 or 属性:(value: { start: boolean; step?: number; loop?: number; fromStart?: boolean; src: string }): MarqueeAttribute;
起始版本:8|类名:MarqueeInterface
方法 or 属性:(value: { start: boolean; step?: number; loop?: number; fromStart?: boolean; src: string }): MarqueeAttribute;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:MarqueeAttribute
起始版本:8|类名:MarqueeAttribute
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:fontColor(value: ResourceColor): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:fontColor(value: ResourceColor): MarqueeAttribute;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:fontSize(value: Length): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:fontSize(value: Length): MarqueeAttribute;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:allowScale(value: boolean): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:allowScale(value: boolean): MarqueeAttribute;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): MarqueeAttribute;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:fontFamily(value: string \| Resource): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:fontFamily(value: string \| Resource): MarqueeAttribute;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:onStart(event: () => void): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:onStart(event: () => void): MarqueeAttribute;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:onBounce(event: () => void): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:onBounce(event: () => void): MarqueeAttribute;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:onFinish(event: () => void): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:onFinish(event: () => void): MarqueeAttribute;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Marquee: MarqueeInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Marquee: MarqueeInterface;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const MarqueeInstance: MarqueeAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const MarqueeInstance: MarqueeAttribute;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Navigation: NavigationInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Navigation: NavigationInterface;
起始版本:8|navigation.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const NavigationInstance: NavigationAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const NavigationInstance: NavigationAttribute;
起始版本:8|navigation.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Navigator: NavigatorInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Navigator: NavigatorInterface;
起始版本:7|navigator.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const NavigatorInstance: NavigatorAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const NavigatorInstance: NavigatorAttribute;
起始版本:7|navigator.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const NavDestination: NavDestinationInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const NavDestination: NavDestinationInterface;
起始版本:9|nav_destination.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const NavDestinationInstance: NavDestinationAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const NavDestinationInstance: NavDestinationAttribute;
起始版本:9|nav_destination.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const NavRouter: NavRouterInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const NavRouter: NavRouterInterface;
起始版本:9|nav_router.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const NavRouterInstance: NavRouterAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const NavRouterInstance: NavRouterAttribute;
起始版本:9|nav_router.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const PageTransitionEnter: PageTransitionEnterInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const PageTransitionEnter: PageTransitionEnterInterface;
起始版本:7|page_transition.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const PageTransitionExit: PageTransitionExitInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const PageTransitionExit: PageTransitionExitInterface;
起始版本:7|page_transition.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Panel: PanelInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Panel: PanelInterface;
起始版本:7|panel.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const PanelInstance: PanelAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const PanelInstance: PanelAttribute;
起始版本:7|panel.d.ts| +|起始版本有变化|类名:PathInterface
起始版本:7|类名:PathInterface
起始版本:9|path.d.ts| +|起始版本有变化|类名:PathInterface
方法 or 属性:new (value?: { width?: number \| string; height?: number \| string; commands?: string }): PathAttribute;
起始版本:7|类名:PathInterface
方法 or 属性:new (value?: { width?: number \| string; height?: number \| string; commands?: string }): PathAttribute;
起始版本:9|path.d.ts| +|起始版本有变化|类名:PathInterface
方法 or 属性:(value?: { width?: number \| string; height?: number \| string; commands?: string }): PathAttribute;
起始版本:7|类名:PathInterface
方法 or 属性:(value?: { width?: number \| string; height?: number \| string; commands?: string }): PathAttribute;
起始版本:9|path.d.ts| +|起始版本有变化|类名:PathAttribute
起始版本:7|类名:PathAttribute
起始版本:9|path.d.ts| +|起始版本有变化|类名:PathAttribute
方法 or 属性:commands(value: string): PathAttribute;
起始版本:7|类名:PathAttribute
方法 or 属性:commands(value: string): PathAttribute;
起始版本:9|path.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Path: PathInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Path: PathInterface;
起始版本:9|path.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const PathInstance: PathAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const PathInstance: PathAttribute;
起始版本:9|path.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const PatternLock: PatternLockInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const PatternLock: PatternLockInterface;
起始版本:9|pattern_lock.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const PatternLockInstance: PatternLockAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const PatternLockInstance: PatternLockAttribute;
起始版本:9|pattern_lock.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const PluginComponent: PluginComponentInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const PluginComponent: PluginComponentInterface;
起始版本:9|plugin_component.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const PluginComponentInstance: PluginComponentAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const PluginComponentInstance: PluginComponentAttribute;
起始版本:9|plugin_component.d.ts| +|起始版本有变化|类名:PolygonInterface
起始版本:7|类名:PolygonInterface
起始版本:9|polygon.d.ts| +|起始版本有变化|类名:PolygonInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): PolygonAttribute;
起始版本:7|类名:PolygonInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): PolygonAttribute;
起始版本:9|polygon.d.ts| +|起始版本有变化|类名:PolygonInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): PolygonAttribute;
起始版本:7|类名:PolygonInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): PolygonAttribute;
起始版本:9|polygon.d.ts| +|起始版本有变化|类名:PolygonAttribute
方法 or 属性:points(value: Array\): PolygonAttribute;
起始版本:7|类名:PolygonAttribute
方法 or 属性:points(value: Array\): PolygonAttribute;
起始版本:9|polygon.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Polygon: PolygonInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Polygon: PolygonInterface;
起始版本:9|polygon.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const PolygonInstance: PolygonAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const PolygonInstance: PolygonAttribute;
起始版本:9|polygon.d.ts| +|起始版本有变化|类名:PolylineInterface
起始版本:7|类名:PolylineInterface
起始版本:9|polyline.d.ts| +|起始版本有变化|类名:PolylineInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): PolylineAttribute;
起始版本:7|类名:PolylineInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): PolylineAttribute;
起始版本:9|polyline.d.ts| +|起始版本有变化|类名:PolylineInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): PolylineAttribute;
起始版本:7|类名:PolylineInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): PolylineAttribute;
起始版本:9|polyline.d.ts| +|起始版本有变化|类名:PolylineAttribute
起始版本:7|类名:PolylineAttribute
起始版本:9|polyline.d.ts| +|起始版本有变化|类名:PolylineAttribute
方法 or 属性:points(value: Array\): PolylineAttribute;
起始版本:7|类名:PolylineAttribute
方法 or 属性:points(value: Array\): PolylineAttribute;
起始版本:9|polyline.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Polyline: PolylineInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Polyline: PolylineInterface;
起始版本:9|polyline.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const PolylineInstance: PolylineAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const PolylineInstance: PolylineAttribute;
起始版本:9|polyline.d.ts| +|起始版本有变化|类名:ProgressOptions
起始版本:7|类名:ProgressOptions
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressOptions
方法 or 属性:value: number;
起始版本:7|类名:ProgressOptions
方法 or 属性:value: number;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressOptions
方法 or 属性:total?: number;
起始版本:7|类名:ProgressOptions
方法 or 属性:total?: number;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressOptions
方法 or 属性:type?: ProgressType
起始版本:8|类名:ProgressOptions
方法 or 属性:type?: ProgressType
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressType
起始版本:8|类名:ProgressType
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressType
方法 or 属性:Linear
起始版本:8|类名:ProgressType
方法 or 属性:Linear
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressType
方法 or 属性:Ring
起始版本:8|类名:ProgressType
方法 or 属性:Ring
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressType
方法 or 属性:Eclipse
起始版本:8|类名:ProgressType
方法 or 属性:Eclipse
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressType
方法 or 属性:ScaleRing
起始版本:8|类名:ProgressType
方法 or 属性:ScaleRing
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressType
方法 or 属性:Capsule
起始版本:8|类名:ProgressType
方法 or 属性:Capsule
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressStyleOptions
起始版本:8|类名:ProgressStyleOptions
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressStyleOptions
方法 or 属性:strokeWidth?: Length;
起始版本:8|类名:ProgressStyleOptions
方法 or 属性:strokeWidth?: Length;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressStyleOptions
方法 or 属性:scaleCount?: number;
起始版本:8|类名:ProgressStyleOptions
方法 or 属性:scaleCount?: number;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressStyleOptions
方法 or 属性:scaleWidth?: Length;
起始版本:8|类名:ProgressStyleOptions
方法 or 属性:scaleWidth?: Length;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressStyle
起始版本:7|类名:ProgressStyle
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressStyle
方法 or 属性:Linear
起始版本:7|类名:ProgressStyle
方法 or 属性:Linear
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressStyle
方法 or 属性:Ring
起始版本:8|类名:ProgressStyle
方法 or 属性:Ring
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressStyle
方法 or 属性:Eclipse
起始版本:7|类名:ProgressStyle
方法 or 属性:Eclipse
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressStyle
方法 or 属性:ScaleRing
起始版本:8|类名:ProgressStyle
方法 or 属性:ScaleRing
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressStyle
方法 or 属性:Capsule
起始版本:8|类名:ProgressStyle
方法 or 属性:Capsule
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressInterface
起始版本:7|类名:ProgressInterface
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressInterface
方法 or 属性:(options: ProgressOptions): ProgressAttribute;
起始版本:7|类名:ProgressInterface
方法 or 属性:(options: ProgressOptions): ProgressAttribute;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressAttribute
起始版本:7|类名:ProgressAttribute
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressAttribute
方法 or 属性:value(value: number): ProgressAttribute;
起始版本:7|类名:ProgressAttribute
方法 or 属性:value(value: number): ProgressAttribute;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressAttribute
方法 or 属性:color(value: ResourceColor): ProgressAttribute;
起始版本:7|类名:ProgressAttribute
方法 or 属性:color(value: ResourceColor): ProgressAttribute;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressAttribute
方法 or 属性:style(value: ProgressStyleOptions): ProgressAttribute;
起始版本:8|类名:ProgressAttribute
方法 or 属性:style(value: ProgressStyleOptions): ProgressAttribute;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Progress: ProgressInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Progress: ProgressInterface;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ProgressInstance: ProgressAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ProgressInstance: ProgressAttribute;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:QRCodeInterface
起始版本:7|类名:QRCodeInterface
起始版本:9|qrcode.d.ts| +|起始版本有变化|类名:QRCodeInterface
方法 or 属性:(value: string): QRCodeAttribute;
起始版本:7|类名:QRCodeInterface
方法 or 属性:(value: string): QRCodeAttribute;
起始版本:9|qrcode.d.ts| +|起始版本有变化|类名:QRCodeAttribute
起始版本:7|类名:QRCodeAttribute
起始版本:9|qrcode.d.ts| +|起始版本有变化|类名:QRCodeAttribute
方法 or 属性:color(value: ResourceColor): QRCodeAttribute;
起始版本:7|类名:QRCodeAttribute
方法 or 属性:color(value: ResourceColor): QRCodeAttribute;
起始版本:9|qrcode.d.ts| +|起始版本有变化|类名:QRCodeAttribute
方法 or 属性:backgroundColor(value: ResourceColor): QRCodeAttribute;
起始版本:7|类名:QRCodeAttribute
方法 or 属性:backgroundColor(value: ResourceColor): QRCodeAttribute;
起始版本:9|qrcode.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const QRCode: QRCodeInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const QRCode: QRCodeInterface;
起始版本:9|qrcode.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const QRCodeInstance: QRCodeAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const QRCodeInstance: QRCodeAttribute;
起始版本:9|qrcode.d.ts| +|起始版本有变化|类名:RadioOptions
起始版本:8|类名:RadioOptions
起始版本:9|radio.d.ts| +|起始版本有变化|类名:RadioOptions
方法 or 属性:group: string;
起始版本:8|类名:RadioOptions
方法 or 属性:group: string;
起始版本:9|radio.d.ts| +|起始版本有变化|类名:RadioOptions
方法 or 属性:value: string;
起始版本:8|类名:RadioOptions
方法 or 属性:value: string;
起始版本:9|radio.d.ts| +|起始版本有变化|类名:RadioInterface
起始版本:8|类名:RadioInterface
起始版本:9|radio.d.ts| +|起始版本有变化|类名:RadioInterface
方法 or 属性:(options: RadioOptions): RadioAttribute;
起始版本:8|类名:RadioInterface
方法 or 属性:(options: RadioOptions): RadioAttribute;
起始版本:9|radio.d.ts| +|起始版本有变化|类名:RadioAttribute
起始版本:8|类名:RadioAttribute
起始版本:9|radio.d.ts| +|起始版本有变化|类名:RadioAttribute
方法 or 属性:checked(value: boolean): RadioAttribute;
起始版本:8|类名:RadioAttribute
方法 or 属性:checked(value: boolean): RadioAttribute;
起始版本:9|radio.d.ts| +|起始版本有变化|类名:RadioAttribute
方法 or 属性:onChange(callback: (isChecked: boolean) => void): RadioAttribute;
起始版本:8|类名:RadioAttribute
方法 or 属性:onChange(callback: (isChecked: boolean) => void): RadioAttribute;
起始版本:9|radio.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Radio: RadioInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Radio: RadioInterface;
起始版本:9|radio.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const RadioInstance: RadioAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const RadioInstance: RadioAttribute;
起始版本:9|radio.d.ts| +|起始版本有变化|类名:RatingInterface
起始版本:7|类名:RatingInterface
起始版本:9|rating.d.ts| +|起始版本有变化|类名:RatingInterface
方法 or 属性:(options?: { rating: number; indicator?: boolean }): RatingAttribute;
起始版本:7|类名:RatingInterface
方法 or 属性:(options?: { rating: number; indicator?: boolean }): RatingAttribute;
起始版本:9|rating.d.ts| +|起始版本有变化|类名:RatingAttribute
起始版本:7|类名:RatingAttribute
起始版本:9|rating.d.ts| +|起始版本有变化|类名:RatingAttribute
方法 or 属性:stars(value: number): RatingAttribute;
起始版本:7|类名:RatingAttribute
方法 or 属性:stars(value: number): RatingAttribute;
起始版本:9|rating.d.ts| +|起始版本有变化|类名:RatingAttribute
方法 or 属性:stepSize(value: number): RatingAttribute;
起始版本:7|类名:RatingAttribute
方法 or 属性:stepSize(value: number): RatingAttribute;
起始版本:9|rating.d.ts| +|起始版本有变化|类名:RatingAttribute
方法 or 属性:starStyle(value: { backgroundUri: string; foregroundUri: string; secondaryUri?: string }): RatingAttribute;
起始版本:7|类名:RatingAttribute
方法 or 属性:starStyle(value: { backgroundUri: string; foregroundUri: string; secondaryUri?: string }): RatingAttribute;
起始版本:9|rating.d.ts| +|起始版本有变化|类名:RatingAttribute
方法 or 属性:onChange(callback: (value: number) => void): RatingAttribute;
起始版本:7|类名:RatingAttribute
方法 or 属性:onChange(callback: (value: number) => void): RatingAttribute;
起始版本:9|rating.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Rating: RatingInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Rating: RatingInterface;
起始版本:9|rating.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const RatingInstance: RatingAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const RatingInstance: RatingAttribute;
起始版本:9|rating.d.ts| +|起始版本有变化|类名:RectInterface
起始版本:7|类名:RectInterface
起始版本:9|rect.d.ts| +|起始版本有变化|类名:RectInterface
方法 or 属性:new (
value?:
{
width?: number \| string;
height?: number \| string;
radius?: number \| string \| Array\;
}
\| {
width?: number \| string;
height?: number \| string;
radiusWidth?: number \| string;
radiusHeight?: number \| string;
},
): RectAttribute;
起始版本:7|类名:RectInterface
方法 or 属性:new (
value?:
{
width?: number \| string;
height?: number \| string;
radius?: number \| string \| Array\;
}
\| {
width?: number \| string;
height?: number \| string;
radiusWidth?: number \| string;
radiusHeight?: number \| string;
},
): RectAttribute;
起始版本:9|rect.d.ts| +|起始版本有变化|类名:RectInterface
方法 or 属性:(
value?:
{
width?: number \| string;
height?: number \| string;
radius?: number \| string \| Array\;
}
\| {
width?: number \| string;
height?: number \| string;
radiusWidth?: number \| string;
radiusHeight?: number \| string;
},
): RectAttribute;
起始版本:7|类名:RectInterface
方法 or 属性:(
value?:
{
width?: number \| string;
height?: number \| string;
radius?: number \| string \| Array\;
}
\| {
width?: number \| string;
height?: number \| string;
radiusWidth?: number \| string;
radiusHeight?: number \| string;
},
): RectAttribute;
起始版本:9|rect.d.ts| +|起始版本有变化|类名:RectAttribute
起始版本:7|类名:RectAttribute
起始版本:9|rect.d.ts| +|起始版本有变化|类名:RectAttribute
方法 or 属性:radiusWidth(value: number \| string): RectAttribute;
起始版本:7|类名:RectAttribute
方法 or 属性:radiusWidth(value: number \| string): RectAttribute;
起始版本:9|rect.d.ts| +|起始版本有变化|类名:RectAttribute
方法 or 属性:radiusHeight(value: number \| string): RectAttribute;
起始版本:7|类名:RectAttribute
方法 or 属性:radiusHeight(value: number \| string): RectAttribute;
起始版本:9|rect.d.ts| +|起始版本有变化|类名:RectAttribute
方法 or 属性:radius(value: number \| string \| Array\): RectAttribute;
起始版本:7|类名:RectAttribute
方法 or 属性:radius(value: number \| string \| Array\): RectAttribute;
起始版本:9|rect.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Rect: RectInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Rect: RectInterface;
起始版本:9|rect.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Refresh: RefreshInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Refresh: RefreshInterface;
起始版本:8|refresh.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const RefreshInstance: RefreshAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const RefreshInstance: RefreshAttribute;
起始版本:8|refresh.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const RemoteWindow: RemoteWindowInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const RemoteWindow: RemoteWindowInterface;
起始版本:9|remote_window.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const RemoteWindowInstance: RemoteWindowAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const RemoteWindowInstance: RemoteWindowAttribute;
起始版本:9|remote_window.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const RichText: RichTextInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const RichText: RichTextInterface;
起始版本:8|rich_text.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const RichTextInstance: RichTextAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const RichTextInstance: RichTextAttribute;
起始版本:8|rich_text.d.ts| +|起始版本有变化|类名:RowInterface
起始版本:7|类名:RowInterface
起始版本:9|row.d.ts| +|起始版本有变化|类名:RowInterface
方法 or 属性:(value?: { space?: string \| number }): RowAttribute;
起始版本:7|类名:RowInterface
方法 or 属性:(value?: { space?: string \| number }): RowAttribute;
起始版本:9|row.d.ts| +|起始版本有变化|类名:RowAttribute
起始版本:7|类名:RowAttribute
起始版本:9|row.d.ts| +|起始版本有变化|类名:RowAttribute
方法 or 属性:alignItems(value: VerticalAlign): RowAttribute;
起始版本:7|类名:RowAttribute
方法 or 属性:alignItems(value: VerticalAlign): RowAttribute;
起始版本:9|row.d.ts| +|起始版本有变化|类名:RowAttribute
方法 or 属性:justifyContent(value: FlexAlign): RowAttribute;
起始版本:8|类名:RowAttribute
方法 or 属性:justifyContent(value: FlexAlign): RowAttribute;
起始版本:9|row.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Row: RowInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Row: RowInterface;
起始版本:9|row.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const RowInstance: RowAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const RowInstance: RowAttribute;
起始版本:9|row.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const RowSplit: RowSplitInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const RowSplit: RowSplitInterface;
起始版本:7|row_split.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const RowSplitInstance: RowSplitAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const RowSplitInstance: RowSplitAttribute;
起始版本:7|row_split.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Scroll: ScrollInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Scroll: ScrollInterface;
起始版本:7|scroll.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ScrollInstance: ScrollAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ScrollInstance: ScrollAttribute;
起始版本:7|scroll.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ScrollBar: ScrollBarInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const ScrollBar: ScrollBarInterface;
起始版本:8|scroll_bar.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ScrollBarInstance: ScrollBarAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ScrollBarInstance: ScrollBarAttribute;
起始版本:8|scroll_bar.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Search: SearchInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Search: SearchInterface;
起始版本:8|search.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const SearchInstance: SearchAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const SearchInstance: SearchAttribute;
起始版本:8|search.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Select: SelectInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Select: SelectInterface;
起始版本:8|select.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const SelectInstance: SelectAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const SelectInstance: SelectAttribute;
起始版本:8|select.d.ts| +|起始版本有变化|类名:ShapeInterface
起始版本:7|类名:ShapeInterface
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
起始版本:7|类名:ShapeAttribute
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:viewPort(value: { x?: number \| string; y?: number \| string; width?: number \| string; height?: number \| string }): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:viewPort(value: { x?: number \| string; y?: number \| string; width?: number \| string; height?: number \| string }): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:stroke(value: ResourceColor): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:stroke(value: ResourceColor): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:fill(value: ResourceColor): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:fill(value: ResourceColor): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeDashOffset(value: number \| string): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeDashOffset(value: number \| string): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeDashArray(value: Array\): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeDashArray(value: Array\): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeLineCap(value: LineCapStyle): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeLineCap(value: LineCapStyle): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeLineJoin(value: LineJoinStyle): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeLineJoin(value: LineJoinStyle): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeMiterLimit(value: number \| string): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeMiterLimit(value: number \| string): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeOpacity(value: number \| string \| Resource): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeOpacity(value: number \| string \| Resource): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:fillOpacity(value: number \| string \| Resource): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:fillOpacity(value: number \| string \| Resource): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeWidth(value: number \| string): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeWidth(value: number \| string): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:antiAlias(value: boolean): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:antiAlias(value: boolean): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:mesh(value: Array\, column: number, row: number): ShapeAttribute;
起始版本:8|类名:ShapeAttribute
方法 or 属性:mesh(value: Array\, column: number, row: number): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Shape: ShapeInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Shape: ShapeInterface;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ShapeInstance: ShapeAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ShapeInstance: ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const SideBarContainer: SideBarContainerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const SideBarContainer: SideBarContainerInterface;
起始版本:8|sidebar.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const SideBarContainerInstance: SideBarContainerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const SideBarContainerInstance: SideBarContainerAttribute;
起始版本:8|sidebar.d.ts| +|起始版本有变化|类名:SliderStyle
起始版本:7|类名:SliderStyle
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderStyle
方法 or 属性:OutSet
起始版本:7|类名:SliderStyle
方法 or 属性:OutSet
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderStyle
方法 or 属性:InSet
起始版本:7|类名:SliderStyle
方法 or 属性:InSet
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderChangeMode
起始版本:7|类名:SliderChangeMode
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderChangeMode
方法 or 属性:Begin
起始版本:7|类名:SliderChangeMode
方法 or 属性:Begin
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderChangeMode
方法 or 属性:Moving
起始版本:7|类名:SliderChangeMode
方法 or 属性:Moving
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderChangeMode
方法 or 属性:End
起始版本:7|类名:SliderChangeMode
方法 or 属性:End
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderChangeMode
方法 or 属性:Click
起始版本:8|类名:SliderChangeMode
方法 or 属性:Click
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderOptions
起始版本:7|类名:SliderOptions
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderOptions
方法 or 属性:value?: number;
起始版本:7|类名:SliderOptions
方法 or 属性:value?: number;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderOptions
方法 or 属性:min?: number;
起始版本:7|类名:SliderOptions
方法 or 属性:min?: number;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderOptions
方法 or 属性:max?: number;
起始版本:7|类名:SliderOptions
方法 or 属性:max?: number;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderOptions
方法 or 属性:step?: number;
起始版本:7|类名:SliderOptions
方法 or 属性:step?: number;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderOptions
方法 or 属性:style?: SliderStyle;
起始版本:7|类名:SliderOptions
方法 or 属性:style?: SliderStyle;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderOptions
方法 or 属性:direction?: Axis;
起始版本:8|类名:SliderOptions
方法 or 属性:direction?: Axis;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderOptions
方法 or 属性:reverse?: boolean;
起始版本:8|类名:SliderOptions
方法 or 属性:reverse?: boolean;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderInterface
起始版本:7|类名:SliderInterface
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderInterface
方法 or 属性:(options?: SliderOptions): SliderAttribute;
起始版本:7|类名:SliderInterface
方法 or 属性:(options?: SliderOptions): SliderAttribute;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderAttribute
起始版本:7|类名:SliderAttribute
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderAttribute
方法 or 属性:blockColor(value: ResourceColor): SliderAttribute;
起始版本:7|类名:SliderAttribute
方法 or 属性:blockColor(value: ResourceColor): SliderAttribute;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderAttribute
方法 or 属性:trackColor(value: ResourceColor): SliderAttribute;
起始版本:7|类名:SliderAttribute
方法 or 属性:trackColor(value: ResourceColor): SliderAttribute;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderAttribute
方法 or 属性:selectedColor(value: ResourceColor): SliderAttribute;
起始版本:7|类名:SliderAttribute
方法 or 属性:selectedColor(value: ResourceColor): SliderAttribute;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderAttribute
方法 or 属性:showSteps(value: boolean): SliderAttribute;
起始版本:7|类名:SliderAttribute
方法 or 属性:showSteps(value: boolean): SliderAttribute;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderAttribute
方法 or 属性:showTips(value: boolean): SliderAttribute;
起始版本:7|类名:SliderAttribute
方法 or 属性:showTips(value: boolean): SliderAttribute;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderAttribute
方法 or 属性:trackThickness(value: Length): SliderAttribute;
起始版本:8|类名:SliderAttribute
方法 or 属性:trackThickness(value: Length): SliderAttribute;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderAttribute
方法 or 属性:onChange(callback: (value: number, mode: SliderChangeMode) => void): SliderAttribute;
起始版本:7|类名:SliderAttribute
方法 or 属性:onChange(callback: (value: number, mode: SliderChangeMode) => void): SliderAttribute;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Slider: SliderInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Slider: SliderInterface;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const SliderInstance: SliderAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const SliderInstance: SliderAttribute;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SpanInterface
起始版本:7|类名:SpanInterface
起始版本:9|span.d.ts| +|起始版本有变化|类名:SpanInterface
方法 or 属性:(value: string \| Resource): SpanAttribute;
起始版本:7|类名:SpanInterface
方法 or 属性:(value: string \| Resource): SpanAttribute;
起始版本:9|span.d.ts| +|起始版本有变化|类名:SpanAttribute
起始版本:7|类名:SpanAttribute
起始版本:9|span.d.ts| +|起始版本有变化|类名:SpanAttribute
方法 or 属性:fontColor(value: ResourceColor): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:fontColor(value: ResourceColor): SpanAttribute;
起始版本:9|span.d.ts| +|起始版本有变化|类名:SpanAttribute
方法 or 属性:fontSize(value: number \| string \| Resource): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:fontSize(value: number \| string \| Resource): SpanAttribute;
起始版本:9|span.d.ts| +|起始版本有变化|类名:SpanAttribute
方法 or 属性:fontStyle(value: FontStyle): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:fontStyle(value: FontStyle): SpanAttribute;
起始版本:9|span.d.ts| +|起始版本有变化|类名:SpanAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): SpanAttribute;
起始版本:9|span.d.ts| +|起始版本有变化|类名:SpanAttribute
方法 or 属性:fontFamily(value: string \| Resource): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:fontFamily(value: string \| Resource): SpanAttribute;
起始版本:9|span.d.ts| +|起始版本有变化|类名:SpanAttribute
方法 or 属性:decoration(value: { type: TextDecorationType; color?: ResourceColor }): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:decoration(value: { type: TextDecorationType; color?: ResourceColor }): SpanAttribute;
起始版本:9|span.d.ts| +|起始版本有变化|类名:SpanAttribute
方法 or 属性:letterSpacing(value: number \| string): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:letterSpacing(value: number \| string): SpanAttribute;
起始版本:9|span.d.ts| +|起始版本有变化|类名:SpanAttribute
方法 or 属性:textCase(value: TextCase): SpanAttribute;
起始版本:N/A|类名:SpanAttribute
方法 or 属性:textCase(value: TextCase): SpanAttribute;
起始版本:9|span.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Span: SpanInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Span: SpanInterface;
起始版本:9|span.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const SpanInstance: SpanAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const SpanInstance: SpanAttribute;
起始版本:9|span.d.ts| +|起始版本有变化|类名:StackInterface
起始版本:7|类名:StackInterface
起始版本:9|stack.d.ts| +|起始版本有变化|类名:StackInterface
方法 or 属性:(value?: { alignContent?: Alignment }): StackAttribute;
起始版本:7|类名:StackInterface
方法 or 属性:(value?: { alignContent?: Alignment }): StackAttribute;
起始版本:9|stack.d.ts| +|起始版本有变化|类名:StackAttribute
起始版本:7|类名:StackAttribute
起始版本:9|stack.d.ts| +|起始版本有变化|类名:StackAttribute
方法 or 属性:alignContent(value: Alignment): StackAttribute;
起始版本:7|类名:StackAttribute
方法 or 属性:alignContent(value: Alignment): StackAttribute;
起始版本:9|stack.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Stack: StackInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Stack: StackInterface;
起始版本:9|stack.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const StackInstance: StackAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const StackInstance: StackAttribute;
起始版本:9|stack.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Stepper: StepperInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Stepper: StepperInterface;
起始版本:8|stepper.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const StepperInstance: StepperAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const StepperInstance: StepperAttribute;
起始版本:8|stepper.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const StepperItemInstance: StepperItemAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const StepperItemInstance: StepperItemAttribute;
起始版本:8|stepper_item.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const StepperItem: StepperItemInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const StepperItem: StepperItemInterface;
起始版本:8|stepper_item.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Swiper: SwiperInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Swiper: SwiperInterface;
起始版本:7|swiper.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const SwiperInstance: SwiperAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const SwiperInstance: SwiperAttribute;
起始版本:7|swiper.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Tabs: TabsInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Tabs: TabsInterface;
起始版本:7|tabs.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TabsInstance: TabsAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TabsInstance: TabsAttribute;
起始版本:7|tabs.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TabContent: TabContentInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TabContent: TabContentInterface;
起始版本:7|tab_content.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TabContentInstance: TabContentAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TabContentInstance: TabContentAttribute;
起始版本:7|tab_content.d.ts| +|起始版本有变化|类名:TextInterface
起始版本:7|类名:TextInterface
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextInterface
方法 or 属性:(content?: string \| Resource): TextAttribute;
起始版本:7|类名:TextInterface
方法 or 属性:(content?: string \| Resource): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
起始版本:7|类名:TextAttribute
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:fontColor(value: ResourceColor): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:fontColor(value: ResourceColor): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:fontSize(value: number \| string \| Resource): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:fontSize(value: number \| string \| Resource): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:minFontSize(value: number \| string \| Resource): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:minFontSize(value: number \| string \| Resource): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:maxFontSize(value: number \| string \| Resource): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:maxFontSize(value: number \| string \| Resource): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:fontStyle(value: FontStyle): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:fontStyle(value: FontStyle): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:textAlign(value: TextAlign): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:textAlign(value: TextAlign): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:lineHeight(value: number \| string \| Resource): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:lineHeight(value: number \| string \| Resource): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:textOverflow(value: { overflow: TextOverflow }): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:textOverflow(value: { overflow: TextOverflow }): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:fontFamily(value: string \| Resource): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:fontFamily(value: string \| Resource): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:maxLines(value: number): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:maxLines(value: number): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:decoration(value: { type: TextDecorationType; color?: ResourceColor }): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:decoration(value: { type: TextDecorationType; color?: ResourceColor }): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:letterSpacing(value: number \| string): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:letterSpacing(value: number \| string): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:textCase(value: TextCase): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:textCase(value: TextCase): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:baselineOffset(value: number \| string): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:baselineOffset(value: number \| string): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextInstance: TextAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TextInstance: TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Text: TextInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Text: TextInterface;
起始版本:9|text.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextArea: TextAreaInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TextArea: TextAreaInterface;
起始版本:7|text_area.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextAreaInstance: TextAreaAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TextAreaInstance: TextAreaAttribute;
起始版本:7|text_area.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextClock: TextClockInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TextClock: TextClockInterface;
起始版本:8|text_clock.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextClockInstance: TextClockAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TextClockInstance: TextClockAttribute;
起始版本:8|text_clock.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextInput: TextInputInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TextInput: TextInputInterface;
起始版本:7|text_input.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextInputInstance: TextInputAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TextInputInstance: TextInputAttribute;
起始版本:7|text_input.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextPicker: TextPickerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TextPicker: TextPickerInterface;
起始版本:8|text_picker.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextPickerInstance: TextPickerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TextPickerInstance: TextPickerAttribute;
起始版本:8|text_picker.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextTimer: TextTimerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TextTimer: TextTimerInterface;
起始版本:8|text_timer.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextTimerInstance: TextTimerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TextTimerInstance: TextTimerAttribute;
起始版本:8|text_timer.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TimePicker: TimePickerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TimePicker: TimePickerInterface;
起始版本:8|time_picker.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TimePickerInstance: TimePickerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TimePickerInstance: TimePickerAttribute;
起始版本:8|time_picker.d.ts| +|起始版本有变化|类名:ToggleType
起始版本:8|类名:ToggleType
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:ToggleType
方法 or 属性:Checkbox
起始版本:8|类名:ToggleType
方法 or 属性:Checkbox
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:ToggleType
方法 or 属性:Switch
起始版本:8|类名:ToggleType
方法 or 属性:Switch
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:ToggleType
方法 or 属性:Button
起始版本:8|类名:ToggleType
方法 or 属性:Button
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:ToggleInterface
起始版本:8|类名:ToggleInterface
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:ToggleInterface
方法 or 属性:(options: { type: ToggleType; isOn?: boolean }): ToggleAttribute;
起始版本:8|类名:ToggleInterface
方法 or 属性:(options: { type: ToggleType; isOn?: boolean }): ToggleAttribute;
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:ToggleAttribute
起始版本:8|类名:ToggleAttribute
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:ToggleAttribute
方法 or 属性:onChange(callback: (isOn: boolean) => void): ToggleAttribute;
起始版本:8|类名:ToggleAttribute
方法 or 属性:onChange(callback: (isOn: boolean) => void): ToggleAttribute;
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:ToggleAttribute
方法 or 属性:selectedColor(value: ResourceColor): ToggleAttribute;
起始版本:8|类名:ToggleAttribute
方法 or 属性:selectedColor(value: ResourceColor): ToggleAttribute;
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:ToggleAttribute
方法 or 属性:switchPointColor(color: ResourceColor): ToggleAttribute;
起始版本:8|类名:ToggleAttribute
方法 or 属性:switchPointColor(color: ResourceColor): ToggleAttribute;
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Toggle: ToggleInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Toggle: ToggleInterface;
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ToggleInstance: ToggleAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ToggleInstance: ToggleAttribute;
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Video: VideoInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Video: VideoInterface;
起始版本:7|video.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const VideoInstance: VideoAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const VideoInstance: VideoAttribute;
起始版本:7|video.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const WaterFlow: WaterFlowInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const WaterFlow: WaterFlowInterface;
起始版本:9|water_flow.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const WaterFlowInstance: WaterFlowAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const WaterFlowInstance: WaterFlowAttribute;
起始版本:9|water_flow.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Web: WebInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Web: WebInterface;
起始版本:8|web.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const WebInstance: WebAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const WebInstance: WebAttribute;
起始版本:8|web.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const XComponent: XComponentInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const XComponent: XComponentInterface;
起始版本:8|xcomponent.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const XComponentInstance: XComponentAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const XComponentInstance: XComponentAttribute;
起始版本:8|xcomponent.d.ts| +|SysCap有变化|类名:console
方法 or 属性:static debug(message: string, ...arguments: any[]): void;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:console
方法 or 属性:static debug(message: string, ...arguments: any[]): void;
SysCap:N/A|global.d.ts| +|SysCap有变化|类名:console
方法 or 属性:static log(message: string, ...arguments: any[]): void;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:console
方法 or 属性:static log(message: string, ...arguments: any[]): void;
SysCap:N/A|global.d.ts| +|SysCap有变化|类名:console
方法 or 属性:static info(message: string, ...arguments: any[]): void;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:console
方法 or 属性:static info(message: string, ...arguments: any[]): void;
SysCap:N/A|global.d.ts| +|SysCap有变化|类名:console
方法 or 属性:static warn(message: string, ...arguments: any[]): void;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:console
方法 or 属性:static warn(message: string, ...arguments: any[]): void;
SysCap:N/A|global.d.ts| +|SysCap有变化|类名:console
方法 or 属性:static error(message: string, ...arguments: any[]): void;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:console
方法 or 属性:static error(message: string, ...arguments: any[]): void;
SysCap:N/A|global.d.ts| +|SysCap有变化|类名:TabContentInterface
SysCap:N/A|类名:TabContentInterface
SysCap:SystemCapability.ArkUI.ArkUI.Full|tab_content.d.ts| +|SysCap有变化|类名:TabContentInterface
方法 or 属性:(): TabContentAttribute;
SysCap:N/A|类名:TabContentInterface
方法 or 属性:(): TabContentAttribute;
SysCap:SystemCapability.ArkUI.ArkUI.Full|tab_content.d.ts| +|SysCap有变化|类名:TabContentAttribute
SysCap:N/A|类名:TabContentAttribute
SysCap:SystemCapability.ArkUI.ArkUI.Full|tab_content.d.ts| +|SysCap有变化|类名:TabContentAttribute
方法 or 属性:tabBar(value: string \| Resource \| CustomBuilder \|
{ icon?: string \| Resource; text?: string \| Resource }): TabContentAttribute;
SysCap:N/A|类名:TabContentAttribute
方法 or 属性:tabBar(value: string \| Resource \| CustomBuilder \|
{ icon?: string \| Resource; text?: string \| Resource }): TabContentAttribute;
SysCap:SystemCapability.ArkUI.ArkUI.Full|tab_content.d.ts| +|SysCap有变化|类名:global
方法 or 属性:declare const TabContent: TabContentInterface;
SysCap:N/A|类名:global
方法 or 属性:declare const TabContent: TabContentInterface;
SysCap:SystemCapability.ArkUI.ArkUI.Full|tab_content.d.ts| +|SysCap有变化|类名:global
方法 or 属性:declare const TabContentInstance: TabContentAttribute;
SysCap:N/A|类名:global
方法 or 属性:declare const TabContentInstance: TabContentAttribute;
SysCap:SystemCapability.ArkUI.ArkUI.Full|tab_content.d.ts| +|函数有变化|类名:
方法 or 属性: function getInspectorTree(): string;
|类名:
方法 or 属性: function getInspectorTree(): Object;
|global.d.ts| +|函数有变化|类名:LocalStorage
方法 or 属性:get\(propName: string): T;
|类名:LocalStorage
方法 or 属性:get\(propName: string): T \| undefined;
|common_ts_ets_api.d.ts| +|函数有变化|类名:LocalStorage
方法 or 属性:setOrCreate\(propName: string, newValue?: T): boolean;
|类名:LocalStorage
方法 or 属性:setOrCreate\(propName: string, newValue: T): boolean;
|common_ts_ets_api.d.ts| +|函数有变化|类名:LocalStorage
方法 or 属性:link\(propName: string, linkUser?: T, subscribersName?: string): T;
|类名:LocalStorage
方法 or 属性:link\(propName: string): SubscribedAbstractProperty\;
|common_ts_ets_api.d.ts| +|函数有变化|类名:LocalStorage
方法 or 属性:setAndLink\(propName: string, defaultValue: T, linkUser?: T, subscribersName?: string): T;
|类名:LocalStorage
方法 or 属性:setAndLink\(propName: string, defaultValue: T): SubscribedAbstractProperty\;
|common_ts_ets_api.d.ts| +|函数有变化|类名:LocalStorage
方法 or 属性:prop\(propName: string, propUser?: T, subscribersName?: string): T;
|类名:LocalStorage
方法 or 属性:prop\(propName: string): SubscribedAbstractProperty\;
|common_ts_ets_api.d.ts| +|函数有变化|类名:LocalStorage
方法 or 属性:setAndProp\(propName: string, defaultValue: T, propUser?: T, subscribersName?: string): T;
|类名:LocalStorage
方法 or 属性:setAndProp\(propName: string, defaultValue: S): SubscribedAbstractProperty\;
|common_ts_ets_api.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-battery.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-battery.md new file mode 100644 index 0000000000000000000000000000000000000000..8ea014b7b3c716bcf205c3ef49f426a64d1544d0 --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-battery.md @@ -0,0 +1,38 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:BatteryCapacityLevel
方法or属性:LEVEL_WARNING|@ohos.batteryInfo.d.ts| +|新增|NA|类名:BatteryCapacityLevel
方法or属性:LEVEL_SHUTDOWN|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey|@ohos.batteryInfo.d.ts| +|新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性:EXTRA_SOC = "soc"|@ohos.batteryInfo.d.ts| +|新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_SOC = "soc"|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性:EXTRA_CHARGE_STATE = "chargeState"|@ohos.batteryInfo.d.ts| +|新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_CHARGE_STATE = "chargeState"|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性:EXTRA_HEALTH_STATE = "healthState"|@ohos.batteryInfo.d.ts| +|新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_HEALTH_STATE = "healthState"|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性:EXTRA_PLUGGED_TYPE = "pluggedType"|@ohos.batteryInfo.d.ts| +|新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_PLUGGED_TYPE = "pluggedType"|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性:EXTRA_VOLTAGE = "voltage"|@ohos.batteryInfo.d.ts| +|新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_VOLTAGE = "voltage"|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性:EXTRA_TECHNOLOGY = "technology"|@ohos.batteryInfo.d.ts| +|新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_TECHNOLOGY = "technology"|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性:EXTRA_TEMPERATURE = "temperature"|@ohos.batteryInfo.d.ts| +|新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_TEMPERATURE = "temperature"|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性:EXTRA_PRESENT = "present"|@ohos.batteryInfo.d.ts| +|新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_PRESENT = "present"|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性:EXTRA_CAPACITY_LEVEL = "capacityLevel"|@ohos.batteryInfo.d.ts| +|新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_CAPACITY_LEVEL = "capacityLevel"|@ohos.batteryInfo.d.ts| +|删除|模块名:ohos.batteryInfo
类名:BatteryCapacityLevel
方法 or 属性:LEVEL_NONE|NA|@ohos.batteryInfo.d.ts| +|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode|NA|@ohos.batteryInfo.d.ts| +|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_SOC = 0|NA|@ohos.batteryInfo.d.ts| +|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_VOLTAGE|NA|@ohos.batteryInfo.d.ts| +|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_TEMPERATURE|NA|@ohos.batteryInfo.d.ts| +|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_HEALTH_STATE|NA|@ohos.batteryInfo.d.ts| +|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_PLUGGED_TYPE|NA|@ohos.batteryInfo.d.ts| +|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_MAX_CURRENT|NA|@ohos.batteryInfo.d.ts| +|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_MAX_VOLTAGE|NA|@ohos.batteryInfo.d.ts| +|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_CHARGE_STATE|NA|@ohos.batteryInfo.d.ts| +|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_CHARGE_COUNTER|NA|@ohos.batteryInfo.d.ts| +|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_PRESENT|NA|@ohos.batteryInfo.d.ts| +|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_TECHNOLOGY|NA|@ohos.batteryInfo.d.ts| +|访问级别有变化|类名:batteryInfo
方法 or 属性:const estimatedRemainingChargeTime: number;
访问级别:公开API|类名:batteryInfo
方法 or 属性:const estimatedRemainingChargeTime: number;
访问级别:系统API|@ohos.batteryInfo.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-bundle.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-bundle.md new file mode 100644 index 0000000000000000000000000000000000000000..80e6361ca7b6a55649b3dd5b05cca56d26449fa6 --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-bundle.md @@ -0,0 +1,351 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:LaunchType
方法or属性:MULTITON = 1|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ModuleType|@ohos.bundle.bundleManager.d.ts| +|新增|NA|类名:ModuleType
方法or属性:|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ModuleType
方法 or 属性:ENTRY = 1|@ohos.bundle.bundleManager.d.ts| +|新增|NA|类名:ModuleType
方法or属性:ENTRY = 1|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ModuleType
方法 or 属性:FEATURE = 2|@ohos.bundle.bundleManager.d.ts| +|新增|NA|类名:ModuleType
方法or属性:FEATURE = 2|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ModuleType
方法 or 属性:SHARED = 3|@ohos.bundle.bundleManager.d.ts| +|新增|NA|类名:ModuleType
方法or属性:SHARED = 3|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleType|@ohos.bundle.bundleManager.d.ts| +|新增|NA|类名:BundleType
方法or属性:|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleType
方法 or 属性:APP = 0|@ohos.bundle.bundleManager.d.ts| +|新增|NA|类名:BundleType
方法or属性:APP = 0|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleType
方法 or 属性:ATOMIC_SERVICE = 1|@ohos.bundle.bundleManager.d.ts| +|新增|NA|类名:BundleType
方法or属性:ATOMIC_SERVICE = 1|@ohos.bundle.bundleManager.d.ts| +|新增|NA|类名:BundleInstaller
方法or属性:install(hapFilePaths: Array\, callback: AsyncCallback\) : void;|@ohos.bundle.installer.d.ts| +|新增|NA|类名:BundleInstaller
方法or属性:recover(bundleName: string, callback: AsyncCallback\): void;|@ohos.bundle.installer.d.ts| +|新增|NA|类名:InstallParam
方法or属性:userId?: number;|@ohos.bundle.installer.d.ts| +|新增|NA|类名:InstallParam
方法or属性:installFlag?: number;|@ohos.bundle.installer.d.ts| +|新增|NA|类名:InstallParam
方法or属性:isKeepData?: boolean;|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly bundleName: string;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly moduleName: string;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly name: string;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly label: string;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly labelId: number;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly description: string;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly descriptionId: number;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly icon: string;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly iconId: number;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly process: string;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly exported: boolean;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly type: bundleManager.AbilityType;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly orientation: bundleManager.DisplayOrientation;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly launchType: bundleManager.LaunchType;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly permissions: Array\;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly readPermission: string;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly writePermission: string;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly uri: string;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly deviceTypes: Array\;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly applicationInfo: ApplicationInfo;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly metadata: Array\;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly enabled: boolean;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly supportWindowModes: Array\;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly windowSize: WindowSize;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: WindowSize|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: WindowSize
方法 or 属性: readonly maxWindowRatio: number;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: WindowSize
方法 or 属性: readonly minWindowRatio: number;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: WindowSize
方法 or 属性: readonly maxWindowWidth: number;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: WindowSize
方法 or 属性: readonly minWindowWidth: number;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: WindowSize
方法 or 属性: readonly maxWindowHeight: number;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: WindowSize
方法 or 属性: readonly minWindowHeight: number;|AbilityInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly name: string;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly description: string;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly descriptionId: number;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly enabled: boolean;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly label: string;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly labelId: number;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly icon: string;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly iconId: number;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly process: string;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly permissions: Array\;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly codePath: string;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly metadata: Map\>;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly removable: boolean;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly accessTokenId: number;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly uid: number;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly iconResource: Resource;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly labelResource: Resource;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly descriptionResource: Resource;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly appDistributionType: string;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly appProvisionType: string;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly systemApp: boolean;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly bundleType: bundleManager.BundleType;|ApplicationInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly name: string;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly vendor: string;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly versionCode: number;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly versionName: string;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly minCompatibleVersionCode: number;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly targetVersion: number;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly appInfo: ApplicationInfo;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly hapModulesInfo: Array\;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly reqPermissionDetails: Array\;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly permissionGrantStates: Array\;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly signatureInfo: SignatureInfo;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly installTime: number;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly updateTime: number;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: ReqPermissionDetail|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: ReqPermissionDetail
方法 or 属性: name: string;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: ReqPermissionDetail
方法 or 属性: reason: string;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: ReqPermissionDetail
方法 or 属性: reasonId: number;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: ReqPermissionDetail
方法 or 属性: usedScene: UsedScene;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: UsedScene|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: UsedScene
方法 or 属性: abilities: Array\;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: UsedScene
方法 or 属性: when: string;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: SignatureInfo|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: SignatureInfo
方法 or 属性: readonly appId: string;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: SignatureInfo
方法 or 属性: readonly fingerprint: string;|BundleInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: BundlePackInfo|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: BundlePackInfo
方法 or 属性: readonly packages: Array\;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: BundlePackInfo
方法 or 属性: readonly summary: PackageSummary;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: PackageConfig|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: PackageConfig
方法 or 属性: readonly deviceTypes: Array\;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: PackageConfig
方法 or 属性: readonly name: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: PackageConfig
方法 or 属性: readonly moduleType: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: PackageConfig
方法 or 属性: readonly deliveryWithInstall: boolean;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: PackageSummary|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: PackageSummary
方法 or 属性: readonly app: BundleConfigInfo;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: PackageSummary
方法 or 属性: readonly modules: Array\;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: BundleConfigInfo|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: BundleConfigInfo
方法 or 属性: readonly bundleName: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: BundleConfigInfo
方法 or 属性: readonly version: Version;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ExtensionAbility|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ExtensionAbility
方法 or 属性: readonly name: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ExtensionAbility
方法 or 属性: readonly forms: Array\;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleConfigInfo|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleConfigInfo
方法 or 属性: readonly mainAbility: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleConfigInfo
方法 or 属性: readonly apiVersion: ApiVersion;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleConfigInfo
方法 or 属性: readonly deviceTypes: Array\;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleConfigInfo
方法 or 属性: readonly distro: ModuleDistroInfo;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleConfigInfo
方法 or 属性: readonly abilities: Array\;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleConfigInfo
方法 or 属性: readonly extensionAbilities: Array\;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleDistroInfo|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleDistroInfo
方法 or 属性: readonly deliveryWithInstall: boolean;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleDistroInfo
方法 or 属性: readonly installationFree: boolean;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleDistroInfo
方法 or 属性: readonly moduleName: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleDistroInfo
方法 or 属性: readonly moduleType: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleAbilityInfo|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleAbilityInfo
方法 or 属性: readonly name: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleAbilityInfo
方法 or 属性: readonly label: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleAbilityInfo
方法 or 属性: readonly exported: boolean;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleAbilityInfo
方法 or 属性: readonly forms: Array\;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: AbilityFormInfo|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: AbilityFormInfo
方法 or 属性: readonly name: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: AbilityFormInfo
方法 or 属性: readonly type: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: AbilityFormInfo
方法 or 属性: readonly updateEnabled: boolean;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: AbilityFormInfo
方法 or 属性: readonly scheduledUpdateTime: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: AbilityFormInfo
方法 or 属性: readonly updateDuration: number;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: AbilityFormInfo
方法 or 属性: readonly supportDimensions: Array\;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: AbilityFormInfo
方法 or 属性: readonly defaultDimension: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: Version|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: Version
方法 or 属性: readonly minCompatibleVersionCode: number;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: Version
方法 or 属性: readonly name: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: Version
方法 or 属性: readonly code: number;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ApiVersion|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ApiVersion
方法 or 属性: readonly releaseType: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ApiVersion
方法 or 属性: readonly compatible: number;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ApiVersion
方法 or 属性: readonly target: number;|BundlePackInfo.d.ts| +|新增|NA|模块名: DispatchInfo
类名: DispatchInfo|DispatchInfo.d.ts| +|新增|NA|模块名: DispatchInfo
类名: DispatchInfo
方法 or 属性: readonly version: string;|DispatchInfo.d.ts| +|新增|NA|模块名: DispatchInfo
类名: DispatchInfo
方法 or 属性: readonly dispatchAPIVersion: string;|DispatchInfo.d.ts| +|新增|NA|模块名: ElementName
类名: ElementName|ElementName.d.ts| +|新增|NA|模块名: ElementName
类名: ElementName
方法 or 属性: deviceId?: string;|ElementName.d.ts| +|新增|NA|模块名: ElementName
类名: ElementName
方法 or 属性: bundleName: string;|ElementName.d.ts| +|新增|NA|模块名: ElementName
类名: ElementName
方法 or 属性: moduleName?: string;|ElementName.d.ts| +|新增|NA|模块名: ElementName
类名: ElementName
方法 or 属性: abilityName: string;|ElementName.d.ts| +|新增|NA|模块名: ElementName
类名: ElementName
方法 or 属性: uri?: string;|ElementName.d.ts| +|新增|NA|模块名: ElementName
类名: ElementName
方法 or 属性: shortName?: string;|ElementName.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly bundleName: string;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly moduleName: string;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly name: string;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly labelId: number;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly descriptionId: number;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly iconId: number;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly exported: boolean;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly extensionAbilityType: bundleManager.ExtensionAbilityType;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly permissions: Array\;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly applicationInfo: ApplicationInfo;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly metadata: Array\;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly enabled: boolean;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly readPermission: string;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly writePermission: string;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly name: string;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly icon: string;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly iconId: number;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly label: string;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly labelId: number;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly description: string;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly descriptionId: number;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly mainElementName: string;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly abilitiesInfo: Array\;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly extensionAbilitiesInfo: Array\;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly metadata: Array\;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly deviceTypes: Array\;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly installationFree: boolean;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly hashValue: string;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly type: bundleManager.ModuleType;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly dependencies: Array\;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly preloads: Array\;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: Dependency|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: Dependency
方法 or 属性: readonly moduleName: string;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: PreloadItem|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: PreloadItem
方法 or 属性: readonly moduleName: string;|HapModuleInfo.d.ts| +|新增|NA|模块名: LauncherAbilityInfo
类名: LauncherAbilityInfo|LauncherAbilityInfo.d.ts| +|新增|NA|模块名: LauncherAbilityInfo
类名: LauncherAbilityInfo
方法 or 属性: readonly applicationInfo: ApplicationInfo;|LauncherAbilityInfo.d.ts| +|新增|NA|模块名: LauncherAbilityInfo
类名: LauncherAbilityInfo
方法 or 属性: readonly elementName : ElementName;|LauncherAbilityInfo.d.ts| +|新增|NA|模块名: LauncherAbilityInfo
类名: LauncherAbilityInfo
方法 or 属性: readonly labelId: number;|LauncherAbilityInfo.d.ts| +|新增|NA|模块名: LauncherAbilityInfo
类名: LauncherAbilityInfo
方法 or 属性: readonly iconId: number;|LauncherAbilityInfo.d.ts| +|新增|NA|模块名: LauncherAbilityInfo
类名: LauncherAbilityInfo
方法 or 属性: readonly userId: number;|LauncherAbilityInfo.d.ts| +|新增|NA|模块名: LauncherAbilityInfo
类名: LauncherAbilityInfo
方法 or 属性: readonly installTime : number;|LauncherAbilityInfo.d.ts| +|新增|NA|模块名: Metadata
类名: Metadata|Metadata.d.ts| +|新增|NA|模块名: Metadata
类名: Metadata
方法 or 属性: name: string;|Metadata.d.ts| +|新增|NA|模块名: Metadata
类名: Metadata
方法 or 属性: value: string;|Metadata.d.ts| +|新增|NA|模块名: Metadata
类名: Metadata
方法 or 属性: resource: string;|Metadata.d.ts| +|新增|NA|模块名: PermissionDef
类名: PermissionDef
方法 or 属性: readonly permissionName: string;|PermissionDef.d.ts| +|新增|NA|模块名: PermissionDef
类名: PermissionDef
方法 or 属性: readonly grantMode: number;|PermissionDef.d.ts| +|新增|NA|模块名: PermissionDef
类名: PermissionDef
方法 or 属性: readonly labelId: number;|PermissionDef.d.ts| +|新增|NA|模块名: PermissionDef
类名: PermissionDef
方法 or 属性: readonly descriptionId: number;|PermissionDef.d.ts| +|新增|NA|模块名: RemoteAbilityInfo
类名: RemoteAbilityInfo|RemoteAbilityInfo.d.ts| +|新增|NA|模块名: RemoteAbilityInfo
类名: RemoteAbilityInfo
方法 or 属性: readonly elementName: ElementName;|RemoteAbilityInfo.d.ts| +|新增|NA|模块名: RemoteAbilityInfo
类名: RemoteAbilityInfo
方法 or 属性: readonly label: string;|RemoteAbilityInfo.d.ts| +|新增|NA|模块名: RemoteAbilityInfo
类名: RemoteAbilityInfo
方法 or 属性: readonly icon: string;|RemoteAbilityInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutInfo|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutInfo
方法 or 属性: readonly id: string;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutInfo
方法 or 属性: readonly bundleName: string;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutInfo
方法 or 属性: readonly moduleName: string;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutInfo
方法 or 属性: readonly hostAbility: string;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutInfo
方法 or 属性: readonly icon: string;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutInfo
方法 or 属性: readonly iconId: number;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutInfo
方法 or 属性: readonly label: string;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutInfo
方法 or 属性: readonly labelId: number;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutInfo
方法 or 属性: readonly wants: Array\;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutWant|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutWant
方法 or 属性: readonly targetBundle: string;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutWant
方法 or 属性: readonly targetModule: string;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutWant
方法 or 属性: readonly targetAbility: string;|ShortcutInfo.d.ts| +|删除|模块名:ohos.bundle.bundleManager
类名:LaunchType
方法 or 属性:STANDARD = 1|NA|@ohos.bundle.bundleManager.d.ts| +|删除|模块名:ohos.bundle.bundleManager
类名:bundleManager
方法 or 属性:function getAbilityIcon(bundleName: string, moduleName: string, abilityName: string, callback: AsyncCallback\): void;|NA|@ohos.bundle.bundleManager.d.ts| +|删除|模块名:ohos.bundle.bundleManager
类名:bundleManager
方法 or 属性:function getAbilityIcon(bundleName: string, moduleName: string, abilityName: string): Promise\;|NA|@ohos.bundle.bundleManager.d.ts| +|删除|模块名: abilityInfo
类名: AbilityInfo
方法 or 属性:readonly type: bundleManager.AbilityType;|NA|abilityInfo.d.ts| +|删除|模块名: abilityInfo
类名: AbilityInfo
方法 or 属性:readonly orientation: bundleManager.DisplayOrientation;|NA|abilityInfo.d.ts| +|删除|模块名: abilityInfo
类名: AbilityInfo
方法 or 属性:readonly launchType: bundleManager.LaunchType;|NA|abilityInfo.d.ts| +|删除|模块名: abilityInfo
类名: AbilityInfo
方法 or 属性:readonly metadata: Array\;|NA|abilityInfo.d.ts| +|删除|模块名: abilityInfo
类名: AbilityInfo
方法 or 属性:readonly supportWindowModes: Array\;|NA|abilityInfo.d.ts| +|删除|模块名: abilityInfo
类名: AbilityInfo
方法 or 属性:readonly windowSize: WindowSize;|NA|abilityInfo.d.ts| +|删除|模块名: abilityInfo
类名: WindowSize|NA|abilityInfo.d.ts| +|删除|模块名: abilityInfo
类名: WindowSize
方法 or 属性:readonly maxWindowRatio: number;|NA|abilityInfo.d.ts| +|删除|模块名: abilityInfo
类名: WindowSize
方法 or 属性:readonly minWindowRatio: number;|NA|abilityInfo.d.ts| +|删除|模块名: abilityInfo
类名: WindowSize
方法 or 属性:readonly maxWindowWidth: number;|NA|abilityInfo.d.ts| +|删除|模块名: abilityInfo
类名: WindowSize
方法 or 属性:readonly minWindowWidth: number;|NA|abilityInfo.d.ts| +|删除|模块名: abilityInfo
类名: WindowSize
方法 or 属性:readonly maxWindowHeight: number;|NA|abilityInfo.d.ts| +|删除|模块名: abilityInfo
类名: WindowSize
方法 or 属性:readonly minWindowHeight: number;|NA|abilityInfo.d.ts| +|删除|模块名: applicationInfo
类名: ApplicationInfo
方法 or 属性:readonly labelId: number;|NA|applicationInfo.d.ts| +|删除|模块名: applicationInfo
类名: ApplicationInfo
方法 or 属性:readonly iconId: number;|NA|applicationInfo.d.ts| +|删除|模块名: applicationInfo
类名: ApplicationInfo
方法 or 属性:readonly metadata: Map\>;|NA|applicationInfo.d.ts| +|删除|模块名: applicationInfo
类名: ApplicationInfo
方法 or 属性:readonly iconResource: Resource;|NA|applicationInfo.d.ts| +|删除|模块名: applicationInfo
类名: ApplicationInfo
方法 or 属性:readonly labelResource: Resource;|NA|applicationInfo.d.ts| +|删除|模块名: applicationInfo
类名: ApplicationInfo
方法 or 属性:readonly descriptionResource: Resource;|NA|applicationInfo.d.ts| +|删除|模块名: applicationInfo
类名: ApplicationInfo
方法 or 属性:readonly appDistributionType: string;|NA|applicationInfo.d.ts| +|删除|模块名: applicationInfo
类名: ApplicationInfo
方法 or 属性:readonly appProvisionType: string;|NA|applicationInfo.d.ts| +|删除|模块名: bundleInfo
类名: BundleInfo
方法 or 属性:readonly hapModulesInfo: Array\;|NA|bundleInfo.d.ts| +|删除|模块名: bundleInfo
类名: BundleInfo
方法 or 属性:readonly permissionGrantStates: Array\;|NA|bundleInfo.d.ts| +|删除|模块名: bundleInfo
类名: BundleInfo
方法 or 属性:readonly signatureInfo: SignatureInfo;|NA|bundleInfo.d.ts| +|删除|模块名: bundleInfo
类名: ReqPermissionDetail
方法 or 属性:reasonId: number;|NA|bundleInfo.d.ts| +|删除|模块名: bundleInfo
类名: SignatureInfo|NA|bundleInfo.d.ts| +|删除|模块名: bundleInfo
类名: SignatureInfo
方法 or 属性:readonly appId: string;|NA|bundleInfo.d.ts| +|删除|模块名: bundleInfo
类名: SignatureInfo
方法 or 属性:readonly fingerprint: string;|NA|bundleInfo.d.ts| +|删除|模块名: dispatchInfo
类名: DispatchInfo|NA|dispatchInfo.d.ts| +|删除|模块名: dispatchInfo
类名: DispatchInfo
方法 or 属性:readonly version: string;|NA|dispatchInfo.d.ts| +|删除|模块名: dispatchInfo
类名: DispatchInfo
方法 or 属性:readonly dispatchAPIVersion: string;|NA|dispatchInfo.d.ts| +|删除|模块名: elementName
类名: ElementName
方法 or 属性:moduleName?: string;|NA|elementName.d.ts| +|删除|模块名: extensionAbilityInfo
类名: ExtensionAbilityInfo|NA|extensionAbilityInfo.d.ts| +|删除|模块名: extensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性:readonly bundleName: string;|NA|extensionAbilityInfo.d.ts| +|删除|模块名: extensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性:readonly moduleName: string;|NA|extensionAbilityInfo.d.ts| +|删除|模块名: extensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性:readonly name: string;|NA|extensionAbilityInfo.d.ts| +|删除|模块名: extensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性:readonly labelId: number;|NA|extensionAbilityInfo.d.ts| +|删除|模块名: extensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性:readonly descriptionId: number;|NA|extensionAbilityInfo.d.ts| +|删除|模块名: extensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性:readonly iconId: number;|NA|extensionAbilityInfo.d.ts| +|删除|模块名: extensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性:readonly isVisible: boolean;|NA|extensionAbilityInfo.d.ts| +|删除|模块名: extensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性:readonly extensionAbilityType: bundleManager.ExtensionAbilityType;|NA|extensionAbilityInfo.d.ts| +|删除|模块名: extensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性:readonly permissions: Array\;|NA|extensionAbilityInfo.d.ts| +|删除|模块名: extensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性:readonly applicationInfo: ApplicationInfo;|NA|extensionAbilityInfo.d.ts| +|删除|模块名: extensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性:readonly metadata: Array\;|NA|extensionAbilityInfo.d.ts| +|删除|模块名: extensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性:readonly enabled: boolean;|NA|extensionAbilityInfo.d.ts| +|删除|模块名: extensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性:readonly readPermission: string;|NA|extensionAbilityInfo.d.ts| +|删除|模块名: extensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性:readonly writePermission: string;|NA|extensionAbilityInfo.d.ts| +|删除|模块名: hapModuleInfo
类名: HapModuleInfo
方法 or 属性:readonly mainElementName: string;|NA|hapModuleInfo.d.ts| +|删除|模块名: hapModuleInfo
类名: HapModuleInfo
方法 or 属性:readonly abilitiesInfo: Array\;|NA|hapModuleInfo.d.ts| +|删除|模块名: hapModuleInfo
类名: HapModuleInfo
方法 or 属性:readonly extensionAbilitiesInfo: Array\;|NA|hapModuleInfo.d.ts| +|删除|模块名: hapModuleInfo
类名: HapModuleInfo
方法 or 属性:readonly metadata: Array\;|NA|hapModuleInfo.d.ts| +|删除|模块名: hapModuleInfo
类名: HapModuleInfo
方法 or 属性:readonly hashValue: string;|NA|hapModuleInfo.d.ts| +|删除|模块名: metadata
类名: Metadata|NA|metadata.d.ts| +|删除|模块名: metadata
类名: Metadata
方法 or 属性:name: string;|NA|metadata.d.ts| +|删除|模块名: metadata
类名: Metadata
方法 or 属性:value: string;|NA|metadata.d.ts| +|删除|模块名: metadata
类名: Metadata
方法 or 属性:resource: string;|NA|metadata.d.ts| +|删除|模块名: packInfo
类名: BundlePackInfo|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: BundlePackInfo
方法 or 属性:readonly packages: Array\;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: BundlePackInfo
方法 or 属性:readonly summary: PackageSummary;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: PackageConfig|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: PackageConfig
方法 or 属性:readonly deviceTypes: Array\;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: PackageConfig
方法 or 属性:readonly name: string;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: PackageConfig
方法 or 属性:readonly moduleType: string;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: PackageConfig
方法 or 属性:readonly deliveryWithInstall: boolean;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: PackageSummary|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: PackageSummary
方法 or 属性:readonly app: BundleConfigInfo;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: PackageSummary
方法 or 属性:readonly modules: Array\;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: BundleConfigInfo|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: BundleConfigInfo
方法 or 属性:readonly bundleName: string;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: BundleConfigInfo
方法 or 属性:readonly version: Version;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ExtensionAbility|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ExtensionAbility
方法 or 属性:readonly name: string;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ExtensionAbility
方法 or 属性:readonly forms: Array\;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ModuleConfigInfo|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ModuleConfigInfo
方法 or 属性:readonly mainAbility: string;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ModuleConfigInfo
方法 or 属性:readonly apiVersion: ApiVersion;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ModuleConfigInfo
方法 or 属性:readonly deviceTypes: Array\;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ModuleConfigInfo
方法 or 属性:readonly distro: ModuleDistroInfo;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ModuleConfigInfo
方法 or 属性:readonly abilities: Array\;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ModuleConfigInfo
方法 or 属性:readonly extensionAbilities: Array\;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ModuleDistroInfo|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ModuleDistroInfo
方法 or 属性:readonly deliveryWithInstall: boolean;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ModuleDistroInfo
方法 or 属性:readonly installationFree: boolean;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ModuleDistroInfo
方法 or 属性:readonly moduleName: string;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ModuleDistroInfo
方法 or 属性:readonly moduleType: string;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ModuleAbilityInfo|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ModuleAbilityInfo
方法 or 属性:readonly name: string;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ModuleAbilityInfo
方法 or 属性:readonly label: string;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ModuleAbilityInfo
方法 or 属性:readonly visible: boolean;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ModuleAbilityInfo
方法 or 属性:readonly forms: Array\;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: AbilityFormInfo|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: AbilityFormInfo
方法 or 属性:readonly name: string;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: AbilityFormInfo
方法 or 属性:readonly type: string;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: AbilityFormInfo
方法 or 属性:readonly updateEnabled: boolean;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: AbilityFormInfo
方法 or 属性:readonly scheduledUpdateTime: string;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: AbilityFormInfo
方法 or 属性:readonly updateDuration: number;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: AbilityFormInfo
方法 or 属性:readonly supportDimensions: Array\;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: AbilityFormInfo
方法 or 属性:readonly defaultDimension: string;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: Version|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: Version
方法 or 属性:readonly minCompatibleVersionCode: number;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: Version
方法 or 属性:readonly name: string;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: Version
方法 or 属性:readonly code: number;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ApiVersion|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ApiVersion
方法 or 属性:readonly releaseType: string;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ApiVersion
方法 or 属性:readonly compatible: number;|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ApiVersion
方法 or 属性:readonly target: number;|NA|packInfo.d.ts| +|删除|模块名: permissionDef
类名: PermissionDef|NA|permissionDef.d.ts| +|删除|模块名: permissionDef
类名: PermissionDef
方法 or 属性:readonly permissionName: string;|NA|permissionDef.d.ts| +|删除|模块名: permissionDef
类名: PermissionDef
方法 or 属性:readonly grantMode: number;|NA|permissionDef.d.ts| +|删除|模块名: permissionDef
类名: PermissionDef
方法 or 属性:readonly labelId: number;|NA|permissionDef.d.ts| +|删除|模块名: permissionDef
类名: PermissionDef
方法 or 属性:readonly descriptionId: number;|NA|permissionDef.d.ts| +|删除|模块名: shortcutInfo
类名: ShortcutInfo
方法 or 属性:readonly moduleName: string;|NA|shortcutInfo.d.ts| +|删除|模块名: shortcutInfo
类名: ShortcutWant
方法 or 属性:readonly targetModule: string;|NA|shortcutInfo.d.ts| +|删除|模块名: shortcutInfo
类名: ShortcutWant
方法 or 属性:readonly targetAbility: string;|NA|shortcutInfo.d.ts| +|函数有变化|类名:BundleInstaller
方法 or 属性:uninstall(bundleName: string, installParam: InstallParam, callback : AsyncCallback\) : void;
|类名:BundleInstaller
方法 or 属性:uninstall(bundleName: string, installParam: InstallParam, callback : AsyncCallback\) : void;
|@ohos.bundle.installer.d.ts| +|函数有变化|类名:BundleInstaller
方法 or 属性:uninstall(bundleName: string, installParam: InstallParam, callback : AsyncCallback\) : void;
|类名:BundleInstaller
方法 or 属性:uninstall(bundleName: string, callback : AsyncCallback\) : void;
|@ohos.bundle.installer.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-communication.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-communication.md new file mode 100644 index 0000000000000000000000000000000000000000..05cd6614d396215fe85d02cb50ffd6cd367dc71b --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-communication.md @@ -0,0 +1,641 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function getState(): BluetoothState;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function getBtConnectionState(): ProfileConnectionState;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function pairDevice(deviceId: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function cancelPairedDevice(deviceId: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function getRemoteDeviceName(deviceId: string): string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function getRemoteDeviceClass(deviceId: string): DeviceClass;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function enableBluetooth(): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function disableBluetooth(): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function getLocalName(): string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function getPairedDevices(): Array\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function getProfileConnectionState(profileId: ProfileId): ProfileConnectionState;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function setDevicePairingConfirmation(device: string, accept: boolean): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function setLocalName(name: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function setBluetoothScanMode(mode: ScanMode, duration: number): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function getBluetoothScanMode(): ScanMode;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function startBluetoothDiscovery(): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function stopBluetoothDiscovery(): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function on(type: "bluetoothDeviceFind", callback: Callback\>): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function off(type: "bluetoothDeviceFind", callback?: Callback\>): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function on(type: "bondStateChange", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function off(type: "bondStateChange", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function on(type: "pinRequired", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function off(type: "pinRequired", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function on(type: "stateChange", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function off(type: "stateChange", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function sppListen(name: string, option: SppOption, callback: AsyncCallback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function sppAccept(serverSocket: number, callback: AsyncCallback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function sppConnect(device: string, option: SppOption, callback: AsyncCallback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function sppCloseServerSocket(socket: number): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function sppCloseClientSocket(socket: number): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function sppWrite(clientSocket: number, data: ArrayBuffer): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function on(type: "sppRead", clientSocket: number, callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function off(type: "sppRead", clientSocket: number, callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function getProfileInstance(profileId: ProfileId): A2dpSourceProfile \| HandsFreeAudioGatewayProfile \| HidHostProfile \| PanProfile;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BaseProfile|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BaseProfile
方法 or 属性: getConnectionDevices(): Array\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BaseProfile
方法 or 属性: getDeviceState(device: string): ProfileConnectionState;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: A2dpSourceProfile|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: A2dpSourceProfile
方法 or 属性: connect(device: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: A2dpSourceProfile
方法 or 属性: disconnect(device: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: A2dpSourceProfile
方法 or 属性: on(type: "connectionStateChange", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: A2dpSourceProfile
方法 or 属性: off(type: "connectionStateChange", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: A2dpSourceProfile
方法 or 属性: getPlayingState(device: string): PlayingState;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: HandsFreeAudioGatewayProfile|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: HandsFreeAudioGatewayProfile
方法 or 属性: connect(device: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: HandsFreeAudioGatewayProfile
方法 or 属性: disconnect(device: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: HandsFreeAudioGatewayProfile
方法 or 属性: on(type: "connectionStateChange", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: HandsFreeAudioGatewayProfile
方法 or 属性: off(type: "connectionStateChange", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: HidHostProfile|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: HidHostProfile
方法 or 属性: connect(device: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: HidHostProfile
方法 or 属性: disconnect(device: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: HidHostProfile
方法 or 属性: on(type: "connectionStateChange", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: HidHostProfile
方法 or 属性: off(type: "connectionStateChange", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PanProfile|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PanProfile
方法 or 属性: disconnect(device: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PanProfile
方法 or 属性: on(type: "connectionStateChange", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PanProfile
方法 or 属性: off(type: "connectionStateChange", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PanProfile
方法 or 属性: setTethering(enable: boolean): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PanProfile
方法 or 属性: isTetheringOn(): boolean;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLE|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLE
方法 or 属性: function createGattServer(): GattServer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLE
方法 or 属性: function createGattClientDevice(deviceId: string): GattClientDevice;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLE
方法 or 属性: function getConnectedBLEDevices(): Array\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLE
方法 or 属性: function startBLEScan(filters: Array\, options?: ScanOptions): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLE
方法 or 属性: function stopBLEScan(): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLE
方法 or 属性: function on(type: "BLEDeviceFind", callback: Callback\>): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLE
方法 or 属性: function off(type: "BLEDeviceFind", callback?: Callback\>): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: startAdvertising(setting: AdvertiseSetting, advData: AdvertiseData, advResponse?: AdvertiseData): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: stopAdvertising(): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: addService(service: GattService): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: removeService(serviceUuid: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: close(): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: notifyCharacteristicChanged(deviceId: string, notifyCharacteristic: NotifyCharacteristic): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: sendResponse(serverResponse: ServerResponse): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: on(type: "characteristicRead", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: off(type: "characteristicRead", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: on(type: "characteristicWrite", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: off(type: "characteristicWrite", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: on(type: "descriptorRead", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: off(type: "descriptorRead", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: on(type: "descriptorWrite", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: off(type: "descriptorWrite", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: on(type: "connectStateChange", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: off(type: "connectStateChange", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: connect(): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: disconnect(): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: close(): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: getDeviceName(callback: AsyncCallback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: getDeviceName(): Promise\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: getServices(callback: AsyncCallback\>): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: getServices(): Promise\>;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: readCharacteristicValue(characteristic: BLECharacteristic, callback: AsyncCallback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: readCharacteristicValue(characteristic: BLECharacteristic): Promise\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: readDescriptorValue(descriptor: BLEDescriptor, callback: AsyncCallback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: readDescriptorValue(descriptor: BLEDescriptor): Promise\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: writeCharacteristicValue(characteristic: BLECharacteristic): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: writeDescriptorValue(descriptor: BLEDescriptor): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: getRssiValue(callback: AsyncCallback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: getRssiValue(): Promise\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: setBLEMtuSize(mtu: number): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: setNotifyCharacteristicChanged(characteristic: BLECharacteristic, enable: boolean): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: on(type: "BLECharacteristicChange", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: off(type: "BLECharacteristicChange", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: on(type: "BLEConnectionStateChange", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: off(type: "BLEConnectionStateChange", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattService|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattService
方法 or 属性: serviceUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattService
方法 or 属性: isPrimary: boolean;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattService
方法 or 属性: characteristics: Array\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattService
方法 or 属性: includeServices?: Array\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLECharacteristic|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLECharacteristic
方法 or 属性: serviceUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLECharacteristic
方法 or 属性: characteristicUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLECharacteristic
方法 or 属性: characteristicValue: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLECharacteristic
方法 or 属性: descriptors: Array\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLEDescriptor|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLEDescriptor
方法 or 属性: serviceUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLEDescriptor
方法 or 属性: characteristicUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLEDescriptor
方法 or 属性: descriptorUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLEDescriptor
方法 or 属性: descriptorValue: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: NotifyCharacteristic|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: NotifyCharacteristic
方法 or 属性: serviceUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: NotifyCharacteristic
方法 or 属性: characteristicUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: NotifyCharacteristic
方法 or 属性: characteristicValue: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: NotifyCharacteristic
方法 or 属性: confirm: boolean;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicReadRequest|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicReadRequest
方法 or 属性: deviceId: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicReadRequest
方法 or 属性: transId: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicReadRequest
方法 or 属性: offset: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicReadRequest
方法 or 属性: characteristicUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicReadRequest
方法 or 属性: serviceUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicWriteRequest|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicWriteRequest
方法 or 属性: deviceId: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicWriteRequest
方法 or 属性: transId: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicWriteRequest
方法 or 属性: offset: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicWriteRequest
方法 or 属性: isPrep: boolean;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicWriteRequest
方法 or 属性: needRsp: boolean;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicWriteRequest
方法 or 属性: value: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicWriteRequest
方法 or 属性: characteristicUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicWriteRequest
方法 or 属性: serviceUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorReadRequest|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorReadRequest
方法 or 属性: deviceId: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorReadRequest
方法 or 属性: transId: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorReadRequest
方法 or 属性: offset: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorReadRequest
方法 or 属性: descriptorUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorReadRequest
方法 or 属性: characteristicUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorReadRequest
方法 or 属性: serviceUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorWriteRequest|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorWriteRequest
方法 or 属性: deviceId: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorWriteRequest
方法 or 属性: transId: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorWriteRequest
方法 or 属性: offset: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorWriteRequest
方法 or 属性: isPrep: boolean;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorWriteRequest
方法 or 属性: needRsp: boolean;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorWriteRequest
方法 or 属性: value: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorWriteRequest
方法 or 属性: descriptorUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorWriteRequest
方法 or 属性: characteristicUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorWriteRequest
方法 or 属性: serviceUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ServerResponse|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ServerResponse
方法 or 属性: deviceId: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ServerResponse
方法 or 属性: transId: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ServerResponse
方法 or 属性: status: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ServerResponse
方法 or 属性: offset: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ServerResponse
方法 or 属性: value: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLEConnectChangedState|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLEConnectChangedState
方法 or 属性: deviceId: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLEConnectChangedState
方法 or 属性: state: ProfileConnectionState;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanResult|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanResult
方法 or 属性: deviceId: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanResult
方法 or 属性: rssi: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanResult
方法 or 属性: data: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: AdvertiseSetting|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: AdvertiseSetting
方法 or 属性: interval?: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: AdvertiseSetting
方法 or 属性: txPower?: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: AdvertiseSetting
方法 or 属性: connectable?: boolean;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: AdvertiseData|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: AdvertiseData
方法 or 属性: serviceUuids: Array\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: AdvertiseData
方法 or 属性: manufactureData: Array\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: AdvertiseData
方法 or 属性: serviceData: Array\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ManufactureData|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ManufactureData
方法 or 属性: manufactureId: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ManufactureData
方法 or 属性: manufactureValue: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ServiceData|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ServiceData
方法 or 属性: serviceUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ServiceData
方法 or 属性: serviceValue: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: deviceId?: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: name?: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: serviceUuid?: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: serviceUuidMask?: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: serviceSolicitationUuid?: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: serviceSolicitationUuidMask?: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: serviceData?: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: serviceDataMask?: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: manufactureId?: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: manufactureData?: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: manufactureDataMask?: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanOptions|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanOptions
方法 or 属性: interval?: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanOptions
方法 or 属性: dutyMode?: ScanDuty;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanOptions
方法 or 属性: matchMode?: MatchMode;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: SppOption|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: SppOption
方法 or 属性: uuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: SppOption
方法 or 属性: secure: boolean;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: SppOption
方法 or 属性: type: SppType;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PinRequiredParam|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PinRequiredParam
方法 or 属性: deviceId: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PinRequiredParam
方法 or 属性: pinCode: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DeviceClass|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DeviceClass
方法 or 属性: majorClass: MajorClass;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DeviceClass
方法 or 属性: majorMinorClass: MajorMinorClass;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DeviceClass
方法 or 属性: classOfDevice: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BondStateParam|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BondStateParam
方法 or 属性: deviceId: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BondStateParam
方法 or 属性: state: BondState;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: StateChangeParam|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: StateChangeParam
方法 or 属性: deviceId: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: StateChangeParam
方法 or 属性: state: ProfileConnectionState;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanDuty|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanDuty
方法 or 属性: SCAN_MODE_LOW_POWER = 0|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanDuty
方法 or 属性: SCAN_MODE_BALANCED = 1|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanDuty
方法 or 属性: SCAN_MODE_LOW_LATENCY = 2|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MatchMode|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MatchMode
方法 or 属性: MATCH_MODE_AGGRESSIVE = 1|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MatchMode
方法 or 属性: MATCH_MODE_STICKY = 2|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ProfileConnectionState|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ProfileConnectionState
方法 or 属性: STATE_DISCONNECTED = 0|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ProfileConnectionState
方法 or 属性: STATE_CONNECTING = 1|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ProfileConnectionState
方法 or 属性: STATE_CONNECTED = 2|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ProfileConnectionState
方法 or 属性: STATE_DISCONNECTING = 3|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BluetoothState|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BluetoothState
方法 or 属性: STATE_OFF = 0|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BluetoothState
方法 or 属性: STATE_TURNING_ON = 1|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BluetoothState
方法 or 属性: STATE_ON = 2|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BluetoothState
方法 or 属性: STATE_TURNING_OFF = 3|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BluetoothState
方法 or 属性: STATE_BLE_TURNING_ON = 4|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BluetoothState
方法 or 属性: STATE_BLE_ON = 5|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BluetoothState
方法 or 属性: STATE_BLE_TURNING_OFF = 6|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: SppType|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: SppType
方法 or 属性: SPP_RFCOMM|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanMode|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanMode
方法 or 属性: SCAN_MODE_NONE = 0|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanMode
方法 or 属性: SCAN_MODE_CONNECTABLE = 1|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanMode
方法 or 属性: SCAN_MODE_GENERAL_DISCOVERABLE = 2|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanMode
方法 or 属性: SCAN_MODE_LIMITED_DISCOVERABLE = 3|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanMode
方法 or 属性: SCAN_MODE_CONNECTABLE_GENERAL_DISCOVERABLE = 4|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanMode
方法 or 属性: SCAN_MODE_CONNECTABLE_LIMITED_DISCOVERABLE = 5|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BondState|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BondState
方法 or 属性: BOND_STATE_INVALID = 0|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BondState
方法 or 属性: BOND_STATE_BONDING = 1|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BondState
方法 or 属性: BOND_STATE_BONDED = 2|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_MISC = 0x0000|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_COMPUTER = 0x0100|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_PHONE = 0x0200|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_NETWORKING = 0x0300|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_AUDIO_VIDEO = 0x0400|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_PERIPHERAL = 0x0500|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_IMAGING = 0x0600|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_WEARABLE = 0x0700|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_TOY = 0x0800|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_HEALTH = 0x0900|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_UNCATEGORIZED = 0x1F00|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: COMPUTER_UNCATEGORIZED = 0x0100|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: COMPUTER_DESKTOP = 0x0104|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: COMPUTER_SERVER = 0x0108|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: COMPUTER_LAPTOP = 0x010C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: COMPUTER_HANDHELD_PC_PDA = 0x0110|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: COMPUTER_PALM_SIZE_PC_PDA = 0x0114|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: COMPUTER_WEARABLE = 0x0118|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: COMPUTER_TABLET = 0x011C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PHONE_UNCATEGORIZED = 0x0200|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PHONE_CELLULAR = 0x0204|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PHONE_CORDLESS = 0x0208|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PHONE_SMART = 0x020C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PHONE_MODEM_OR_GATEWAY = 0x0210|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PHONE_ISDN = 0x0214|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: NETWORK_FULLY_AVAILABLE = 0x0300|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: NETWORK_1_TO_17_UTILIZED = 0x0320|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: NETWORK_17_TO_33_UTILIZED = 0x0340|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: NETWORK_33_TO_50_UTILIZED = 0x0360|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: NETWORK_60_TO_67_UTILIZED = 0x0380|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: NETWORK_67_TO_83_UTILIZED = 0x03A0|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: NETWORK_83_TO_99_UTILIZED = 0x03C0|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: NETWORK_NO_SERVICE = 0x03E0|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_UNCATEGORIZED = 0x0400|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_WEARABLE_HEADSET = 0x0404|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_HANDSFREE = 0x0408|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_MICROPHONE = 0x0410|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_LOUDSPEAKER = 0x0414|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_HEADPHONES = 0x0418|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_PORTABLE_AUDIO = 0x041C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_CAR_AUDIO = 0x0420|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_SET_TOP_BOX = 0x0424|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_HIFI_AUDIO = 0x0428|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_VCR = 0x042C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_VIDEO_CAMERA = 0x0430|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_CAMCORDER = 0x0434|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_VIDEO_MONITOR = 0x0438|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_VIDEO_DISPLAY_AND_LOUDSPEAKER = 0x043C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_VIDEO_CONFERENCING = 0x0440|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_VIDEO_GAMING_TOY = 0x0448|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_NON_KEYBOARD_NON_POINTING = 0x0500|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_KEYBOARD = 0x0540|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_POINTING_DEVICE = 0x0580|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_KEYBOARD_POINTING = 0x05C0|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_UNCATEGORIZED = 0x0500|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_JOYSTICK = 0x0504|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_GAMEPAD = 0x0508|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_REMOTE_CONTROL = 0x05C0|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_SENSING_DEVICE = 0x0510|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_DIGITIZER_TABLET = 0x0514|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_CARD_READER = 0x0518|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_DIGITAL_PEN = 0x051C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_SCANNER_RFID = 0x0520|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_GESTURAL_INPUT = 0x0522|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: IMAGING_UNCATEGORIZED = 0x0600|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: IMAGING_DISPLAY = 0x0610|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: IMAGING_CAMERA = 0x0620|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: IMAGING_SCANNER = 0x0640|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: IMAGING_PRINTER = 0x0680|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: WEARABLE_UNCATEGORIZED = 0x0700|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: WEARABLE_WRIST_WATCH = 0x0704|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: WEARABLE_PAGER = 0x0708|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: WEARABLE_JACKET = 0x070C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: WEARABLE_HELMET = 0x0710|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: WEARABLE_GLASSES = 0x0714|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: TOY_UNCATEGORIZED = 0x0800|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: TOY_ROBOT = 0x0804|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: TOY_VEHICLE = 0x0808|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: TOY_DOLL_ACTION_FIGURE = 0x080C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: TOY_CONTROLLER = 0x0810|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: TOY_GAME = 0x0814|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_UNCATEGORIZED = 0x0900|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_BLOOD_PRESSURE = 0x0904|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_THERMOMETER = 0x0908|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_WEIGHING = 0x090C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_GLUCOSE = 0x0910|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_PULSE_OXIMETER = 0x0914|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_PULSE_RATE = 0x0918|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_DATA_DISPLAY = 0x091C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_STEP_COUNTER = 0x0920|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_BODY_COMPOSITION_ANALYZER = 0x0924|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_PEAK_FLOW_MONITOR = 0x0928|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_MEDICATION_MONITOR = 0x092C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_KNEE_PROSTHESIS = 0x0930|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_ANKLE_PROSTHESIS = 0x0934|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_GENERIC_HEALTH_MANAGER = 0x0938|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_PERSONAL_MOBILITY_DEVICE = 0x093C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PlayingState|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PlayingState
方法 or 属性: STATE_NOT_PLAYING|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PlayingState
方法 or 属性: STATE_PLAYING|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ProfileId|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ProfileId
方法 or 属性: PROFILE_A2DP_SOURCE = 1|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ProfileId
方法 or 属性: PROFILE_HANDS_FREE_AUDIO_GATEWAY = 4|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ProfileId
方法 or 属性: PROFILE_HID_HOST = 6|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ProfileId
方法 or 属性: PROFILE_PAN_NETWORK = 7|@ohos.bluetoothManager.d.ts| +|新增|NA|类名:connection
方法or属性:function getAppNet(callback: AsyncCallback\): void;|@ohos.net.connection.d.ts| +|新增|NA|类名:connection
方法or属性:function getAppNet(): Promise\;|@ohos.net.connection.d.ts| +|新增|NA|类名:connection
方法or属性:function setAppNet(netHandle: NetHandle, callback: AsyncCallback\): void;|@ohos.net.connection.d.ts| +|新增|NA|类名:connection
方法or属性:function setAppNet(netHandle: NetHandle): Promise\;|@ohos.net.connection.d.ts| +|新增|NA|类名:TLSSecureOptions
方法or属性:password?: string;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法 or 属性:certEntry: Uint8Array;|@ohos.wifiManager.d.ts| +|新增|NA|类名:WifiEapConfig
方法or属性:certEntry: Uint8Array;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法 or 属性:certPassword: string;|@ohos.wifiManager.d.ts| +|新增|NA|类名:WifiEapConfig
方法or属性:certPassword: string;|@ohos.wifiManager.d.ts| +|新增|NA|类名:WifiDeviceConfig
方法or属性:bssid?: string;|@ohos.wifiManager.d.ts| +|新增|NA|类名:WifiDeviceConfig
方法or属性:isHiddenSsid?: boolean;|@ohos.wifiManager.d.ts| +|新增|NA|类名:WifiDeviceConfig
方法or属性:creatorUid?: number;|@ohos.wifiManager.d.ts| +|新增|NA|类名:WifiDeviceConfig
方法or属性:disableReason?: number;|@ohos.wifiManager.d.ts| +|新增|NA|类名:WifiDeviceConfig
方法or属性:netId?: number;|@ohos.wifiManager.d.ts| +|新增|NA|类名:WifiDeviceConfig
方法or属性:randomMacType?: number;|@ohos.wifiManager.d.ts| +|新增|NA|类名:WifiDeviceConfig
方法or属性:randomMacAddr?: string;|@ohos.wifiManager.d.ts| +|新增|NA|类名:WifiDeviceConfig
方法or属性:ipType?: IpType;|@ohos.wifiManager.d.ts| +|新增|NA|类名:WifiDeviceConfig
方法or属性:staticIp?: IpConfig;|@ohos.wifiManager.d.ts| +|新增|NA|类名:WifiDeviceConfig
方法or属性:eapConfig?: WifiEapConfig;|@ohos.wifiManager.d.ts| +|删除|模块名:ohos.bluetooth
类名:bluetooth
方法 or 属性:function getProfileInst(profileId: ProfileId): A2dpSourceProfile \| HandsFreeAudioGatewayProfile \| HidHostProfile \| PanProfile;|NA|@ohos.bluetooth.d.ts| +|删除|模块名: ohos.bluetooth
类名: HidHostProfile|NA|@ohos.bluetooth.d.ts| +|删除|模块名: ohos.bluetooth
类名: HidHostProfile
方法 or 属性:connect(device: string): boolean;|NA|@ohos.bluetooth.d.ts| +|删除|模块名: ohos.bluetooth
类名: HidHostProfile
方法 or 属性:disconnect(device: string): boolean;|NA|@ohos.bluetooth.d.ts| +|删除|模块名: ohos.bluetooth
类名: HidHostProfile
方法 or 属性:on(type: "connectionStateChange", callback: Callback\): void;|NA|@ohos.bluetooth.d.ts| +|删除|模块名: ohos.bluetooth
类名: HidHostProfile
方法 or 属性:off(type: "connectionStateChange", callback?: Callback\): void;|NA|@ohos.bluetooth.d.ts| +|删除|模块名: ohos.bluetooth
类名: PanProfile|NA|@ohos.bluetooth.d.ts| +|删除|模块名: ohos.bluetooth
类名: PanProfile
方法 or 属性:disconnect(device: string): boolean;|NA|@ohos.bluetooth.d.ts| +|删除|模块名: ohos.bluetooth
类名: PanProfile
方法 or 属性:on(type: "connectionStateChange", callback: Callback\): void;|NA|@ohos.bluetooth.d.ts| +|删除|模块名: ohos.bluetooth
类名: PanProfile
方法 or 属性:off(type: "connectionStateChange", callback?: Callback\): void;|NA|@ohos.bluetooth.d.ts| +|删除|模块名: ohos.bluetooth
类名: PanProfile
方法 or 属性:setTethering(enable: boolean): void;|NA|@ohos.bluetooth.d.ts| +|删除|模块名: ohos.bluetooth
类名: PanProfile
方法 or 属性:isTetheringOn(): boolean;|NA|@ohos.bluetooth.d.ts| +|删除|模块名:ohos.bluetooth
类名:ScanFilter
方法 or 属性:serviceUuidMask?: string;|NA|@ohos.bluetooth.d.ts| +|删除|模块名:ohos.bluetooth
类名:ScanFilter
方法 or 属性:serviceSolicitationUuid?: string;|NA|@ohos.bluetooth.d.ts| +|删除|模块名:ohos.bluetooth
类名:ScanFilter
方法 or 属性:serviceSolicitationUuidMask?: string;|NA|@ohos.bluetooth.d.ts| +|删除|模块名:ohos.bluetooth
类名:ScanFilter
方法 or 属性:serviceData?: ArrayBuffer;|NA|@ohos.bluetooth.d.ts| +|删除|模块名:ohos.bluetooth
类名:ScanFilter
方法 or 属性:serviceDataMask?: ArrayBuffer;|NA|@ohos.bluetooth.d.ts| +|删除|模块名:ohos.bluetooth
类名:ScanFilter
方法 or 属性:manufactureId?: number;|NA|@ohos.bluetooth.d.ts| +|删除|模块名:ohos.bluetooth
类名:ScanFilter
方法 or 属性:manufactureData?: ArrayBuffer;|NA|@ohos.bluetooth.d.ts| +|删除|模块名:ohos.bluetooth
类名:ScanFilter
方法 or 属性:manufactureDataMask?: ArrayBuffer;|NA|@ohos.bluetooth.d.ts| +|删除|模块名:ohos.bluetooth
类名:ProfileId
方法 or 属性:PROFILE_HID_HOST = 6|NA|@ohos.bluetooth.d.ts| +|删除|模块名:ohos.bluetooth
类名:ProfileId
方法 or 属性:PROFILE_PAN_NETWORK = 7|NA|@ohos.bluetooth.d.ts| +|删除|模块名:ohos.net.socket
类名:TLSSecureOptions
方法 or 属性:passwd?: string;|NA|@ohos.net.socket.d.ts| +|废弃版本有变化|类名:bluetooth
废弃版本:N/A|类名:bluetooth
废弃版本:9
代替接口:ohos.bluetoothManager |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function getState(): BluetoothState;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function getState(): BluetoothState;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.getState |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function getBtConnectionState(): ProfileConnectionState;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function getBtConnectionState(): ProfileConnectionState;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.getBtConnectionState |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function pairDevice(deviceId: string): boolean;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function pairDevice(deviceId: string): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.pairDevice |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function cancelPairedDevice(deviceId: string): boolean;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function cancelPairedDevice(deviceId: string): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.cancelPairedDevice |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function getRemoteDeviceName(deviceId: string): string;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function getRemoteDeviceName(deviceId: string): string;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.getRemoteDeviceName |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function getRemoteDeviceClass(deviceId: string): DeviceClass;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function getRemoteDeviceClass(deviceId: string): DeviceClass;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.getRemoteDeviceClass |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function enableBluetooth(): boolean;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function enableBluetooth(): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.enableBluetooth |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function disableBluetooth(): boolean;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function disableBluetooth(): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.disableBluetooth |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function getLocalName(): string;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function getLocalName(): string;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.getLocalName |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function getPairedDevices(): Array\;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function getPairedDevices(): Array\;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.getPairedDevices |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function getProfileConnState(profileId: ProfileId): ProfileConnectionState;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function getProfileConnState(profileId: ProfileId): ProfileConnectionState;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.getProfileConnectionState |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function setDevicePairingConfirmation(device: string, accept: boolean): boolean;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function setDevicePairingConfirmation(device: string, accept: boolean): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.setDevicePairingConfirmation |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function setLocalName(name: string): boolean;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function setLocalName(name: string): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.setLocalName |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function setBluetoothScanMode(mode: ScanMode, duration: number): boolean;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function setBluetoothScanMode(mode: ScanMode, duration: number): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.setBluetoothScanMode |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function getBluetoothScanMode(): ScanMode;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function getBluetoothScanMode(): ScanMode;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.getBluetoothScanMode |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function startBluetoothDiscovery(): boolean;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function startBluetoothDiscovery(): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.startBluetoothDiscovery |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function stopBluetoothDiscovery(): boolean;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function stopBluetoothDiscovery(): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.stopBluetoothDiscovery |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function on(type: "bluetoothDeviceFind", callback: Callback\>): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function on(type: "bluetoothDeviceFind", callback: Callback\>): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.on|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function off(type: "bluetoothDeviceFind", callback?: Callback\>): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function off(type: "bluetoothDeviceFind", callback?: Callback\>): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.off|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function on(type: "bondStateChange", callback: Callback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function on(type: "bondStateChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.on|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function off(type: "bondStateChange", callback?: Callback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function off(type: "bondStateChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.off|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function on(type: "pinRequired", callback: Callback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function on(type: "pinRequired", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.on|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function off(type: "pinRequired", callback?: Callback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function off(type: "pinRequired", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.off|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function on(type: "stateChange", callback: Callback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function on(type: "stateChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.on|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function off(type: "stateChange", callback?: Callback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function off(type: "stateChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.off|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function sppListen(name: string, option: SppOption, callback: AsyncCallback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function sppListen(name: string, option: SppOption, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.sppListen |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function sppAccept(serverSocket: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function sppAccept(serverSocket: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.sppAccept |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function sppConnect(device: string, option: SppOption, callback: AsyncCallback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function sppConnect(device: string, option: SppOption, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.sppConnect |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function sppCloseServerSocket(socket: number): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function sppCloseServerSocket(socket: number): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.sppCloseServerSocket |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function sppCloseClientSocket(socket: number): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function sppCloseClientSocket(socket: number): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.sppCloseClientSocket |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function sppWrite(clientSocket: number, data: ArrayBuffer): boolean;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function sppWrite(clientSocket: number, data: ArrayBuffer): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.sppWrite |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function on(type: "sppRead", clientSocket: number, callback: Callback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function on(type: "sppRead", clientSocket: number, callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.on|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function off(type: "sppRead", clientSocket: number, callback?: Callback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function off(type: "sppRead", clientSocket: number, callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.off|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function getProfile(profileId: ProfileId): A2dpSourceProfile \| HandsFreeAudioGatewayProfile;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function getProfile(profileId: ProfileId): A2dpSourceProfile \| HandsFreeAudioGatewayProfile;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.getProfileInstance |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BaseProfile
废弃版本:N/A|类名:BaseProfile
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BaseProfile |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BaseProfile
方法 or 属性:getConnectionDevices(): Array\;
废弃版本:N/A|类名:BaseProfile
方法 or 属性:getConnectionDevices(): Array\;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BaseProfile|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BaseProfile
方法 or 属性:getDeviceState(device: string): ProfileConnectionState;
废弃版本:N/A|类名:BaseProfile
方法 or 属性:getDeviceState(device: string): ProfileConnectionState;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BaseProfile|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:A2dpSourceProfile
废弃版本:N/A|类名:A2dpSourceProfile
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.A2dpSourceProfile |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:A2dpSourceProfile
方法 or 属性:connect(device: string): boolean;
废弃版本:N/A|类名:A2dpSourceProfile
方法 or 属性:connect(device: string): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.A2dpSourceProfile|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:A2dpSourceProfile
方法 or 属性:disconnect(device: string): boolean;
废弃版本:N/A|类名:A2dpSourceProfile
方法 or 属性:disconnect(device: string): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.A2dpSourceProfile|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:A2dpSourceProfile
方法 or 属性:on(type: "connectionStateChange", callback: Callback\): void;
废弃版本:N/A|类名:A2dpSourceProfile
方法 or 属性:on(type: "connectionStateChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.A2dpSourceProfile.on|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:A2dpSourceProfile
方法 or 属性:off(type: "connectionStateChange", callback?: Callback\): void;
废弃版本:N/A|类名:A2dpSourceProfile
方法 or 属性:off(type: "connectionStateChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.A2dpSourceProfile.off|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:A2dpSourceProfile
方法 or 属性:getPlayingState(device: string): PlayingState;
废弃版本:N/A|类名:A2dpSourceProfile
方法 or 属性:getPlayingState(device: string): PlayingState;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.A2dpSourceProfile|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:HandsFreeAudioGatewayProfile
废弃版本:N/A|类名:HandsFreeAudioGatewayProfile
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.HandsFreeAudioGatewayProfile |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:HandsFreeAudioGatewayProfile
方法 or 属性:connect(device: string): boolean;
废弃版本:N/A|类名:HandsFreeAudioGatewayProfile
方法 or 属性:connect(device: string): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.HandsFreeAudioGatewayProfile|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:HandsFreeAudioGatewayProfile
方法 or 属性:disconnect(device: string): boolean;
废弃版本:N/A|类名:HandsFreeAudioGatewayProfile
方法 or 属性:disconnect(device: string): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.HandsFreeAudioGatewayProfile|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:HandsFreeAudioGatewayProfile
方法 or 属性:on(type: "connectionStateChange", callback: Callback\): void;
废弃版本:N/A|类名:HandsFreeAudioGatewayProfile
方法 or 属性:on(type: "connectionStateChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.HandsFreeAudioGatewayProfile.on|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:HandsFreeAudioGatewayProfile
方法 or 属性:off(type: "connectionStateChange", callback?: Callback\): void;
废弃版本:N/A|类名:HandsFreeAudioGatewayProfile
方法 or 属性:off(type: "connectionStateChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.HandsFreeAudioGatewayProfile.off|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BLE
方法 or 属性:function createGattServer(): GattServer;
废弃版本:N/A|类名:BLE
方法 or 属性:function createGattServer(): GattServer;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BLE.createGattServer |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BLE
方法 or 属性:function createGattClientDevice(deviceId: string): GattClientDevice;
废弃版本:N/A|类名:BLE
方法 or 属性:function createGattClientDevice(deviceId: string): GattClientDevice;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BLE.createGattClientDevice |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BLE
方法 or 属性:function getConnectedBLEDevices(): Array\;
废弃版本:N/A|类名:BLE
方法 or 属性:function getConnectedBLEDevices(): Array\;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BLE.getConnectedBLEDevices |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BLE
方法 or 属性:function startBLEScan(filters: Array\, options?: ScanOptions): void;
废弃版本:N/A|类名:BLE
方法 or 属性:function startBLEScan(filters: Array\, options?: ScanOptions): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BLE.startBLEScan |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BLE
方法 or 属性:function stopBLEScan(): void;
废弃版本:N/A|类名:BLE
方法 or 属性:function stopBLEScan(): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BLE.stopBLEScan |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BLE
方法 or 属性:function on(type: "BLEDeviceFind", callback: Callback\>): void;
废弃版本:N/A|类名:BLE
方法 or 属性:function on(type: "BLEDeviceFind", callback: Callback\>): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BLE.on|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BLE
方法 or 属性:function off(type: "BLEDeviceFind", callback?: Callback\>): void;
废弃版本:N/A|类名:BLE
方法 or 属性:function off(type: "BLEDeviceFind", callback?: Callback\>): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BLE.off|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
废弃版本:N/A|类名:GattServer
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:startAdvertising(setting: AdvertiseSetting, advData: AdvertiseData, advResponse?: AdvertiseData): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:startAdvertising(setting: AdvertiseSetting, advData: AdvertiseData, advResponse?: AdvertiseData): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:stopAdvertising(): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:stopAdvertising(): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:addService(service: GattService): boolean;
废弃版本:N/A|类名:GattServer
方法 or 属性:addService(service: GattService): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:removeService(serviceUuid: string): boolean;
废弃版本:N/A|类名:GattServer
方法 or 属性:removeService(serviceUuid: string): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:close(): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:close(): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:notifyCharacteristicChanged(deviceId: string, notifyCharacteristic: NotifyCharacteristic): boolean;
废弃版本:N/A|类名:GattServer
方法 or 属性:notifyCharacteristicChanged(deviceId: string, notifyCharacteristic: NotifyCharacteristic): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:sendResponse(serverResponse: ServerResponse): boolean;
废弃版本:N/A|类名:GattServer
方法 or 属性:sendResponse(serverResponse: ServerResponse): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:on(type: "characteristicRead", callback: Callback\): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:on(type: "characteristicRead", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:off(type: "characteristicRead", callback?: Callback\): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:off(type: "characteristicRead", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:on(type: "characteristicWrite", callback: Callback\): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:on(type: "characteristicWrite", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:off(type: "characteristicWrite", callback?: Callback\): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:off(type: "characteristicWrite", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:on(type: "descriptorRead", callback: Callback\): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:on(type: "descriptorRead", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:off(type: "descriptorRead", callback?: Callback\): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:off(type: "descriptorRead", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:on(type: "descriptorWrite", callback: Callback\): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:on(type: "descriptorWrite", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:off(type: "descriptorWrite", callback?: Callback\): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:off(type: "descriptorWrite", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:on(type: "connectStateChange", callback: Callback\): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:on(type: "connectStateChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:off(type: "connectStateChange", callback?: Callback\): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:off(type: "connectStateChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
废弃版本:N/A|类名:GattClientDevice
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:connect(): boolean;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:connect(): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:disconnect(): boolean;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:disconnect(): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:close(): boolean;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:close(): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:getDeviceName(callback: AsyncCallback\): void;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:getDeviceName(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:getDeviceName(): Promise\;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:getDeviceName(): Promise\;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:getServices(callback: AsyncCallback\>): void;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:getServices(callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:getServices(): Promise\>;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:getServices(): Promise\>;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:readCharacteristicValue(characteristic: BLECharacteristic, callback: AsyncCallback\): void;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:readCharacteristicValue(characteristic: BLECharacteristic, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:readCharacteristicValue(characteristic: BLECharacteristic): Promise\;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:readCharacteristicValue(characteristic: BLECharacteristic): Promise\;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:readDescriptorValue(descriptor: BLEDescriptor, callback: AsyncCallback\): void;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:readDescriptorValue(descriptor: BLEDescriptor, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:readDescriptorValue(descriptor: BLEDescriptor): Promise\;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:readDescriptorValue(descriptor: BLEDescriptor): Promise\;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:writeCharacteristicValue(characteristic: BLECharacteristic): boolean;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:writeCharacteristicValue(characteristic: BLECharacteristic): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:writeDescriptorValue(descriptor: BLEDescriptor): boolean;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:writeDescriptorValue(descriptor: BLEDescriptor): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:getRssiValue(callback: AsyncCallback\): void;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:getRssiValue(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:getRssiValue(): Promise\;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:getRssiValue(): Promise\;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:setBLEMtuSize(mtu: number): boolean;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:setBLEMtuSize(mtu: number): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:setNotifyCharacteristicChanged(characteristic: BLECharacteristic, enable: boolean): boolean;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:setNotifyCharacteristicChanged(characteristic: BLECharacteristic, enable: boolean): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:on(type: "BLECharacteristicChange", callback: Callback\): void;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:on(type: "BLECharacteristicChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:off(type: "BLECharacteristicChange", callback?: Callback\): void;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:off(type: "BLECharacteristicChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:on(type: "BLEConnectionStateChange", callback: Callback\): void;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:on(type: "BLEConnectionStateChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:off(type: "BLEConnectionStateChange", callback?: Callback\): void;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:off(type: "BLEConnectionStateChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattService
废弃版本:N/A|类名:GattService
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattService |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BLECharacteristic
废弃版本:N/A|类名:BLECharacteristic
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BLECharacteristic |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BLEDescriptor
废弃版本:N/A|类名:BLEDescriptor
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BLEDescriptor |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:NotifyCharacteristic
废弃版本:N/A|类名:NotifyCharacteristic
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.NotifyCharacteristic |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:CharacteristicReadReq
废弃版本:N/A|类名:CharacteristicReadReq
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.CharacteristicReadRequest |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:CharacteristicWriteReq
废弃版本:N/A|类名:CharacteristicWriteReq
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.CharacteristicWriteRequest |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:DescriptorReadReq
废弃版本:N/A|类名:DescriptorReadReq
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.DescriptorReadRequest |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:DescriptorWriteReq
废弃版本:N/A|类名:DescriptorWriteReq
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.DescriptorWriteRequest |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:ServerResponse
废弃版本:N/A|类名:ServerResponse
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.ServerResponse |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BLEConnectChangedState
废弃版本:N/A|类名:BLEConnectChangedState
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BLEConnectChangedState |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:ScanResult
废弃版本:N/A|类名:ScanResult
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.ScanResult |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:AdvertiseSetting
废弃版本:N/A|类名:AdvertiseSetting
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.AdvertiseSetting |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:AdvertiseData
废弃版本:N/A|类名:AdvertiseData
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.AdvertiseData |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:ManufactureData
废弃版本:N/A|类名:ManufactureData
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.ManufactureData |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:ServiceData
废弃版本:N/A|类名:ServiceData
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.ServiceData |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:ScanFilter
废弃版本:N/A|类名:ScanFilter
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.ScanFilter |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:ScanOptions
废弃版本:N/A|类名:ScanOptions
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.ScanOptions |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:SppOption
废弃版本:N/A|类名:SppOption
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.SppOption |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:PinRequiredParam
废弃版本:N/A|类名:PinRequiredParam
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.PinRequiredParam |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:DeviceClass
废弃版本:N/A|类名:DeviceClass
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.DeviceClass |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BondStateParam
废弃版本:N/A|类名:BondStateParam
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BondStateParam |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:ScanDuty
废弃版本:N/A|类名:ScanDuty
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.ScanDuty |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:MatchMode
废弃版本:N/A|类名:MatchMode
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.MatchMode |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:ProfileConnectionState
废弃版本:N/A|类名:ProfileConnectionState
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.ProfileConnectionState |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BluetoothState
废弃版本:N/A|类名:BluetoothState
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BluetoothState |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:SppType
废弃版本:N/A|类名:SppType
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.SppType |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:ScanMode
废弃版本:N/A|类名:ScanMode
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.ScanMode |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BondState
废弃版本:N/A|类名:BondState
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BondState |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:MajorClass
废弃版本:N/A|类名:MajorClass
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.MajorClass |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:MajorMinorClass
废弃版本:N/A|类名:MajorMinorClass
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.MajorMinorClass |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:StateChangeParam
废弃版本:N/A|类名:StateChangeParam
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.StateChangeParam |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:PlayingState
废弃版本:N/A|类名:PlayingState
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.PlayingState |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:ProfileId
废弃版本:N/A|类名:ProfileId
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.ProfileId |@ohos.bluetooth.d.ts| +|权限有变化|类名:connection
方法 or 属性:function getAddressesByName(host: string, callback: AsyncCallback\>): void;
权限:ohos.permission.GET_NETWORK_INFO|类名:connection
方法 or 属性:function getAddressesByName(host: string, callback: AsyncCallback\>): void;
权限:ohos.permission.INTERNET|@ohos.net.connection.d.ts| +|权限有变化|类名:connection
方法 or 属性:function getAddressesByName(host: string): Promise\>;
权限:ohos.permission.GET_NETWORK_INFO|类名:connection
方法 or 属性:function getAddressesByName(host: string): Promise\>;
权限:ohos.permission.INTERNET|@ohos.net.connection.d.ts| +|权限有变化|类名:NetHandle
方法 or 属性:getAddressesByName(host: string, callback: AsyncCallback\>): void;
权限:ohos.permission.GET_NETWORK_INFO|类名:NetHandle
方法 or 属性:getAddressesByName(host: string, callback: AsyncCallback\>): void;
权限:ohos.permission.INTERNET|@ohos.net.connection.d.ts| +|权限有变化|类名:NetHandle
方法 or 属性:getAddressesByName(host: string): Promise\>;
权限:ohos.permission.GET_NETWORK_INFO|类名:NetHandle
方法 or 属性:getAddressesByName(host: string): Promise\>;
权限:ohos.permission.INTERNET|@ohos.net.connection.d.ts| +|权限有变化|类名:NetHandle
方法 or 属性:getAddressByName(host: string, callback: AsyncCallback\): void;
权限:ohos.permission.GET_NETWORK_INFO|类名:NetHandle
方法 or 属性:getAddressByName(host: string, callback: AsyncCallback\): void;
权限:ohos.permission.INTERNET|@ohos.net.connection.d.ts| +|权限有变化|类名:NetHandle
方法 or 属性:getAddressByName(host: string): Promise\;
权限:ohos.permission.GET_NETWORK_INFO|类名:NetHandle
方法 or 属性:getAddressByName(host: string): Promise\;
权限:ohos.permission.INTERNET|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function getDefaultNet(callback: AsyncCallback\): void;
错误码内容: 201, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function getDefaultNet(): Promise\;
错误码内容: 201, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function getAllNets(callback: AsyncCallback\>): void;
错误码内容: 201, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function getAllNets(): Promise\>;
错误码内容: 201, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function getConnectionProperties(netHandle: NetHandle, callback: AsyncCallback\): void;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function getConnectionProperties(netHandle: NetHandle): Promise\;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function getNetCapabilities(netHandle: NetHandle, callback: AsyncCallback\): void;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function getNetCapabilities(netHandle: NetHandle): Promise\;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function hasDefaultNet(callback: AsyncCallback\): void;
错误码内容: 201, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function hasDefaultNet(): Promise\;
错误码内容: 201, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function enableAirplaneMode(callback: AsyncCallback\): void;
错误码内容: 201, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function enableAirplaneMode(): Promise\;
错误码内容: 201, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function disableAirplaneMode(callback: AsyncCallback\): void;
错误码内容: 201, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function disableAirplaneMode(): Promise\;
错误码内容: 201, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function reportNetConnected(netHandle: NetHandle, callback: AsyncCallback\): void;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function reportNetConnected(netHandle: NetHandle): Promise\;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function reportNetDisconnected(netHandle: NetHandle, callback: AsyncCallback\): void;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function reportNetDisconnected(netHandle: NetHandle): Promise\;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function getAddressesByName(host: string, callback: AsyncCallback\>): void;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function getAddressesByName(host: string): Promise\>;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:NetConnection
方法 or 属性:register(callback: AsyncCallback\): void;
错误码内容: 201, 2100002, 2100003, 2101008, 2101022|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:NetConnection
方法 or 属性:unregister(callback: AsyncCallback\): void;
错误码内容: 2100002, 2100003, 2101007|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:NetHandle
方法 or 属性:bindSocket(socketParam: TCPSocket \| UDPSocket, callback: AsyncCallback\): void;
错误码内容: 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:NetHandle
方法 or 属性:bindSocket(socketParam: TCPSocket \| UDPSocket): Promise\;
错误码内容: 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:NetHandle
方法 or 属性:getAddressesByName(host: string, callback: AsyncCallback\>): void;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:NetHandle
方法 or 属性:getAddressesByName(host: string): Promise\>;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:NetHandle
方法 or 属性:getAddressByName(host: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:NetHandle
方法 or 属性:getAddressByName(host: string): Promise\;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:ethernet
方法 or 属性:function getIfaceConfig(iface: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 2200001, 2200002, 2200003, 2201005|@ohos.net.ethernet.d.ts| +|新增(错误码)|NA|类名:ethernet
方法 or 属性:function getIfaceConfig(iface: string): Promise\;
错误码内容: 201, 401, 2200001, 2200002, 2200003, 2201005|@ohos.net.ethernet.d.ts| +|新增(错误码)|NA|类名:ethernet
方法 or 属性:function setIfaceConfig(iface: string, ic: InterfaceConfiguration, callback: AsyncCallback\): void;
错误码内容: 201, 401, 2200001, 2200002, 2200003, 2201004, 2201005, 2201006, 2201007|@ohos.net.ethernet.d.ts| +|新增(错误码)|NA|类名:ethernet
方法 or 属性:function setIfaceConfig(iface: string, ic: InterfaceConfiguration): Promise\;
错误码内容: 201, 401, 2200001, 2200002, 2200003, 2201004, 2201005, 2201006, 2201007|@ohos.net.ethernet.d.ts| +|新增(错误码)|NA|类名:ethernet
方法 or 属性:function isIfaceActive(iface: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 2200001, 2200002, 2200003, 2201005|@ohos.net.ethernet.d.ts| +|新增(错误码)|NA|类名:ethernet
方法 or 属性:function isIfaceActive(iface: string): Promise\;
错误码内容: 201, 401, 2200001, 2200002, 2200003, 2201005|@ohos.net.ethernet.d.ts| +|新增(错误码)|NA|类名:ethernet
方法 or 属性:function getAllActiveIfaces(callback: AsyncCallback\>): void;
错误码内容: 201, 2200002, 2200003|@ohos.net.ethernet.d.ts| +|新增(错误码)|NA|类名:ethernet
方法 or 属性:function getAllActiveIfaces(): Promise\>;
错误码内容: 201, 2200002, 2200003|@ohos.net.ethernet.d.ts| +|新增(错误码)|NA|类名:HttpRequest
方法 or 属性:request(url: string, callback: AsyncCallback\): void;
错误码内容: 401, 201, 2300001, 2300003, 2300005, 2300006, 2300007, 2300008, 2300009, 2300016, 2300018, 2300023, 2300025, 2300026, 2300027, 2300028, 2300047, 2300052, 2300055, 2300056, 2300058, 2300059, 2300060, 2300061, 2300063, 2300070, 2300073, 2300077, 2300078, 2300094, 2300999|@ohos.net.http.d.ts| +|新增(错误码)|NA|类名:HttpRequest
方法 or 属性:request(url: string, options: HttpRequestOptions, callback: AsyncCallback\): void;
错误码内容: 401, 201, 2300001, 2300003, 2300005, 2300006, 2300007, 2300008, 2300009, 2300016, 2300018, 2300023, 2300025, 2300026, 2300027, 2300028, 2300047, 2300052, 2300055, 2300056, 2300058, 2300059, 2300060, 2300061, 2300063, 2300070, 2300073, 2300077, 2300078, 2300094, 2300999|@ohos.net.http.d.ts| +|新增(错误码)|NA|类名:HttpRequest
方法 or 属性:request(url: string, options?: HttpRequestOptions): Promise\;
错误码内容: 401, 201, 2300001, 2300003, 2300005, 2300006, 2300007, 2300008, 2300009, 2300016, 2300018, 2300023, 2300025, 2300026, 2300027, 2300028, 2300047, 2300052, 2300055, 2300056, 2300058, 2300059, 2300060, 2300061, 2300063, 2300070, 2300073, 2300077, 2300078, 2300094, 2300999|@ohos.net.http.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function isSharingSupported(callback: AsyncCallback\): void;
错误码内容: 201, 2200002, 2200003, 2202011|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function isSharingSupported(): Promise\;
错误码内容: 201, 2200002, 2200003, 2202011|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function isSharing(callback: AsyncCallback\): void;
错误码内容: 201, 2200002, 2200003, 2202011|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function isSharing(): Promise\;
错误码内容: 201, 2200002, 2200003, 2202011|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function startSharing(type: SharingIfaceType, callback: AsyncCallback\): void;
错误码内容: 201, 401, 2200001, 2200002, 2200003, 2202004, 2202005, 2202006, 2202009, 2202011|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function startSharing(type: SharingIfaceType): Promise\;
错误码内容: 201, 401, 2200001, 2200002, 2200003, 2202004, 2202005, 2202006, 2202009, 2202011|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function stopSharing(type: SharingIfaceType, callback: AsyncCallback\): void;
错误码内容: 201, 401, 2200001, 2200002, 2200003, 2202004, 2202005, 2202006, 2202011|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function stopSharing(type: SharingIfaceType): Promise\;
错误码内容: 201, 401, 2200001, 2200002, 2200003, 2202004, 2202005, 2202006, 2202011|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function getStatsRxBytes(callback: AsyncCallback\): void;
错误码内容: 201, 2200002, 2200003|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function getStatsRxBytes(): Promise\;
错误码内容: 201, 2200002, 2200003|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function getStatsTxBytes(callback: AsyncCallback\): void;
错误码内容: 201, 2200002, 2200003|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function getStatsTxBytes(): Promise\;
错误码内容: 201, 2200002, 2200003|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function getStatsTotalBytes(callback: AsyncCallback\): void;
错误码内容: 201, 2200002, 2200003|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function getStatsTotalBytes(): Promise\;
错误码内容: 201, 2200002, 2200003|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function getSharingIfaces(state: SharingIfaceState, callback: AsyncCallback\>): void;
错误码内容: 201, 401, 2200001, 2200002, 2200003|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function getSharingIfaces(state: SharingIfaceState): Promise\>;
错误码内容: 201, 401, 2200001, 2200002, 2200003|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function getSharingState(type: SharingIfaceType, callback: AsyncCallback\): void;
错误码内容: 201, 401, 2200001, 2200002, 2200003|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function getSharingState(type: SharingIfaceType): Promise\;
错误码内容: 201, 401, 2200001, 2200002, 2200003|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function getSharableRegexes(type: SharingIfaceType, callback: AsyncCallback\>): void;
错误码内容: 201, 401, 2200001, 2200002, 2200003|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function getSharableRegexes(type: SharingIfaceType): Promise\>;
错误码内容: 201, 401, 2200001, 2200002, 2200003|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function on(type: 'sharingStateChange', callback: Callback\): void;
错误码内容: 201, 401|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function off(type: 'sharingStateChange', callback?: Callback\): void;
错误码内容: 201, 401|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function on(type: 'interfaceSharingStateChange', callback: Callback\<{ type: SharingIfaceType, iface: string, state: SharingIfaceState }>): void;
错误码内容: 201, 401|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function off(type: 'interfaceSharingStateChange', callback?: Callback\<{ type: SharingIfaceType, iface: string, state: SharingIfaceState }>): void;
错误码内容: 201, 401|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function on(type: 'sharingUpstreamChange', callback: Callback\): void;
错误码内容: 201, 401|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:sharing
方法 or 属性:function off(type: 'sharingUpstreamChange', callback?: Callback\): void;
错误码内容: 201, 401|@ohos.net.sharing.d.ts| +|新增(错误码)|NA|类名:UDPSocket
方法 or 属性:bind(address: NetAddress, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:UDPSocket
方法 or 属性:bind(address: NetAddress): Promise\;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:UDPSocket
方法 or 属性:send(options: UDPSendOptions, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:UDPSocket
方法 or 属性:send(options: UDPSendOptions): Promise\;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:UDPSocket
方法 or 属性:close(callback: AsyncCallback\): void;
错误码内容: 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:UDPSocket
方法 or 属性:close(): Promise\;
错误码内容: 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:UDPSocket
方法 or 属性:getState(callback: AsyncCallback\): void;
错误码内容: 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:UDPSocket
方法 or 属性:getState(): Promise\;
错误码内容: 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:UDPSocket
方法 or 属性:setExtraOptions(options: UDPExtraOptions, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:UDPSocket
方法 or 属性:setExtraOptions(options: UDPExtraOptions): Promise\;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:bind(address: NetAddress, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:bind(address: NetAddress): Promise\;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:connect(options: TCPConnectOptions, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:connect(options: TCPConnectOptions): Promise\;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:send(options: TCPSendOptions, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:send(options: TCPSendOptions): Promise\;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:close(callback: AsyncCallback\): void;
错误码内容: 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:close(): Promise\;
错误码内容: 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:getRemoteAddress(callback: AsyncCallback\): void;
错误码内容: 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:getRemoteAddress(): Promise\;
错误码内容: 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:getState(callback: AsyncCallback\): void;
错误码内容: 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:getState(): Promise\;
错误码内容: 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:setExtraOptions(options: TCPExtraOptions, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:setExtraOptions(options: TCPExtraOptions): Promise\;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:WebSocket
方法 or 属性:connect(url: string, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.webSocket.d.ts| +|新增(错误码)|NA|类名:WebSocket
方法 or 属性:connect(url: string, options: WebSocketRequestOptions, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.webSocket.d.ts| +|新增(错误码)|NA|类名:WebSocket
方法 or 属性:connect(url: string, options?: WebSocketRequestOptions): Promise\;
错误码内容: 401, 201|@ohos.net.webSocket.d.ts| +|新增(错误码)|NA|类名:WebSocket
方法 or 属性:send(data: string \| ArrayBuffer, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.webSocket.d.ts| +|新增(错误码)|NA|类名:WebSocket
方法 or 属性:send(data: string \| ArrayBuffer): Promise\;
错误码内容: 401, 201|@ohos.net.webSocket.d.ts| +|新增(错误码)|NA|类名:WebSocket
方法 or 属性:close(callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.webSocket.d.ts| +|新增(错误码)|NA|类名:WebSocket
方法 or 属性:close(options: WebSocketCloseOptions, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.webSocket.d.ts| +|新增(错误码)|NA|类名:WebSocket
方法 or 属性:close(options?: WebSocketCloseOptions): Promise\;
错误码内容: 401, 201|@ohos.net.webSocket.d.ts| +|新增(权限)|类名:connection
方法 or 属性:function enableAirplaneMode(callback: AsyncCallback\): void;
权限:N/A|类名:connection
方法 or 属性:function enableAirplaneMode(callback: AsyncCallback\): void;
权限:ohos.permission.CONNECTIVITY_INTERNAL|@ohos.net.connection.d.ts| +|新增(权限)|类名:connection
方法 or 属性:function enableAirplaneMode(): Promise\;
权限:N/A|类名:connection
方法 or 属性:function enableAirplaneMode(): Promise\;
权限:ohos.permission.CONNECTIVITY_INTERNAL|@ohos.net.connection.d.ts| +|新增(权限)|类名:connection
方法 or 属性:function disableAirplaneMode(callback: AsyncCallback\): void;
权限:N/A|类名:connection
方法 or 属性:function disableAirplaneMode(callback: AsyncCallback\): void;
权限:ohos.permission.CONNECTIVITY_INTERNAL|@ohos.net.connection.d.ts| +|新增(权限)|类名:connection
方法 or 属性:function disableAirplaneMode(): Promise\;
权限:N/A|类名:connection
方法 or 属性:function disableAirplaneMode(): Promise\;
权限:ohos.permission.CONNECTIVITY_INTERNAL|@ohos.net.connection.d.ts| +|函数有变化|类名:RemoteProxy
方法 or 属性:unregisterDeathRecipient(recipient: DeathRecipient, flags: number): boolean;
|类名:RemoteProxy
方法 or 属性:unregisterDeathRecipient(recipient: DeathRecipient, flags: number): void;
|@ohos.rpc.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-compiler-and-runtime.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-compiler-and-runtime.md new file mode 100644 index 0000000000000000000000000000000000000000..cc204e2d9a8d902aec842fe5e7074e77e155818d --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-compiler-and-runtime.md @@ -0,0 +1,7 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:util
方法or属性:function generateRandomUUID(entropyCache?: boolean): string;|@ohos.util.d.ts| +|新增|NA|类名:util
方法or属性:function generateRandomBinaryUUID(entropyCache?: boolean): Uint8Array;|@ohos.util.d.ts| +|删除|模块名:ohos.util
类名:util
方法 or 属性:function randomUUID(entropyCache?: boolean): string;|NA|@ohos.util.d.ts| +|删除|模块名:ohos.util
类名:util
方法 or 属性:function randomBinaryUUID(entropyCache?: boolean): Uint8Array;|NA|@ohos.util.d.ts| +|函数有变化|类名:LRUCache
方法 or 属性:contains(key: object): boolean;
|类名:LRUCache
方法 or 属性:contains(key: K): boolean;
|@ohos.util.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-dfx.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-dfx.md new file mode 100644 index 0000000000000000000000000000000000000000..129a0e0594cabec6c01fca13c3a518b5a184cc00 --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-dfx.md @@ -0,0 +1,26 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: event|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|类名:event
方法or属性:|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: event
方法 or 属性:const USER_LOGIN: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|类名:event
方法or属性:const USER_LOGIN: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: event
方法 or 属性:const USER_LOGOUT: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|类名:event
方法or属性:const USER_LOGOUT: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: event
方法 or 属性:const DISTRIBUTED_SERVICE_START: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|类名:event
方法or属性:const DISTRIBUTED_SERVICE_START: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: param|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|类名:param
方法or属性:|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: param
方法 or 属性:const USER_ID: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|类名:param
方法or属性:const USER_ID: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: param
方法 or 属性:const DISTRIBUTED_SERVICE_NAME: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|类名:param
方法or属性:const DISTRIBUTED_SERVICE_NAME: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: param
方法 or 属性:const DISTRIBUTED_SERVICE_INSTANCE_ID: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|类名:param
方法or属性:const DISTRIBUTED_SERVICE_INSTANCE_ID: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|删除|模块名: ohos.hiviewdfx.hiAppEvent
类名: Event|NA|@ohos.hiviewdfx.hiAppEvent.d.ts| +|删除|模块名: ohos.hiviewdfx.hiAppEvent
类名: Event
方法 or 属性:const USER_LOGIN: string;|NA|@ohos.hiviewdfx.hiAppEvent.d.ts| +|删除|模块名: ohos.hiviewdfx.hiAppEvent
类名: Event
方法 or 属性:const USER_LOGOUT: string;|NA|@ohos.hiviewdfx.hiAppEvent.d.ts| +|删除|模块名: ohos.hiviewdfx.hiAppEvent
类名: Event
方法 or 属性:const DISTRIBUTED_SERVICE_START: string;|NA|@ohos.hiviewdfx.hiAppEvent.d.ts| +|删除|模块名: ohos.hiviewdfx.hiAppEvent
类名: Param|NA|@ohos.hiviewdfx.hiAppEvent.d.ts| +|删除|模块名: ohos.hiviewdfx.hiAppEvent
类名: Param
方法 or 属性:const USER_ID: string;|NA|@ohos.hiviewdfx.hiAppEvent.d.ts| +|删除|模块名: ohos.hiviewdfx.hiAppEvent
类名: Param
方法 or 属性:const DISTRIBUTED_SERVICE_NAME: string;|NA|@ohos.hiviewdfx.hiAppEvent.d.ts| +|删除|模块名: ohos.hiviewdfx.hiAppEvent
类名: Param
方法 or 属性:const DISTRIBUTED_SERVICE_INSTANCE_ID: string;|NA|@ohos.hiviewdfx.hiAppEvent.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-distributed-data.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-distributed-data.md new file mode 100644 index 0000000000000000000000000000000000000000..7fec4a15c3a55b150170e2aa65d3280a7fa209fe --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-distributed-data.md @@ -0,0 +1,162 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:setSessionId(sessionId: string, callback: AsyncCallback\): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:setSessionId(sessionId: string, callback: AsyncCallback\): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:setSessionId(callback: AsyncCallback\): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:setSessionId(callback: AsyncCallback\): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:setSessionId(sessionId?: string): Promise\;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:setSessionId(sessionId?: string): Promise\;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:on(type: 'change', callback: Callback\<{ sessionId: string, fields: Array\ }>): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:on(type: 'change', callback: Callback\<{ sessionId: string, fields: Array\ }>): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:off(type: 'change', callback?: Callback\<{ sessionId: string, fields: Array\ }>): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:off(type: 'change', callback?: Callback\<{ sessionId: string, fields: Array\ }>): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:on(type: 'status',

callback: Callback\<{ sessionId: string, networkId: string, status: 'online' \| 'offline' }>): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:on(type: 'status',

callback: Callback\<{ sessionId: string, networkId: string, status: 'online' \| 'offline' }>): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:off(type: 'status',

callback?: Callback\<{ sessionId: string, deviceId: string, status: 'online' \| 'offline' }>): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:off(type: 'status',

callback?: Callback\<{ sessionId: string, deviceId: string, status: 'online' \| 'offline' }>): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:save(deviceId: string, callback: AsyncCallback\): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:save(deviceId: string, callback: AsyncCallback\): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:save(deviceId: string): Promise\;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:save(deviceId: string): Promise\;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:revokeSave(callback: AsyncCallback\): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:revokeSave(callback: AsyncCallback\): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:revokeSave(): Promise\;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:revokeSave(): Promise\;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:Constants
方法or属性:readonly MAX_KEY_LENGTH: number;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|类名:Constants
方法or属性:readonly MAX_VALUE_LENGTH: number;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|类名:Constants
方法or属性:readonly MAX_KEY_LENGTH_DEVICE: number;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|类名:Constants
方法or属性:readonly MAX_STORE_ID_LENGTH: number;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|类名:Constants
方法or属性:readonly MAX_QUERY_LENGTH: number;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|类名:Constants
方法or属性:readonly MAX_BATCH_SIZE: number;|@ohos.data.distributedKVStore.d.ts| +|删除|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9|NA|@ohos.data.distributedDataObject.d.ts| +|删除|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法 or 属性:setSessionId(sessionId: string, callback: AsyncCallback\): void;|NA|@ohos.data.distributedDataObject.d.ts| +|删除|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法 or 属性:setSessionId(callback: AsyncCallback\): void;|NA|@ohos.data.distributedDataObject.d.ts| +|删除|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法 or 属性:setSessionId(sessionId?: string): Promise\;|NA|@ohos.data.distributedDataObject.d.ts| +|删除|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法 or 属性:on(type: 'change', callback: Callback\<{ sessionId: string, fields: Array\ }>): void;|NA|@ohos.data.distributedDataObject.d.ts| +|删除|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法 or 属性:off(type: 'change', callback?: Callback\<{ sessionId: string, fields: Array\ }>): void;|NA|@ohos.data.distributedDataObject.d.ts| +|删除|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法 or 属性:on(type: 'status',

callback: Callback\<{ sessionId: string, networkId: string, status: 'online' \| 'offline' }>): void;|NA|@ohos.data.distributedDataObject.d.ts| +|删除|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法 or 属性:off(type: 'status',

callback?: Callback\<{ sessionId: string, deviceId: string, status: 'online' \| 'offline' }>): void;|NA|@ohos.data.distributedDataObject.d.ts| +|删除|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法 or 属性:save(deviceId: string, callback: AsyncCallback\): void;|NA|@ohos.data.distributedDataObject.d.ts| +|删除|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法 or 属性:save(deviceId: string): Promise\;|NA|@ohos.data.distributedDataObject.d.ts| +|删除|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法 or 属性:revokeSave(callback: AsyncCallback\): void;|NA|@ohos.data.distributedDataObject.d.ts| +|删除|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法 or 属性:revokeSave(): Promise\;|NA|@ohos.data.distributedDataObject.d.ts| +|删除|模块名:ohos.data.distributedKVStore
类名:Constants|NA|@ohos.data.distributedKVStore.d.ts| +|删除|模块名:ohos.data.distributedKVStore
类名:Constants
方法 or 属性:const MAX_KEY_LENGTH = 1024;|NA|@ohos.data.distributedKVStore.d.ts| +|删除|模块名:ohos.data.distributedKVStore
类名:Constants
方法 or 属性:const MAX_VALUE_LENGTH = 4194303;|NA|@ohos.data.distributedKVStore.d.ts| +|删除|模块名:ohos.data.distributedKVStore
类名:Constants
方法 or 属性:const MAX_KEY_LENGTH_DEVICE = 896;|NA|@ohos.data.distributedKVStore.d.ts| +|删除|模块名:ohos.data.distributedKVStore
类名:Constants
方法 or 属性:const MAX_STORE_ID_LENGTH = 128;|NA|@ohos.data.distributedKVStore.d.ts| +|删除|模块名:ohos.data.distributedKVStore
类名:Constants
方法 or 属性:const MAX_QUERY_LENGTH = 512000;|NA|@ohos.data.distributedKVStore.d.ts| +|删除|模块名:ohos.data.distributedKVStore
类名:Constants
方法 or 属性:const MAX_BATCH_SIZE = 128;|NA|@ohos.data.distributedKVStore.d.ts| +|删除|模块名:ohos.data.rdb
类名:rdb
方法 or 属性:function getRdbStoreV9(context: Context, config: StoreConfigV9, version: number, callback: AsyncCallback\): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名:ohos.data.rdb
类名:rdb
方法 or 属性:function getRdbStoreV9(context: Context, config: StoreConfigV9, version: number): Promise\;|NA|@ohos.data.rdb.d.ts| +|删除|模块名:ohos.data.rdb
类名:rdb
方法 or 属性:function deleteRdbStoreV9(context: Context, name: string, callback: AsyncCallback\): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名:ohos.data.rdb
类名:rdb
方法 or 属性:function deleteRdbStoreV9(context: Context, name: string): Promise\;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: SecurityLevel|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: SecurityLevel
方法 or 属性:S1 = 1|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: SecurityLevel
方法 or 属性:S2 = 2|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: SecurityLevel
方法 or 属性:S3 = 3|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: SecurityLevel
方法 or 属性:S4 = 4|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:insert(table: string, values: ValuesBucket, callback: AsyncCallback\): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:insert(table: string, values: ValuesBucket): Promise\;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:batchInsert(table: string, values: Array\, callback: AsyncCallback\): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:batchInsert(table: string, values: Array\): Promise\;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:update(values: ValuesBucket, predicates: RdbPredicatesV9, callback: AsyncCallback\): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:update(values: ValuesBucket, predicates: RdbPredicatesV9): Promise\;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:update(table: string, values: ValuesBucket, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback\): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:update(table: string, values: ValuesBucket, predicates: dataSharePredicates.DataSharePredicates): Promise\;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:delete(predicates: RdbPredicatesV9, callback: AsyncCallback\): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:delete(predicates: RdbPredicatesV9): Promise\;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:delete(table: string, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback\): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:delete(table: string, predicates: dataSharePredicates.DataSharePredicates): Promise\;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:query(predicates: RdbPredicatesV9, columns: Array\, callback: AsyncCallback\): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:query(predicates: RdbPredicatesV9, columns ?: Array\): Promise\;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:query(table: string, predicates: dataSharePredicates.DataSharePredicates, columns: Array\, callback: AsyncCallback\): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:query(table: string, predicates: dataSharePredicates.DataSharePredicates, columns ?: Array\): Promise\;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:remoteQuery(device: string, table: string, predicates: RdbPredicatesV9, columns: Array\, callback: AsyncCallback\): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:remoteQuery(device: string, table: string, predicates: RdbPredicatesV9, columns: Array\): Promise\;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:querySql(sql: string, bindArgs: Array\, callback: AsyncCallback\): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:querySql(sql: string, bindArgs ?: Array\): Promise\;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:executeSql(sql: string, bindArgs: Array\, callback: AsyncCallback\): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:executeSql(sql: string, bindArgs ?: Array\): Promise\;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:beginTransaction(): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:commit(): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:rollBack(): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:backup(destName: string, callback: AsyncCallback\): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:backup(destName: string): Promise\;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:restore(srcName: string, callback: AsyncCallback\): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:restore(srcName: string): Promise\;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:setDistributedTables(tables: Array\, callback: AsyncCallback\): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:setDistributedTables(tables: Array\): Promise\;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:obtainDistributedTableName(device: string, table: string, callback: AsyncCallback\): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:obtainDistributedTableName(device: string, table: string): Promise\;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:sync(mode: SyncMode, predicates: RdbPredicatesV9, callback: AsyncCallback\>): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:sync(mode: SyncMode, predicates: RdbPredicatesV9): Promise\>;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:on(event: 'dataChange', type: SubscribeType, observer: Callback\>): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbStoreV9
方法 or 属性:off(event: 'dataChange', type: SubscribeType, observer: Callback\>): void;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: StoreConfigV9|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: StoreConfigV9
方法 or 属性:name: string;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: StoreConfigV9
方法 or 属性:securityLevel: SecurityLevel;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: StoreConfigV9
方法 or 属性:encrypt ?: boolean;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:constructor(name: string)|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:inDevices(devices: Array\): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:inAllDevices(): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:equalTo(field: string, value: ValueType): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:notEqualTo(field: string, value: ValueType): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:beginWrap(): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:endWrap(): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:or(): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:and(): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:contains(field: string, value: string): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:beginsWith(field: string, value: string): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:endsWith(field: string, value: string): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:isNull(field: string): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:isNotNull(field: string): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:like(field: string, value: string): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:glob(field: string, value: string): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:between(field: string, low: ValueType, high: ValueType): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:notBetween(field: string, low: ValueType, high: ValueType): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:greaterThan(field: string, value: ValueType): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:lessThan(field: string, value: ValueType): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:greaterThanOrEqualTo(field: string, value: ValueType): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:lessThanOrEqualTo(field: string, value: ValueType): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:orderByAsc(field: string): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:orderByDesc(field: string): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:distinct(): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:limitAs(value: number): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:offsetAs(rowOffset: number): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:groupBy(fields: Array\): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:indexedBy(field: string): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:in(field: string, value: Array\): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法 or 属性:notIn(field: string, value: Array\): RdbPredicatesV9;|NA|@ohos.data.rdb.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:columnNames: Array\;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:columnCount: number;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:rowCount: number;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:rowIndex: number;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:isAtFirstRow: boolean;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:isAtLastRow: boolean;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:isEnded: boolean;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:isStarted: boolean;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:isClosed: boolean;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:getColumnIndex(columnName: string): number;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:getColumnName(columnIndex: number): string;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:goTo(offset: number): boolean;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:goToRow(position: number): boolean;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:goToFirstRow(): boolean;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:goToLastRow(): boolean;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:goToNextRow(): boolean;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:goToPreviousRow(): boolean;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:getBlob(columnIndex: number): Uint8Array;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:getString(columnIndex: number): string;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:getLong(columnIndex: number): number;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:getDouble(columnIndex: number): number;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:isColumnNull(columnIndex: number): boolean;|NA|resultSet.d.ts| +|删除|模块名: resultSet
类名: ResultSetV9
方法 or 属性:close(): void;|NA|resultSet.d.ts| +|废弃版本有变化|类名:rdb
废弃版本:N/A|类名:rdb
废弃版本:9
代替接口:ohos.data.relationalStore |@ohos.data.rdb.d.ts| +|新增(权限)|类名:SubscribeType
权限:N/A|类名:SubscribeType
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.data.rdb.d.ts| +|新增(权限)|类名:SubscribeType
权限:N/A|类名:SubscribeType
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.data.relationalStore.d.ts| +|函数有变化|类名:distributedDataObject
方法 or 属性:function create(context: Context, source: object): DistributedObjectV9;
|类名:distributedDataObject
方法 or 属性:function create(context: Context, source: object): DataObject;
|@ohos.data.distributedDataObject.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-file-management.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-file-management.md new file mode 100644 index 0000000000000000000000000000000000000000..5a3dcf0f48f88d531c5953284fe283065b5c2e63 --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-file-management.md @@ -0,0 +1,225 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function listFile(path: string, options?: {
recursion?: boolean;
listNum?: number;
filter?: Filter;
}): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function listFile(path: string, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function listFile(path: string, options: {
recursion?: boolean;
listNum?: number;
filter?: Filter;
}, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function listFileSync(path: string, options?: {
recursion?: boolean;
listNum?: number;
filter?: Filter;
}): string[];|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function moveFile(src: string, dest: string, mode?: number): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function moveFile(src: string, dest: string, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function moveFile(src: string, dest: string, mode: number, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function moveFileSync(src: string, dest: string, mode?: number): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: File
方法 or 属性: lock(exclusive?: boolean): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: File
方法 or 属性: lock(callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: File
方法 or 属性: lock(exclusive: boolean, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: File
方法 or 属性: tryLock(exclusive?: boolean): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: File
方法 or 属性: unlock(): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.hash
类名: hash|@ohos.file.hash.d.ts| +|新增|NA|类名:hash
方法or属性:|@ohos.file.hash.d.ts| +|新增|NA|模块名: ohos.file.hash
类名: hash
方法 or 属性:function hash(path: string, algorithm: string): Promise\;|@ohos.file.hash.d.ts| +|新增|NA|类名: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|类名:hash
方法or属性:function hash(path: string, algorithm: string, callback: AsyncCallback\): void;|@ohos.file.hash.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: picker|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewMIMETypes|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewMIMETypes
方法 or 属性: IMAGE_TYPE = "image/*"|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewMIMETypes
方法 or 属性: VIDEO_TYPE = "video/*"|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewMIMETypes
方法 or 属性: IMAGE_VIDEO_TYPE = "*/*"|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoSelectOptions|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoSelectOptions
方法 or 属性: MIMEType?: PhotoViewMIMETypes;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoSelectOptions
方法 or 属性: maxSelectNumber?: number;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoSelectResult|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoSelectResult
方法 or 属性: photoUris: Array\;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoSelectResult
方法 or 属性: isOriginalPhoto: boolean;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoSaveOptions|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoSaveOptions
方法 or 属性: newFileNames?: Array\;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewPicker|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewPicker
方法 or 属性: select(option?: PhotoSelectOptions) : Promise\;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewPicker
方法 or 属性: select(option: PhotoSelectOptions, callback: AsyncCallback\) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewPicker
方法 or 属性: select(callback: AsyncCallback\) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewPicker
方法 or 属性: save(option?: PhotoSaveOptions) : Promise\>;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewPicker
方法 or 属性: save(option: PhotoSaveOptions, callback: AsyncCallback\>) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewPicker
方法 or 属性: save(callback: AsyncCallback\>) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: DocumentSelectOptions|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: DocumentSaveOptions|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: DocumentSaveOptions
方法 or 属性: newFileNames?: Array\;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: DocumentViewPicker|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: DocumentViewPicker
方法 or 属性: select(option?: DocumentSelectOptions) : Promise\>;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: DocumentViewPicker
方法 or 属性: select(option: DocumentSelectOptions, callback: AsyncCallback\>) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: DocumentViewPicker
方法 or 属性: select(callback: AsyncCallback\>) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: DocumentViewPicker
方法 or 属性: save(option?: DocumentSaveOptions) : Promise\>;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: DocumentViewPicker
方法 or 属性: save(option: DocumentSaveOptions, callback: AsyncCallback\>) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: DocumentViewPicker
方法 or 属性: save(callback: AsyncCallback\>) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: AudioSelectOptions|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: AudioSaveOptions|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: AudioSaveOptions
方法 or 属性: newFileNames?: Array\;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: AudioViewPicker|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: AudioViewPicker
方法 or 属性: select(option?: AudioSelectOptions) : Promise\>;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: AudioViewPicker
方法 or 属性: select(option: AudioSelectOptions, callback: AsyncCallback\>) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: AudioViewPicker
方法 or 属性: select(callback: AsyncCallback\>) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: AudioViewPicker
方法 or 属性: save(option?: AudioSaveOptions) : Promise\>;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: AudioViewPicker
方法 or 属性: save(option: AudioSaveOptions, callback: AsyncCallback\>) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: AudioViewPicker
方法 or 属性: save(callback: AsyncCallback\>) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.securityLabel
类名: DataLevel
方法 or 属性:type DataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|@ohos.file.securityLabel.d.ts| +|新增|NA|类名: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|类名: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|类名: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|类名: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|类名:DataLevel
方法or属性:type DataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|@ohos.file.securityLabel.d.ts| +|新增|NA|模块名: ohos.file.statvfs
类名: statfs|@ohos.file.statvfs.d.ts| +|新增|NA|类名:statfs
方法or属性:|@ohos.file.statvfs.d.ts| +|新增|NA|模块名: ohos.file.statvfs
类名: statfs
方法 or 属性:function getFreeSize(path: string): Promise\;|@ohos.file.statvfs.d.ts| +|新增|NA|类名: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|类名: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|类名: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|类名:statfs
方法or属性:function getTotalSize(path: string, callback: AsyncCallback\): void;|@ohos.file.statvfs.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getTotalSizeOfVolume(volumeUuid: string, callback: AsyncCallback\): void;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getTotalSizeOfVolume(volumeUuid: string): Promise\;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getFreeSizeOfVolume(volumeUuid: string, callback: AsyncCallback\): void;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getFreeSizeOfVolume(volumeUuid: string): Promise\;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: BundleStats|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: BundleStats
方法 or 属性: appSize: number;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: BundleStats
方法 or 属性: cacheSize: number;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: BundleStats
方法 or 属性: dataSize: number;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getBundleStats(packageName: string, callback: AsyncCallback\): void;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getBundleStats(packageName: string): Promise\;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getCurrentBundleStats(callback: AsyncCallback\): void;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getCurrentBundleStats(): Promise\;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getSystemSize(callback: AsyncCallback\): void;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getSystemSize(): Promise\;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: StorageStats|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: StorageStats
方法 or 属性: total: number;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: StorageStats
方法 or 属性: audio: number;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: StorageStats
方法 or 属性: video: number;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: StorageStats
方法 or 属性: image: number;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: StorageStats
方法 or 属性: file: number;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: StorageStats
方法 or 属性: app: number;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getUserStorageStats(): Promise\;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getUserStorageStats(callback: AsyncCallback\): void;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getUserStorageStats(userId: number): Promise\;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getUserStorageStats(userId: number, callback: AsyncCallback\): void;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getTotalSize(callback: AsyncCallback\): void;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getTotalSize(): Promise\;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getFreeSize(callback: AsyncCallback\): void;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getFreeSize(): Promise\;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: Volume|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: Volume
方法 or 属性: id: string;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: Volume
方法 or 属性: uuid: string;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: Volume
方法 or 属性: diskId: string;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: Volume
方法 or 属性: description: string;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: Volume
方法 or 属性: removable: boolean;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: Volume
方法 or 属性: state: number;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: Volume
方法 or 属性: path: string;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function getAllVolumes(callback: AsyncCallback\>): void;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function getAllVolumes(): Promise\>;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function mount(volumeId: string, callback: AsyncCallback\): void;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function mount(volumeId: string): Promise\;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function unmount(volumeId: string, callback: AsyncCallback\): void;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function unmount(volumeId: string): Promise\;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function getVolumeByUuid(uuid: string, callback: AsyncCallback\): void;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function getVolumeByUuid(uuid: string): Promise\;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function getVolumeById(volumeId: string, callback: AsyncCallback\): void;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function getVolumeById(volumeId: string): Promise\;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function setVolumeDescription(uuid: string, description: string, callback: AsyncCallback\): void;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function setVolumeDescription(uuid: string, description: string): Promise\;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function format(volumeId: string, fsType: string, callback: AsyncCallback\): void;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function format(volumeId: string, fsType: string): Promise\;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function partition(diskId: string, type: number, callback: AsyncCallback\): void;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function partition(diskId: string, type: number): Promise\;|@ohos.file.volumeManager.d.ts| +|删除|模块名: ohos.file.hash
类名: Hash|NA|@ohos.file.hash.d.ts| +|删除|模块名: ohos.file.hash
类名: Hash
方法 or 属性:function hash(path: string, algorithm: string): Promise\;|NA|@ohos.file.hash.d.ts| +|删除|模块名: ohos.file.hash
类名: Hash
方法 or 属性:function hash(path: string, algorithm: string, callback: AsyncCallback\): void;|NA|@ohos.file.hash.d.ts| +|删除|模块名: ohos.file.securityLabel
类名: dataLevel
方法 or 属性:type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|NA|@ohos.file.securityLabel.d.ts| +|删除|模块名: ohos.file.securityLabel
类名: dataLevel
方法 or 属性:type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|NA|@ohos.file.securityLabel.d.ts| +|删除|模块名: ohos.file.securityLabel
类名: dataLevel
方法 or 属性:type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|NA|@ohos.file.securityLabel.d.ts| +|删除|模块名: ohos.file.securityLabel
类名: dataLevel
方法 or 属性:type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|NA|@ohos.file.securityLabel.d.ts| +|删除|模块名: ohos.file.securityLabel
类名: dataLevel
方法 or 属性:type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|NA|@ohos.file.securityLabel.d.ts| +|删除|模块名: ohos.file.statvfs
类名: Statfs|NA|@ohos.file.statvfs.d.ts| +|删除|模块名: ohos.file.statvfs
类名: Statfs
方法 or 属性:function getFreeSize(path: string): Promise\;|NA|@ohos.file.statvfs.d.ts| +|删除|模块名: ohos.file.statvfs
类名: Statfs
方法 or 属性:function getFreeSize(path: string, callback: AsyncCallback\): void;|NA|@ohos.file.statvfs.d.ts| +|删除|模块名: ohos.file.statvfs
类名: Statfs
方法 or 属性:function getTotalSize(path: string): Promise\;|NA|@ohos.file.statvfs.d.ts| +|删除|模块名: ohos.file.statvfs
类名: Statfs
方法 or 属性:function getTotalSize(path: string, callback: AsyncCallback\): void;|NA|@ohos.file.statvfs.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getTotalSizeOfVolume(volumeUuid: string, callback: AsyncCallback\): void;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getTotalSizeOfVolume(volumeUuid: string): Promise\;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getFreeSizeOfVolume(volumeUuid: string, callback: AsyncCallback\): void;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getFreeSizeOfVolume(volumeUuid: string): Promise\;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: BundleStats|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: BundleStats
方法 or 属性:appSize: number;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: BundleStats
方法 or 属性:cacheSize: number;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: BundleStats
方法 or 属性:dataSize: number;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getBundleStats(packageName: string, callback: AsyncCallback\): void;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getBundleStats(packageName: string): Promise\;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getCurrentBundleStats(callback: AsyncCallback\): void;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getCurrentBundleStats(): Promise\;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getSystemSize(callback: AsyncCallback\): void;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getSystemSize(): Promise\;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: StorageStats|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: StorageStats
方法 or 属性:total: number;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: StorageStats
方法 or 属性:audio: number;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: StorageStats
方法 or 属性:video: number;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: StorageStats
方法 or 属性:image: number;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: StorageStats
方法 or 属性:file: number;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: StorageStats
方法 or 属性:app: number;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getUserStorageStats(userId?: number): Promise\;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getUserStorageStats(callback: AsyncCallback\): void;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getUserStorageStats(userId: number, callback: AsyncCallback\): void;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getTotalSize(callback: AsyncCallback\): void;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getTotalSize(): Promise\;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getFreeSize(callback: AsyncCallback\): void;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getFreeSize(): Promise\;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.volumeManager
类名: volumeManager|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: Volume|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: Volume
方法 or 属性:id: string;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: Volume
方法 or 属性:uuid: string;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: Volume
方法 or 属性:diskId: string;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: Volume
方法 or 属性:description: string;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: Volume
方法 or 属性:removable: boolean;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: Volume
方法 or 属性:state: number;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: Volume
方法 or 属性:path: string;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: volumeManager
方法 or 属性:function getAllVolumes(callback: AsyncCallback\>): void;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: volumeManager
方法 or 属性:function getAllVolumes(): Promise\>;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: volumeManager
方法 or 属性:function mount(volumeId: string, callback: AsyncCallback\): void;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: volumeManager
方法 or 属性:function mount(volumeId: string): Promise\;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: volumeManager
方法 or 属性:function unmount(volumeId: string, callback: AsyncCallback\): void;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: volumeManager
方法 or 属性:function unmount(volumeId: string): Promise\;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: volumeManager
方法 or 属性:function getVolumeByUuid(uuid: string, callback: AsyncCallback\): void;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: volumeManager
方法 or 属性:function getVolumeByUuid(uuid: string): Promise\;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: volumeManager
方法 or 属性:function getVolumeById(volumeId: string, callback: AsyncCallback\): void;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: volumeManager
方法 or 属性:function getVolumeById(volumeId: string): Promise\;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: volumeManager
方法 or 属性:function setVolumeDescription(uuid: string, description: string, callback: AsyncCallback\): void;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: volumeManager
方法 or 属性:function setVolumeDescription(uuid: string, description: string): Promise\;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: volumeManager
方法 or 属性:function format(volumeId: string, fsType: string, callback: AsyncCallback\): void;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: volumeManager
方法 or 属性:function format(volumeId: string, fsType: string): Promise\;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: volumeManager
方法 or 属性:function partition(diskId: string, type: number, callback: AsyncCallback\): void;|NA|@ohos.volumeManager.d.ts| +|删除|模块名: ohos.volumeManager
类名: volumeManager
方法 or 属性:function partition(diskId: string, type: number): Promise\;|NA|@ohos.volumeManager.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function opendir(path: string): Promise\;
废弃版本:N/A|类名:fileIO
方法 or 属性:function opendir(path: string): Promise\;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function opendir(path: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function opendir(path: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function opendirSync(path: string): Dir;
废弃版本:N/A|类名:fileIO
方法 or 属性:function opendirSync(path: string): Dir;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dir
方法 or 属性:read(): Promise\;
废弃版本:N/A|类名:Dir
方法 or 属性:read(): Promise\;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dir
方法 or 属性:read(callback: AsyncCallback\): void;
废弃版本:N/A|类名:Dir
方法 or 属性:read(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dir
方法 or 属性:readSync(): Dirent;
废弃版本:N/A|类名:Dir
方法 or 属性:readSync(): Dirent;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dir
方法 or 属性:close(): Promise\;
废弃版本:N/A|类名:Dir
方法 or 属性:close(): Promise\;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dir
方法 or 属性:close(callback: AsyncCallback\): void;
废弃版本:N/A|类名:Dir
方法 or 属性:close(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dir
方法 or 属性:closeSync(): void;
废弃版本:N/A|类名:Dir
方法 or 属性:closeSync(): void;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dirent
废弃版本:N/A|类名:Dirent
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dirent
方法 or 属性:readonly name: string;
废弃版本:N/A|类名:Dirent
方法 or 属性:readonly name: string;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dirent
方法 or 属性:isBlockDevice(): boolean;
废弃版本:N/A|类名:Dirent
方法 or 属性:isBlockDevice(): boolean;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dirent
方法 or 属性:isCharacterDevice(): boolean;
废弃版本:N/A|类名:Dirent
方法 or 属性:isCharacterDevice(): boolean;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dirent
方法 or 属性:isDirectory(): boolean;
废弃版本:N/A|类名:Dirent
方法 or 属性:isDirectory(): boolean;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dirent
方法 or 属性:isFIFO(): boolean;
废弃版本:N/A|类名:Dirent
方法 or 属性:isFIFO(): boolean;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dirent
方法 or 属性:isFile(): boolean;
废弃版本:N/A|类名:Dirent
方法 or 属性:isFile(): boolean;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dirent
方法 or 属性:isSocket(): boolean;
废弃版本:N/A|类名:Dirent
方法 or 属性:isSocket(): boolean;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dirent
方法 or 属性:isSymbolicLink(): boolean;
废弃版本:N/A|类名:Dirent
方法 or 属性:isSymbolicLink(): boolean;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|起始版本有变化|类名:fileIO
方法 or 属性:function opendirSync(path: string): Dir;
起始版本:N/A|类名:fileIO
方法 or 属性:function opendirSync(path: string): Dir;
起始版本:6|@ohos.fileio.d.ts| +|函数有变化|类名:securityLabel
方法 or 属性:function setSecurityLabel(path: string, type: dataLevel): Promise\;
|类名:securityLabel
方法 or 属性:function setSecurityLabel(path: string, type: DataLevel): Promise\;
|@ohos.file.securityLabel.d.ts| +|函数有变化|类名:securityLabel
方法 or 属性:function setSecurityLabel(path: string, type: dataLevel, callback: AsyncCallback\): void;
|类名:securityLabel
方法 or 属性:function setSecurityLabel(path: string, type: DataLevel, callback: AsyncCallback\): void;
|@ohos.file.securityLabel.d.ts| +|函数有变化|类名:securityLabel
方法 or 属性:function setSecurityLabelSync(path: string, type: dataLevel): void;
|类名:securityLabel
方法 or 属性:function setSecurityLabelSync(path: string, type: DataLevel): void;
|@ohos.file.securityLabel.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-misc.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-misc.md new file mode 100644 index 0000000000000000000000000000000000000000..f800f29ef555e468856cb6dcae704821a78de79e --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-misc.md @@ -0,0 +1,73 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:ShareOption
方法or属性:INAPP|@ohos.pasteboard.d.ts| +|新增|NA|类名:ShareOption
方法or属性:LOCALDEVICE|@ohos.pasteboard.d.ts| +|新增|NA|类名:ShareOption
方法or属性:CROSSDEVICE|@ohos.pasteboard.d.ts| +|新增|NA|类名:PasteDataRecord
方法or属性:toPlainText(): string;|@ohos.pasteboard.d.ts| +|删除|模块名:ohos.pasteboard
类名:ShareOption
方法 or 属性:InApp|NA|@ohos.pasteboard.d.ts| +|删除|模块名:ohos.pasteboard
类名:ShareOption
方法 or 属性:LocalDevice|NA|@ohos.pasteboard.d.ts| +|删除|模块名:ohos.pasteboard
类名:ShareOption
方法 or 属性:CrossDevice|NA|@ohos.pasteboard.d.ts| +|删除|模块名:ohos.pasteboard
类名:PasteDataRecord
方法 or 属性:convertToTextV9(callback: AsyncCallback\): void;|NA|@ohos.pasteboard.d.ts| +|删除|模块名:ohos.pasteboard
类名:PasteDataRecord
方法 or 属性:convertToTextV9(): Promise\;|NA|@ohos.pasteboard.d.ts| +|删除|模块名:ohos.request
类名:request
方法 or 属性:function download(context: BaseContext, config: DownloadConfig, callback: AsyncCallback\): void;|NA|@ohos.request.d.ts| +|删除|模块名:ohos.request
类名:request
方法 or 属性:function download(context: BaseContext, config: DownloadConfig): Promise\;|NA|@ohos.request.d.ts| +|删除|模块名:ohos.request
类名:request
方法 or 属性:function upload(context: BaseContext, config: UploadConfig, callback: AsyncCallback\): void;|NA|@ohos.request.d.ts| +|删除|模块名:ohos.request
类名:request
方法 or 属性:function upload(context: BaseContext, config: UploadConfig): Promise\;|NA|@ohos.request.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法 or 属性:function isSecure(): boolean;|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.wallpaper
类名:wallpaper
方法 or 属性:function getIdSync(wallpaperType: WallpaperType): number;|NA|@ohos.wallpaper.d.ts| +|删除|模块名:ohos.wallpaper
类名:wallpaper
方法 or 属性:function getFileSync(wallpaperType: WallpaperType): number;|NA|@ohos.wallpaper.d.ts| +|删除|模块名:ohos.wallpaper
类名:wallpaper
方法 or 属性:function isChangeAllowed(): boolean;|NA|@ohos.wallpaper.d.ts| +|删除|模块名:ohos.wallpaper
类名:wallpaper
方法 or 属性:function isUserChangeAllowed(): boolean;|NA|@ohos.wallpaper.d.ts| +|model有变化|类名:InputMethodExtensionAbility
model:N/A|类名:InputMethodExtensionAbility
model:@StageModelOnly|@ohos.InputMethodExtensionAbility.d.ts| +|model有变化|类名:InputMethodExtensionAbility
方法 or 属性:context: InputMethodExtensionContext;
model:N/A|类名:InputMethodExtensionAbility
方法 or 属性:context: InputMethodExtensionContext;
model:@StageModelOnly|@ohos.InputMethodExtensionAbility.d.ts| +|model有变化|类名:InputMethodExtensionAbility
方法 or 属性:onCreate(want: Want): void;
model:N/A|类名:InputMethodExtensionAbility
方法 or 属性:onCreate(want: Want): void;
model:@StageModelOnly|@ohos.InputMethodExtensionAbility.d.ts| +|model有变化|类名:InputMethodExtensionAbility
方法 or 属性:onDestroy(): void;
model:N/A|类名:InputMethodExtensionAbility
方法 or 属性:onDestroy(): void;
model:@StageModelOnly|@ohos.InputMethodExtensionAbility.d.ts| +|model有变化|类名:InputMethodExtensionContext
model:N/A|类名:InputMethodExtensionContext
model:@StageModelOnly|@ohos.InputMethodExtensionContext.d.ts| +|model有变化|类名:InputMethodExtensionContext
方法 or 属性:destroy(callback: AsyncCallback\): void;
model:N/A|类名:InputMethodExtensionContext
方法 or 属性:destroy(callback: AsyncCallback\): void;
model:@StageModelOnly|@ohos.InputMethodExtensionContext.d.ts| +|model有变化|类名:InputMethodExtensionContext
方法 or 属性:destroy(): Promise\;
model:N/A|类名:InputMethodExtensionContext
方法 or 属性:destroy(): Promise\;
model:@StageModelOnly|@ohos.InputMethodExtensionContext.d.ts| +|访问级别有变化|类名:screenLock
方法 or 属性:function isLocked(): boolean;
访问级别:公开API|类名:screenLock
方法 or 属性:function isLocked(): boolean;
访问级别:系统API|@ohos.screenLock.d.ts| +|访问级别有变化|类名:screenLock
方法 or 属性:function unlock(callback: AsyncCallback\): void;
访问级别:公开API|类名:screenLock
方法 or 属性:function unlock(callback: AsyncCallback\): void;
访问级别:系统API|@ohos.screenLock.d.ts| +|访问级别有变化|类名:screenLock
方法 or 属性:function unlock():Promise\;
访问级别:公开API|类名:screenLock
方法 or 属性:function unlock():Promise\;
访问级别:系统API|@ohos.screenLock.d.ts| +|访问级别有变化|类名:wallpaper
方法 or 属性:function getColorsSync(wallpaperType: WallpaperType): Array\;
访问级别:公开API|类名:wallpaper
方法 or 属性:function getColorsSync(wallpaperType: WallpaperType): Array\;
访问级别:系统API|@ohos.wallpaper.d.ts| +|访问级别有变化|类名:wallpaper
方法 or 属性:function getMinHeightSync(): number;
访问级别:公开API|类名:wallpaper
方法 or 属性:function getMinHeightSync(): number;
访问级别:系统API|@ohos.wallpaper.d.ts| +|访问级别有变化|类名:wallpaper
方法 or 属性:function getMinWidthSync(): number;
访问级别:公开API|类名:wallpaper
方法 or 属性:function getMinWidthSync(): number;
访问级别:系统API|@ohos.wallpaper.d.ts| +|访问级别有变化|类名:wallpaper
方法 or 属性:function restore(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
访问级别:公开API|类名:wallpaper
方法 or 属性:function restore(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
访问级别:系统API|@ohos.wallpaper.d.ts| +|访问级别有变化|类名:wallpaper
方法 or 属性:function restore(wallpaperType: WallpaperType): Promise\;
访问级别:公开API|类名:wallpaper
方法 or 属性:function restore(wallpaperType: WallpaperType): Promise\;
访问级别:系统API|@ohos.wallpaper.d.ts| +|访问级别有变化|类名:wallpaper
方法 or 属性:function setImage(source: string \| image.PixelMap, wallpaperType: WallpaperType, callback: AsyncCallback\): void;
访问级别:公开API|类名:wallpaper
方法 or 属性:function setImage(source: string \| image.PixelMap, wallpaperType: WallpaperType, callback: AsyncCallback\): void;
访问级别:系统API|@ohos.wallpaper.d.ts| +|访问级别有变化|类名:wallpaper
方法 or 属性:function setImage(source: string \| image.PixelMap, wallpaperType: WallpaperType): Promise\;
访问级别:公开API|类名:wallpaper
方法 or 属性:function setImage(source: string \| image.PixelMap, wallpaperType: WallpaperType): Promise\;
访问级别:系统API|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:RgbaColor
废弃版本:N/A|类名:RgbaColor
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function on(type: 'colorChange', callback: (colors: Array\, wallpaperType: WallpaperType) => void): void;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function on(type: 'colorChange', callback: (colors: Array\, wallpaperType: WallpaperType) => void): void;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function off(type: 'colorChange', callback?: (colors: Array\, wallpaperType: WallpaperType) => void): void;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function off(type: 'colorChange', callback?: (colors: Array\, wallpaperType: WallpaperType) => void): void;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:RgbaColor
起始版本:N/A|类名:RgbaColor
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:WallpaperType
起始版本:N/A|类名:WallpaperType
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function getColors(wallpaperType: WallpaperType, callback: AsyncCallback\>): void;
起始版本:N/A|类名:wallpaper
方法 or 属性:function getColors(wallpaperType: WallpaperType, callback: AsyncCallback\>): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function getColors(wallpaperType: WallpaperType): Promise\>;
起始版本:N/A|类名:wallpaper
方法 or 属性:function getColors(wallpaperType: WallpaperType): Promise\>;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function getId(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
起始版本:N/A|类名:wallpaper
方法 or 属性:function getId(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function getId(wallpaperType: WallpaperType): Promise\;
起始版本:N/A|类名:wallpaper
方法 or 属性:function getId(wallpaperType: WallpaperType): Promise\;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function getMinHeight(callback: AsyncCallback\): void;
起始版本:N/A|类名:wallpaper
方法 or 属性:function getMinHeight(callback: AsyncCallback\): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function getMinHeight(): Promise\;
起始版本:N/A|类名:wallpaper
方法 or 属性:function getMinHeight(): Promise\;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function getMinWidth(callback: AsyncCallback\): void;
起始版本:N/A|类名:wallpaper
方法 or 属性:function getMinWidth(callback: AsyncCallback\): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function getMinWidth(): Promise\;
起始版本:N/A|类名:wallpaper
方法 or 属性:function getMinWidth(): Promise\;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function isChangePermitted(callback: AsyncCallback\): void;
起始版本:N/A|类名:wallpaper
方法 or 属性:function isChangePermitted(callback: AsyncCallback\): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function isChangePermitted(): Promise\;
起始版本:N/A|类名:wallpaper
方法 or 属性:function isChangePermitted(): Promise\;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function isOperationAllowed(callback: AsyncCallback\): void;
起始版本:N/A|类名:wallpaper
方法 or 属性:function isOperationAllowed(callback: AsyncCallback\): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function isOperationAllowed(): Promise\;
起始版本:N/A|类名:wallpaper
方法 or 属性:function isOperationAllowed(): Promise\;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function reset(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
起始版本:N/A|类名:wallpaper
方法 or 属性:function reset(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function reset(wallpaperType: WallpaperType): Promise\;
起始版本:N/A|类名:wallpaper
方法 or 属性:function reset(wallpaperType: WallpaperType): Promise\;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function setWallpaper(source: string \| image.PixelMap, wallpaperType: WallpaperType, callback: AsyncCallback\): void;
起始版本:N/A|类名:wallpaper
方法 or 属性:function setWallpaper(source: string \| image.PixelMap, wallpaperType: WallpaperType, callback: AsyncCallback\): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function setWallpaper(source: string \| image.PixelMap, wallpaperType: WallpaperType): Promise\;
起始版本:N/A|类名:wallpaper
方法 or 属性:function setWallpaper(source: string \| image.PixelMap, wallpaperType: WallpaperType): Promise\;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function getPixelMap(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
起始版本:N/A|类名:wallpaper
方法 or 属性:function getPixelMap(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function getPixelMap(wallpaperType: WallpaperType): Promise\;
起始版本:N/A|类名:wallpaper
方法 or 属性:function getPixelMap(wallpaperType: WallpaperType): Promise\;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function on(type: 'colorChange', callback: (colors: Array\, wallpaperType: WallpaperType) => void): void;
起始版本:9|类名:wallpaper
方法 or 属性:function on(type: 'colorChange', callback: (colors: Array\, wallpaperType: WallpaperType) => void): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function off(type: 'colorChange', callback?: (colors: Array\, wallpaperType: WallpaperType) => void): void;
起始版本:9|类名:wallpaper
方法 or 属性:function off(type: 'colorChange', callback?: (colors: Array\, wallpaperType: WallpaperType) => void): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:Request
方法 or 属性:static upload(options: UploadRequestOptions): void;
起始版本:N/A|类名:Request
方法 or 属性:static upload(options: UploadRequestOptions): void;
起始版本:3|@system.request.d.ts| +|起始版本有变化|类名:Request
方法 or 属性:static download(options: DownloadRequestOptions): void;
起始版本:N/A|类名:Request
方法 or 属性:static download(options: DownloadRequestOptions): void;
起始版本:3|@system.request.d.ts| +|起始版本有变化|类名:Request
方法 or 属性:static onDownloadComplete(options: OnDownloadCompleteOptions): void;
起始版本:N/A|类名:Request
方法 or 属性:static onDownloadComplete(options: OnDownloadCompleteOptions): void;
起始版本:3|@system.request.d.ts| +|删除(权限)|类名:InputMethodSetting
方法 or 属性:showOptionalInputMethods(callback: AsyncCallback\): void;
权限:ohos.permission.CONNECT_IME_ABILITY|类名:InputMethodSetting
方法 or 属性:showOptionalInputMethods(callback: AsyncCallback\): void;
权限:N/A|@ohos.inputMethod.d.ts| +|删除(权限)|类名:InputMethodSetting
方法 or 属性:showOptionalInputMethods(): Promise\;
权限:ohos.permission.CONNECT_IME_ABILITY|类名:InputMethodSetting
方法 or 属性:showOptionalInputMethods(): Promise\;
权限:N/A|@ohos.inputMethod.d.ts| +|新增(错误码)|NA|类名:screenLock
方法 or 属性:function isLocked(): boolean;
错误码内容: 202|@ohos.screenLock.d.ts| +|新增(错误码)|NA|类名:wallpaper
方法 or 属性:function getMinHeightSync(): number;
错误码内容: 202|@ohos.wallpaper.d.ts| +|新增(错误码)|NA|类名:wallpaper
方法 or 属性:function getMinWidthSync(): number;
错误码内容: 202|@ohos.wallpaper.d.ts| +|新增(权限)|类名:request
方法 or 属性:function uploadFile(context: BaseContext, config: UploadConfig, callback: AsyncCallback\): void;
权限:N/A|类名:request
方法 or 属性:function uploadFile(context: BaseContext, config: UploadConfig, callback: AsyncCallback\): void;
权限:ohos.permission.INTERNET|@ohos.request.d.ts| +|SysCap有变化|类名:wallpaper
方法 or 属性:function on(type: 'colorChange', callback: (colors: Array\, wallpaperType: WallpaperType) => void): void;
SysCap:N/A|类名:wallpaper
方法 or 属性:function on(type: 'colorChange', callback: (colors: Array\, wallpaperType: WallpaperType) => void): void;
SysCap:SystemCapability.MiscServices.Wallpaper|@ohos.wallpaper.d.ts| +|SysCap有变化|类名:wallpaper
方法 or 属性:function off(type: 'colorChange', callback?: (colors: Array\, wallpaperType: WallpaperType) => void): void;
SysCap:N/A|类名:wallpaper
方法 or 属性:function off(type: 'colorChange', callback?: (colors: Array\, wallpaperType: WallpaperType) => void): void;
SysCap:SystemCapability.MiscServices.Wallpaper|@ohos.wallpaper.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-multimedia.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-multimedia.md new file mode 100644 index 0000000000000000000000000000000000000000..03c224360c9de1a457596b69569adcaa8ee8c689 --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-multimedia.md @@ -0,0 +1,245 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|访问级别有变化|类名:VolumeEvent
访问级别:系统API|类名:VolumeEvent
访问级别:公开API|@ohos.multimedia.audio.d.ts| +|访问级别有变化|类名:VolumeEvent
方法 or 属性:volumeGroupId: number;
访问级别:公开API|类名:VolumeEvent
方法 or 属性:volumeGroupId: number;
访问级别:系统API|@ohos.multimedia.audio.d.ts| +|访问级别有变化|类名:VolumeEvent
方法 or 属性:networkId: string;
访问级别:公开API|类名:VolumeEvent
方法 or 属性:networkId: string;
访问级别:系统API|@ohos.multimedia.audio.d.ts| +|访问级别有变化|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
访问级别:公开API|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
访问级别:公开API|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
访问级别:公开API|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:avSession
方法 or 属性:function off(type: 'sessionServiceDie', callback?: () => void): void;
访问级别:公开API|类名:avSession
方法 or 属性:function off(type: 'sessionServiceDie', callback?: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:off(type: 'seek', callback?: (time: number) => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:off(type: 'seek', callback?: (time: number) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:off(type: 'setSpeed', callback?: (speed: number) => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:off(type: 'setSpeed', callback?: (speed: number) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:off(type: 'setLoopMode', callback?: (mode: LoopMode) => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:off(type: 'setLoopMode', callback?: (mode: LoopMode) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:off(type: 'toggleFavorite', callback?: (assetId: string) => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:off(type: 'toggleFavorite', callback?: (assetId: string) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:off(type: 'handleKeyEvent', callback?: (event: KeyEvent) => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:off(type: 'handleKeyEvent', callback?: (event: KeyEvent) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:off(type: 'outputDeviceChange', callback?: (device: OutputDeviceInfo) => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:off(type: 'outputDeviceChange', callback?: (device: OutputDeviceInfo) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:off(type: 'metadataChange', callback?: (data: AVMetadata) => void);
访问级别:公开API|类名:AVSessionController
方法 or 属性:off(type: 'metadataChange', callback?: (data: AVMetadata) => void);
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:off(type: 'playbackStateChange', callback?: (state: AVPlaybackState) => void);
访问级别:公开API|类名:AVSessionController
方法 or 属性:off(type: 'playbackStateChange', callback?: (state: AVPlaybackState) => void);
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:off(type: 'sessionDestroy', callback?: () => void);
访问级别:公开API|类名:AVSessionController
方法 or 属性:off(type: 'sessionDestroy', callback?: () => void);
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:off(type: 'activeStateChange', callback?: (isActive: boolean) => void);
访问级别:公开API|类名:AVSessionController
方法 or 属性:off(type: 'activeStateChange', callback?: (isActive: boolean) => void);
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:off(type: 'validCommandChange', callback?: (commands: Array\) => void);
访问级别:公开API|类名:AVSessionController
方法 or 属性:off(type: 'validCommandChange', callback?: (commands: Array\) => void);
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:off(type: 'outputDeviceChange', callback?: (device: OutputDeviceInfo) => void): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:off(type: 'outputDeviceChange', callback?: (device: OutputDeviceInfo) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:on(type: 'volumeChange', callback: Callback\): void;
废弃版本:9|类名:AudioManager
方法 or 属性:on(type: 'volumeChange', callback: Callback\): void;
废弃版本:N/A
代替接口:ohos.multimedia.audio.AudioVolumeManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:mediaLibrary
废弃版本:N/A|类名:mediaLibrary
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:mediaLibrary
方法 or 属性:function getMediaLibrary(): MediaLibrary;
废弃版本:N/A|类名:mediaLibrary
方法 or 属性:function getMediaLibrary(): MediaLibrary;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:mediaLibrary
方法 or 属性:function getMediaLibrary(context: Context): MediaLibrary;
废弃版本:N/A|类名:mediaLibrary
方法 or 属性:function getMediaLibrary(context: Context): MediaLibrary;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaType
废弃版本:N/A|类名:MediaType
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaType
方法 or 属性:FILE = 0
废弃版本:N/A|类名:MediaType
方法 or 属性:FILE = 0
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaType
方法 or 属性:IMAGE
废弃版本:N/A|类名:MediaType
方法 or 属性:IMAGE
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaType
方法 or 属性:VIDEO
废弃版本:N/A|类名:MediaType
方法 or 属性:VIDEO
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaType
方法 or 属性:AUDIO
废弃版本:N/A|类名:MediaType
方法 or 属性:AUDIO
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
废弃版本:N/A|类名:FileAsset
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly id: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly id: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly uri: string;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly uri: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly mimeType: string;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly mimeType: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly mediaType: MediaType;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly mediaType: MediaType;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:displayName: string;
废弃版本:N/A|类名:FileAsset
方法 or 属性:displayName: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:title: string;
废弃版本:N/A|类名:FileAsset
方法 or 属性:title: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:relativePath: string;
废弃版本:N/A|类名:FileAsset
方法 or 属性:relativePath: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly parent: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly parent: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly size: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly size: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly dateAdded: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly dateAdded: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly dateModified: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly dateModified: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly dateTaken: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly dateTaken: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly artist: string;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly artist: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly audioAlbum: string;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly audioAlbum: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly width: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly width: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly height: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly height: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:orientation: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:orientation: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly duration: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly duration: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly albumId: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly albumId: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly albumUri: string;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly albumUri: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly albumName: string;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly albumName: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:isDirectory(callback: AsyncCallback\): void;
废弃版本:N/A|类名:FileAsset
方法 or 属性:isDirectory(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:isDirectory():Promise\;
废弃版本:N/A|类名:FileAsset
方法 or 属性:isDirectory():Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:commitModify(callback: AsyncCallback\): void;
废弃版本:N/A|类名:FileAsset
方法 or 属性:commitModify(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:commitModify(): Promise\;
废弃版本:N/A|类名:FileAsset
方法 or 属性:commitModify(): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:open(mode: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:FileAsset
方法 or 属性:open(mode: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:open(mode: string): Promise\;
废弃版本:N/A|类名:FileAsset
方法 or 属性:open(mode: string): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:close(fd: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:FileAsset
方法 or 属性:close(fd: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:close(fd: number): Promise\;
废弃版本:N/A|类名:FileAsset
方法 or 属性:close(fd: number): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:getThumbnail(callback: AsyncCallback\): void;
废弃版本:N/A|类名:FileAsset
方法 or 属性:getThumbnail(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:getThumbnail(size: Size, callback: AsyncCallback\): void;
废弃版本:N/A|类名:FileAsset
方法 or 属性:getThumbnail(size: Size, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:getThumbnail(size?: Size): Promise\;
废弃版本:N/A|类名:FileAsset
方法 or 属性:getThumbnail(size?: Size): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:favorite(isFavorite: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:FileAsset
方法 or 属性:favorite(isFavorite: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:favorite(isFavorite: boolean): Promise\;
废弃版本:N/A|类名:FileAsset
方法 or 属性:favorite(isFavorite: boolean): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:isFavorite(callback: AsyncCallback\): void;
废弃版本:N/A|类名:FileAsset
方法 or 属性:isFavorite(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:isFavorite():Promise\;
废弃版本:N/A|类名:FileAsset
方法 or 属性:isFavorite():Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:trash(isTrash: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:FileAsset
方法 or 属性:trash(isTrash: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:trash(isTrash: boolean): Promise\;
废弃版本:N/A|类名:FileAsset
方法 or 属性:trash(isTrash: boolean): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:isTrash(callback: AsyncCallback\): void;
废弃版本:N/A|类名:FileAsset
方法 or 属性:isTrash(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:isTrash():Promise\;
废弃版本:N/A|类名:FileAsset
方法 or 属性:isTrash():Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
废弃版本:N/A|类名:FileKey
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:ID = "file_id"
废弃版本:N/A|类名:FileKey
方法 or 属性:ID = "file_id"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:RELATIVE_PATH = "relative_path"
废弃版本:N/A|类名:FileKey
方法 or 属性:RELATIVE_PATH = "relative_path"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:DISPLAY_NAME = "display_name"
废弃版本:N/A|类名:FileKey
方法 or 属性:DISPLAY_NAME = "display_name"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:PARENT = "parent"
废弃版本:N/A|类名:FileKey
方法 or 属性:PARENT = "parent"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:MIME_TYPE = "mime_type"
废弃版本:N/A|类名:FileKey
方法 or 属性:MIME_TYPE = "mime_type"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:MEDIA_TYPE = "media_type"
废弃版本:N/A|类名:FileKey
方法 or 属性:MEDIA_TYPE = "media_type"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:SIZE = "size"
废弃版本:N/A|类名:FileKey
方法 or 属性:SIZE = "size"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:DATE_ADDED = "date_added"
废弃版本:N/A|类名:FileKey
方法 or 属性:DATE_ADDED = "date_added"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:DATE_MODIFIED = "date_modified"
废弃版本:N/A|类名:FileKey
方法 or 属性:DATE_MODIFIED = "date_modified"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:DATE_TAKEN = "date_taken"
废弃版本:N/A|类名:FileKey
方法 or 属性:DATE_TAKEN = "date_taken"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:TITLE = "title"
废弃版本:N/A|类名:FileKey
方法 or 属性:TITLE = "title"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:ARTIST = "artist"
废弃版本:N/A|类名:FileKey
方法 or 属性:ARTIST = "artist"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:AUDIOALBUM = "audio_album"
废弃版本:N/A|类名:FileKey
方法 or 属性:AUDIOALBUM = "audio_album"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:DURATION = "duration"
废弃版本:N/A|类名:FileKey
方法 or 属性:DURATION = "duration"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:WIDTH = "width"
废弃版本:N/A|类名:FileKey
方法 or 属性:WIDTH = "width"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:HEIGHT = "height"
废弃版本:N/A|类名:FileKey
方法 or 属性:HEIGHT = "height"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:ORIENTATION = "orientation"
废弃版本:N/A|类名:FileKey
方法 or 属性:ORIENTATION = "orientation"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:ALBUM_ID = "bucket_id"
废弃版本:N/A|类名:FileKey
方法 or 属性:ALBUM_ID = "bucket_id"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:ALBUM_NAME = "bucket_display_name"
废弃版本:N/A|类名:FileKey
方法 or 属性:ALBUM_NAME = "bucket_display_name"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaFetchOptions
废弃版本:N/A|类名:MediaFetchOptions
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaFetchOptions
方法 or 属性:selections: string;
废弃版本:N/A|类名:MediaFetchOptions
方法 or 属性:selections: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaFetchOptions
方法 or 属性:selectionArgs: Array\;
废弃版本:N/A|类名:MediaFetchOptions
方法 or 属性:selectionArgs: Array\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaFetchOptions
方法 or 属性:order?: string;
废弃版本:N/A|类名:MediaFetchOptions
方法 or 属性:order?: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaFetchOptions
方法 or 属性:uri?: string;
废弃版本:N/A|类名:MediaFetchOptions
方法 or 属性:uri?: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaFetchOptions
方法 or 属性:networkId?: string;
废弃版本:N/A|类名:MediaFetchOptions
方法 or 属性:networkId?: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaFetchOptions
方法 or 属性:extendArgs?: string;
废弃版本:N/A|类名:MediaFetchOptions
方法 or 属性:extendArgs?: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
废弃版本:N/A|类名:FetchFileResult
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getCount(): number;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getCount(): number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:isAfterLast(): boolean;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:isAfterLast(): boolean;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:close(): void;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:close(): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getFirstObject(callback: AsyncCallback\): void;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getFirstObject(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getFirstObject(): Promise\;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getFirstObject(): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getNextObject(callback: AsyncCallback\): void;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getNextObject(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getNextObject(): Promise\;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getNextObject(): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getLastObject(callback: AsyncCallback\): void;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getLastObject(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getLastObject(): Promise\;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getLastObject(): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getPositionObject(index: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getPositionObject(index: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getPositionObject(index: number): Promise\;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getPositionObject(index: number): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getAllObject(callback: AsyncCallback\>): void;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getAllObject(callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getAllObject(): Promise\>;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getAllObject(): Promise\>;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
废弃版本:N/A|类名:Album
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:readonly albumId: number;
废弃版本:N/A|类名:Album
方法 or 属性:readonly albumId: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:albumName: string;
废弃版本:N/A|类名:Album
方法 or 属性:albumName: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:readonly albumUri: string;
废弃版本:N/A|类名:Album
方法 or 属性:readonly albumUri: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:readonly dateModified: number;
废弃版本:N/A|类名:Album
方法 or 属性:readonly dateModified: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:readonly count: number;
废弃版本:N/A|类名:Album
方法 or 属性:readonly count: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:readonly relativePath: string;
废弃版本:N/A|类名:Album
方法 or 属性:readonly relativePath: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:readonly coverUri: string;
废弃版本:N/A|类名:Album
方法 or 属性:readonly coverUri: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:commitModify(callback: AsyncCallback\): void;
废弃版本:N/A|类名:Album
方法 or 属性:commitModify(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:commitModify(): Promise\;
废弃版本:N/A|类名:Album
方法 or 属性:commitModify(): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:getFileAssets(callback: AsyncCallback\): void;
废弃版本:N/A|类名:Album
方法 or 属性:getFileAssets(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:getFileAssets(options: MediaFetchOptions, callback: AsyncCallback\): void;
废弃版本:N/A|类名:Album
方法 or 属性:getFileAssets(options: MediaFetchOptions, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:getFileAssets(options?: MediaFetchOptions): Promise\;
废弃版本:N/A|类名:Album
方法 or 属性:getFileAssets(options?: MediaFetchOptions): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DirectoryType
废弃版本:N/A|类名:DirectoryType
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DirectoryType
方法 or 属性:DIR_CAMERA = 0
废弃版本:N/A|类名:DirectoryType
方法 or 属性:DIR_CAMERA = 0
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DirectoryType
方法 or 属性:DIR_VIDEO
废弃版本:N/A|类名:DirectoryType
方法 or 属性:DIR_VIDEO
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DirectoryType
方法 or 属性:DIR_IMAGE
废弃版本:N/A|类名:DirectoryType
方法 or 属性:DIR_IMAGE
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DirectoryType
方法 or 属性:DIR_AUDIO
废弃版本:N/A|类名:DirectoryType
方法 or 属性:DIR_AUDIO
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DirectoryType
方法 or 属性:DIR_DOCUMENTS
废弃版本:N/A|类名:DirectoryType
方法 or 属性:DIR_DOCUMENTS
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DirectoryType
方法 or 属性:DIR_DOWNLOAD
废弃版本:N/A|类名:DirectoryType
方法 or 属性:DIR_DOWNLOAD
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
废弃版本:N/A|类名:MediaLibrary
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:getPublicDirectory(type: DirectoryType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:getPublicDirectory(type: DirectoryType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:getPublicDirectory(type: DirectoryType): Promise\;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:getPublicDirectory(type: DirectoryType): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:getFileAssets(options: MediaFetchOptions, callback: AsyncCallback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:getFileAssets(options: MediaFetchOptions, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:getFileAssets(options: MediaFetchOptions): Promise\;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:getFileAssets(options: MediaFetchOptions): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:createAsset(mediaType: MediaType, displayName: string, relativePath: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:createAsset(mediaType: MediaType, displayName: string, relativePath: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:createAsset(mediaType: MediaType, displayName: string, relativePath: string): Promise\;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:createAsset(mediaType: MediaType, displayName: string, relativePath: string): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:deleteAsset(uri: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:deleteAsset(uri: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:deleteAsset(uri: string): Promise\;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:deleteAsset(uri: string): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:getAlbums(options: MediaFetchOptions, callback: AsyncCallback\>): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:getAlbums(options: MediaFetchOptions, callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:getAlbums(options: MediaFetchOptions): Promise\>;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:getAlbums(options: MediaFetchOptions): Promise\>;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:getActivePeers(callback: AsyncCallback\>): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:getActivePeers(callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:getActivePeers(): Promise\>;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:getActivePeers(): Promise\>;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:getAllPeers(callback: AsyncCallback\>): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:getAllPeers(callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:getAllPeers(): Promise\>;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:getAllPeers(): Promise\>;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:release(callback: AsyncCallback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:release(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:release(): Promise\;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:release(): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Size
废弃版本:N/A|类名:Size
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Size
方法 or 属性:width: number;
废弃版本:N/A|类名:Size
方法 or 属性:width: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Size
方法 or 属性:height: number;
废弃版本:N/A|类名:Size
方法 or 属性:height: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:PeerInfo
废弃版本:N/A|类名:PeerInfo
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:PeerInfo
方法 or 属性:readonly deviceName: string;
废弃版本:N/A|类名:PeerInfo
方法 or 属性:readonly deviceName: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:PeerInfo
方法 or 属性:readonly networkId: string;
废弃版本:N/A|类名:PeerInfo
方法 or 属性:readonly networkId: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:PeerInfo
方法 or 属性:readonly deviceType: DeviceType;
废弃版本:N/A|类名:PeerInfo
方法 or 属性:readonly deviceType: DeviceType;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:PeerInfo
方法 or 属性:readonly isOnline: boolean;
废弃版本:N/A|类名:PeerInfo
方法 or 属性:readonly isOnline: boolean;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DeviceType
废弃版本:N/A|类名:DeviceType
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DeviceType
方法 or 属性:TYPE_UNKNOWN = 0
废弃版本:N/A|类名:DeviceType
方法 or 属性:TYPE_UNKNOWN = 0
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DeviceType
方法 or 属性:TYPE_LAPTOP
废弃版本:N/A|类名:DeviceType
方法 or 属性:TYPE_LAPTOP
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DeviceType
方法 or 属性:TYPE_PHONE
废弃版本:N/A|类名:DeviceType
方法 or 属性:TYPE_PHONE
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DeviceType
方法 or 属性:TYPE_TABLET
废弃版本:N/A|类名:DeviceType
方法 or 属性:TYPE_TABLET
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DeviceType
方法 or 属性:TYPE_WATCH
废弃版本:N/A|类名:DeviceType
方法 or 属性:TYPE_WATCH
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DeviceType
方法 or 属性:TYPE_CAR
废弃版本:N/A|类名:DeviceType
方法 or 属性:TYPE_CAR
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DeviceType
方法 or 属性:TYPE_TV
废弃版本:N/A|类名:DeviceType
方法 or 属性:TYPE_TV
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|起始版本有变化|类名:AudioManager
方法 or 属性:on(type: 'volumeChange', callback: Callback\): void;
起始版本:8|类名:AudioManager
方法 or 属性:on(type: 'volumeChange', callback: Callback\): void;
起始版本:9|@ohos.multimedia.audio.d.ts| +|起始版本有变化|类名:VolumeEvent
起始版本:8|类名:VolumeEvent
起始版本:9|@ohos.multimedia.audio.d.ts| +|起始版本有变化|类名:VolumeEvent
方法 or 属性:volumeType: AudioVolumeType;
起始版本:8|类名:VolumeEvent
方法 or 属性:volumeType: AudioVolumeType;
起始版本:9|@ohos.multimedia.audio.d.ts| +|起始版本有变化|类名:VolumeEvent
方法 or 属性:volume: number;
起始版本:8|类名:VolumeEvent
方法 or 属性:volume: number;
起始版本:9|@ohos.multimedia.audio.d.ts| +|起始版本有变化|类名:VolumeEvent
方法 or 属性:updateUi: boolean;
起始版本:8|类名:VolumeEvent
方法 or 属性:updateUi: boolean;
起始版本:9|@ohos.multimedia.audio.d.ts| +|起始版本有变化|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
起始版本:N/A|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
起始版本:N/A|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
起始版本:N/A|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:avSession
方法 or 属性:function off(type: 'sessionServiceDie', callback?: () => void): void;
起始版本:N/A|类名:avSession
方法 or 属性:function off(type: 'sessionServiceDie', callback?: () => void): void;
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
起始版本:N/A|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
起始版本:N/A|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
起始版本:N/A|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
起始版本:N/A|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
起始版本:N/A|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
起始版本:N/A|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
起始版本:N/A|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVSession
方法 or 属性:off(type: 'seek', callback?: (time: number) => void): void;
起始版本:N/A|类名:AVSession
方法 or 属性:off(type: 'seek', callback?: (time: number) => void): void;
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVSession
方法 or 属性:off(type: 'setSpeed', callback?: (speed: number) => void): void;
起始版本:N/A|类名:AVSession
方法 or 属性:off(type: 'setSpeed', callback?: (speed: number) => void): void;
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVSession
方法 or 属性:off(type: 'setLoopMode', callback?: (mode: LoopMode) => void): void;
起始版本:N/A|类名:AVSession
方法 or 属性:off(type: 'setLoopMode', callback?: (mode: LoopMode) => void): void;
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVSession
方法 or 属性:off(type: 'toggleFavorite', callback?: (assetId: string) => void): void;
起始版本:N/A|类名:AVSession
方法 or 属性:off(type: 'toggleFavorite', callback?: (assetId: string) => void): void;
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVSession
方法 or 属性:off(type: 'handleKeyEvent', callback?: (event: KeyEvent) => void): void;
起始版本:N/A|类名:AVSession
方法 or 属性:off(type: 'handleKeyEvent', callback?: (event: KeyEvent) => void): void;
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVSession
方法 or 属性:off(type: 'outputDeviceChange', callback?: (device: OutputDeviceInfo) => void): void;
起始版本:N/A|类名:AVSession
方法 or 属性:off(type: 'outputDeviceChange', callback?: (device: OutputDeviceInfo) => void): void;
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVSessionController
方法 or 属性:off(type: 'metadataChange', callback?: (data: AVMetadata) => void);
起始版本:N/A|类名:AVSessionController
方法 or 属性:off(type: 'metadataChange', callback?: (data: AVMetadata) => void);
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVSessionController
方法 or 属性:off(type: 'playbackStateChange', callback?: (state: AVPlaybackState) => void);
起始版本:N/A|类名:AVSessionController
方法 or 属性:off(type: 'playbackStateChange', callback?: (state: AVPlaybackState) => void);
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVSessionController
方法 or 属性:off(type: 'sessionDestroy', callback?: () => void);
起始版本:N/A|类名:AVSessionController
方法 or 属性:off(type: 'sessionDestroy', callback?: () => void);
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVSessionController
方法 or 属性:off(type: 'activeStateChange', callback?: (isActive: boolean) => void);
起始版本:N/A|类名:AVSessionController
方法 or 属性:off(type: 'activeStateChange', callback?: (isActive: boolean) => void);
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVSessionController
方法 or 属性:off(type: 'validCommandChange', callback?: (commands: Array\) => void);
起始版本:N/A|类名:AVSessionController
方法 or 属性:off(type: 'validCommandChange', callback?: (commands: Array\) => void);
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVSessionController
方法 or 属性:off(type: 'outputDeviceChange', callback?: (device: OutputDeviceInfo) => void): void;
起始版本:N/A|类名:AVSessionController
方法 or 属性:off(type: 'outputDeviceChange', callback?: (device: OutputDeviceInfo) => void): void;
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVFileDescriptor
起始版本:N/A|类名:AVFileDescriptor
起始版本:9|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
错误码内容: 201, 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
错误码内容: 201, 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
错误码内容: 201, 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:avSession
方法 or 属性:function off(type: 'sessionServiceDie', callback?: () => void): void;
错误码内容: 201, 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
错误码内容: 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
错误码内容: 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
错误码内容: 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
错误码内容: 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
错误码内容: 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
错误码内容: 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:AVSession
方法 or 属性:off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;
错误码内容: 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:AVSession
方法 or 属性:off(type: 'seek', callback?: (time: number) => void): void;
错误码内容: 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:AVSession
方法 or 属性:off(type: 'setSpeed', callback?: (speed: number) => void): void;
错误码内容: 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:AVSession
方法 or 属性:off(type: 'setLoopMode', callback?: (mode: LoopMode) => void): void;
错误码内容: 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:AVSession
方法 or 属性:off(type: 'toggleFavorite', callback?: (assetId: string) => void): void;
错误码内容: 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:AVSession
方法 or 属性:off(type: 'handleKeyEvent', callback?: (event: KeyEvent) => void): void;
错误码内容: 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:AVSession
方法 or 属性:off(type: 'outputDeviceChange', callback?: (device: OutputDeviceInfo) => void): void;
错误码内容: 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:AVSessionController
方法 or 属性:off(type: 'metadataChange', callback?: (data: AVMetadata) => void);
错误码内容: 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:AVSessionController
方法 or 属性:off(type: 'playbackStateChange', callback?: (state: AVPlaybackState) => void);
错误码内容: 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:AVSessionController
方法 or 属性:off(type: 'sessionDestroy', callback?: () => void);
错误码内容: 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:AVSessionController
方法 or 属性:off(type: 'activeStateChange', callback?: (isActive: boolean) => void);
错误码内容: 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:AVSessionController
方法 or 属性:off(type: 'validCommandChange', callback?: (commands: Array\) => void);
错误码内容: 401|@ohos.multimedia.avsession.d.ts| +|新增(错误码)|NA|类名:AVSessionController
方法 or 属性:off(type: 'outputDeviceChange', callback?: (device: OutputDeviceInfo) => void): void;
错误码内容: 401|@ohos.multimedia.avsession.d.ts| +|新增(权限)|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
权限:N/A|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
权限:ohos.permission.MANAGE_MEDIA_RESOURCES|@ohos.multimedia.avsession.d.ts| +|新增(权限)|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
权限:N/A|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
权限:ohos.permission.MANAGE_MEDIA_RESOURCES|@ohos.multimedia.avsession.d.ts| +|新增(权限)|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
权限:N/A|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
权限:ohos.permission.MANAGE_MEDIA_RESOURCES|@ohos.multimedia.avsession.d.ts| +|SysCap有变化|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
SysCap:SystemCapability.Multimedia.AVSession.Core|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
SysCap:SystemCapability.Multimedia.AVSession.Manager|@ohos.multimedia.avsession.d.ts| +|SysCap有变化|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
SysCap:SystemCapability.Multimedia.AVSession.Core|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
SysCap:SystemCapability.Multimedia.AVSession.Manager|@ohos.multimedia.avsession.d.ts| +|SysCap有变化|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
SysCap:SystemCapability.Multimedia.AVSession.Core|类名:avSession
方法 or 属性:function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;
SysCap:SystemCapability.Multimedia.AVSession.Manager|@ohos.multimedia.avsession.d.ts| +|SysCap有变化|类名:AVFileDescriptor
SysCap:N/A|类名:AVFileDescriptor
SysCap:SystemCapability.Multimedia.Media.Core|@ohos.multimedia.media.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-notification.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-notification.md new file mode 100644 index 0000000000000000000000000000000000000000..2113ba0e3f8da744fe948766e98cc4683f6e3599 --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-notification.md @@ -0,0 +1,26 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:notificationManager
方法or属性:function isSupportDoNotDisturbMode(callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|类名:notificationManager
方法or属性:function isSupportDoNotDisturbMode(): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: NotificationCommonDef
类名: BundleOption|NotificationCommonDef.d.ts| +|新增|NA|模块名: NotificationCommonDef
类名: BundleOption
方法 or 属性: bundle: string;|NotificationCommonDef.d.ts| +|新增|NA|模块名: NotificationCommonDef
类名: BundleOption
方法 or 属性: uid?: number;|NotificationCommonDef.d.ts| +|删除|模块名: ohos.commonEvent
类名: Support
方法 or 属性:COMMON_EVENT_PACKAGE_CACHE_CLEARED = "usual.event.PACKAGE_CACHE_CLEARED"|NA|@ohos.commonEvent.d.ts| +|删除|模块名: ohos.commonEvent
类名: Support
方法 or 属性:COMMON_EVENT_USB_STATE = "usual.event.hardware.usb.action.USB_STATE"|NA|@ohos.commonEvent.d.ts| +|删除|模块名: ohos.commonEvent
类名: Support
方法 or 属性:COMMON_EVENT_USB_PORT_CHANGED = "usual.event.hardware.usb.action.USB_PORT_CHANGED"|NA|@ohos.commonEvent.d.ts| +|删除|模块名: ohos.commonEvent
类名: Support
方法 or 属性:COMMON_EVENT_VOLUME_REMOVED = "usual.event.data.VOLUME_REMOVED"|NA|@ohos.commonEvent.d.ts| +|删除|模块名: ohos.commonEvent
类名: Support
方法 or 属性:COMMON_EVENT_VOLUME_UNMOUNTED = "usual.event.data.VOLUME_UNMOUNTED"|NA|@ohos.commonEvent.d.ts| +|删除|模块名: ohos.commonEvent
类名: Support
方法 or 属性:COMMON_EVENT_VOLUME_MOUNTED = "usual.event.data.VOLUME_MOUNTED"|NA|@ohos.commonEvent.d.ts| +|删除|模块名: ohos.commonEvent
类名: Support
方法 or 属性:COMMON_EVENT_VOLUME_BAD_REMOVAL = "usual.event.data.VOLUME_BAD_REMOVAL"|NA|@ohos.commonEvent.d.ts| +|删除|模块名: ohos.commonEvent
类名: Support
方法 or 属性:COMMON_EVENT_VOLUME_EJECT = "usual.event.data.VOLUME_EJECT"|NA|@ohos.commonEvent.d.ts| +|删除|模块名: ohos.commonEvent
类名: Support
方法 or 属性:COMMON_EVENT_SLOT_CHANGE = "usual.event.SLOT_CHANGE"|NA|@ohos.commonEvent.d.ts| +|删除|模块名: ohos.commonEvent
类名: Support
方法 or 属性:COMMON_EVENT_SPN_INFO_CHANGED = "usual.event.SPN_INFO_CHANGED"|NA|@ohos.commonEvent.d.ts| +|删除|模块名: ohos.commonEvent
类名: Support
方法 or 属性:COMMON_EVENT_QUICK_FIX_APPLY_RESULT = "usual.event.QUICK_FIX_APPLY_RESULT"|NA|@ohos.commonEvent.d.ts| +|删除|模块名:ohos.notificationManager
类名:notificationManager
方法 or 属性:function supportDoNotDisturbMode(callback: AsyncCallback\): void;|NA|@ohos.notificationManager.d.ts| +|删除|模块名:ohos.notificationManager
类名:notificationManager
方法 or 属性:function supportDoNotDisturbMode(): Promise\;|NA|@ohos.notificationManager.d.ts| +|删除|模块名: ohos.notificationManager
类名: BundleOption|NA|@ohos.notificationManager.d.ts| +|删除|模块名: ohos.notificationManager
类名: BundleOption
方法 or 属性:bundle: string;|NA|@ohos.notificationManager.d.ts| +|删除|模块名: ohos.notificationManager
类名: BundleOption
方法 or 属性:uid?: number;|NA|@ohos.notificationManager.d.ts| +|删除|模块名: ohos.notificationSubscribe
类名: BundleOption|NA|@ohos.notificationSubscribe.d.ts| +|删除|模块名: ohos.notificationSubscribe
类名: BundleOption
方法 or 属性:bundle: string;|NA|@ohos.notificationSubscribe.d.ts| +|删除|模块名: ohos.notificationSubscribe
类名: BundleOption
方法 or 属性:uid?: number;|NA|@ohos.notificationSubscribe.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-resource-scheduler.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-resource-scheduler.md new file mode 100644 index 0000000000000000000000000000000000000000..c9d767e5a42781c21e19c913e884bb4078cca129 --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-resource-scheduler.md @@ -0,0 +1,14 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:WorkInfo
方法or属性:parameters?: {[key: string]: number \| string \| boolean};|@ohos.resourceschedule.workScheduler.d.ts| +|访问级别有变化|类名:BundleEvents
访问级别:公开API|类名:BundleEvents
访问级别:系统API|@ohos.resourceschedule.usageStatistics.d.ts| +|访问级别有变化|类名:usageStatistics
方法 or 属性:function isIdleState(bundleName: string, callback: AsyncCallback\): void;
访问级别:公开API|类名:usageStatistics
方法 or 属性:function isIdleState(bundleName: string, callback: AsyncCallback\): void;
访问级别:系统API|@ohos.resourceschedule.usageStatistics.d.ts| +|访问级别有变化|类名:usageStatistics
方法 or 属性:function isIdleState(bundleName: string): Promise\;
访问级别:公开API|类名:usageStatistics
方法 or 属性:function isIdleState(bundleName: string): Promise\;
访问级别:系统API|@ohos.resourceschedule.usageStatistics.d.ts| +|访问级别有变化|类名:usageStatistics
方法 or 属性:function queryAppGroup(callback: AsyncCallback\): void;
访问级别:公开API|类名:usageStatistics
方法 or 属性:function queryAppGroup(callback: AsyncCallback\): void;
访问级别:系统API|@ohos.resourceschedule.usageStatistics.d.ts| +|访问级别有变化|类名:usageStatistics
方法 or 属性:function queryAppGroup(): Promise\;
访问级别:公开API|类名:usageStatistics
方法 or 属性:function queryAppGroup(): Promise\;
访问级别:系统API|@ohos.resourceschedule.usageStatistics.d.ts| +|访问级别有变化|类名:usageStatistics
方法 or 属性:function queryCurrentBundleEvents(begin: number, end: number, callback: AsyncCallback\>): void;
访问级别:公开API|类名:usageStatistics
方法 or 属性:function queryCurrentBundleEvents(begin: number, end: number, callback: AsyncCallback\>): void;
访问级别:系统API|@ohos.resourceschedule.usageStatistics.d.ts| +|访问级别有变化|类名:usageStatistics
方法 or 属性:function queryCurrentBundleEvents(begin: number, end: number): Promise\>;
访问级别:公开API|类名:usageStatistics
方法 or 属性:function queryCurrentBundleEvents(begin: number, end: number): Promise\>;
访问级别:系统API|@ohos.resourceschedule.usageStatistics.d.ts| +|新增(权限)|类名:usageStatistics
方法 or 属性:function isIdleState(bundleName: string, callback: AsyncCallback\): void;
权限:N/A|类名:usageStatistics
方法 or 属性:function isIdleState(bundleName: string, callback: AsyncCallback\): void;
权限:ohos.permission.BUNDLE_ACTIVE_INFO|@ohos.resourceschedule.usageStatistics.d.ts| +|新增(权限)|类名:usageStatistics
方法 or 属性:function isIdleState(bundleName: string): Promise\;
权限:N/A|类名:usageStatistics
方法 or 属性:function isIdleState(bundleName: string): Promise\;
权限:ohos.permission.BUNDLE_ACTIVE_INFO|@ohos.resourceschedule.usageStatistics.d.ts| +|SysCap有变化|类名:backgroundTaskManager
SysCap:SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask|类名:backgroundTaskManager
SysCap:N/A|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|SysCap有变化|类名:workScheduler
SysCap:SystemCapability.ResourceSchedule.WorkScheduler|类名:workScheduler
SysCap:N/A|@ohos.resourceschedule.workScheduler.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-security.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-security.md new file mode 100644 index 0000000000000000000000000000000000000000..f81eb4f72870bb481aa551f003c7829e8bc881a3 --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-security.md @@ -0,0 +1,25 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:privacyManager
方法or属性:function getPermissionUsedRecord(request: PermissionUsedRequest): Promise\;|@ohos.privacyManager.d.ts| +|新增|NA|类名:privacyManager
方法or属性:function getPermissionUsedRecord(request: PermissionUsedRequest, callback: AsyncCallback\): void;|@ohos.privacyManager.d.ts| +|新增|NA|类名:ParamsSpec
方法or属性:algName : string;|@ohos.security.cryptoFramework.d.ts| +|删除|模块名:ohos.privacyManager
类名:privacyManager
方法 or 属性:function getPermissionUsedRecords(request: PermissionUsedRequest): Promise\;|NA|@ohos.privacyManager.d.ts| +|删除|模块名:ohos.privacyManager
类名:privacyManager
方法 or 属性:function getPermissionUsedRecords(request: PermissionUsedRequest, callback: AsyncCallback\): void;|NA|@ohos.privacyManager.d.ts| +|删除|模块名:ohos.security.cryptoFramework
类名:ParamsSpec
方法 or 属性:algoName : string;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.huks
类名: HuksErrorCode
方法 or 属性:HUKS_ERROR_GET_USERIAM_SECINFO_FAILED = -40|NA|@ohos.security.huks.d.ts| +|删除|模块名: ohos.security.huks
类名: HuksErrorCode
方法 or 属性:HUKS_ERROR_GET_USERIAM_AUTHINFO_FAILED = -41|NA|@ohos.security.huks.d.ts| +|删除|模块名: ohos.security.huks
类名: HuksErrorCode
方法 or 属性:HUKS_ERROR_USER_AUTH_TYPE_NOT_SUPPORT = -42|NA|@ohos.security.huks.d.ts| +|删除|模块名: ohos.security.huks
类名: HuksErrorCode
方法 or 属性:HUKS_ERROR_KEY_AUTH_FAILED = -43|NA|@ohos.security.huks.d.ts| +|删除|模块名: ohos.security.huks
类名: HuksErrorCode
方法 or 属性:HUKS_ERROR_DEVICE_NO_CREDENTIAL = -44|NA|@ohos.security.huks.d.ts| +|删除|模块名: ohos.security.huks
类名: HuksErrorCode
方法 or 属性:HUKS_ERROR_INVALID_WRAPPED_FORMAT = -126|NA|@ohos.security.huks.d.ts| +|删除|模块名: ohos.security.huks
类名: HuksErrorCode
方法 or 属性:HUKS_ERROR_INVALID_USAGE_OF_KEY = -127|NA|@ohos.security.huks.d.ts| +|函数有变化|类名:AtManager
方法 or 属性:requestPermissionsFromUser(context: Context, permissions: Array\, requestCallback: AsyncCallback\) : void;
|类名:AtManager
方法 or 属性:requestPermissionsFromUser(context: Context, permissionList: Array\, requestCallback: AsyncCallback\) : void;
|@ohos.abilityAccessCtrl.d.ts| +|函数有变化|类名:AtManager
方法 or 属性:requestPermissionsFromUser(context: Context, permissions: Array\) : Promise\;
|类名:AtManager
方法 or 属性:requestPermissionsFromUser(context: Context, permissionList: Array\) : Promise\;
|@ohos.abilityAccessCtrl.d.ts| +|函数有变化|类名:AtManager
方法 or 属性:grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number): Promise\;
|类名:AtManager
方法 or 属性:grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlags: number): Promise\;
|@ohos.abilityAccessCtrl.d.ts| +|函数有变化|类名:AtManager
方法 or 属性:grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number, callback: AsyncCallback\): void;
|类名:AtManager
方法 or 属性:grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlags: number, callback: AsyncCallback\): void;
|@ohos.abilityAccessCtrl.d.ts| +|函数有变化|类名:AtManager
方法 or 属性:revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number): Promise\;
|类名:AtManager
方法 or 属性:revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlags: number): Promise\;
|@ohos.abilityAccessCtrl.d.ts| +|函数有变化|类名:AtManager
方法 or 属性:revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number, callback: AsyncCallback\): void;
|类名:AtManager
方法 or 属性:revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlags: number, callback: AsyncCallback\): void;
|@ohos.abilityAccessCtrl.d.ts| +|函数有变化|类名:AtManager
方法 or 属性:on(type: 'permissionStateChange', tokenIDList: Array\, permissionNameList: Array\, callback: Callback\): void;
|类名:AtManager
方法 or 属性:on(type: 'permissionStateChange', tokenIDList: Array\, permissionList: Array\, callback: Callback\): void;
|@ohos.abilityAccessCtrl.d.ts| +|函数有变化|类名:AtManager
方法 or 属性:off(type: 'permissionStateChange', tokenIDList: Array\, permissionNameList: Array\, callback?: Callback\): void;
|类名:AtManager
方法 or 属性:off(type: 'permissionStateChange', tokenIDList: Array\, permissionList: Array\, callback?: Callback\): void;
|@ohos.abilityAccessCtrl.d.ts| +|函数有变化|类名:privacyManager
方法 or 属性:function on(type: 'activeStateChange', permissionNameList: Array\, callback: Callback\): void;
|类名:privacyManager
方法 or 属性:function on(type: 'activeStateChange', permissionList: Array\, callback: Callback\): void;
|@ohos.privacyManager.d.ts| +|函数有变化|类名:privacyManager
方法 or 属性:function off(type: 'activeStateChange', permissionNameList: Array\, callback?: Callback\): void;
|类名:privacyManager
方法 or 属性:function off(type: 'activeStateChange', permissionList: Array\, callback?: Callback\): void;
|@ohos.privacyManager.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-sensor.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-sensor.md new file mode 100644 index 0000000000000000000000000000000000000000..ece2068c3f84dcdb587aca229ef6b392202e3002 --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-sensor.md @@ -0,0 +1,4 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:Sensor
方法or属性:vendorName:string;|@ohos.sensor.d.ts| +|删除|模块名:ohos.sensor
类名:Sensor
方法 or 属性:venderName:string;|NA|@ohos.sensor.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-start-up.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-start-up.md new file mode 100644 index 0000000000000000000000000000000000000000..ee4a88c29cfef9a0806cfd6b8f842a9519877bdc --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-start-up.md @@ -0,0 +1,20 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.systemParameterEnhance
类名: systemParameterEnhance|@ohos.systemParameterEnhance.d.ts| +|新增|NA|模块名: ohos.systemParameterEnhance
类名: systemParameterEnhance
方法 or 属性: function getSync(key: string, def?: string): string;|@ohos.systemParameterEnhance.d.ts| +|新增|NA|模块名: ohos.systemParameterEnhance
类名: systemParameterEnhance
方法 or 属性: function get(key: string, callback: AsyncCallback\): void;|@ohos.systemParameterEnhance.d.ts| +|新增|NA|模块名: ohos.systemParameterEnhance
类名: systemParameterEnhance
方法 or 属性: function get(key: string, def: string, callback: AsyncCallback\): void;|@ohos.systemParameterEnhance.d.ts| +|新增|NA|模块名: ohos.systemParameterEnhance
类名: systemParameterEnhance
方法 or 属性: function get(key: string, def?: string): Promise\;|@ohos.systemParameterEnhance.d.ts| +|新增|NA|模块名: ohos.systemParameterEnhance
类名: systemParameterEnhance
方法 or 属性: function setSync(key: string, value: string): void;|@ohos.systemParameterEnhance.d.ts| +|新增|NA|模块名: ohos.systemParameterEnhance
类名: systemParameterEnhance
方法 or 属性: function set(key: string, value: string, callback: AsyncCallback\): void;|@ohos.systemParameterEnhance.d.ts| +|新增|NA|模块名: ohos.systemParameterEnhance
类名: systemParameterEnhance
方法 or 属性: function set(key: string, value: string): Promise\;|@ohos.systemParameterEnhance.d.ts| +|删除|模块名: ohos.systemParameterV9
类名: systemParameterV9|NA|@ohos.systemParameterV9.d.ts| +|删除|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法 or 属性:function getSync(key: string, def?: string): string;|NA|@ohos.systemParameterV9.d.ts| +|删除|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法 or 属性:function get(key: string, callback: AsyncCallback\): void;|NA|@ohos.systemParameterV9.d.ts| +|删除|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法 or 属性:function get(key: string, def: string, callback: AsyncCallback\): void;|NA|@ohos.systemParameterV9.d.ts| +|删除|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法 or 属性:function get(key: string, def?: string): Promise\;|NA|@ohos.systemParameterV9.d.ts| +|删除|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法 or 属性:function setSync(key: string, value: string): void;|NA|@ohos.systemParameterV9.d.ts| +|删除|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法 or 属性:function set(key: string, value: string, callback: AsyncCallback\): void;|NA|@ohos.systemParameterV9.d.ts| +|删除|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法 or 属性:function set(key: string, value: string): Promise\;|NA|@ohos.systemParameterV9.d.ts| +|废弃版本有变化|类名:deviceInfo
方法 or 属性:const hardwareProfile: string;
废弃版本:N/A|类名:deviceInfo
方法 or 属性:const hardwareProfile: string;
废弃版本:9
代替接口:N/A|@ohos.deviceInfo.d.ts| +|废弃版本有变化|类名:Device
方法 or 属性:static getInfo(options?: GetDeviceOptions): void;
废弃版本:N/A|类名:Device
方法 or 属性:static getInfo(options?: GetDeviceOptions): void;
废弃版本:6
代替接口:N/A|@system.device.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-telephony.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-telephony.md new file mode 100644 index 0000000000000000000000000000000000000000..aea5aec7bb3feb94bda24e4757261aeb793ffdf8 --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-telephony.md @@ -0,0 +1,315 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:call
方法or属性:function dialCall(phoneNumber: string, callback: AsyncCallback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function dialCall(phoneNumber: string, options: DialCallOptions, callback: AsyncCallback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function dialCall(phoneNumber: string, options?: DialCallOptions): Promise\;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function answerCall(callId: number, callback: AsyncCallback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function answerCall(callId?: number): Promise\;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function answerCall(callback: AsyncCallback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function hangUpCall(callId: number, callback: AsyncCallback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function hangUpCall(callId?: number): Promise\;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function hangUpCall(callback: AsyncCallback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function rejectCall(callId: number, callback: AsyncCallback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function rejectCall(callId: number, options: RejectMessageOptions, callback: AsyncCallback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function rejectCall(callId?: number, options?: RejectMessageOptions): Promise\;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function rejectCall(callback: AsyncCallback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function rejectCall(options: RejectMessageOptions, callback: AsyncCallback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DialCallOptions|@ohos.telephony.call.d.ts| +|新增|NA|类名:DialCallOptions
方法or属性:|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DialCallOptions
方法 or 属性:accountId?: number;|@ohos.telephony.call.d.ts| +|新增|NA|类名:DialCallOptions
方法or属性:accountId?: number;|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DialCallOptions
方法 or 属性:videoState?: VideoStateType;|@ohos.telephony.call.d.ts| +|新增|NA|类名:DialCallOptions
方法or属性:videoState?: VideoStateType;|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DialCallOptions
方法 or 属性:dialScene?: DialScene;|@ohos.telephony.call.d.ts| +|新增|NA|类名:DialCallOptions
方法or属性:dialScene?: DialScene;|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DialCallOptions
方法 or 属性:dialType?: DialType;|@ohos.telephony.call.d.ts| +|新增|NA|类名:DialCallOptions
方法or属性:dialType?: DialType;|@ohos.telephony.call.d.ts| +|新增|NA|类名:radio
方法or属性:function isNRSupported(): boolean;|@ohos.telephony.radio.d.ts| +|新增|NA|类名:radio
方法or属性:function isNRSupported(slotId: number): boolean;|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: SignalInformation
方法 or 属性:dBm: number;|@ohos.telephony.radio.d.ts| +|新增|NA|类名:SignalInformation
方法or属性:dBm: number;|@ohos.telephony.radio.d.ts| +|新增|NA|类名:OperatorConfigKey
方法or属性:KEY_IMS_CALL_DISCONNECT_REASON_INFO_MAPPING_STRING_ARRAY = "ims_call_disconnect_reason_info_mapping_string_array"|@ohos.telephony.sim.d.ts| +|删除|模块名:ohos.telephony.call
类名:call
方法 or 属性:function answer(callId: number, callback: AsyncCallback\): void;|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:call
方法 or 属性:function answer(callId?: number): Promise\;|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:call
方法 or 属性:function answer(callback: AsyncCallback\): void;|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:call
方法 or 属性:function hangup(callId: number, callback: AsyncCallback\): void;|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:call
方法 or 属性:function hangup(callId?: number): Promise\;|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:call
方法 or 属性:function hangup(callback: AsyncCallback\): void;|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:call
方法 or 属性:function reject(callId: number, callback: AsyncCallback\): void;|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:call
方法 or 属性:function reject(callId: number, options: RejectMessageOptions, callback: AsyncCallback\): void;|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:call
方法 or 属性:function reject(callId?: number, options?: RejectMessageOptions): Promise\;|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:call
方法 or 属性:function reject(callback: AsyncCallback\): void;|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:call
方法 or 属性:function reject(options: RejectMessageOptions, callback: AsyncCallback\): void;|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.sim
类名:OperatorConfigKey
方法 or 属性:KEY_IMS_CALL_DISCONNECT_REASONINFO_MAPPING_STRING_ARRAY = "ims_call_disconnect_reasoninfo_mapping_string_array"|NA|@ohos.telephony.sim.d.ts| +|废弃版本有变化|类名:call
方法 or 属性:function dial(phoneNumber: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:call
方法 or 属性:function dial(phoneNumber: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:telephony.call|@ohos.telephony.call.d.ts| +|废弃版本有变化|类名:call
方法 or 属性:function dial(phoneNumber: string, options: DialOptions, callback: AsyncCallback\): void;
废弃版本:N/A|类名:call
方法 or 属性:function dial(phoneNumber: string, options: DialOptions, callback: AsyncCallback\): void;
废弃版本:9
代替接口:telephony.call|@ohos.telephony.call.d.ts| +|废弃版本有变化|类名:call
方法 or 属性:function dial(phoneNumber: string, options?: DialOptions): Promise\;
废弃版本:N/A|类名:call
方法 or 属性:function dial(phoneNumber: string, options?: DialOptions): Promise\;
废弃版本:9
代替接口:telephony.call|@ohos.telephony.call.d.ts| +|废弃版本有变化|类名:radio
方法 or 属性:function isNrSupported(): boolean;
废弃版本:N/A|类名:radio
方法 or 属性:function isNrSupported(): boolean;
废弃版本:9
代替接口:telephony.radio|@ohos.telephony.radio.d.ts| +|废弃版本有变化|类名:radio
方法 or 属性:function isNrSupported(slotId: number): boolean;
废弃版本:N/A|类名:radio
方法 or 属性:function isNrSupported(slotId: number): boolean;
废弃版本:9
代替接口:telephony.radio|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function muteRinger(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function muteRinger(): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isEmergencyPhoneNumber(phoneNumber: string, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isEmergencyPhoneNumber(phoneNumber: string, options: EmergencyNumberOptions, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isEmergencyPhoneNumber(phoneNumber: string, options?: EmergencyNumberOptions): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function formatPhoneNumber(phoneNumber: string, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function formatPhoneNumber(phoneNumber: string, options: NumberFormatOptions, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function formatPhoneNumber(phoneNumber: string, options?: NumberFormatOptions): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function formatPhoneNumberToE164(phoneNumber: string, countryCode: string, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function formatPhoneNumberToE164(phoneNumber: string, countryCode: string): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function holdCall(callId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function holdCall(callId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function unHoldCall(callId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function unHoldCall(callId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function switchCall(callId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function switchCall(callId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function combineConference(callId: number, callback: AsyncCallback\): void;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function combineConference(callId: number): Promise\;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getMainCallId(callId: number, callback: AsyncCallback\): void;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getMainCallId(callId: number): Promise\;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getSubCallIdList(callId: number, callback: AsyncCallback\>): void;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getSubCallIdList(callId: number): Promise\>;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getCallIdListForConference(callId: number, callback: AsyncCallback\>): void;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getCallIdListForConference(callId: number): Promise\>;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getCallWaitingStatus(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getCallWaitingStatus(slotId: number): Promise\;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function setCallWaiting(slotId: number, activate: boolean, callback: AsyncCallback\): void;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function setCallWaiting(slotId: number, activate: boolean): Promise\;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function startDTMF(callId: number, character: string, callback: AsyncCallback\): void;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function startDTMF(callId: number, character: string): Promise\;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function stopDTMF(callId: number, callback: AsyncCallback\): void;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function stopDTMF(callId: number): Promise\;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isInEmergencyCall(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isInEmergencyCall(): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function on(type: 'callDetailsChange', callback: Callback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function off(type: 'callDetailsChange', callback?: Callback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function on(type: 'callEventChange', callback: Callback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function off(type: 'callEventChange', callback?: Callback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function on(type: 'callDisconnectedCause', callback: Callback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function off(type: 'callDisconnectedCause', callback?: Callback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isNewCallAllowed(callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isNewCallAllowed(): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function separateConference(callId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function separateConference(callId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getCallRestrictionStatus(slotId: number, type: CallRestrictionType, callback: AsyncCallback\): void;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getCallRestrictionStatus(slotId: number, type: CallRestrictionType): Promise\;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function setCallRestriction(slotId: number, info: CallRestrictionInfo, callback: AsyncCallback\): void;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function setCallRestriction(slotId: number, info: CallRestrictionInfo): Promise\;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getCallTransferInfo(slotId: number, type: CallTransferType, callback: AsyncCallback\): void;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getCallTransferInfo(slotId: number, type: CallTransferType): Promise\;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function setCallTransfer(slotId: number, info: CallTransferInfo, callback: AsyncCallback\): void;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function setCallTransfer(slotId: number, info: CallTransferInfo): Promise\;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isRinging(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isRinging(): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function setMuted(callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function setMuted(): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function cancelMuted(callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function cancelMuted(): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function setAudioDevice(device: AudioDevice, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function setAudioDevice(device: AudioDevice, options: AudioDeviceOptions, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function setAudioDevice(device: AudioDevice, options?: AudioDeviceOptions): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function joinConference(mainCallId: number, callNumberList: Array\, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function joinConference(mainCallId: number, callNumberList: Array\): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function updateImsCallMode(callId: number, mode: ImsCallMode, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function updateImsCallMode(callId: number, mode: ImsCallMode): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function enableImsSwitch(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function enableImsSwitch(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function disableImsSwitch(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function disableImsSwitch(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isImsSwitchEnabled(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isImsSwitchEnabled(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function setDefaultCellularDataSlotId(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301001|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function setDefaultCellularDataSlotId(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301001|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function isCellularDataEnabled(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function isCellularDataEnabled(): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function enableCellularData(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function enableCellularData(): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function disableCellularData(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function disableCellularData(): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function isCellularDataRoamingEnabled(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function isCellularDataRoamingEnabled(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function enableCellularDataRoaming(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function enableCellularDataRoaming(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function disableCellularDataRoaming(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function disableCellularDataRoaming(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'networkStateChange', callback: Callback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'networkStateChange', options: { slotId: number }, callback: Callback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function off(type: 'networkStateChange', callback?: Callback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'signalInfoChange', callback: Callback\>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'signalInfoChange', options: { slotId: number },
callback: Callback\>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function off(type: 'signalInfoChange', callback?: Callback\>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'cellInfoChange', callback: Callback\>): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'cellInfoChange', options: { slotId: number },
callback: Callback\>): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function off(type: 'cellInfoChange', callback?: Callback\>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'cellularDataConnectionStateChange',
callback: Callback\<{ state: DataConnectState, network: RatType }>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'cellularDataConnectionStateChange', options: { slotId: number },
callback: Callback\<{ state: DataConnectState, network: RatType }>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function off(type: 'cellularDataConnectionStateChange',
callback?: Callback\<{ state: DataConnectState, network: RatType }>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'cellularDataFlowChange', callback: Callback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'cellularDataFlowChange', options: { slotId: number },
callback: Callback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function off(type: 'cellularDataFlowChange', callback?: Callback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'callStateChange', callback: Callback\<{ state: CallState, number: string }>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'callStateChange', options: { slotId: number },
callback: Callback\<{ state: CallState, number: string }>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function off(type: 'callStateChange', callback?: Callback\<{ state: CallState, number: string }>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'simStateChange', callback: Callback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'simStateChange', options: { slotId: number }, callback: Callback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function off(type: 'simStateChange', callback?: Callback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getRadioTech(slotId: number,
callback: AsyncCallback\<{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getRadioTech(slotId: number): Promise\<{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getNetworkState(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getNetworkState(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getNetworkState(slotId?: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function sendUpdateCellLocationRequest(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function sendUpdateCellLocationRequest(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function sendUpdateCellLocationRequest(slotId?: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getCellInformation(callback: AsyncCallback\>): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getCellInformation(slotId: number, callback: AsyncCallback\>): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getCellInformation(slotId?: number): Promise\>;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getNetworkSelectionMode(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getNetworkSelectionMode(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function setNetworkSelectionMode(options: NetworkSelectionModeOptions, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function setNetworkSelectionMode(options: NetworkSelectionModeOptions): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getNetworkSearchInformation(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getNetworkSearchInformation(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getISOCountryCodeForNetwork(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getISOCountryCodeForNetwork(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getNrOptionMode(callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getNrOptionMode(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getNrOptionMode(slotId?: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getIMEI(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getIMEI(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getIMEI(slotId?: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getMEID(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getMEID(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getMEID(slotId?: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getUniqueDeviceId(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getUniqueDeviceId(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getUniqueDeviceId(slotId?: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getPrimarySlotId(callback: AsyncCallback\): void;
错误码内容: 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getPrimarySlotId(): Promise\;
错误码内容: 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function setPrimarySlotId(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function setPrimarySlotId(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getSignalInformation(slotId: number, callback: AsyncCallback\>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getSignalInformation(slotId: number): Promise\>;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function isRadioOn(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function isRadioOn(slotId: number, callback: AsyncCallback\): void
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function isRadioOn(slotId?: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function turnOnRadio(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function turnOnRadio(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function turnOnRadio(slotId?: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function turnOffRadio(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function turnOffRadio(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function turnOffRadio(slotId?: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getOperatorName(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getOperatorName(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function setPreferredNetwork(slotId: number, networkMode: PreferredNetworkMode, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function setPreferredNetwork(slotId: number, networkMode: PreferredNetworkMode): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getPreferredNetwork(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getPreferredNetwork(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function hasOperatorPrivileges(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function hasOperatorPrivileges(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getISOCountryCodeForSim(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getISOCountryCodeForSim(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimOperatorNumeric(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimOperatorNumeric(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimSpn(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimSpn(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimState(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimState(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getCardType(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getCardType(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimIccId(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimIccId(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getVoiceMailIdentifier(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getVoiceMailIdentifier(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getVoiceMailNumber(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getVoiceMailNumber(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function setVoiceMailInfo(slotId: number, mailName: string, mailNumber: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function setVoiceMailInfo(slotId: number, mailName: string, mailNumber: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimTelephoneNumber(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimTelephoneNumber(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimGid1(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimGid1(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getIMSI(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getIMSI(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function hasSimCard(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function hasSimCard(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimAccountInfo(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimAccountInfo(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getActiveSimAccountInfoList(callback: AsyncCallback\>): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getActiveSimAccountInfoList(): Promise\>;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function setDefaultVoiceSlotId(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301001|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function setDefaultVoiceSlotId(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301001|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function activateSim(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function activateSim(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function deactivateSim(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function deactivateSim(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function setShowName(slotId: number, name: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function setShowName(slotId: number, name: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getShowName(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getShowName(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function setShowNumber(slotId: number, number: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function setShowNumber(slotId: number, number: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getShowNumber(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getShowNumber(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getOperatorConfigs(slotId: number, callback: AsyncCallback\>): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getOperatorConfigs(slotId: number): Promise\>;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function unlockPin(slotId: number, pin: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function unlockPin(slotId: number, pin: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function unlockPuk(slotId: number, newPin: string, puk: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function unlockPuk(slotId: number, newPin: string, puk: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function alterPin(slotId: number, newPin: string, oldPin: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function alterPin(slotId: number, newPin: string, oldPin: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function setLockState(slotId: number, options: LockInfo, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function setLockState(slotId: number, options: LockInfo): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function unlockPin2(slotId: number, pin2: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function unlockPin2(slotId: number, pin2: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function unlockPuk2(slotId: number, newPin2: string, puk2: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function unlockPuk2(slotId: number, newPin2: string, puk2: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function alterPin2(slotId: number, newPin2: string, oldPin2: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function alterPin2(slotId: number, newPin2: string, oldPin2: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function queryIccDiallingNumbers(slotId: number, type: ContactType, callback: AsyncCallback\>): void
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function queryIccDiallingNumbers(slotId: number, type: ContactType): Promise\>;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function addIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function addIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function delIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function delIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function updateIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function updateIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getLockState(slotId: number, lockType: LockType, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getLockState(slotId: number, lockType: LockType): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function sendEnvelopeCmd(slotId: number, cmd: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function sendEnvelopeCmd(slotId: number, cmd: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function sendTerminalResponseCmd(slotId: number, cmd: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function sendTerminalResponseCmd(slotId: number, cmd: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function unlockSimLock(slotId: number, lockInfo: PersoLockInfo, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function unlockSimLock(slotId: number, lockInfo: PersoLockInfo): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function splitMessage(content: string, callback: AsyncCallback\>): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function splitMessage(content: string): Promise\>;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function createMessage(pdu: Array\, specification: string, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function createMessage(pdu: Array\, specification: string): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function sendMessage(options: SendMessageOptions): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function setDefaultSmsSlotId(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function setDefaultSmsSlotId(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function setSmscAddr(slotId: number, smscAddr: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function setSmscAddr(slotId: number, smscAddr: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function getSmscAddr(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function getSmscAddr(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function addSimMessage(options: SimMessageOptions, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function addSimMessage(options: SimMessageOptions): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function delSimMessage(slotId: number, msgIndex: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function delSimMessage(slotId: number, msgIndex: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function updateSimMessage(options: UpdateSimMessageOptions, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function updateSimMessage(options: UpdateSimMessageOptions): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function getAllSimMessages(slotId: number, callback: AsyncCallback\>): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function getAllSimMessages(slotId: number): Promise\>;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function setCBConfig(options: CBConfigOptions, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function setCBConfig(options: CBConfigOptions): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function isImsSmsSupported(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function isImsSmsSupported(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function getImsShortMessageFormat(callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function getImsShortMessageFormat(): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function decodeMms(mmsFilePathName: string \| Array\, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function decodeMms(mmsFilePathName: string \| Array\): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function encodeMms(mms: MmsInformation, callback: AsyncCallback\>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function encodeMms(mms: MmsInformation): Promise\>;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-unitest.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-unitest.md new file mode 100644 index 0000000000000000000000000000000000000000..a2d55913fbf4930d37e2bfb13cda8c287849611f --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-unitest.md @@ -0,0 +1,328 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.UiTest
类名: MatchPattern|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: MatchPattern
方法 or 属性: EQUALS = 0|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: MatchPattern
方法 or 属性: CONTAINS = 1|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: MatchPattern
方法 or 属性: STARTS_WITH = 2|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: MatchPattern
方法 or 属性: ENDS_WITH = 3|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: text(txt: string, pattern?: MatchPattern): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: key(key: string): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: id(id: number): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: type(tp: string): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: clickable(b?: boolean): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: scrollable(b?: boolean): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: enabled(b?: boolean): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: focused(b?: boolean): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: selected(b?: boolean): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: isBefore(by: By): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: isAfter(by: By): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: click(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: doubleClick(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: longClick(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: getId(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: getKey(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: getText(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: getType(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: isClickable(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: isScrollable(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: isEnabled(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: isFocused(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: isSelected(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: inputText(text: string): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: scrollSearch(by: By): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: static create(): UiDriver;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: delayMs(duration: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: findComponent(by: By): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: findComponents(by: By): Promise\>;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: assertComponentExist(by: By): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: pressBack(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: triggerKey(keyCode: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: click(x: number, y: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: doubleClick(x: number, y: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: longClick(x: number, y: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: swipe(startx: number, starty: number, endx: number, endy: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: screenCap(savePath: string): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: WindowMode|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: WindowMode
方法 or 属性: FULLSCREEN = 0|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: WindowMode
方法 or 属性: PRIMARY = 1|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: WindowMode
方法 or 属性: SECONDARY = 2|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: WindowMode
方法 or 属性: FLOATING = 3|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: ResizeDirection|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: ResizeDirection
方法 or 属性: LEFT = 0|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: ResizeDirection
方法 or 属性: RIGHT = 1|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: ResizeDirection
方法 or 属性: UP = 2|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: ResizeDirection
方法 or 属性: DOWN = 3|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: ResizeDirection
方法 or 属性: LEFT_UP = 4|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: ResizeDirection
方法 or 属性: LEFT_DOWN = 5|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: ResizeDirection
方法 or 属性: RIGHT_UP = 6|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: ResizeDirection
方法 or 属性: RIGHT_DOWN = 7|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: DisplayRotation|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: DisplayRotation
方法 or 属性: ROTATION_0 = 0|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: DisplayRotation
方法 or 属性: ROTATION_90 = 1|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: DisplayRotation
方法 or 属性: ROTATION_180 = 2|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: DisplayRotation
方法 or 属性: ROTATION_270 = 3|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Point|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Point
方法 or 属性: readonly x: number;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Point
方法 or 属性: readonly y: number;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Rect|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Rect
方法 or 属性: readonly left: number;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Rect
方法 or 属性: readonly top: number;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Rect
方法 or 属性: readonly right: number;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Rect
方法 or 属性: readonly bottom: number;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: WindowFilter|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: WindowFilter
方法 or 属性: bundleName?: string;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: WindowFilter
方法 or 属性: title?: string;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: WindowFilter
方法 or 属性: focused?: boolean;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: WindowFilter
方法 or 属性: actived?: boolean;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: text(txt: string, pattern?: MatchPattern): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: id(id: string): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: type(tp: string): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: clickable(b?: boolean): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: longClickable(b?: boolean): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: scrollable(b?: boolean): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: enabled(b?: boolean): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: focused(b?: boolean): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: selected(b?: boolean): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: checked(b?: boolean): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: checkable(b?: boolean): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: isBefore(on: On): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: isAfter(on: On): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: click(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: doubleClick(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: longClick(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: getId(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: getText(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: getType(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: isClickable(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: isLongClickable(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: isScrollable(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: isEnabled(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: isFocused(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: isSelected(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: isChecked(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: isCheckable(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: inputText(text: string): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: clearText(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: scrollToTop(speed?: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: scrollToBottom(speed?: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: scrollSearch(on: On): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: getBounds(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: getBoundsCenter(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: dragTo(target: Component): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: pinchOut(scale: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: pinchIn(scale: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: static create(): Driver;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: delayMs(duration: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: findComponent(on: On): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: findWindow(filter: WindowFilter): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: waitForComponent(on: On, time: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: findComponents(on: On): Promise\>;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: assertComponentExist(on: On): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: pressBack(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: triggerKey(keyCode: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: triggerCombineKeys(key0: number, key1: number, key2?: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: click(x: number, y: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: doubleClick(x: number, y: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: longClick(x: number, y: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: swipe(startx: number, starty: number, endx: number, endy: number, speed?: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: drag(startx: number, starty: number, endx: number, endy: number, speed?: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: screenCap(savePath: string): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: setDisplayRotation(rotation: DisplayRotation): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: getDisplayRotation(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: setDisplayRotationEnabled(enabled: boolean): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: getDisplaySize(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: getDisplayDensity(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: wakeUpDisplay(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: pressHome(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: waitForIdle(idleTime: number, timeout: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: fling(from: Point, to: Point, stepLen: number, speed: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: injectMultiPointerAction(pointers: PointerMatrix, speed?: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: getBundleName(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: getBounds(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: getTitle(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: getWindowMode(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: isFocused(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: isActived(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: focus(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: moveTo(x: number, y: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: resize(wide: number, height: number, direction: ResizeDirection): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: split(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: maximize(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: minimize(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: resume(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: close(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: PointerMatrix|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: PointerMatrix
方法 or 属性: static create(fingers: number, steps: number): PointerMatrix;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: PointerMatrix
方法 or 属性: setPoint(finger: number, step: number, point: Point): void;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: global
方法 or 属性: declare const BY: By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: global
方法 or 属性: declare const ON: On;|@ohos.UiTest.d.ts| +|删除|模块名: ohos.uitest
类名: MatchPattern|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: MatchPattern
方法 or 属性:EQUALS = 0|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: MatchPattern
方法 or 属性:CONTAINS = 1|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: MatchPattern
方法 or 属性:STARTS_WITH = 2|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: MatchPattern
方法 or 属性:ENDS_WITH = 3|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:text(txt: string, pattern?: MatchPattern): By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:key(key: string): By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:id(id: number): By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:type(tp: string): By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:clickable(b?: boolean): By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:scrollable(b?: boolean): By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:enabled(b?: boolean): By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:focused(b?: boolean): By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:selected(b?: boolean): By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:isBefore(by: By): By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:isAfter(by: By): By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:click(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:doubleClick(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:longClick(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:getId(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:getKey(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:getText(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:getType(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:isClickable(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:isScrollable(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:isEnabled(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:isFocused(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:isSelected(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:inputText(text: string): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:scrollSearch(by: By): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:static create(): UiDriver;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:delayMs(duration: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:findComponent(by: By): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:findComponents(by: By): Promise\>;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:assertComponentExist(by: By): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:pressBack(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:triggerKey(keyCode: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:click(x: number, y: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:doubleClick(x: number, y: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:longClick(x: number, y: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:swipe(startx: number, starty: number, endx: number, endy: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:screenCap(savePath: string): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: WindowMode|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: WindowMode
方法 or 属性:FULLSCREEN|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: WindowMode
方法 or 属性:PRIMARY|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: WindowMode
方法 or 属性:SECONDARY|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: WindowMode
方法 or 属性:FLOATING|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: ResizeDirection|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: ResizeDirection
方法 or 属性:LEFT|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: ResizeDirection
方法 or 属性:RIGHT|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: ResizeDirection
方法 or 属性:UP|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: ResizeDirection
方法 or 属性:DOWN|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: ResizeDirection
方法 or 属性:LEFT_UP|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: ResizeDirection
方法 or 属性:LEFT_DOWN|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: ResizeDirection
方法 or 属性:RIGHT_UP|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: ResizeDirection
方法 or 属性:RIGHT_DOWN|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: DisplayRotation|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: DisplayRotation
方法 or 属性:ROTATION_0|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: DisplayRotation
方法 or 属性:ROTATION_90|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: DisplayRotation
方法 or 属性:ROTATION_180|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: DisplayRotation
方法 or 属性:ROTATION_270|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Point|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Point
方法 or 属性:readonly X: number;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Point
方法 or 属性:readonly Y: number;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Rect|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Rect
方法 or 属性:readonly left: number;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Rect
方法 or 属性:readonly top: number;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Rect
方法 or 属性:readonly right: number;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Rect
方法 or 属性:readonly bottom: number;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: WindowFilter|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: WindowFilter
方法 or 属性:bundleName?: string;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: WindowFilter
方法 or 属性:title?: string;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: WindowFilter
方法 or 属性:focused?: boolean;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: WindowFilter
方法 or 属性:actived?: boolean;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: On|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: On
方法 or 属性:text(txt: string, pattern?: MatchPattern): On;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: On
方法 or 属性:id(id: string): On;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: On
方法 or 属性:type(tp: string): On;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: On
方法 or 属性:clickable(b?: boolean): On;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: On
方法 or 属性:longClickable(b?: boolean): On;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: On
方法 or 属性:scrollable(b?: boolean): On;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: On
方法 or 属性:enabled(b?: boolean): On;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: On
方法 or 属性:focused(b?: boolean): On;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: On
方法 or 属性:selected(b?: boolean): On;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: On
方法 or 属性:checked(b?: boolean): On;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: On
方法 or 属性:checkable(b?: boolean): On;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: On
方法 or 属性:isBefore(on: On): On;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: On
方法 or 属性:isAfter(on: On): On;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:click(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:doubleClick(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:longClick(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:getId(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:getText(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:getType(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:isClickable(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:isLongClickable(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:isScrollable(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:isEnabled(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:isFocused(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:isSelected(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:isChecked(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:isCheckable(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:inputText(text: string): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:clearText(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:scrollToTop(speed?: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:scrollToBottom(speed?: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:scrollSearch(on: On): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:getBounds(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:getBoundsCenter(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:dragTo(target: Component): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:pinchOut(scale: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Component
方法 or 属性:pinchIn(scale: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:static create(): Driver;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:delayMs(duration: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:findComponent(on: On): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:findWindow(filter: WindowFilter): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:waitForComponent(on: On, time: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:findComponents(on: On): Promise\>;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:assertComponentExist(on: On): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:pressBack(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:triggerKey(keyCode: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:triggerCombineKeys(key0: number, key1: number, key2?: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:click(x: number, y: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:doubleClick(x: number, y: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:longClick(x: number, y: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:swipe(startx: number, starty: number, endx: number, endy: number, speed?: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:drag(startx: number, starty: number, endx: number, endy: number, speed?: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:screenCap(savePath: string): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:setDisplayRotation(rotation: DisplayRotation): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:getDisplayRotation(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:setDisplayRotationEnabled(enabled: boolean): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:getDisplaySize(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:getDisplayDensity(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:wakeUpDisplay(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:pressHome(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:waitForIdle(idleTime: number, timeout: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:fling(from: Point, to: Point, stepLen: number, speed: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: Driver
方法 or 属性:injectMultiPointerAction(pointers: PointerMatrix, speed?: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiWindow|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiWindow
方法 or 属性:getBundleName(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiWindow
方法 or 属性:getBounds(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiWindow
方法 or 属性:getTitle(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiWindow
方法 or 属性:getWindowMode(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiWindow
方法 or 属性:isFocused(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiWindow
方法 or 属性:isActived(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiWindow
方法 or 属性:focus(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiWindow
方法 or 属性:moveTo(x: number, y: number): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiWindow
方法 or 属性:resize(wide: number, height: number, direction: ResizeDirection): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiWindow
方法 or 属性:split(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiWindow
方法 or 属性:maximize(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiWindow
方法 or 属性:minimize(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiWindow
方法 or 属性:resume(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiWindow
方法 or 属性:close(): Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: PointerMatrix|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: PointerMatrix
方法 or 属性:static create(fingers: number, steps: number): PointerMatrix;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: PointerMatrix
方法 or 属性:setPoint(finger: number, step: number, point: Point): void;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: global
方法 or 属性:declare const BY: By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: global
方法 or 属性:declare const ON: On;|NA|@ohos.uitest.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-update.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-update.md new file mode 100644 index 0000000000000000000000000000000000000000..aae4e5cc528ffac2d6ce318ff52b44551d9e81ef --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-update.md @@ -0,0 +1,53 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|起始版本有变化|类名:UpgradeTaskCallback
方法 or 属性:(eventInfo: EventInfo): void;
起始版本:N/A|类名:UpgradeTaskCallback
方法 or 属性:(eventInfo: EventInfo): void;
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:BusinessVendor
方法 or 属性:PUBLIC = "public"
起始版本:N/A|类名:BusinessVendor
方法 or 属性:PUBLIC = "public"
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:BusinessSubType
方法 or 属性:FIRMWARE = 1
起始版本:N/A|类名:BusinessSubType
方法 or 属性:FIRMWARE = 1
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:ComponentType
方法 or 属性:OTA = 1
起始版本:N/A|类名:ComponentType
方法 or 属性:OTA = 1
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:UpgradeAction
方法 or 属性:UPGRADE = "upgrade"
起始版本:N/A|类名:UpgradeAction
方法 or 属性:UPGRADE = "upgrade"
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:UpgradeAction
方法 or 属性:RECOVERY = "recovery"
起始版本:N/A|类名:UpgradeAction
方法 or 属性:RECOVERY = "recovery"
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EffectiveMode
方法 or 属性:COLD = 1
起始版本:N/A|类名:EffectiveMode
方法 or 属性:COLD = 1
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EffectiveMode
方法 or 属性:LIVE = 2
起始版本:N/A|类名:EffectiveMode
方法 or 属性:LIVE = 2
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EffectiveMode
方法 or 属性:LIVE_AND_COLD = 3
起始版本:N/A|类名:EffectiveMode
方法 or 属性:LIVE_AND_COLD = 3
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:DescriptionType
方法 or 属性:CONTENT = 0
起始版本:N/A|类名:DescriptionType
方法 or 属性:CONTENT = 0
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:DescriptionType
方法 or 属性:URI = 1
起始版本:N/A|类名:DescriptionType
方法 or 属性:URI = 1
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:DescriptionFormat
方法 or 属性:STANDARD = 0
起始版本:N/A|类名:DescriptionFormat
方法 or 属性:STANDARD = 0
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:DescriptionFormat
方法 or 属性:SIMPLIFIED = 1
起始版本:N/A|类名:DescriptionFormat
方法 or 属性:SIMPLIFIED = 1
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:NetType
方法 or 属性:CELLULAR = 1
起始版本:N/A|类名:NetType
方法 or 属性:CELLULAR = 1
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:NetType
方法 or 属性:METERED_WIFI = 2
起始版本:N/A|类名:NetType
方法 or 属性:METERED_WIFI = 2
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:NetType
方法 or 属性:NOT_METERED_WIFI = 4
起始版本:N/A|类名:NetType
方法 or 属性:NOT_METERED_WIFI = 4
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:NetType
方法 or 属性:WIFI = 6
起始版本:N/A|类名:NetType
方法 or 属性:WIFI = 6
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:NetType
方法 or 属性:CELLULAR_AND_WIFI = 7
起始版本:N/A|类名:NetType
方法 or 属性:CELLULAR_AND_WIFI = 7
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:Order
方法 or 属性:DOWNLOAD = 1
起始版本:N/A|类名:Order
方法 or 属性:DOWNLOAD = 1
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:Order
方法 or 属性:INSTALL = 2
起始版本:N/A|类名:Order
方法 or 属性:INSTALL = 2
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:Order
方法 or 属性:DOWNLOAD_AND_INSTALL = 3
起始版本:N/A|类名:Order
方法 or 属性:DOWNLOAD_AND_INSTALL = 3
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:Order
方法 or 属性:APPLY = 4
起始版本:N/A|类名:Order
方法 or 属性:APPLY = 4
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:Order
方法 or 属性:INSTALL_AND_APPLY = 6
起始版本:N/A|类名:Order
方法 or 属性:INSTALL_AND_APPLY = 6
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:UpgradeStatus
方法 or 属性:WAITING_DOWNLOAD = 20
起始版本:N/A|类名:UpgradeStatus
方法 or 属性:WAITING_DOWNLOAD = 20
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:UpgradeStatus
方法 or 属性:DOWNLOADING = 21
起始版本:N/A|类名:UpgradeStatus
方法 or 属性:DOWNLOADING = 21
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:UpgradeStatus
方法 or 属性:DOWNLOAD_PAUSED = 22
起始版本:N/A|类名:UpgradeStatus
方法 or 属性:DOWNLOAD_PAUSED = 22
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:UpgradeStatus
方法 or 属性:DOWNLOAD_FAIL = 23
起始版本:N/A|类名:UpgradeStatus
方法 or 属性:DOWNLOAD_FAIL = 23
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:UpgradeStatus
方法 or 属性:WAITING_INSTALL = 30
起始版本:N/A|类名:UpgradeStatus
方法 or 属性:WAITING_INSTALL = 30
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:UpgradeStatus
方法 or 属性:UPDATING = 31
起始版本:N/A|类名:UpgradeStatus
方法 or 属性:UPDATING = 31
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:UpgradeStatus
方法 or 属性:WAITING_APPLY = 40
起始版本:N/A|类名:UpgradeStatus
方法 or 属性:WAITING_APPLY = 40
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:UpgradeStatus
方法 or 属性:APPLYING = 41
起始版本:N/A|类名:UpgradeStatus
方法 or 属性:APPLYING = 41
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:UpgradeStatus
方法 or 属性:UPGRADE_SUCCESS = 50
起始版本:N/A|类名:UpgradeStatus
方法 or 属性:UPGRADE_SUCCESS = 50
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:UpgradeStatus
方法 or 属性:UPGRADE_FAIL = 51
起始版本:N/A|类名:UpgradeStatus
方法 or 属性:UPGRADE_FAIL = 51
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EventClassify
方法 or 属性:TASK = 0x01000000
起始版本:N/A|类名:EventClassify
方法 or 属性:TASK = 0x01000000
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EventId
方法 or 属性:EVENT_TASK_BASE = EventClassify.TASK
起始版本:N/A|类名:EventId
方法 or 属性:EVENT_TASK_BASE = EventClassify.TASK
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EventId
方法 or 属性:EVENT_TASK_RECEIVE
起始版本:N/A|类名:EventId
方法 or 属性:EVENT_TASK_RECEIVE
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EventId
方法 or 属性:EVENT_TASK_CANCEL
起始版本:N/A|类名:EventId
方法 or 属性:EVENT_TASK_CANCEL
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EventId
方法 or 属性:EVENT_DOWNLOAD_WAIT
起始版本:N/A|类名:EventId
方法 or 属性:EVENT_DOWNLOAD_WAIT
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EventId
方法 or 属性:EVENT_DOWNLOAD_START
起始版本:N/A|类名:EventId
方法 or 属性:EVENT_DOWNLOAD_START
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EventId
方法 or 属性:EVENT_DOWNLOAD_UPDATE
起始版本:N/A|类名:EventId
方法 or 属性:EVENT_DOWNLOAD_UPDATE
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EventId
方法 or 属性:EVENT_DOWNLOAD_PAUSE
起始版本:N/A|类名:EventId
方法 or 属性:EVENT_DOWNLOAD_PAUSE
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EventId
方法 or 属性:EVENT_DOWNLOAD_RESUME
起始版本:N/A|类名:EventId
方法 or 属性:EVENT_DOWNLOAD_RESUME
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EventId
方法 or 属性:EVENT_DOWNLOAD_SUCCESS
起始版本:N/A|类名:EventId
方法 or 属性:EVENT_DOWNLOAD_SUCCESS
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EventId
方法 or 属性:EVENT_DOWNLOAD_FAIL
起始版本:N/A|类名:EventId
方法 or 属性:EVENT_DOWNLOAD_FAIL
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EventId
方法 or 属性:EVENT_UPGRADE_WAIT
起始版本:N/A|类名:EventId
方法 or 属性:EVENT_UPGRADE_WAIT
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EventId
方法 or 属性:EVENT_UPGRADE_START
起始版本:N/A|类名:EventId
方法 or 属性:EVENT_UPGRADE_START
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EventId
方法 or 属性:EVENT_UPGRADE_UPDATE
起始版本:N/A|类名:EventId
方法 or 属性:EVENT_UPGRADE_UPDATE
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EventId
方法 or 属性:EVENT_APPLY_WAIT
起始版本:N/A|类名:EventId
方法 or 属性:EVENT_APPLY_WAIT
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EventId
方法 or 属性:EVENT_APPLY_START
起始版本:N/A|类名:EventId
方法 or 属性:EVENT_APPLY_START
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EventId
方法 or 属性:EVENT_UPGRADE_SUCCESS
起始版本:N/A|类名:EventId
方法 or 属性:EVENT_UPGRADE_SUCCESS
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:EventId
方法 or 属性:EVENT_UPGRADE_FAIL
起始版本:N/A|类名:EventId
方法 or 属性:EVENT_UPGRADE_FAIL
起始版本:9|@ohos.update.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-usb.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-usb.md new file mode 100644 index 0000000000000000000000000000000000000000..c33faf227957b41c2898834c7cfe4309d9a7e2a9 --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-usb.md @@ -0,0 +1,236 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.usbManager
类名: usbManager|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function getDevices(): Array\>;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function connectDevice(device: USBDevice): Readonly\;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function hasRight(deviceName: string): boolean;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function requestRight(deviceName: string): Promise\;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function removeRight(deviceName: string): boolean;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function addRight(bundleName: string, deviceName: string): boolean;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function usbFunctionsFromString(funcs: string): number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function usbFunctionsToString(funcs: FunctionType): string;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function setCurrentFunctions(funcs: FunctionType): Promise\;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function getCurrentFunctions(): FunctionType;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function getPorts(): Array\;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function getSupportedModes(portId: number): PortModeType;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function setPortRoles(portId: number, powerRole: PowerRoleType, dataRole: DataRoleType): Promise\;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function setConfiguration(pipe: USBDevicePipe, config: USBConfiguration): number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function setInterface(pipe: USBDevicePipe, iface: USBInterface): number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function getRawDescriptor(pipe: USBDevicePipe): Uint8Array;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function getFileDescriptor(pipe: USBDevicePipe): number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise\;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array,

timeout?: number): Promise\;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function closePipe(pipe: USBDevicePipe): number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBEndpoint|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBEndpoint
方法 or 属性: address: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBEndpoint
方法 or 属性: attributes: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBEndpoint
方法 or 属性: interval: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBEndpoint
方法 or 属性: maxPacketSize: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBEndpoint
方法 or 属性: direction: USBRequestDirection;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBEndpoint
方法 or 属性: number: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBEndpoint
方法 or 属性: type: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBEndpoint
方法 or 属性: interfaceId: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBInterface|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBInterface
方法 or 属性: id: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBInterface
方法 or 属性: protocol: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBInterface
方法 or 属性: clazz: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBInterface
方法 or 属性: subClass: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBInterface
方法 or 属性: alternateSetting: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBInterface
方法 or 属性: name: string;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBInterface
方法 or 属性: endpoints: Array\;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBConfiguration|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBConfiguration
方法 or 属性: id: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBConfiguration
方法 or 属性: attributes: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBConfiguration
方法 or 属性: maxPower: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBConfiguration
方法 or 属性: name: string;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBConfiguration
方法 or 属性: isRemoteWakeup: boolean;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBConfiguration
方法 or 属性: isSelfPowered: boolean;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBConfiguration
方法 or 属性: interfaces: Array\;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: busNum: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: devAddress: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: serial: string;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: name: string;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: manufacturerName: string;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: productName: string;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: version: string;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: vendorId: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: productId: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: clazz: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: subClass: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: protocol: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: configs: Array\;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevicePipe|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevicePipe
方法 or 属性: busNum: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevicePipe
方法 or 属性: devAddress: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: PowerRoleType|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: PowerRoleType
方法 or 属性: NONE = 0|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: PowerRoleType
方法 or 属性: SOURCE = 1|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: PowerRoleType
方法 or 属性: SINK = 2|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: DataRoleType|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: DataRoleType
方法 or 属性: NONE = 0|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: DataRoleType
方法 or 属性: HOST = 1|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: DataRoleType
方法 or 属性: DEVICE = 2|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: PortModeType|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: PortModeType
方法 or 属性: NONE = 0|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: PortModeType
方法 or 属性: UFP = 1|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: PortModeType
方法 or 属性: DFP = 2|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: PortModeType
方法 or 属性: DRP = 3|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: PortModeType
方法 or 属性: NUM_MODES = 4|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBPortStatus|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBPortStatus
方法 or 属性: currentMode: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBPortStatus
方法 or 属性: currentPowerRole: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBPortStatus
方法 or 属性: currentDataRole: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBPort|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBPort
方法 or 属性: id: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBPort
方法 or 属性: supportedModes: PortModeType;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBPort
方法 or 属性: status: USBPortStatus;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlParams|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlParams
方法 or 属性: request: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlParams
方法 or 属性: target: USBRequestTargetType;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlParams
方法 or 属性: reqType: USBControlRequestType;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlParams
方法 or 属性: value: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlParams
方法 or 属性: index: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlParams
方法 or 属性: data: Uint8Array;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBRequestTargetType|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBRequestTargetType
方法 or 属性: USB_REQUEST_TARGET_DEVICE = 0|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBRequestTargetType
方法 or 属性: USB_REQUEST_TARGET_INTERFACE = 1|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBRequestTargetType
方法 or 属性: USB_REQUEST_TARGET_ENDPOINT = 2|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBRequestTargetType
方法 or 属性: USB_REQUEST_TARGET_OTHER = 3|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlRequestType|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlRequestType
方法 or 属性: USB_REQUEST_TYPE_STANDARD = 0|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlRequestType
方法 or 属性: USB_REQUEST_TYPE_CLASS = 1|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlRequestType
方法 or 属性: USB_REQUEST_TYPE_VENDOR = 2|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBRequestDirection|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBRequestDirection
方法 or 属性: USB_REQUEST_DIR_TO_DEVICE = 0|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBRequestDirection
方法 or 属性: USB_REQUEST_DIR_FROM_DEVICE = 0x80|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType
方法 or 属性: NONE = 0|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType
方法 or 属性: ACM = 1|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType
方法 or 属性: ECM = 2|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType
方法 or 属性: HDC = 4|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType
方法 or 属性: MTP = 8|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType
方法 or 属性: PTP = 16|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType
方法 or 属性: RNDIS = 32|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType
方法 or 属性: MIDI = 64|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType
方法 or 属性: AUDIO_SOURCE = 128|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType
方法 or 属性: NCM = 256|@ohos.usbManager.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function getDevices(): Array\>;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function connectDevice(device: USBDevice): Readonly\;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function hasRight(deviceName: string): boolean;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function requestRight(deviceName: string): Promise\;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function removeRight(deviceName: string): boolean;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function addRight(bundleName: string, deviceName: string): boolean;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function usbFunctionsFromString(funcs: string): number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function usbFunctionsToString(funcs: FunctionType): string;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function setCurrentFunctions(funcs: FunctionType): Promise\;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function getCurrentFunctions(): FunctionType;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function getPorts(): Array\;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function getSupportedModes(portId: number): PortModeType;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function setPortRoles(portId: number, powerRole: PowerRoleType, dataRole: DataRoleType): Promise\;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function setConfiguration(pipe: USBDevicePipe, config: USBConfig): number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function setInterface(pipe: USBDevicePipe, iface: USBInterface): number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function getRawDescriptor(pipe: USBDevicePipe): Uint8Array;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function getFileDescriptor(pipe: USBDevicePipe): number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise\;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array,

timeout?: number): Promise\;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: usbV9
方法 or 属性:function closePipe(pipe: USBDevicePipe): number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBEndpoint|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBEndpoint
方法 or 属性:address: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBEndpoint
方法 or 属性:attributes: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBEndpoint
方法 or 属性:interval: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBEndpoint
方法 or 属性:maxPacketSize: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBEndpoint
方法 or 属性:direction: USBRequestDirection;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBEndpoint
方法 or 属性:number: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBEndpoint
方法 or 属性:type: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBEndpoint
方法 or 属性:interfaceId: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBInterface|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBInterface
方法 or 属性:id: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBInterface
方法 or 属性:protocol: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBInterface
方法 or 属性:clazz: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBInterface
方法 or 属性:subClass: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBInterface
方法 or 属性:alternateSetting: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBInterface
方法 or 属性:name: string;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBInterface
方法 or 属性:endpoints: Array\;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBConfig|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBConfig
方法 or 属性:id: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBConfig
方法 or 属性:attributes: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBConfig
方法 or 属性:maxPower: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBConfig
方法 or 属性:name: string;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBConfig
方法 or 属性:isRemoteWakeup: boolean;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBConfig
方法 or 属性:isSelfPowered: boolean;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBConfig
方法 or 属性:interfaces: Array\;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBDevice|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBDevice
方法 or 属性:busNum: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBDevice
方法 or 属性:devAddress: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBDevice
方法 or 属性:serial: string;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBDevice
方法 or 属性:name: string;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBDevice
方法 or 属性:manufacturerName: string;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBDevice
方法 or 属性:productName: string;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBDevice
方法 or 属性:version: string;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBDevice
方法 or 属性:vendorId: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBDevice
方法 or 属性:productId: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBDevice
方法 or 属性:clazz: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBDevice
方法 or 属性:subClass: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBDevice
方法 or 属性:protocol: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBDevice
方法 or 属性:configs: Array\;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBDevicePipe|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBDevicePipe
方法 or 属性:busNum: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBDevicePipe
方法 or 属性:devAddress: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: PowerRoleType|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: PowerRoleType
方法 or 属性:NONE = 0|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: PowerRoleType
方法 or 属性:SOURCE = 1|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: PowerRoleType
方法 or 属性:SINK = 2|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: DataRoleType|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: DataRoleType
方法 or 属性:NONE = 0|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: DataRoleType
方法 or 属性:HOST = 1|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: DataRoleType
方法 or 属性:DEVICE = 2|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: PortModeType|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: PortModeType
方法 or 属性:NONE = 0|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: PortModeType
方法 or 属性:UFP = 1|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: PortModeType
方法 or 属性:DFP = 2|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: PortModeType
方法 or 属性:DRP = 3|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: PortModeType
方法 or 属性:NUM_MODES = 4|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBPortStatus|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBPortStatus
方法 or 属性:currentMode: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBPortStatus
方法 or 属性:currentPowerRole: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBPortStatus
方法 or 属性:currentDataRole: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBPort|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBPort
方法 or 属性:id: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBPort
方法 or 属性:supportedModes: PortModeType;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBPort
方法 or 属性:status: USBPortStatus;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBControlParams|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBControlParams
方法 or 属性:request: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBControlParams
方法 or 属性:target: USBRequestTargetType;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBControlParams
方法 or 属性:reqType: USBControlRequestType;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBControlParams
方法 or 属性:value: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBControlParams
方法 or 属性:index: number;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBControlParams
方法 or 属性:data: Uint8Array;|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBRequestTargetType|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBRequestTargetType
方法 or 属性:USB_REQUEST_TARGET_DEVICE = 0|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBRequestTargetType
方法 or 属性:USB_REQUEST_TARGET_INTERFACE = 1|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBRequestTargetType
方法 or 属性:USB_REQUEST_TARGET_ENDPOINT = 2|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBRequestTargetType
方法 or 属性:USB_REQUEST_TARGET_OTHER = 3|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBControlRequestType|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBControlRequestType
方法 or 属性:USB_REQUEST_TYPE_STANDARD = 0|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBControlRequestType
方法 or 属性:USB_REQUEST_TYPE_CLASS = 1|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBControlRequestType
方法 or 属性:USB_REQUEST_TYPE_VENDOR = 2|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBRequestDirection|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBRequestDirection
方法 or 属性:USB_REQUEST_DIR_TO_DEVICE = 0|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: USBRequestDirection
方法 or 属性:USB_REQUEST_DIR_FROM_DEVICE = 0x80|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: FunctionType|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: FunctionType
方法 or 属性:NONE = 0|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: FunctionType
方法 or 属性:ACM = 1|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: FunctionType
方法 or 属性:ECM = 2|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: FunctionType
方法 or 属性:HDC = 4|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: FunctionType
方法 or 属性:MTP = 8|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: FunctionType
方法 or 属性:PTP = 16|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: FunctionType
方法 or 属性:RNDIS = 32|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: FunctionType
方法 or 属性:MIDI = 64|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: FunctionType
方法 or 属性:AUDIO_SOURCE = 128|NA|@ohos.usbV9.d.ts| +|删除|模块名: ohos.usbV9
类名: FunctionType
方法 or 属性:NCM = 256|NA|@ohos.usbV9.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-user-iam.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-user-iam.md new file mode 100644 index 0000000000000000000000000000000000000000..fa3ebd3a7fd4be8fc837d4d942b970f5c0edc201 --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-user-iam.md @@ -0,0 +1,3 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|删除|模块名:ohos.userIAM.userAuth
类名:userAuth
方法 or 属性:function getVersion(): number;|NA|@ohos.userIAM.userAuth.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-web.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-web.md new file mode 100644 index 0000000000000000000000000000000000000000..9cb9d30249e211523bfc1af3c7a2c4ddc59e8446 --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-web.md @@ -0,0 +1,46 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.web.webview
类名: WebHeader|@ohos.web.webview.d.ts| +|新增|NA|类名:WebHeader
方法or属性:|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHeader
方法 or 属性:headerKey: string;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebHeader
方法or属性:headerKey: string;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHeader
方法 or 属性:headerValue: string;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebHeader
方法or属性:headerValue: string;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHitTestType|@ohos.web.webview.d.ts| +|新增|NA|类名:WebHitTestType
方法or属性:|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHitTestType
方法 or 属性:EditText|@ohos.web.webview.d.ts| +|新增|NA|类名:WebHitTestType
方法or属性:EditText|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHitTestType
方法 or 属性:Email|@ohos.web.webview.d.ts| +|新增|NA|类名:WebHitTestType
方法or属性:Email|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHitTestType
方法 or 属性:HttpAnchor|@ohos.web.webview.d.ts| +|新增|NA|类名:WebHitTestType
方法or属性:HttpAnchor|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHitTestType
方法 or 属性:HttpAnchorImg|@ohos.web.webview.d.ts| +|新增|NA|类名:WebHitTestType
方法or属性:HttpAnchorImg|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHitTestType
方法 or 属性:Img|@ohos.web.webview.d.ts| +|新增|NA|类名:WebHitTestType
方法or属性:Img|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHitTestType
方法 or 属性:Map|@ohos.web.webview.d.ts| +|新增|NA|类名:WebHitTestType
方法or属性:Map|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHitTestType
方法 or 属性:Phone|@ohos.web.webview.d.ts| +|新增|NA|类名:WebHitTestType
方法or属性:Phone|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHitTestType
方法 or 属性:Unknown|@ohos.web.webview.d.ts| +|新增|NA|类名:WebHitTestType
方法or属性:Unknown|@ohos.web.webview.d.ts| +|新增|NA|类名:HitTestValue
方法or属性:type: WebHitTestType;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebviewController
方法or属性:static setWebDebuggingAccess(webDebuggingAccess: boolean): void;|@ohos.web.webview.d.ts| +|删除|模块名: ohos.web.webview
类名: HeaderV9|NA|@ohos.web.webview.d.ts| +|删除|模块名: ohos.web.webview
类名: HeaderV9
方法 or 属性:headerKey: string;|NA|@ohos.web.webview.d.ts| +|删除|模块名: ohos.web.webview
类名: HeaderV9
方法 or 属性:headerValue: string;|NA|@ohos.web.webview.d.ts| +|删除|模块名: ohos.web.webview
类名: HitTestTypeV9|NA|@ohos.web.webview.d.ts| +|删除|模块名: ohos.web.webview
类名: HitTestTypeV9
方法 or 属性:EditText|NA|@ohos.web.webview.d.ts| +|删除|模块名: ohos.web.webview
类名: HitTestTypeV9
方法 or 属性:Email|NA|@ohos.web.webview.d.ts| +|删除|模块名: ohos.web.webview
类名: HitTestTypeV9
方法 or 属性:HttpAnchor|NA|@ohos.web.webview.d.ts| +|删除|模块名: ohos.web.webview
类名: HitTestTypeV9
方法 or 属性:HttpAnchorImg|NA|@ohos.web.webview.d.ts| +|删除|模块名: ohos.web.webview
类名: HitTestTypeV9
方法 or 属性:Img|NA|@ohos.web.webview.d.ts| +|删除|模块名: ohos.web.webview
类名: HitTestTypeV9
方法 or 属性:Map|NA|@ohos.web.webview.d.ts| +|删除|模块名: ohos.web.webview
类名: HitTestTypeV9
方法 or 属性:Phone|NA|@ohos.web.webview.d.ts| +|删除|模块名: ohos.web.webview
类名: HitTestTypeV9
方法 or 属性:Unknown|NA|@ohos.web.webview.d.ts| +|删除|模块名: ohos.web.webview
类名: WebAsyncController|NA|@ohos.web.webview.d.ts| +|删除|模块名: ohos.web.webview
类名: WebAsyncController
方法 or 属性:constructor(controller: WebController);|NA|@ohos.web.webview.d.ts| +|删除|模块名: ohos.web.webview
类名: WebAsyncController
方法 or 属性:storeWebArchive(baseName: string, autoName: boolean): Promise\;|NA|@ohos.web.webview.d.ts| +|删除|模块名: ohos.web.webview
类名: WebAsyncController
方法 or 属性:storeWebArchive(baseName: string, autoName: boolean, callback : AsyncCallback\): void;|NA|@ohos.web.webview.d.ts| +|函数有变化|类名:WebviewController
方法 or 属性:loadUrl(url: string \| Resource, headers?: Array\): void;
|类名:WebviewController
方法 or 属性:loadUrl(url: string \| Resource, headers?: Array\): void;
|@ohos.web.webview.d.ts| +|函数有变化|类名:WebviewController
方法 or 属性:getHitTest(): HitTestTypeV9;
|类名:WebviewController
方法 or 属性:getHitTest(): WebHitTestType;
|@ohos.web.webview.d.ts| diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-window.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-window.md new file mode 100644 index 0000000000000000000000000000000000000000..5987e436840e5ea83f9ff1f1850e9e86c720bc01 --- /dev/null +++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-window.md @@ -0,0 +1,74 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:WindowExtensionAbility
方法or属性:context: WindowExtensionContext;|@ohos.application.WindowExtensionAbility.d.ts| +|新增|NA|类名:Window
方法or属性:bindDialogTarget(requestInfo: dialogRequest.RequestInfo, deathCallback: Callback\): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:bindDialogTarget(requestInfo: dialogRequest.RequestInfo, deathCallback: Callback\, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|模块名: WindowExtensionContext
类名: WindowExtensionContext|WindowExtensionContext.d.ts| +|新增|NA|模块名: WindowExtensionContext
类名: WindowExtensionContext
方法 or 属性: startAbility(want: Want, options: StartOptions, callback: AsyncCallback\): void;|WindowExtensionContext.d.ts| +|新增|NA|模块名: WindowExtensionContext
类名: WindowExtensionContext
方法 or 属性: startAbility(want: Want, options?: StartOptions): Promise\;|WindowExtensionContext.d.ts| +|删除|模块名:ohos.window
类名:Window
方法 or 属性:on(type: 'dialogTargetTouch', callback: Callback\): void;|NA|@ohos.window.d.ts| +|删除|模块名:ohos.window
类名:Window
方法 or 属性:off(type: 'dialogTargetTouch', callback?: Callback\): void;|NA|@ohos.window.d.ts| +|访问级别有变化|类名:WindowAnimationFinishedCallback
方法 or 属性:onAnimationFinish(): void;
访问级别:公开API|类名:WindowAnimationFinishedCallback
方法 or 属性:onAnimationFinish(): void;
访问级别:系统API|@ohos.animation.windowAnimationManager.d.ts| +|访问级别有变化|类名:WindowType
方法 or 属性:TYPE_FLOAT_CAMERA
访问级别:公开API|类名:WindowType
方法 or 属性:TYPE_FLOAT_CAMERA
访问级别:系统API|@ohos.window.d.ts| +|起始版本有变化|类名:RRect
方法 or 属性:left: number;
起始版本:N/A|类名:RRect
方法 or 属性:left: number;
起始版本:9|@ohos.animation.windowAnimationManager.d.ts| +|起始版本有变化|类名:RRect
方法 or 属性:top: number;
起始版本:N/A|类名:RRect
方法 or 属性:top: number;
起始版本:9|@ohos.animation.windowAnimationManager.d.ts| +|起始版本有变化|类名:RRect
方法 or 属性:width: number;
起始版本:N/A|类名:RRect
方法 or 属性:width: number;
起始版本:9|@ohos.animation.windowAnimationManager.d.ts| +|起始版本有变化|类名:RRect
方法 or 属性:height: number;
起始版本:N/A|类名:RRect
方法 or 属性:height: number;
起始版本:9|@ohos.animation.windowAnimationManager.d.ts| +|起始版本有变化|类名:RRect
方法 or 属性:radius: number;
起始版本:N/A|类名:RRect
方法 or 属性:radius: number;
起始版本:9|@ohos.animation.windowAnimationManager.d.ts| +|起始版本有变化|类名:WindowAnimationTarget
方法 or 属性:readonly bundleName: string;
起始版本:N/A|类名:WindowAnimationTarget
方法 or 属性:readonly bundleName: string;
起始版本:9|@ohos.animation.windowAnimationManager.d.ts| +|起始版本有变化|类名:WindowAnimationTarget
方法 or 属性:readonly abilityName: string;
起始版本:N/A|类名:WindowAnimationTarget
方法 or 属性:readonly abilityName: string;
起始版本:9|@ohos.animation.windowAnimationManager.d.ts| +|起始版本有变化|类名:WindowAnimationTarget
方法 or 属性:readonly windowBounds: RRect;
起始版本:N/A|类名:WindowAnimationTarget
方法 or 属性:readonly windowBounds: RRect;
起始版本:9|@ohos.animation.windowAnimationManager.d.ts| +|起始版本有变化|类名:WindowAnimationTarget
方法 or 属性:readonly missionId: number;
起始版本:N/A|类名:WindowAnimationTarget
方法 or 属性:readonly missionId: number;
起始版本:9|@ohos.animation.windowAnimationManager.d.ts| +|起始版本有变化|类名:WindowAnimationFinishedCallback
方法 or 属性:onAnimationFinish(): void;
起始版本:N/A|类名:WindowAnimationFinishedCallback
方法 or 属性:onAnimationFinish(): void;
起始版本:9|@ohos.animation.windowAnimationManager.d.ts| +|起始版本有变化|类名:Rect
方法 or 属性:left: number;
起始版本:N/A|类名:Rect
方法 or 属性:left: number;
起始版本:9|@ohos.display.d.ts| +|起始版本有变化|类名:Rect
方法 or 属性:top: number;
起始版本:N/A|类名:Rect
方法 or 属性:top: number;
起始版本:9|@ohos.display.d.ts| +|起始版本有变化|类名:Rect
方法 or 属性:width: number;
起始版本:N/A|类名:Rect
方法 or 属性:width: number;
起始版本:9|@ohos.display.d.ts| +|起始版本有变化|类名:Rect
方法 or 属性:height: number;
起始版本:N/A|类名:Rect
方法 or 属性:height: number;
起始版本:9|@ohos.display.d.ts| +|起始版本有变化|类名:WaterfallDisplayAreaRects
方法 or 属性:readonly left: Rect;
起始版本:N/A|类名:WaterfallDisplayAreaRects
方法 or 属性:readonly left: Rect;
起始版本:9|@ohos.display.d.ts| +|起始版本有变化|类名:WaterfallDisplayAreaRects
方法 or 属性:readonly right: Rect;
起始版本:N/A|类名:WaterfallDisplayAreaRects
方法 or 属性:readonly right: Rect;
起始版本:9|@ohos.display.d.ts| +|起始版本有变化|类名:WaterfallDisplayAreaRects
方法 or 属性:readonly top: Rect;
起始版本:N/A|类名:WaterfallDisplayAreaRects
方法 or 属性:readonly top: Rect;
起始版本:9|@ohos.display.d.ts| +|起始版本有变化|类名:WaterfallDisplayAreaRects
方法 or 属性:readonly bottom: Rect;
起始版本:N/A|类名:WaterfallDisplayAreaRects
方法 or 属性:readonly bottom: Rect;
起始版本:9|@ohos.display.d.ts| +|起始版本有变化|类名:CutoutInfo
方法 or 属性:readonly boundingRects: Array\;
起始版本:N/A|类名:CutoutInfo
方法 or 属性:readonly boundingRects: Array\;
起始版本:9|@ohos.display.d.ts| +|起始版本有变化|类名:CutoutInfo
方法 or 属性:readonly waterfallDisplayAreaRects: WaterfallDisplayAreaRects;
起始版本:N/A|类名:CutoutInfo
方法 or 属性:readonly waterfallDisplayAreaRects: WaterfallDisplayAreaRects;
起始版本:9|@ohos.display.d.ts| +|起始版本有变化|类名:ScaleOptions
方法 or 属性:x?: number;
起始版本:N/A|类名:ScaleOptions
方法 or 属性:x?: number;
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:ScaleOptions
方法 or 属性:y?: number;
起始版本:N/A|类名:ScaleOptions
方法 or 属性:y?: number;
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:ScaleOptions
方法 or 属性:pivotX?: number;
起始版本:N/A|类名:ScaleOptions
方法 or 属性:pivotX?: number;
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:ScaleOptions
方法 or 属性:pivotY?: number;
起始版本:N/A|类名:ScaleOptions
方法 or 属性:pivotY?: number;
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:RotateOptions
方法 or 属性:x?: number;
起始版本:N/A|类名:RotateOptions
方法 or 属性:x?: number;
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:RotateOptions
方法 or 属性:y?: number;
起始版本:N/A|类名:RotateOptions
方法 or 属性:y?: number;
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:RotateOptions
方法 or 属性:z?: number;
起始版本:N/A|类名:RotateOptions
方法 or 属性:z?: number;
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:RotateOptions
方法 or 属性:pivotX?: number;
起始版本:N/A|类名:RotateOptions
方法 or 属性:pivotX?: number;
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:RotateOptions
方法 or 属性:pivotY?: number;
起始版本:N/A|类名:RotateOptions
方法 or 属性:pivotY?: number;
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:TranslateOptions
方法 or 属性:x?: number;
起始版本:N/A|类名:TranslateOptions
方法 or 属性:x?: number;
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:TranslateOptions
方法 or 属性:y?: number;
起始版本:N/A|类名:TranslateOptions
方法 or 属性:y?: number;
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:TranslateOptions
方法 or 属性:z?: number;
起始版本:N/A|类名:TranslateOptions
方法 or 属性:z?: number;
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:TransitionContext
方法 or 属性:toWindow: Window
起始版本:N/A|类名:TransitionContext
方法 or 属性:toWindow: Window
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:TransitionContext
方法 or 属性:completeTransition(isCompleted: boolean): void;
起始版本:N/A|类名:TransitionContext
方法 or 属性:completeTransition(isCompleted: boolean): void;
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:TransitionController
方法 or 属性:animationForShown(context: TransitionContext): void;
起始版本:N/A|类名:TransitionController
方法 or 属性:animationForShown(context: TransitionContext): void;
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:TransitionController
方法 or 属性:animationForHidden(context: TransitionContext): void;
起始版本:N/A|类名:TransitionController
方法 or 属性:animationForHidden(context: TransitionContext): void;
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:Configuration
方法 or 属性:name: string
起始版本:N/A|类名:Configuration
方法 or 属性:name: string
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:Configuration
方法 or 属性:windowType: WindowType
起始版本:N/A|类名:Configuration
方法 or 属性:windowType: WindowType
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:Configuration
方法 or 属性:ctx?: BaseContext
起始版本:N/A|类名:Configuration
方法 or 属性:ctx?: BaseContext
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:Configuration
方法 or 属性:displayId?: number
起始版本:N/A|类名:Configuration
方法 or 属性:displayId?: number
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:Configuration
方法 or 属性:parentId?: number
起始版本:N/A|类名:Configuration
方法 or 属性:parentId?: number
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:Orientation
方法 or 属性:UNSPECIFIED = 0
起始版本:N/A|类名:Orientation
方法 or 属性:UNSPECIFIED = 0
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:Orientation
方法 or 属性:PORTRAIT = 1
起始版本:N/A|类名:Orientation
方法 or 属性:PORTRAIT = 1
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:Orientation
方法 or 属性:LANDSCAPE = 2
起始版本:N/A|类名:Orientation
方法 or 属性:LANDSCAPE = 2
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:Orientation
方法 or 属性:PORTRAIT_INVERTED = 3
起始版本:N/A|类名:Orientation
方法 or 属性:PORTRAIT_INVERTED = 3
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:Orientation
方法 or 属性:LANDSCAPE_INVERTED = 4
起始版本:N/A|类名:Orientation
方法 or 属性:LANDSCAPE_INVERTED = 4
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:Orientation
方法 or 属性:AUTO_ROTATION = 5
起始版本:N/A|类名:Orientation
方法 or 属性:AUTO_ROTATION = 5
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:Orientation
方法 or 属性:AUTO_ROTATION_PORTRAIT = 6
起始版本:N/A|类名:Orientation
方法 or 属性:AUTO_ROTATION_PORTRAIT = 6
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:Orientation
方法 or 属性:AUTO_ROTATION_LANDSCAPE = 7
起始版本:N/A|类名:Orientation
方法 or 属性:AUTO_ROTATION_LANDSCAPE = 7
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:Orientation
方法 or 属性:AUTO_ROTATION_RESTRICTED = 8
起始版本:N/A|类名:Orientation
方法 or 属性:AUTO_ROTATION_RESTRICTED = 8
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:Orientation
方法 or 属性:AUTO_ROTATION_PORTRAIT_RESTRICTED = 9
起始版本:N/A|类名:Orientation
方法 or 属性:AUTO_ROTATION_PORTRAIT_RESTRICTED = 9
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:Orientation
方法 or 属性:AUTO_ROTATION_LANDSCAPE_RESTRICTED = 10
起始版本:N/A|类名:Orientation
方法 or 属性:AUTO_ROTATION_LANDSCAPE_RESTRICTED = 10
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:Orientation
方法 or 属性:LOCKED = 11
起始版本:N/A|类名:Orientation
方法 or 属性:LOCKED = 11
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:BlurStyle
方法 or 属性:OFF
起始版本:N/A|类名:BlurStyle
方法 or 属性:OFF
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:BlurStyle
方法 or 属性:THIN
起始版本:N/A|类名:BlurStyle
方法 or 属性:THIN
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:BlurStyle
方法 or 属性:REGULAR
起始版本:N/A|类名:BlurStyle
方法 or 属性:REGULAR
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:BlurStyle
方法 or 属性:THICK
起始版本:N/A|类名:BlurStyle
方法 or 属性:THICK
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:WindowStageEventType
方法 or 属性:SHOWN = 1
起始版本:N/A|类名:WindowStageEventType
方法 or 属性:SHOWN = 1
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:WindowStageEventType
方法 or 属性:ACTIVE
起始版本:N/A|类名:WindowStageEventType
方法 or 属性:ACTIVE
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:WindowStageEventType
方法 or 属性:INACTIVE
起始版本:N/A|类名:WindowStageEventType
方法 or 属性:INACTIVE
起始版本:9|@ohos.window.d.ts| +|起始版本有变化|类名:WindowStageEventType
方法 or 属性:HIDDEN
起始版本:N/A|类名:WindowStageEventType
方法 or 属性:HIDDEN
起始版本:9|@ohos.window.d.ts| +|删除(权限)|类名:WindowType
方法 or 属性:TYPE_FLOAT_CAMERA
权限:ohos.permission.SYSTEM_FLOAT_WINDOW|类名:WindowType
方法 or 属性:TYPE_FLOAT_CAMERA
权限:N/A|@ohos.window.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-ability.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-ability.md new file mode 100644 index 0000000000000000000000000000000000000000..b2bfdb1d382f643ec5f8edfebd03d585f4ca0802 --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-ability.md @@ -0,0 +1,734 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: lifecycle
类名: LifecycleForm
方法 or 属性: onShare?(formId: string): {[key: string]: any};|lifecycle.d.ts| +|新增|NA|模块名: ohos.ability.ability
类名: ability|@ohos.ability.ability.d.ts| +|新增|NA|模块名: ohos.app.ability.Ability
类名: Ability|@ohos.app.ability.Ability.d.ts| +|新增|NA|模块名: ohos.app.ability.Ability
类名: Ability
方法 or 属性: onConfigurationUpdate(newConfig: Configuration): void;|@ohos.app.ability.Ability.d.ts| +|新增|NA|模块名: ohos.app.ability.Ability
类名: Ability
方法 or 属性: onMemoryLevel(level: AbilityConstant.MemoryLevel): void;|@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: LaunchReason;|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchParam
方法 or 属性: lastExitReason: 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 = 0|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法 or 属性: START_ABILITY = 1|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法 or 属性: CALL = 2|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法 or 属性: CONTINUATION = 3|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法 or 属性: APP_RECOVERY = 4|@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 = 0|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LastExitReason
方法 or 属性: ABILITY_NOT_RESPONDING = 1|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LastExitReason
方法 or 属性: NORMAL = 2|@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 = 0|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnContinueResult
方法 or 属性: REJECT = 1|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnContinueResult
方法 or 属性: MISMATCH = 2|@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 = 0|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: MemoryLevel
方法 or 属性: MEMORY_LEVEL_LOW = 1|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: MemoryLevel
方法 or 属性: MEMORY_LEVEL_CRITICAL = 2|@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 = 0|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法 or 属性: WINDOW_MODE_FULLSCREEN = 1|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法 or 属性: WINDOW_MODE_SPLIT_PRIMARY = 100|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法 or 属性: WINDOW_MODE_SPLIT_SECONDARY = 101|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法 or 属性: WINDOW_MODE_FLOATING = 102|@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 = 0|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法 or 属性: CONTINUATION_REJECT = 1|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法 or 属性: CONTINUATION_MISMATCH = 2|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法 or 属性: RECOVERY_AGREE = 3|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法 or 属性: RECOVERY_REJECT = 4|@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 = 0|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: StateType
方法 or 属性: APP_RECOVERY = 1|@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 属性: function getAbilityDelegator(): AbilityDelegator;|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityDelegatorRegistry
类名: abilityDelegatorRegistry
方法 or 属性: function getArguments(): AbilityDelegatorArgs;|@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(ability: UIAbility): void;|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法 or 属性: onWindowStageCreate(ability: UIAbility, windowStage: window.WindowStage): void;|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法 or 属性: onWindowStageActive(ability: UIAbility, windowStage: window.WindowStage): void;|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法 or 属性: onWindowStageInactive(ability: UIAbility, windowStage: window.WindowStage): void;|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法 or 属性: onWindowStageDestroy(ability: UIAbility, windowStage: window.WindowStage): void;|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法 or 属性: onAbilityDestroy(ability: UIAbility): void;|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法 or 属性: onAbilityForeground(ability: UIAbility): void;|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法 or 属性: onAbilityBackground(ability: UIAbility): void;|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法 or 属性: onAbilityContinue(ability: UIAbility): void;|@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 = 0|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法 or 属性: FOCUS = 2|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法 or 属性: FOREGROUND = 9|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法 or 属性: BACKGROUND = 10|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法 or 属性: FOREGROUNDING = 11|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法 or 属性: BACKGROUNDING = 12|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法 or 属性: function updateConfiguration(config: Configuration, callback: AsyncCallback\): void;|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法 or 属性: function updateConfiguration(config: Configuration): Promise\;|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法 or 属性: function getAbilityRunningInfos(): Promise\>;|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法 or 属性: function getAbilityRunningInfos(callback: AsyncCallback\>): void;|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法 or 属性: function getExtensionRunningInfos(upperLimit: number): Promise\>;|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法 or 属性: function getExtensionRunningInfos(upperLimit: number, callback: AsyncCallback\>): void;|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法 or 属性: function getTopAbility(): Promise\;|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法 or 属性: function getTopAbility(callback: AsyncCallback\): void;|@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: AbilityStageContext;|@ohos.app.ability.AbilityStage.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法 or 属性: onCreate(): void;|@ohos.app.ability.AbilityStage.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法 or 属性: onAcceptWant(want: Want): string;|@ohos.app.ability.AbilityStage.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法 or 属性: onConfigurationUpdate(newConfig: Configuration): void;|@ohos.app.ability.AbilityStage.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法 or 属性: onMemoryLevel(level: AbilityConstant.MemoryLevel): void;|@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 属性: function on(type: "applicationState", observer: ApplicationStateObserver): number;|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法 or 属性: function on(type: "applicationState", observer: ApplicationStateObserver, bundleNameList: Array\): number;|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法 or 属性: function off(type: "applicationState", observerId: number, callback: AsyncCallback\): void;|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法 or 属性: function off(type: "applicationState", observerId: number): Promise\;|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法 or 属性: function getForegroundApplications(callback: AsyncCallback\>): void;|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法 or 属性: function getForegroundApplications(): Promise\>;|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法 or 属性: function killProcessWithAccount(bundleName: string, accountId: number): Promise\;|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法 or 属性: function killProcessWithAccount(bundleName: string, accountId: number, callback: AsyncCallback\): void;|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法 or 属性: function isRunningInStabilityTest(callback: AsyncCallback\): void;|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法 or 属性: function isRunningInStabilityTest(): Promise\;|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法 or 属性: function killProcessesByBundleName(bundleName: string): Promise\;|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法 or 属性: function killProcessesByBundleName(bundleName: string, callback: AsyncCallback\);|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法 or 属性: function clearUpApplicationData(bundleName: string): Promise\;|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法 or 属性: function clearUpApplicationData(bundleName: string, callback: AsyncCallback\);|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法 or 属性: function isRamConstrainedDevice(): Promise\;|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法 or 属性: function isRamConstrainedDevice(callback: AsyncCallback\): void;|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法 or 属性: function getAppMemorySize(): Promise\;|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法 or 属性: function getAppMemorySize(callback: AsyncCallback\): void;|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法 or 属性: function getRunningProcessInformation(): Promise\>;|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法 or 属性: function getRunningProcessInformation(callback: AsyncCallback\>): void;|@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 = 0|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法 or 属性: RESTART_WHEN_JS_CRASH = 0x0001|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法 or 属性: RESTART_WHEN_APP_FREEZE = 0x0002|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法 or 属性: NO_RESTART = 0xFFFF|@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 = 0x0001|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: SaveOccasionFlag
方法 or 属性: SAVE_WHEN_BACKGROUND = 0x0002|@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 = 0x0001|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: SaveModeFlag
方法 or 属性: SAVE_WITH_SHARED_MEMORY = 0x0002|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: appRecovery
方法 or 属性: function enableAppRecovery(restart?: RestartFlag, saveOccasion?: SaveOccasionFlag, saveMode?: SaveModeFlag) : void;|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: appRecovery
方法 or 属性: function restartApp(): void;|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: appRecovery
方法 or 属性: function saveAppState(): boolean;|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.common
类名: common|@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?: string;|@ohos.app.ability.Configuration.d.ts| +|新增|NA|模块名: ohos.app.ability.Configuration
类名: Configuration
方法 or 属性: colorMode?: ConfigurationConstant.ColorMode;|@ohos.app.ability.Configuration.d.ts| +|新增|NA|模块名: ohos.app.ability.Configuration
类名: Configuration
方法 or 属性: direction?: ConfigurationConstant.Direction;|@ohos.app.ability.Configuration.d.ts| +|新增|NA|模块名: ohos.app.ability.Configuration
类名: Configuration
方法 or 属性: screenDensity?: ConfigurationConstant.ScreenDensity;|@ohos.app.ability.Configuration.d.ts| +|新增|NA|模块名: ohos.app.ability.Configuration
类名: Configuration
方法 or 属性: displayId?: number;|@ohos.app.ability.Configuration.d.ts| +|新增|NA|模块名: ohos.app.ability.Configuration
类名: Configuration
方法 or 属性: hasPointerDevice?: boolean;|@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 = -1|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ColorMode
方法 or 属性: COLOR_MODE_DARK = 0|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ColorMode
方法 or 属性: COLOR_MODE_LIGHT = 1|@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 = -1|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: Direction
方法 or 属性: DIRECTION_VERTICAL = 0|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: Direction
方法 or 属性: DIRECTION_HORIZONTAL = 1|@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 = 0|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法 or 属性: SCREEN_DENSITY_SDPI = 120|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法 or 属性: SCREEN_DENSITY_MDPI = 160|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法 or 属性: SCREEN_DENSITY_LDPI = 240|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法 or 属性: SCREEN_DENSITY_XLDPI = 320|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法 or 属性: SCREEN_DENSITY_XXLDPI = 480|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法 or 属性: SCREEN_DENSITY_XXXLDPI = 640|@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 = 0|@ohos.app.ability.contextConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.contextConstant
类名: AreaMode
方法 or 属性: EL2 = 1|@ohos.app.ability.contextConstant.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.dialogRequest
类名: dialogRequest|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: RequestInfo|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: ResultCode|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: ResultCode
方法 or 属性: RESULT_OK = 0|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: ResultCode
方法 or 属性: RESULT_CANCEL = 1|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: RequestResult|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: RequestResult
方法 or 属性: result: ResultCode;|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: RequestCallback|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: RequestCallback
方法 or 属性: setRequestResult(result: RequestResult): void;|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: dialogRequest
方法 or 属性: function getRequestInfo(want: Want): RequestInfo;|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: dialogRequest
方法 or 属性: function getRequestCallback(want: Want): RequestCallback;|@ohos.app.ability.dialogRequest.d.ts| +|新增|NA|模块名: ohos.app.ability.EnvironmentCallback
类名: EnvironmentCallback|@ohos.app.ability.EnvironmentCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.EnvironmentCallback
类名: EnvironmentCallback
方法 or 属性: onConfigurationUpdated(config: Configuration): void;|@ohos.app.ability.EnvironmentCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.EnvironmentCallback
类名: EnvironmentCallback
方法 or 属性: onMemoryLevel(level: AbilityConstant.MemoryLevel): void;|@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 属性: function on(type: "error", observer: ErrorObserver): number;|@ohos.app.ability.errorManager.d.ts| +|新增|NA|模块名: ohos.app.ability.errorManager
类名: errorManager
方法 or 属性: function off(type: "error", observerId: number, callback: AsyncCallback\): void;|@ohos.app.ability.errorManager.d.ts| +|新增|NA|模块名: ohos.app.ability.errorManager
类名: errorManager
方法 or 属性: function off(type: "error", observerId: number): Promise\;|@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 属性: function on(type: "mission", listener: MissionListener): number;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function off(type: "mission", listenerId: number, callback: AsyncCallback\): void;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function off(type: "mission", listenerId: number): Promise\;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function getMissionInfo(deviceId: string, missionId: number, callback: AsyncCallback\): void;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function getMissionInfo(deviceId: string, missionId: number): Promise\;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function getMissionInfos(deviceId: string, numMax: number, callback: AsyncCallback\>): void;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function getMissionInfos(deviceId: string, numMax: number): Promise\>;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function getMissionSnapShot(deviceId: string, missionId: number, callback: AsyncCallback\): void;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function getMissionSnapShot(deviceId: string, missionId: number): Promise\;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function getLowResolutionMissionSnapShot(deviceId: string, missionId: number, callback: AsyncCallback\): void;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function getLowResolutionMissionSnapShot(deviceId: string, missionId: number): Promise\;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function lockMission(missionId: number, callback: AsyncCallback\): void;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function lockMission(missionId: number): Promise\;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function unlockMission(missionId: number, callback: AsyncCallback\): void;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function unlockMission(missionId: number): Promise\;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function clearMission(missionId: number, callback: AsyncCallback\): void;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function clearMission(missionId: number): Promise\;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function clearAllMissions(callback: AsyncCallback\): void;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function clearAllMissions(): Promise\;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function moveMissionToFront(missionId: number, callback: AsyncCallback\): void;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function moveMissionToFront(missionId: number, options: StartOptions, callback: AsyncCallback\): void;|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法 or 属性: function moveMissionToFront(missionId: number, options?: StartOptions): Promise\;|@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 属性: readonly moduleName: string;|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: HapModuleQuickFixInfo
方法 or 属性: readonly originHapHash: string;|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: HapModuleQuickFixInfo
方法 or 属性: readonly quickFixFilePath: string;|@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 属性: readonly bundleName: string;|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法 or 属性: readonly bundleVersionCode: number;|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法 or 属性: readonly bundleVersionName: string;|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法 or 属性: readonly quickFixVersionCode: number;|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法 or 属性: readonly quickFixVersionName: string;|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法 or 属性: readonly hapModuleQuickFixInfo: Array\;|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: quickFixManager
方法 or 属性: function applyQuickFix(hapModuleQuickFixFiles: Array\, callback: AsyncCallback\): void;|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: quickFixManager
方法 or 属性: function applyQuickFix(hapModuleQuickFixFiles: Array\): Promise\;|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: quickFixManager
方法 or 属性: function getApplicationQuickFixInfo(bundleName: string, callback: AsyncCallback\): void;|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: quickFixManager
方法 or 属性: function getApplicationQuickFixInfo(bundleName: string): Promise\;|@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: ServiceExtensionContext;|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法 or 属性: onCreate(want: Want): void;|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法 or 属性: onDestroy(): void;|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法 or 属性: onRequest(want: Want, startId: number): void;|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法 or 属性: onConnect(want: Want): rpc.RemoteObject \| Promise\;|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法 or 属性: onDisconnect(want: Want): void \| Promise\;|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法 or 属性: onReconnect(want: Want): void;|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法 or 属性: onConfigurationUpdate(newConfig: Configuration): void;|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法 or 属性: onDump(params: Array\): Array\;|@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?: number;|@ohos.app.ability.StartOptions.d.ts| +|新增|NA|模块名: ohos.app.ability.StartOptions
类名: StartOptions
方法 or 属性: displayId?: number;|@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 属性: (msg: string): void;|@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 属性: (indata: rpc.MessageSequence): rpc.Parcelable;|@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(method: string, data: rpc.Parcelable): Promise\;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller
方法 or 属性: callWithResult(method: string, data: rpc.Parcelable): Promise\;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller
方法 or 属性: release(): void;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller
方法 or 属性: onRelease(callback: OnReleaseCallback): void;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller
方法 or 属性: on(type: "release", callback: OnReleaseCallback): void;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller
方法 or 属性: off(type: "release", callback: OnReleaseCallback): void;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller
方法 or 属性: off(type: "release"): void;|@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(method: string, callback: CalleeCallback): void;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Callee
方法 or 属性: off(method: string): void;|@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: UIAbilityContext;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法 or 属性: launchWant: Want;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法 or 属性: lastRequestWant: Want;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法 or 属性: callee: Callee;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法 or 属性: onCreate(want: Want, param: AbilityConstant.LaunchParam): void;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法 or 属性: onWindowStageCreate(windowStage: window.WindowStage): void;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法 or 属性: onWindowStageDestroy(): void;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法 or 属性: onWindowStageRestore(windowStage: window.WindowStage): void;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法 or 属性: onDestroy(): void \| Promise\;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法 or 属性: onForeground(): void;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法 or 属性: onBackground(): void;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法 or 属性: onContinue(wantParam: { [key: string]: Object }): AbilityConstant.OnContinueResult;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法 or 属性: onNewWant(want: Want, launchParams: AbilityConstant.LaunchParam): void;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法 or 属性: onDump(params: Array\): Array\;|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法 or 属性: onSaveState(reason: AbilityConstant.StateType, wantParam : {[key: string]: Object}): AbilityConstant.OnSaveResult;|@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 属性: bundleName?: string;|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法 or 属性: abilityName?: string;|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法 or 属性: deviceId?: string;|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法 or 属性: uri?: string;|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法 or 属性: type?: string;|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法 or 属性: flags?: number;|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法 or 属性: action?: string;|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法 or 属性: parameters?: {[key: string]: Object};|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法 or 属性: entities?: Array\;|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法 or 属性: moduleName?: string;|@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 属性: function getBundleName(agent: WantAgent, callback: AsyncCallback\): void;|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法 or 属性: function getBundleName(agent: WantAgent): Promise\;|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法 or 属性: function getUid(agent: WantAgent, callback: AsyncCallback\): void;|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法 or 属性: function getUid(agent: WantAgent): Promise\;|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法 or 属性: function getWant(agent: WantAgent, callback: AsyncCallback\): void;|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法 or 属性: function getWant(agent: WantAgent): Promise\;|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法 or 属性: function cancel(agent: WantAgent, callback: AsyncCallback\): void;|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法 or 属性: function cancel(agent: WantAgent): Promise\;|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法 or 属性: function trigger(agent: WantAgent, triggerInfo: TriggerInfo, callback?: AsyncCallback\): void;|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法 or 属性: function equal(agent: WantAgent, otherAgent: WantAgent, callback: AsyncCallback\): void;|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法 or 属性: function equal(agent: WantAgent, otherAgent: WantAgent): Promise\;|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法 or 属性: function getWantAgent(info: WantAgentInfo, callback: AsyncCallback\): void;|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法 or 属性: function getWantAgent(info: WantAgentInfo): Promise\;|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法 or 属性: function getOperationType(agent: WantAgent, callback: AsyncCallback\): void;|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法 or 属性: function getOperationType(agent: WantAgent): Promise\;|@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 = 0|@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 = 0|@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: WantAgent;|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法 or 属性: want: Want;|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法 or 属性: finalCode: number;|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法 or 属性: finalData: string;|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法 or 属性: extraInfo?: { [key: string]: Object };|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: wantConstant|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params
方法 or 属性: DLP_PARAMS_SANDBOX = "ohos.dlp.params.sandbox"|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params
方法 or 属性: DLP_PARAMS_BUNDLE_NAME = "ohos.dlp.params.bundleName"|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params
方法 or 属性: DLP_PARAMS_MODULE_NAME = "ohos.dlp.params.moduleName"|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params
方法 or 属性: DLP_PARAMS_ABILITY_NAME = "ohos.dlp.params.abilityName"|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params
方法 or 属性: DLP_PARAMS_INDEX = "ohos.dlp.params.index"|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params
方法 or 属性: ABILITY_BACK_TO_OTHER_MISSION_STACK = "ability.params.backToOtherMissionStack"|@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 = 0x00000001|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性: FLAG_AUTH_WRITE_URI_PERMISSION = 0x00000002|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性: FLAG_INSTALL_ON_DEMAND = 0x00000800|@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 属性: function createFormBindingData(obj?: Object \| string): FormBindingData;|@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: Object|@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: FormExtensionContext;|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法 or 属性: onAddForm(want: Want): formBindingData.FormBindingData;|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法 or 属性: onCastToNormalForm(formId: string): void;|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法 or 属性: onUpdateForm(formId: string): void;|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法 or 属性: onChangeFormVisibility(newStatus: { [key: string]: number }): void;|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法 or 属性: onFormEvent(formId: string, message: string): void;|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法 or 属性: onRemoveForm(formId: string): void;|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法 or 属性: onConfigurationUpdate(newConfig: Configuration): void;|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法 or 属性: onAcquireFormState?(want: Want): formInfo.FormState;|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法 or 属性: onShareForm?(formId: string): { [key: string]: Object };|@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 属性: function deleteForm(formId: string, callback: AsyncCallback\): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function deleteForm(formId: string): Promise\;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function releaseForm(formId: string, callback: AsyncCallback\): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function releaseForm(formId: string, isReleaseCache: boolean, callback: AsyncCallback\): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function releaseForm(formId: string, isReleaseCache?: boolean): Promise\;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function requestForm(formId: string, callback: AsyncCallback\): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function requestForm(formId: string): Promise\;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function castToNormalForm(formId: string, callback: AsyncCallback\): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function castToNormalForm(formId: string): Promise\;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function notifyVisibleForms(formIds: Array\, callback: AsyncCallback\): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function notifyVisibleForms(formIds: Array\): Promise\;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function notifyInvisibleForms(formIds: Array\, callback: AsyncCallback\): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function notifyInvisibleForms(formIds: Array\): Promise\;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function enableFormsUpdate(formIds: Array\, callback: AsyncCallback\): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function enableFormsUpdate(formIds: Array\): Promise\;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function disableFormsUpdate(formIds: Array\, callback: AsyncCallback\): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function disableFormsUpdate(formIds: Array\): Promise\;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function isSystemReady(callback: AsyncCallback\): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function isSystemReady(): Promise\;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function getAllFormsInfo(callback: AsyncCallback\>): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function getAllFormsInfo(): Promise\>;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function getFormsInfo(bundleName: string, callback: AsyncCallback\>): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function getFormsInfo(bundleName: string, moduleName: string, callback: AsyncCallback\>): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function getFormsInfo(bundleName: string, moduleName?: string): Promise\>;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function deleteInvalidForms(formIds: Array\, callback: AsyncCallback\): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function deleteInvalidForms(formIds: Array\): Promise\;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function acquireFormState(want: Want, callback: AsyncCallback\): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function acquireFormState(want: Want): Promise\;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function on(type: "formUninstall", callback: Callback\): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function off(type: "formUninstall", callback?: Callback\): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function notifyFormsVisible(formIds: Array\, isVisible: boolean, callback: AsyncCallback\): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function notifyFormsVisible(formIds: Array\, isVisible: boolean): Promise\;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function notifyFormsEnableUpdate(formIds: Array\, isEnableUpdate: boolean, callback: AsyncCallback\): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function notifyFormsEnableUpdate(formIds: Array\, isEnableUpdate: boolean): Promise\;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function shareForm(formId: string, deviceId: string, callback: AsyncCallback\): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function shareForm(formId: string, deviceId: string): Promise\;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function notifyFormsPrivacyProtected(formIds: Array\, isProtected: boolean, callback: AsyncCallback\): void;|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法 or 属性: function notifyFormsPrivacyProtected(formIds: Array\, isProtected: boolean): Promise\;|@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: string;|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法 or 属性: moduleName: string;|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法 or 属性: abilityName: string;|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法 or 属性: name: string;|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法 or 属性: description: string;|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法 or 属性: type: FormType;|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法 or 属性: jsComponentName: string;|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法 or 属性: colorMode: ColorMode;|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法 or 属性: isDefault: boolean;|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法 or 属性: updateEnabled: boolean;|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法 or 属性: formVisibleNotify: boolean;|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法 or 属性: scheduledUpdateTime: string;|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法 or 属性: formConfigAbility: string;|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法 or 属性: updateDuration: number;|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法 or 属性: defaultDimension: number;|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法 or 属性: supportDimensions: Array\;|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法 or 属性: customizeData: {[key: string]: [value: string]};|@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 = 1|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormType
方法 or 属性: eTS = 2|@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 = -1|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: ColorMode
方法 or 属性: MODE_DARK = 0|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: ColorMode
方法 or 属性: MODE_LIGHT = 1|@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: FormState;|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormStateInfo
方法 or 属性: want: 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 = -1|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormState
方法 or 属性: DEFAULT = 0|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormState
方法 or 属性: READY = 1|@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.extra.param.key.form_identity"|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法 or 属性: DIMENSION_KEY = "ohos.extra.param.key.form_dimension"|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法 or 属性: NAME_KEY = "ohos.extra.param.key.form_name"|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法 or 属性: MODULE_NAME_KEY = "ohos.extra.param.key.module_name"|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法 or 属性: WIDTH_KEY = "ohos.extra.param.key.form_width"|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法 or 属性: HEIGHT_KEY = "ohos.extra.param.key.form_height"|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法 or 属性: TEMPORARY_KEY = "ohos.extra.param.key.form_temporary"|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法 or 属性: BUNDLE_NAME_KEY = "ohos.extra.param.key.bundle_name"|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法 or 属性: ABILITY_NAME_KEY = "ohos.extra.param.key.ability_name"|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法 or 属性: DEVICE_ID_KEY = "ohos.extra.param.key.device_id"|@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?: string;|@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 = 1|@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 = 1|@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 属性: function setFormNextRefreshTime(formId: string, minute: number, callback: AsyncCallback\): void;|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法 or 属性: function setFormNextRefreshTime(formId: string, minute: number): Promise\;|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法 or 属性: function updateForm(formId: string, formBindingData: formBindingData.FormBindingData, callback: AsyncCallback\): void;|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法 or 属性: function updateForm(formId: string, formBindingData: formBindingData.FormBindingData): Promise\;|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法 or 属性: function getFormsInfo(filter: formInfo.FormInfoFilter, callback: AsyncCallback\>): void;|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法 or 属性: function getFormsInfo(callback: AsyncCallback\>): void;|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法 or 属性: function getFormsInfo(filter?: formInfo.FormInfoFilter): Promise\>;|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法 or 属性: function requestPublishForm(want: Want, formBindingData: formBindingData.FormBindingData, callback: AsyncCallback\): void;|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法 or 属性: function requestPublishForm(want: Want, callback: AsyncCallback\): void;|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法 or 属性: function requestPublishForm(want: Want, formBindingData?: formBindingData.FormBindingData): Promise\;|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法 or 属性: function isRequestPublishFormSupported(callback: AsyncCallback\): void;|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法 or 属性: function isRequestPublishFormSupported(): Promise\;|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.application.formError
类名: FormError
方法 or 属性: ERR_DISTRIBUTED_SCHEDULE_FAILED = 37|@ohos.application.formError.d.ts| +|新增|NA|模块名: ohos.application.StaticSubscriberExtensionAbility
类名: StaticSubscriberExtensionAbility|@ohos.application.StaticSubscriberExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.StaticSubscriberExtensionAbility
类名: StaticSubscriberExtensionAbility
方法 or 属性: onReceiveEvent(event: CommonEventData): void;|@ohos.application.StaticSubscriberExtensionAbility.d.ts| +|新增|NA|类名:continuationManager
方法or属性:function on(type: "deviceSelected", token: number, callback: Callback\>): void;|@ohos.continuation.continuationManager.d.ts| +|新增|NA|类名:continuationManager
方法or属性:function off(type: "deviceSelected", token: number): void;|@ohos.continuation.continuationManager.d.ts| +|新增|NA|类名:continuationManager
方法or属性:function on(type: "deviceUnselected", token: number, callback: Callback\>): void;|@ohos.continuation.continuationManager.d.ts| +|新增|NA|类名:continuationManager
方法or属性:function off(type: "deviceUnselected", token: number): void;|@ohos.continuation.continuationManager.d.ts| +|新增|NA|类名:continuationManager
方法or属性:function registerContinuation(callback: AsyncCallback\): void;|@ohos.continuation.continuationManager.d.ts| +|新增|NA|类名:continuationManager
方法or属性:function registerContinuation(options: ContinuationExtraParams, callback: AsyncCallback\): void;|@ohos.continuation.continuationManager.d.ts| +|新增|NA|类名:continuationManager
方法or属性:function registerContinuation(options?: ContinuationExtraParams): Promise\;|@ohos.continuation.continuationManager.d.ts| +|新增|NA|类名:continuationManager
方法or属性:function unregisterContinuation(token: number, callback: AsyncCallback\): void;|@ohos.continuation.continuationManager.d.ts| +|新增|NA|类名:continuationManager
方法or属性:function unregisterContinuation(token: number): Promise\;|@ohos.continuation.continuationManager.d.ts| +|新增|NA|类名:continuationManager
方法or属性:function updateContinuationState(token: number, deviceId: string, status: DeviceConnectState, callback: AsyncCallback\): void;|@ohos.continuation.continuationManager.d.ts| +|新增|NA|类名:continuationManager
方法or属性:function updateContinuationState(token: number, deviceId: string, status: DeviceConnectState): Promise\;|@ohos.continuation.continuationManager.d.ts| +|新增|NA|类名:continuationManager
方法or属性:function startContinuationDeviceManager(token: number, callback: AsyncCallback\): void;|@ohos.continuation.continuationManager.d.ts| +|新增|NA|类名:continuationManager
方法or属性:function startContinuationDeviceManager(token: number, options: ContinuationExtraParams, callback: AsyncCallback\): void;|@ohos.continuation.continuationManager.d.ts| +|新增|NA|类名:continuationManager
方法or属性:function startContinuationDeviceManager(token: number, options?: ContinuationExtraParams): Promise\;|@ohos.continuation.continuationManager.d.ts| +|新增|NA|模块名: ohos.distributedMissionManager
类名: distributedMissionManager|@ohos.distributedMissionManager.d.ts| +|新增|NA|模块名: ohos.distributedMissionManager
类名: distributedMissionManager
方法 or 属性: function startSyncRemoteMissions(parameter: MissionParameter, callback: AsyncCallback\): void;|@ohos.distributedMissionManager.d.ts| +|新增|NA|模块名: ohos.distributedMissionManager
类名: distributedMissionManager
方法 or 属性: function startSyncRemoteMissions(parameter: MissionParameter): Promise\;|@ohos.distributedMissionManager.d.ts| +|新增|NA|模块名: ohos.distributedMissionManager
类名: distributedMissionManager
方法 or 属性: function stopSyncRemoteMissions(parameter: MissionDeviceInfo, callback: AsyncCallback\): void;|@ohos.distributedMissionManager.d.ts| +|新增|NA|模块名: ohos.distributedMissionManager
类名: distributedMissionManager
方法 or 属性: function stopSyncRemoteMissions(parameter: MissionDeviceInfo): Promise\;|@ohos.distributedMissionManager.d.ts| +|新增|NA|模块名: ohos.distributedMissionManager
类名: distributedMissionManager
方法 or 属性: function registerMissionListener(parameter: MissionDeviceInfo, options: MissionCallback, callback: AsyncCallback\): void;|@ohos.distributedMissionManager.d.ts| +|新增|NA|模块名: ohos.distributedMissionManager
类名: distributedMissionManager
方法 or 属性: function registerMissionListener(parameter: MissionDeviceInfo, options: MissionCallback): Promise\;|@ohos.distributedMissionManager.d.ts| +|新增|NA|模块名: ohos.distributedMissionManager
类名: distributedMissionManager
方法 or 属性: function unRegisterMissionListener(parameter: MissionDeviceInfo, callback: AsyncCallback\): void;|@ohos.distributedMissionManager.d.ts| +|新增|NA|模块名: ohos.distributedMissionManager
类名: distributedMissionManager
方法 or 属性: function unRegisterMissionListener(parameter: MissionDeviceInfo): Promise\;|@ohos.distributedMissionManager.d.ts| +|新增|NA|模块名: ohos.distributedMissionManager
类名: distributedMissionManager
方法 or 属性: function continueMission(parameter: ContinueDeviceInfo, options: ContinueCallback, callback: AsyncCallback\): void;|@ohos.distributedMissionManager.d.ts| +|新增|NA|模块名: ohos.distributedMissionManager
类名: distributedMissionManager
方法 or 属性: function continueMission(parameter: ContinueDeviceInfo, options: ContinueCallback): Promise\;|@ohos.distributedMissionManager.d.ts| +|新增|NA|类名:Context
方法or属性:getExternalCacheDir(callback: AsyncCallback\): void|context.d.ts| +|新增|NA|类名:Context
方法or属性:getExternalCacheDir(): Promise\;|context.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: addAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: addAbilityMonitor(monitor: AbilityMonitor): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: addAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: addAbilityStageMonitor(monitor: AbilityStageMonitor): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: removeAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: removeAbilityMonitor(monitor: AbilityMonitor): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: removeAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: removeAbilityStageMonitor(monitor: AbilityStageMonitor): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: waitAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: waitAbilityMonitor(monitor: AbilityMonitor, timeout: number, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: waitAbilityMonitor(monitor: AbilityMonitor, timeout?: number): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: waitAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: waitAbilityStageMonitor(monitor: AbilityStageMonitor, timeout: number, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: waitAbilityStageMonitor(monitor: AbilityStageMonitor, timeout?: number): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: getAppContext(): Context;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: getAbilityState(ability: UIAbility): number;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: getCurrentTopAbility(callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: getCurrentTopAbility(): Promise\|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: startAbility(want: Want, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: startAbility(want: Want): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: doAbilityForeground(ability: UIAbility, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: doAbilityForeground(ability: UIAbility): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: doAbilityBackground(ability: UIAbility, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: doAbilityBackground(ability: UIAbility): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: print(msg: string, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: print(msg: string): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: printSync(msg: string): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: executeShellCommand(cmd: string, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: executeShellCommand(cmd: string, timeoutSecs?: number): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: finishTest(msg: string, code: number, callback: AsyncCallback\): void;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: finishTest(msg: string, code: number): Promise\;|AbilityDelegator.d.ts| +|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor|AbilityMonitor.d.ts| +|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: abilityName: string;|AbilityMonitor.d.ts| +|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: moduleName?: string;|AbilityMonitor.d.ts| +|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onAbilityCreate?:(ability: UIAbility) => void;|AbilityMonitor.d.ts| +|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onAbilityForeground?:(ability: UIAbility) => void;|AbilityMonitor.d.ts| +|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onAbilityBackground?:(ability: UIAbility) => void;|AbilityMonitor.d.ts| +|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onAbilityDestroy?:(ability: UIAbility) => void;|AbilityMonitor.d.ts| +|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onWindowStageCreate?:(ability: UIAbility) => void;|AbilityMonitor.d.ts| +|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onWindowStageRestore?:(ability: UIAbility) => void;|AbilityMonitor.d.ts| +|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onWindowStageDestroy?:(ability: UIAbility) => void;|AbilityMonitor.d.ts| +|新增|NA|模块名: AbilityStageContext
类名: AbilityStageContext|AbilityStageContext.d.ts| +|新增|NA|模块名: AbilityStageContext
类名: AbilityStageContext
方法 or 属性: currentHapModuleInfo: HapModuleInfo;|AbilityStageContext.d.ts| +|新增|NA|模块名: AbilityStageContext
类名: AbilityStageContext
方法 or 属性: config: Configuration;|AbilityStageContext.d.ts| +|新增|NA|模块名: AbilityStageMonitor
类名: AbilityStageMonitor|AbilityStageMonitor.d.ts| +|新增|NA|模块名: AbilityStageMonitor
类名: AbilityStageMonitor
方法 or 属性: moduleName: string;|AbilityStageMonitor.d.ts| +|新增|NA|模块名: AbilityStageMonitor
类名: AbilityStageMonitor
方法 or 属性: srcEntrance: string;|AbilityStageMonitor.d.ts| +|新增|NA|模块名: AbilityStateData
类名: AbilityStateData
方法 or 属性: moduleName: string;|AbilityStateData.d.ts| +|新增|NA|模块名: ApplicationContext
类名: ApplicationContext|ApplicationContext.d.ts| +|新增|NA|模块名: ApplicationContext
类名: ApplicationContext
方法 or 属性: on(type: "abilityLifecycle", callback: AbilityLifecycleCallback): number;|ApplicationContext.d.ts| +|新增|NA|模块名: ApplicationContext
类名: ApplicationContext
方法 or 属性: off(type: "abilityLifecycle", callbackId: number, callback: AsyncCallback\): void;|ApplicationContext.d.ts| +|新增|NA|模块名: ApplicationContext
类名: ApplicationContext
方法 or 属性: off(type: "abilityLifecycle", callbackId: number): Promise\;|ApplicationContext.d.ts| +|新增|NA|模块名: ApplicationContext
类名: ApplicationContext
方法 or 属性: on(type: "environment", callback: EnvironmentCallback): number;|ApplicationContext.d.ts| +|新增|NA|模块名: ApplicationContext
类名: ApplicationContext
方法 or 属性: off(type: "environment", callbackId: number, callback: AsyncCallback\): void;|ApplicationContext.d.ts| +|新增|NA|模块名: ApplicationContext
类名: ApplicationContext
方法 or 属性: off(type: "environment", callbackId: number): Promise\;|ApplicationContext.d.ts| +|新增|NA|模块名: ApplicationContext
类名: ApplicationContext
方法 or 属性: getRunningProcessInformation(): Promise\>;|ApplicationContext.d.ts| +|新增|NA|模块名: ApplicationContext
类名: ApplicationContext
方法 or 属性: getRunningProcessInformation(callback: AsyncCallback\>): void;|ApplicationContext.d.ts| +|新增|NA|模块名: ApplicationContext
类名: ApplicationContext
方法 or 属性: killAllProcesses(): Promise\;|ApplicationContext.d.ts| +|新增|NA|模块名: ApplicationContext
类名: ApplicationContext
方法 or 属性: killAllProcesses(callback: AsyncCallback\);|ApplicationContext.d.ts| +|新增|NA|模块名: ApplicationStateObserver
类名: ApplicationStateObserver
方法 or 属性: onProcessStateChanged(processData: ProcessData): void;|ApplicationStateObserver.d.ts| +|新增|NA|模块名: Context
类名: Context|Context.d.ts| +|新增|NA|模块名: Context
类名: Context
方法 or 属性: resourceManager: resmgr.ResourceManager;|Context.d.ts| +|新增|NA|模块名: Context
类名: Context
方法 or 属性: applicationInfo: ApplicationInfo;|Context.d.ts| +|新增|NA|模块名: Context
类名: Context
方法 or 属性: cacheDir: string;|Context.d.ts| +|新增|NA|模块名: Context
类名: Context
方法 or 属性: tempDir: string;|Context.d.ts| +|新增|NA|模块名: Context
类名: Context
方法 or 属性: filesDir: string;|Context.d.ts| +|新增|NA|模块名: Context
类名: Context
方法 or 属性: databaseDir: string;|Context.d.ts| +|新增|NA|模块名: Context
类名: Context
方法 or 属性: preferencesDir: string;|Context.d.ts| +|新增|NA|模块名: Context
类名: Context
方法 or 属性: bundleCodeDir: string;|Context.d.ts| +|新增|NA|模块名: Context
类名: Context
方法 or 属性: distributedFilesDir: string;|Context.d.ts| +|新增|NA|模块名: Context
类名: Context
方法 or 属性: eventHub: EventHub;|Context.d.ts| +|新增|NA|模块名: Context
类名: Context
方法 or 属性: area: contextConstant.AreaMode;|Context.d.ts| +|新增|NA|模块名: Context
类名: Context
方法 or 属性: createBundleContext(bundleName: string): Context;|Context.d.ts| +|新增|NA|模块名: Context
类名: Context
方法 or 属性: createModuleContext(moduleName: string): Context;|Context.d.ts| +|新增|NA|模块名: Context
类名: Context
方法 or 属性: createModuleContext(bundleName: string, moduleName: string): Context;|Context.d.ts| +|新增|NA|模块名: Context
类名: Context
方法 or 属性: getApplicationContext(): ApplicationContext;|Context.d.ts| +|新增|NA|模块名: ContinueCallback
类名: ContinueCallback|ContinueCallback.d.ts| +|新增|NA|模块名: ContinueCallback
类名: ContinueCallback
方法 or 属性: onContinueDone(result: number): void;|ContinueCallback.d.ts| +|新增|NA|模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo|ContinueDeviceInfo.d.ts| +|新增|NA|模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo
方法 or 属性: srcDeviceId: string;|ContinueDeviceInfo.d.ts| +|新增|NA|模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo
方法 or 属性: dstDeviceId: string;|ContinueDeviceInfo.d.ts| +|新增|NA|模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo
方法 or 属性: missionId: number;|ContinueDeviceInfo.d.ts| +|新增|NA|模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo
方法 or 属性: wantParam: {[key: string]: any};|ContinueDeviceInfo.d.ts| +|新增|NA|模块名: ErrorObserver
类名: ErrorObserver|ErrorObserver.d.ts| +|新增|NA|模块名: ErrorObserver
类名: ErrorObserver
方法 or 属性: onUnhandledException(errMsg: string): void;|ErrorObserver.d.ts| +|新增|NA|模块名: EventHub
类名: EventHub|EventHub.d.ts| +|新增|NA|模块名: EventHub
类名: EventHub
方法 or 属性: on(event: string, callback: Function): void|EventHub.d.ts| +|新增|NA|模块名: EventHub
类名: EventHub
方法 or 属性: off(event: string, callback?: Function): void|EventHub.d.ts| +|新增|NA|模块名: EventHub
类名: EventHub
方法 or 属性: emit(event: string, ...args: Object[]): void|EventHub.d.ts| +|新增|NA|模块名: ExtensionContext
类名: ExtensionContext|ExtensionContext.d.ts| +|新增|NA|模块名: ExtensionContext
类名: ExtensionContext
方法 or 属性: currentHapModuleInfo: HapModuleInfo;|ExtensionContext.d.ts| +|新增|NA|模块名: ExtensionContext
类名: ExtensionContext
方法 or 属性: config: Configuration;|ExtensionContext.d.ts| +|新增|NA|模块名: ExtensionContext
类名: ExtensionContext
方法 or 属性: extensionAbilityInfo: ExtensionAbilityInfo;|ExtensionContext.d.ts| +|新增|NA|模块名: ExtensionRunningInfo
类名: ExtensionRunningInfo|ExtensionRunningInfo.d.ts| +|新增|NA|模块名: ExtensionRunningInfo
类名: ExtensionRunningInfo
方法 or 属性: extension: ElementName;|ExtensionRunningInfo.d.ts| +|新增|NA|模块名: ExtensionRunningInfo
类名: ExtensionRunningInfo
方法 or 属性: pid: number;|ExtensionRunningInfo.d.ts| +|新增|NA|模块名: ExtensionRunningInfo
类名: ExtensionRunningInfo
方法 or 属性: uid: number;|ExtensionRunningInfo.d.ts| +|新增|NA|模块名: ExtensionRunningInfo
类名: ExtensionRunningInfo
方法 or 属性: processName: string;|ExtensionRunningInfo.d.ts| +|新增|NA|模块名: ExtensionRunningInfo
类名: ExtensionRunningInfo
方法 or 属性: startTime: number;|ExtensionRunningInfo.d.ts| +|新增|NA|模块名: ExtensionRunningInfo
类名: ExtensionRunningInfo
方法 or 属性: clientPackage: Array\;|ExtensionRunningInfo.d.ts| +|新增|NA|模块名: ExtensionRunningInfo
类名: ExtensionRunningInfo
方法 or 属性: type: bundle.ExtensionAbilityType;|ExtensionRunningInfo.d.ts| +|新增|NA|模块名: FormExtensionContext
类名: FormExtensionContext|FormExtensionContext.d.ts| +|新增|NA|模块名: FormExtensionContext
类名: FormExtensionContext
方法 or 属性: startAbility(want: Want, callback: AsyncCallback\): void;|FormExtensionContext.d.ts| +|新增|NA|模块名: FormExtensionContext
类名: FormExtensionContext
方法 or 属性: startAbility(want: Want): Promise\;|FormExtensionContext.d.ts| +|新增|NA|模块名: MissionCallbacks
类名: MissionCallback|MissionCallbacks.d.ts| +|新增|NA|模块名: MissionCallbacks
类名: MissionCallback
方法 or 属性: notifyMissionsChanged(deviceId: string): void;|MissionCallbacks.d.ts| +|新增|NA|模块名: MissionCallbacks
类名: MissionCallback
方法 or 属性: notifySnapshot(deviceId: string, mission: number): void;|MissionCallbacks.d.ts| +|新增|NA|模块名: MissionCallbacks
类名: MissionCallback
方法 or 属性: notifyNetDisconnect(deviceId: string, state: number): void;|MissionCallbacks.d.ts| +|新增|NA|模块名: MissionDeviceInfo
类名: MissionDeviceInfo|MissionDeviceInfo.d.ts| +|新增|NA|模块名: MissionDeviceInfo
类名: MissionDeviceInfo
方法 or 属性: deviceId: string;|MissionDeviceInfo.d.ts| +|新增|NA|模块名: MissionListener
类名: MissionListener
方法 or 属性: onMissionLabelUpdated(mission: number): void;|MissionListener.d.ts| +|新增|NA|模块名: MissionListener
类名: MissionListener
方法 or 属性: onMissionIconUpdated(mission: number, icon: image.PixelMap): void;|MissionListener.d.ts| +|新增|NA|模块名: MissionListener
类名: MissionListener
方法 or 属性: onMissionClosed(mission: number): void;|MissionListener.d.ts| +|新增|NA|模块名: MissionParameter
类名: MissionParameter|MissionParameter.d.ts| +|新增|NA|模块名: MissionParameter
类名: MissionParameter
方法 or 属性: deviceId: string;|MissionParameter.d.ts| +|新增|NA|模块名: MissionParameter
类名: MissionParameter
方法 or 属性: fixConflict: boolean;|MissionParameter.d.ts| +|新增|NA|模块名: MissionParameter
类名: MissionParameter
方法 or 属性: tag: number;|MissionParameter.d.ts| +|新增|NA|类名:ProcessData
方法or属性:state: number;|ProcessData.d.ts| +|新增|NA|类名:ProcessData
方法or属性:isContinuousTask: boolean;|ProcessData.d.ts| +|新增|NA|类名:ProcessData
方法or属性:isKeepAlive: boolean;|ProcessData.d.ts| +|新增|NA|模块名: ProcessInformation
类名: ProcessInformation|ProcessInformation.d.ts| +|新增|NA|模块名: ProcessInformation
类名: ProcessInformation
方法 or 属性: pid: number;|ProcessInformation.d.ts| +|新增|NA|模块名: ProcessInformation
类名: ProcessInformation
方法 or 属性: uid: number;|ProcessInformation.d.ts| +|新增|NA|模块名: ProcessInformation
类名: ProcessInformation
方法 or 属性: processName: string;|ProcessInformation.d.ts| +|新增|NA|模块名: ProcessInformation
类名: ProcessInformation
方法 or 属性: bundleNames: Array\;|ProcessInformation.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: startAbility(want: Want, callback: AsyncCallback\): void;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: startAbility(want: Want, options: StartOptions, callback: AsyncCallback\): void;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: startAbility(want: Want, options?: StartOptions): Promise\;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\): void;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback\): void;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): Promise\;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: startServiceExtensionAbility(want: Want, callback: AsyncCallback\): void;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: startServiceExtensionAbility(want: Want): Promise\;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: startServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\): void;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: startServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: stopServiceExtensionAbility(want: Want, callback: AsyncCallback\): void;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: stopServiceExtensionAbility(want: Want): Promise\;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: stopServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\): void;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: stopServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: terminateSelf(callback: AsyncCallback\): void;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: terminateSelf(): Promise\;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: connectServiceExtensionAbility(want: Want, options: ConnectOptions): number;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: connectServiceExtensionAbilityWithAccount(want: Want, accountId: number, options: ConnectOptions): number;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: disconnectServiceExtensionAbility(connection: number, callback: AsyncCallback\): void;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: disconnectServiceExtensionAbility(connection: number): Promise\;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: startAbilityByCall(want: Want): Promise\;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: startRecentAbility(want: Want, callback: AsyncCallback\): void;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: startRecentAbility(want: Want, options: StartOptions, callback: AsyncCallback\): void;|ServiceExtensionContext.d.ts| +|新增|NA|模块名: ServiceExtensionContext
类名: ServiceExtensionContext
方法 or 属性: startRecentAbility(want: Want, options?: StartOptions): Promise\;|ServiceExtensionContext.d.ts| +|新增|NA|类名:ShellCmdResult
方法or属性:stdResult: string;|shellCmdResult.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: abilityInfo: AbilityInfo;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: currentHapModuleInfo: HapModuleInfo;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: config: Configuration;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: startAbility(want: Want, callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: startAbility(want: Want, options: StartOptions, callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: startAbility(want: Want, options?: StartOptions): Promise\;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: startAbilityByCall(want: Want): Promise\;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): Promise\;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: startAbilityForResult(want: Want, callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: startAbilityForResult(want: Want, options?: StartOptions): Promise\;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: startAbilityForResultWithAccount(want: Want, accountId: number, callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: startAbilityForResultWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: startAbilityForResultWithAccount(want: Want, accountId: number, options?: StartOptions): Promise\;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: startServiceExtensionAbility(want: Want, callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: startServiceExtensionAbility(want: Want): Promise\;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: startServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: startServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: stopServiceExtensionAbility(want: Want, callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: stopServiceExtensionAbility(want: Want): Promise\;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: stopServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: stopServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: terminateSelf(callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: terminateSelf(): Promise\;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: terminateSelfWithResult(parameter: AbilityResult, callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: terminateSelfWithResult(parameter: AbilityResult): Promise\;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: connectServiceExtensionAbility(want: Want, options: ConnectOptions): number;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: connectServiceExtensionAbilityWithAccount(want: Want, accountId: number, options: ConnectOptions): number;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: disconnectServiceExtensionAbility(connection: number, callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: disconnectServiceExtensionAbility(connection: number): Promise\;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: setMissionLabel(label: string, callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: setMissionLabel(label: string): Promise\;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: setMissionIcon(icon: image.PixelMap, callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: setMissionIcon(icon: image.PixelMap): Promise\;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: restoreWindowStage(localStorage: LocalStorage): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: isTerminating(): boolean;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: startRecentAbility(want: Want, callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: startRecentAbility(want: Want, options: StartOptions, callback: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: startRecentAbility(want: Want, options?: StartOptions): Promise\;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: requestDialogService(want: Want, result: AsyncCallback\): void;|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法 or 属性: requestDialogService(want: Want): Promise\;|UIAbilityContext.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:print(msg: string, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:print(msg: string): Promise\;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:executeShellCommand(cmd: string, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:executeShellCommand(cmd: string, timeoutSecs?: number): Promise\;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:finishTest(msg: string, code: number, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts| +|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:finishTest(msg: string, code: number): Promise\;|NA|abilityDelegator.d.ts| +|删除|模块名:BaseContext
类名:BaseContext|NA|BaseContext.d.ts| +|访问级别有变化|类名:abilityManager
访问级别:公开API|类名:abilityManager
访问级别:系统API|@ohos.application.abilityManager.d.ts| +|废弃版本有变化|类名:dataUriUtils
废弃版本:N/A|类名:dataUriUtils
废弃版本:9
代替接口:@ohos.app.ability.dataUriUtils.d.ts |@ohos.ability.dataUriUtils.d.ts| +|废弃版本有变化|类名:wantConstant
废弃版本:N/A|类名:wantConstant
废弃版本:9
代替接口:ohos.app.ability.wantConstant |@ohos.ability.wantConstant.d.ts| +|废弃版本有变化|类名:Action
方法 or 属性:ACTION_APP_ACCOUNT_OAUTH = "ohos.account.appAccount.action.oauth"
废弃版本:N/A|类名:Action
方法 or 属性:ACTION_APP_ACCOUNT_OAUTH = "ohos.account.appAccount.action.oauth"
废弃版本:9
代替接口:wantConstant.Action|@ohos.ability.wantConstant.d.ts| +|废弃版本有变化|类名:abilityDelegatorRegistry
废弃版本:N/A|类名:abilityDelegatorRegistry
废弃版本:9
代替接口:ohos.app.ability.abilityDelegatorRegistry |@ohos.application.abilityDelegatorRegistry.d.ts| +|废弃版本有变化|类名:abilityManager
废弃版本:N/A|类名:abilityManager
废弃版本:9
代替接口:ohos.app.ability.abilityManager |@ohos.application.abilityManager.d.ts| +|废弃版本有变化|类名:appManager
废弃版本:N/A|类名:appManager
废弃版本:9
代替接口:ohos.app.ability.appManager |@ohos.application.appManager.d.ts| +|废弃版本有变化|类名:appManager
方法 or 属性:function getProcessRunningInfos(): Promise\>;
废弃版本:N/A|类名:appManager
方法 or 属性:function getProcessRunningInfos(): Promise\>;
废弃版本:9
代替接口:ohos.app.ability.appManager|@ohos.application.appManager.d.ts| +|废弃版本有变化|类名:appManager
方法 or 属性:function getProcessRunningInfos(callback: AsyncCallback\>): void;
废弃版本:N/A|类名:appManager
方法 or 属性:function getProcessRunningInfos(callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.app.ability.appManager|@ohos.application.appManager.d.ts| +|废弃版本有变化|类名:Configuration
废弃版本:N/A|类名:Configuration
废弃版本:9
代替接口:ohos.app.ability.Configuration |@ohos.application.Configuration.d.ts| +|废弃版本有变化|类名:ConfigurationConstant
废弃版本:N/A|类名:ConfigurationConstant
废弃版本:9
代替接口:ohos.app.ability.ConfigurationConstant |@ohos.application.ConfigurationConstant.d.ts| +|废弃版本有变化|类名:formBindingData
废弃版本:N/A|类名:formBindingData
废弃版本:9
代替接口:ohos.app.form.formBindingData |@ohos.application.formBindingData.d.ts| +|废弃版本有变化|类名:formHost
废弃版本:N/A|类名:formHost
废弃版本:9
代替接口:ohos.app.form.formHost |@ohos.application.formHost.d.ts| +|废弃版本有变化|类名:formInfo
废弃版本:N/A|类名:formInfo
废弃版本:9
代替接口:ohos.app.form.formInfo |@ohos.application.formInfo.d.ts| +|废弃版本有变化|类名:formProvider
废弃版本:N/A|类名:formProvider
废弃版本:9
代替接口:ohos.app.form.formProvider |@ohos.application.formProvider.d.ts| +|废弃版本有变化|类名:missionManager
废弃版本:N/A|类名:missionManager
废弃版本:9
代替接口:ohos.app.ability.missionManager |@ohos.application.missionManager.d.ts| +|废弃版本有变化|类名:Want
废弃版本:N/A|类名:Want
废弃版本:9
代替接口:ohos.app.ability.Want |@ohos.application.Want.d.ts| +|废弃版本有变化|类名:continuationManager
方法 or 属性:function on(type: "deviceConnect", callback: Callback\): void;
废弃版本:N/A|类名:continuationManager
方法 or 属性:function on(type: "deviceConnect", callback: Callback\): void;
废弃版本:9
代替接口:ohos.continuation.continuationManager.continuationManager|@ohos.continuation.continuationManager.d.ts| +|废弃版本有变化|类名:continuationManager
方法 or 属性:function on(type: "deviceDisconnect", callback: Callback\): void;
废弃版本:N/A|类名:continuationManager
方法 or 属性:function on(type: "deviceDisconnect", callback: Callback\): void;
废弃版本:9
代替接口:ohos.continuation.continuationManager.continuationManager|@ohos.continuation.continuationManager.d.ts| +|废弃版本有变化|类名:continuationManager
方法 or 属性:function register(callback: AsyncCallback\): void;
废弃版本:N/A|类名:continuationManager
方法 or 属性:function register(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.continuation.continuationManager.continuationManager|@ohos.continuation.continuationManager.d.ts| +|废弃版本有变化|类名:continuationManager
方法 or 属性:function register(options: ContinuationExtraParams, callback: AsyncCallback\): void;
废弃版本:N/A|类名:continuationManager
方法 or 属性:function register(options: ContinuationExtraParams, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.continuation.continuationManager.continuationManager|@ohos.continuation.continuationManager.d.ts| +|废弃版本有变化|类名:continuationManager
方法 or 属性:function register(options?: ContinuationExtraParams): Promise\;
废弃版本:N/A|类名:continuationManager
方法 or 属性:function register(options?: ContinuationExtraParams): Promise\;
废弃版本:9
代替接口:ohos.continuation.continuationManager.continuationManager|@ohos.continuation.continuationManager.d.ts| +|废弃版本有变化|类名:continuationManager
方法 or 属性:function unregister(token: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:continuationManager
方法 or 属性:function unregister(token: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.continuation.continuationManager.continuationManager|@ohos.continuation.continuationManager.d.ts| +|废弃版本有变化|类名:continuationManager
方法 or 属性:function unregister(token: number): Promise\;
废弃版本:N/A|类名:continuationManager
方法 or 属性:function unregister(token: number): Promise\;
废弃版本:9
代替接口:ohos.continuation.continuationManager.continuationManager|@ohos.continuation.continuationManager.d.ts| +|废弃版本有变化|类名:continuationManager
方法 or 属性:function updateConnectStatus(token: number, deviceId: string, status: DeviceConnectState, callback: AsyncCallback\): void;
废弃版本:N/A|类名:continuationManager
方法 or 属性:function updateConnectStatus(token: number, deviceId: string, status: DeviceConnectState, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.continuation.continuationManager.continuationManager|@ohos.continuation.continuationManager.d.ts| +|废弃版本有变化|类名:continuationManager
方法 or 属性:function updateConnectStatus(token: number, deviceId: string, status: DeviceConnectState): Promise\;
废弃版本:N/A|类名:continuationManager
方法 or 属性:function updateConnectStatus(token: number, deviceId: string, status: DeviceConnectState): Promise\;
废弃版本:9
代替接口:ohos.continuation.continuationManager.continuationManager|@ohos.continuation.continuationManager.d.ts| +|废弃版本有变化|类名:continuationManager
方法 or 属性:function startDeviceManager(token: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:continuationManager
方法 or 属性:function startDeviceManager(token: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.continuation.continuationManager.continuationManager|@ohos.continuation.continuationManager.d.ts| +|废弃版本有变化|类名:continuationManager
方法 or 属性:function startDeviceManager(token: number, options: ContinuationExtraParams, callback: AsyncCallback\): void;
废弃版本:N/A|类名:continuationManager
方法 or 属性:function startDeviceManager(token: number, options: ContinuationExtraParams, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.continuation.continuationManager.continuationManager|@ohos.continuation.continuationManager.d.ts| +|废弃版本有变化|类名:continuationManager
方法 or 属性:function startDeviceManager(token: number, options?: ContinuationExtraParams): Promise\;
废弃版本:N/A|类名:continuationManager
方法 or 属性:function startDeviceManager(token: number, options?: ContinuationExtraParams): Promise\;
废弃版本:9
代替接口:ohos.continuation.continuationManager.continuationManager|@ohos.continuation.continuationManager.d.ts| +|废弃版本有变化|类名:wantAgent
废弃版本:N/A|类名:wantAgent
废弃版本:9
代替接口:ohos.app.ability.wantAgent |@ohos.wantAgent.d.ts| +|废弃版本有变化|类名:Want
废弃版本:N/A|类名:Want
废弃版本:9
代替接口:ohos.app.ability.Want |want.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
代替接口:ohos.window|context.d.ts| +|废弃版本有变化|类名:ProcessRunningInfo
废弃版本:N/A|类名:ProcessRunningInfo
废弃版本:9
代替接口:ProcessInformation |ProcessRunningInfo.d.ts| +|废弃版本有变化|类名:ProcessRunningInfo
方法 or 属性:pid: number;
废弃版本:N/A|类名:ProcessRunningInfo
方法 or 属性:pid: number;
废弃版本:9
代替接口:ProcessInformation.pid |ProcessRunningInfo.d.ts| +|废弃版本有变化|类名:ProcessRunningInfo
方法 or 属性:uid: number;
废弃版本:N/A|类名:ProcessRunningInfo
方法 or 属性:uid: number;
废弃版本:9
代替接口:ProcessInformation.uid |ProcessRunningInfo.d.ts| +|废弃版本有变化|类名:ProcessRunningInfo
方法 or 属性:processName: string;
废弃版本:N/A|类名:ProcessRunningInfo
方法 or 属性:processName: string;
废弃版本:9
代替接口:ProcessInformation.processName |ProcessRunningInfo.d.ts| +|废弃版本有变化|类名:ProcessRunningInfo
方法 or 属性:bundleNames: Array\;
废弃版本:N/A|类名:ProcessRunningInfo
方法 or 属性:bundleNames: Array\;
废弃版本:9
代替接口:ProcessInformation.bundleNames |ProcessRunningInfo.d.ts| +|权限有变化|类名:formHost
方法 or 属性:function acquireFormState(want: Want, callback: AsyncCallback\): void;
权限:ohos.permission.GET_BUNDLE_INFO and ohos.permission.GET_BUNDLE_INFO_PRIVILEGED.|类名:formHost
方法 or 属性:function acquireFormState(want: Want, callback: AsyncCallback\): void;
权限:ohos.permission.REQUIRE_FORM and ohos.permission.GET_BUNDLE_INFO_PRIVILEGED|@ohos.application.formHost.d.ts| +|权限有变化|类名:formHost
方法 or 属性:function acquireFormState(want: Want): Promise\;
权限:ohos.permission.GET_BUNDLE_INFO and ohos.permission.GET_BUNDLE_INFO_PRIVILEGED.|类名:formHost
方法 or 属性:function acquireFormState(want: Want): Promise\;
权限:ohos.permission.REQUIRE_FORM and ohos.permission.GET_BUNDLE_INFO_PRIVILEGED|@ohos.application.formHost.d.ts| +|SysCap有变化|类名:ProcessData
SysCap:SystemCapability.Ability.AbilityRuntime.Mission|类名:ProcessData
SysCap:SystemCapability.Ability.AbilityRuntime.Core|ProcessData.d.ts| +|SysCap有变化|类名:ProcessData
方法 or 属性:bundleName: string;
SysCap:SystemCapability.Ability.AbilityRuntime.Mission|类名:ProcessData
方法 or 属性:bundleName: string;
SysCap:SystemCapability.Ability.AbilityRuntime.Core|ProcessData.d.ts| +|SysCap有变化|类名:ProcessData
方法 or 属性:pid: number;
SysCap:SystemCapability.Ability.AbilityRuntime.Mission|类名:ProcessData
方法 or 属性:pid: number;
SysCap:SystemCapability.Ability.AbilityRuntime.Core|ProcessData.d.ts| +|SysCap有变化|类名:ProcessData
方法 or 属性:uid: number;
SysCap:SystemCapability.Ability.AbilityRuntime.Mission|类名:ProcessData
方法 or 属性:uid: number;
SysCap:SystemCapability.Ability.AbilityRuntime.Core|ProcessData.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-accessibility.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-accessibility.md new file mode 100644 index 0000000000000000000000000000000000000000..36579874a03825d4869364af92b23969f6a45964 --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-accessibility.md @@ -0,0 +1,109 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.accessibility.config
类名: config|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: DaltonizationColorFilter
方法 or 属性: type DaltonizationColorFilter = 'Normal' \| 'Protanomaly' \| 'Deuteranomaly' \| 'Tritanomaly';|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: DaltonizationColorFilter
方法 or 属性: type DaltonizationColorFilter = 'Normal' \| 'Protanomaly' \| 'Deuteranomaly' \| 'Tritanomaly';|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: DaltonizationColorFilter
方法 or 属性: type DaltonizationColorFilter = 'Normal' \| 'Protanomaly' \| 'Deuteranomaly' \| 'Tritanomaly';|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: DaltonizationColorFilter
方法 or 属性: type DaltonizationColorFilter = 'Normal' \| 'Protanomaly' \| 'Deuteranomaly' \| 'Tritanomaly';|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: config
方法 or 属性: var highContrastText: Config\;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: config
方法 or 属性: var invertColor: Config\;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: config
方法 or 属性: var daltonizationColorFilter: Config\;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: config
方法 or 属性: var contentTimeout: Config\;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: config
方法 or 属性: var animationOff: Config\;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: config
方法 or 属性: var brightnessDiscount: Config\;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: config
方法 or 属性: var mouseKey: Config\;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: config
方法 or 属性: var mouseAutoClick: Config\;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: config
方法 or 属性: var shortkey: Config\;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: config
方法 or 属性: var shortkeyTarget: Config\;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: config
方法 or 属性: var captions: Config\;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: config
方法 or 属性: var captionsStyle: Config\;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: config
方法 or 属性: function enableAbility(name: string, capability: Array\): Promise\;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: config
方法 or 属性: function enableAbility(name: string, capability: Array\, callback: AsyncCallback\): void;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: config
方法 or 属性: function disableAbility(name: string): Promise\;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: config
方法 or 属性: function disableAbility(name: string, callback: AsyncCallback\): void;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: config
方法 or 属性: function on(type: 'enabledAccessibilityExtensionListChange', callback: Callback\): void;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: config
方法 or 属性: function off(type: 'enabledAccessibilityExtensionListChange', callback?: Callback\): void;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: Config|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: Config
方法 or 属性: set(value: T): Promise\;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: Config
方法 or 属性: set(value: T, callback: AsyncCallback\): void;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: Config
方法 or 属性: get(): Promise\;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: Config
方法 or 属性: get(callback: AsyncCallback\): void;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: Config
方法 or 属性: on(callback: Callback\): void;|@ohos.accessibility.config.d.ts| +|新增|NA|模块名: ohos.accessibility.config
类名: Config
方法 or 属性: off(callback?: Callback\): void;|@ohos.accessibility.config.d.ts| +|新增|NA|类名:AbilityType
方法or属性:type AbilityType = 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual' \| 'all';|@ohos.accessibility.d.ts| +|新增|NA|类名:AbilityType
方法or属性:type AbilityType = 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual' \| 'all';|@ohos.accessibility.d.ts| +|新增|NA|类名:AbilityType
方法or属性:type AbilityType = 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual' \| 'all';|@ohos.accessibility.d.ts| +|新增|NA|类名:AbilityType
方法or属性:type AbilityType = 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual' \| 'all';|@ohos.accessibility.d.ts| +|新增|NA|类名:AbilityType
方法or属性:type AbilityType = 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual' \| 'all';|@ohos.accessibility.d.ts| +|新增|NA|类名:AbilityType
方法or属性:type AbilityType = 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual' \| 'all';|@ohos.accessibility.d.ts| +|新增|NA|类名:accessibility
方法or属性:function getAccessibilityExtensionList(abilityType: AbilityType, stateType: AbilityState): Promise\>;|@ohos.accessibility.d.ts| +|新增|NA|类名:accessibility
方法or属性:function getAccessibilityExtensionList(abilityType: AbilityType, stateType: AbilityState, callback: AsyncCallback\>): void;|@ohos.accessibility.d.ts| +|新增|NA|类名:accessibility
方法or属性:function sendAccessibilityEvent(event: EventInfo, callback: AsyncCallback\): void;|@ohos.accessibility.d.ts| +|新增|NA|类名:accessibility
方法or属性:function sendAccessibilityEvent(event: EventInfo): Promise\;|@ohos.accessibility.d.ts| +|新增|NA|模块名: ohos.accessibility
类名: AccessibilityAbilityInfo
方法 or 属性:readonly targetBundleNames: Array\;|@ohos.accessibility.d.ts| +|新增|NA|类名:AccessibilityAbilityInfo
方法or属性:readonly targetBundleNames: Array\;|@ohos.accessibility.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePath
类名: GesturePath|@ohos.accessibility.GesturePath.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePath
类名: GesturePath
方法 or 属性: constructor(durationTime: number);|@ohos.accessibility.GesturePath.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePath
类名: GesturePath
方法 or 属性: points: Array\;|@ohos.accessibility.GesturePath.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePath
类名: GesturePath
方法 or 属性: durationTime: number;|@ohos.accessibility.GesturePath.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePoint
类名: GesturePoint|@ohos.accessibility.GesturePoint.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePoint
类名: GesturePoint
方法 or 属性: constructor(positionX: number, positionY: number);|@ohos.accessibility.GesturePoint.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePoint
类名: GesturePoint
方法 or 属性: positionX: number;|@ohos.accessibility.GesturePoint.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePoint
类名: GesturePoint
方法 or 属性: positionY: number;|@ohos.accessibility.GesturePoint.d.ts| +|新增|NA|模块名: ohos.application.AccessibilityExtensionAbility
类名: AccessibilityExtensionAbility|@ohos.application.AccessibilityExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.AccessibilityExtensionAbility
类名: AccessibilityExtensionAbility
方法 or 属性: context: AccessibilityExtensionContext;|@ohos.application.AccessibilityExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.AccessibilityExtensionAbility
类名: AccessibilityExtensionAbility
方法 or 属性: onConnect(): void;|@ohos.application.AccessibilityExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.AccessibilityExtensionAbility
类名: AccessibilityExtensionAbility
方法 or 属性: onDisconnect(): void;|@ohos.application.AccessibilityExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.AccessibilityExtensionAbility
类名: AccessibilityExtensionAbility
方法 or 属性: onAccessibilityEvent(event: AccessibilityEvent): void;|@ohos.application.AccessibilityExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.AccessibilityExtensionAbility
类名: AccessibilityExtensionAbility
方法 or 属性: onKeyEvent(keyEvent: KeyEvent): boolean;|@ohos.application.AccessibilityExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.AccessibilityExtensionAbility
类名: AccessibilityEvent|@ohos.application.AccessibilityExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.AccessibilityExtensionAbility
类名: AccessibilityEvent
方法 or 属性: eventType: accessibility.EventType \| accessibility.WindowUpdateType \|
TouchGuideType \| GestureType \| PageUpdateType;|@ohos.application.AccessibilityExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.AccessibilityExtensionAbility
类名: AccessibilityEvent
方法 or 属性: target?: AccessibilityElement;|@ohos.application.AccessibilityExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.AccessibilityExtensionAbility
类名: AccessibilityEvent
方法 or 属性: timeStamp?: number;|@ohos.application.AccessibilityExtensionAbility.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityExtensionContext|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityExtensionContext
方法 or 属性: setTargetBundleName(targetNames: Array\): Promise\;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityExtensionContext
方法 or 属性: setTargetBundleName(targetNames: Array\, callback: AsyncCallback\): void;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityExtensionContext
方法 or 属性: getFocusElement(isAccessibilityFocus?: boolean): Promise\;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityExtensionContext
方法 or 属性: getFocusElement(callback: AsyncCallback\): void;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityExtensionContext
方法 or 属性: getFocusElement(isAccessibilityFocus: boolean, callback: AsyncCallback\): void;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityExtensionContext
方法 or 属性: getWindowRootElement(windowId?: number): Promise\;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityExtensionContext
方法 or 属性: getWindowRootElement(callback: AsyncCallback\): void;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityExtensionContext
方法 or 属性: getWindowRootElement(windowId: number, callback: AsyncCallback\): void;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityExtensionContext
方法 or 属性: getWindows(displayId?: number): Promise\>;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityExtensionContext
方法 or 属性: getWindows(callback: AsyncCallback\>): void;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityExtensionContext
方法 or 属性: getWindows(displayId: number, callback: AsyncCallback\>): void;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityExtensionContext
方法 or 属性: injectGesture(gesturePath: GesturePath): Promise\;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityExtensionContext
方法 or 属性: injectGesture(gesturePath: GesturePath, callback: AsyncCallback\): void;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityElement|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityElement
方法 or 属性: attributeNames\(): Promise\>;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityElement
方法 or 属性: attributeNames\(callback: AsyncCallback\>): void;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityElement
方法 or 属性: attributeValue\(attributeName: T): Promise\;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityElement
方法 or 属性: attributeValue\(attributeName: T,
callback: AsyncCallback\): void;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityElement
方法 or 属性: actionNames(): Promise\>;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityElement
方法 or 属性: actionNames(callback: AsyncCallback\>): void;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityElement
方法 or 属性: performAction(actionName: string, parameters?: object): Promise\;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityElement
方法 or 属性: performAction(actionName: string, callback: AsyncCallback\): void;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityElement
方法 or 属性: performAction(actionName: string, parameters: object, callback: AsyncCallback\): void;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityElement
方法 or 属性: findElement(type: 'content', condition: string): Promise\>;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityElement
方法 or 属性: findElement(type: 'content', condition: string, callback: AsyncCallback\>): void|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityElement
方法 or 属性: findElement(type: 'focusType', condition: FocusType): Promise\;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityElement
方法 or 属性: findElement(type: 'focusType', condition: FocusType, callback: AsyncCallback\): void|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityElement
方法 or 属性: findElement(type: 'focusDirection', condition: FocusDirection): Promise\;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: AccessibilityElement
方法 or 属性: findElement(type: 'focusDirection', condition: FocusDirection, callback: AsyncCallback\): void|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: Rect|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: Rect
方法 or 属性: left: number;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: Rect
方法 or 属性: top: number;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: Rect
方法 or 属性: width: number;|AccessibilityExtensionContext.d.ts| +|新增|NA|模块名: AccessibilityExtensionContext
类名: Rect
方法 or 属性: height: number;|AccessibilityExtensionContext.d.ts| +|废弃版本有变化|类名:accessibility
方法 or 属性:function getAbilityLists(abilityType: AbilityType, stateType: AbilityState,

callback: AsyncCallback\>): void;
废弃版本:N/A|类名:accessibility
方法 or 属性:function getAbilityLists(abilityType: AbilityType, stateType: AbilityState,

callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.accessibility|@ohos.accessibility.d.ts| +|废弃版本有变化|类名:accessibility
方法 or 属性:function getAbilityLists(abilityType: AbilityType,

stateType: AbilityState): Promise\>;
废弃版本:N/A|类名:accessibility
方法 or 属性:function getAbilityLists(abilityType: AbilityType,

stateType: AbilityState): Promise\>;
废弃版本:9
代替接口:ohos.accessibility|@ohos.accessibility.d.ts| +|废弃版本有变化|类名:accessibility
方法 or 属性:function sendEvent(event: EventInfo, callback: AsyncCallback\): void;
废弃版本:N/A|类名:accessibility
方法 or 属性:function sendEvent(event: EventInfo, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.accessibility|@ohos.accessibility.d.ts| +|废弃版本有变化|类名:accessibility
方法 or 属性:function sendEvent(event: EventInfo): Promise\;
废弃版本:N/A|类名:accessibility
方法 or 属性:function sendEvent(event: EventInfo): Promise\;
废弃版本:9
代替接口:ohos.accessibility|@ohos.accessibility.d.ts| +|新增(错误码)|NA|类名:accessibility
方法 or 属性:function on(type: 'accessibilityStateChange', callback: Callback\): void;
错误码内容: 401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|类名:accessibility
方法 or 属性:function on(type: 'touchGuideStateChange', callback: Callback\): void;
错误码内容: 401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|类名:accessibility
方法 or 属性:function off(type: 'accessibilityStateChange', callback?: Callback\): void;
错误码内容: 401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|类名:accessibility
方法 or 属性:function off(type: 'touchGuideStateChange', callback?: Callback\): void;
错误码内容: 401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|类名:CaptionsManager
方法 or 属性:on(type: 'enableChange', callback: Callback\): void;
错误码内容: 401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|类名:CaptionsManager
方法 or 属性:on(type: 'styleChange', callback: Callback\): void;
错误码内容: 401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|类名:CaptionsManager
方法 or 属性:off(type: 'enableChange', callback?: Callback\): void;
错误码内容: 401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|类名:CaptionsManager
方法 or 属性:off(type: 'styleChange', callback?: Callback\): void;
错误码内容: 401|@ohos.accessibility.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-account.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-account.md new file mode 100644 index 0000000000000000000000000000000000000000..037ed74a011908317b5efefa2a085321e646b93c --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-account.md @@ -0,0 +1,378 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:AppAccountManager
方法or属性:createAccount(name: string, callback: AsyncCallback\): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:createAccount(name: string, options: CreateAccountOptions, callback: AsyncCallback\): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:createAccount(name: string, options?: CreateAccountOptions): Promise\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:createAccountImplicitly(owner: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:createAccountImplicitly(owner: string, options: CreateAccountImplicitlyOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:removeAccount(name: string, callback: AsyncCallback\): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:removeAccount(name: string): Promise\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:setAppAccess(name: string, bundleName: string, isAccessible: boolean, callback: AsyncCallback\): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:setAppAccess(name: string, bundleName: string, isAccessible: boolean): Promise\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:checkAppAccess(name: string, bundleName: string, callback: AsyncCallback\): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:checkAppAccess(name: string, bundleName: string): Promise\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:checkDataSyncEnabled(name: string, callback: AsyncCallback\): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:checkDataSyncEnabled(name: string): Promise\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:setCredential(name: string, credentialType: string, credential: string,
callback: AsyncCallback\): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:setCredential(name: string, credentialType: string, credential: string): Promise\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:setDataSyncEnabled(name: string, isEnabled: boolean, callback: AsyncCallback\): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:setDataSyncEnabled(name: string, isEnabled: boolean): Promise\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:setCustomData(name: string, key: string, value: string, callback: AsyncCallback\): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:setCustomData(name: string, key: string, value: string): Promise\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:getAccountsByOwner(owner: string, callback: AsyncCallback\>): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:getAccountsByOwner(owner: string): Promise\>;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:getCredential(name: string, credentialType: string, callback: AsyncCallback\): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:getCredential(name: string, credentialType: string): Promise\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:getCustomData(name: string, key: string, callback: AsyncCallback\): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:getCustomData(name: string, key: string): Promise\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:getCustomDataSync(name: string, key: string): string;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:on(type: 'accountChange', owners: Array\, callback: Callback\>): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:off(type: 'accountChange', callback?: Callback\>): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:auth(name: string, owner: string, authType: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:auth(name: string, owner: string, authType: string, options: {[key:string]: Object}, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:getAuthToken(name: string, owner: string, authType: string, callback: AsyncCallback\): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:getAuthToken(name: string, owner: string, authType: string): Promise\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:setAuthToken(name: string, authType: string, token: string, callback: AsyncCallback\): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:setAuthToken(name: string, authType: string, token: string): Promise\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:deleteAuthToken(name: string, owner: string, authType: string, token: string, callback: AsyncCallback\): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:deleteAuthToken(name: string, owner: string, authType: string, token: string): Promise\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:setAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean, callback: AsyncCallback\): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:setAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean): Promise\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:checkAuthTokenVisibility(name: string, authType: string, bundleName: string, callback: AsyncCallback\): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:checkAuthTokenVisibility(name: string, authType: string, bundleName: string): Promise\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:getAllAuthTokens(name: string, owner: string, callback: AsyncCallback\>): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:getAllAuthTokens(name: string, owner: string): Promise\>;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:getAuthList(name: string, authType: string, callback: AsyncCallback\>): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:getAuthList(name: string, authType: string): Promise\>;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:getAuthCallback(sessionId: string, callback: AsyncCallback\): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:getAuthCallback(sessionId: string): Promise\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:queryAuthenticatorInfo(owner: string, callback: AsyncCallback\): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:queryAuthenticatorInfo(owner: string): Promise\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:checkAccountLabels(name: string, owner: string, labels: Array\, callback: AsyncCallback\): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:checkAccountLabels(name: string, owner: string, labels: Array\): Promise\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:deleteCredential(name: string, credentialType: string, callback: AsyncCallback\): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:deleteCredential(name: string, credentialType: string): Promise\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:selectAccountsByOptions(options: SelectAccountsOptions, callback: AsyncCallback\>): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:selectAccountsByOptions(options: SelectAccountsOptions): Promise\>;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:verifyCredential(name: string, owner: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:verifyCredential(name: string, owner: string, options: VerifyCredentialOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:setAuthenticatorProperties(owner: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AppAccountManager
方法or属性:setAuthenticatorProperties(owner: string, options: SetPropertiesOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthTokenInfo|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AuthTokenInfo
方法or属性:|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthTokenInfo
方法 or 属性:authType: string;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AuthTokenInfo
方法or属性:authType: string;|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthTokenInfo
方法 or 属性:token: string;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AuthTokenInfo
方法or属性:token: string;|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthTokenInfo
方法 or 属性:account?: AppAccountInfo;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AuthTokenInfo
方法or属性:account?: AppAccountInfo;|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthResult|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AuthResult
方法or属性:|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthResult
方法 or 属性:account?: AppAccountInfo;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AuthResult
方法or属性:account?: AppAccountInfo;|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthResult
方法 or 属性:tokenInfo?: AuthTokenInfo;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AuthResult
方法or属性:tokenInfo?: AuthTokenInfo;|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: CreateAccountOptions|@ohos.account.appAccount.d.ts| +|新增|NA|类名:CreateAccountOptions
方法or属性:|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: CreateAccountOptions
方法 or 属性:customData?: {[key: string]: string};|@ohos.account.appAccount.d.ts| +|新增|NA|类名:CreateAccountOptions
方法or属性:customData?: {[key: string]: string};|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: CreateAccountImplicitlyOptions|@ohos.account.appAccount.d.ts| +|新增|NA|类名:CreateAccountImplicitlyOptions
方法or属性:|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: CreateAccountImplicitlyOptions
方法 or 属性:requiredLabels?: Array\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:CreateAccountImplicitlyOptions
方法or属性:requiredLabels?: Array\;|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: CreateAccountImplicitlyOptions
方法 or 属性:authType?: string;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:CreateAccountImplicitlyOptions
方法or属性:authType?: string;|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: CreateAccountImplicitlyOptions
方法 or 属性:parameters?: {[key:string]: Object};|@ohos.account.appAccount.d.ts| +|新增|NA|类名:CreateAccountImplicitlyOptions
方法or属性:parameters?: {[key:string]: Object};|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: SelectAccountsOptions|@ohos.account.appAccount.d.ts| +|新增|NA|类名:SelectAccountsOptions
方法or属性:|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: SelectAccountsOptions
方法 or 属性:allowedAccounts?: Array\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:SelectAccountsOptions
方法or属性:allowedAccounts?: Array\;|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: SelectAccountsOptions
方法 or 属性:allowedOwners?: Array\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:SelectAccountsOptions
方法or属性:allowedOwners?: Array\;|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: SelectAccountsOptions
方法 or 属性:requiredLabels?: Array\;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:SelectAccountsOptions
方法or属性:requiredLabels?: Array\;|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: VerifyCredentialOptions|@ohos.account.appAccount.d.ts| +|新增|NA|类名:VerifyCredentialOptions
方法or属性:|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: VerifyCredentialOptions
方法 or 属性:credentialType?: string;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:VerifyCredentialOptions
方法or属性:credentialType?: string;|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: VerifyCredentialOptions
方法 or 属性:credential?: string;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:VerifyCredentialOptions
方法or属性:credential?: string;|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: VerifyCredentialOptions
方法 or 属性:parameters?: {[key:string]: Object};|@ohos.account.appAccount.d.ts| +|新增|NA|类名:VerifyCredentialOptions
方法or属性:parameters?: {[key:string]: Object};|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: SetPropertiesOptions|@ohos.account.appAccount.d.ts| +|新增|NA|类名:SetPropertiesOptions
方法or属性:|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: SetPropertiesOptions
方法 or 属性:properties?: {[key: string]: Object};|@ohos.account.appAccount.d.ts| +|新增|NA|类名:SetPropertiesOptions
方法or属性:properties?: {[key: string]: Object};|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: SetPropertiesOptions
方法 or 属性:parameters?: {[key: string]: Object};|@ohos.account.appAccount.d.ts| +|新增|NA|类名:SetPropertiesOptions
方法or属性:parameters?: {[key: string]: Object};|@ohos.account.appAccount.d.ts| +|新增|NA|类名:Constants
方法or属性:ACTION_CREATE_ACCOUNT_IMPLICITLY = "createAccountImplicitly"|@ohos.account.appAccount.d.ts| +|新增|NA|类名:Constants
方法or属性:ACTION_AUTH = "auth"|@ohos.account.appAccount.d.ts| +|新增|NA|类名:Constants
方法or属性:ACTION_VERIFY_CREDENTIAL = "verifyCredential"|@ohos.account.appAccount.d.ts| +|新增|NA|类名:Constants
方法or属性:ACTION_SET_AUTHENTICATOR_PROPERTIES = "setAuthenticatorProperties"|@ohos.account.appAccount.d.ts| +|新增|NA|类名:Constants
方法or属性:KEY_REQUIRED_LABELS = "requiredLabels"|@ohos.account.appAccount.d.ts| +|新增|NA|类名:Constants
方法or属性:KEY_BOOLEAN_RESULT = "booleanResult"|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthCallback|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AuthCallback
方法or属性:|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthCallback
方法 or 属性:onResult: (code: number, result?: AuthResult) => void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AuthCallback
方法or属性:onResult: (code: number, result?: AuthResult) => void;|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthCallback
方法 or 属性:onRequestRedirected: (request: Want) => void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AuthCallback
方法or属性:onRequestRedirected: (request: Want) => void;|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthCallback
方法 or 属性:onRequestContinued?: () => void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:AuthCallback
方法or属性:onRequestContinued?: () => void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:Authenticator
方法or属性:createAccountImplicitly(options: CreateAccountImplicitlyOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:Authenticator
方法or属性:auth(name: string, authType: string, options: {[key:string]: Object}, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:Authenticator
方法or属性:verifyCredential(name: string, options: VerifyCredentialOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:Authenticator
方法or属性:setProperties(options: SetPropertiesOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:Authenticator
方法or属性:checkAccountLabels(name: string, labels: Array\, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:Authenticator
方法or属性:checkAccountRemovable(name: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:Authenticator
方法or属性:getRemoteObject(): rpc.RemoteObject;|@ohos.account.appAccount.d.ts| +|新增|NA|类名:DistributedAccountAbility
方法or属性:getOsAccountDistributedInfo(callback: AsyncCallback\): void;|@ohos.account.distributedAccount.d.ts| +|新增|NA|类名:DistributedAccountAbility
方法or属性:getOsAccountDistributedInfo(): Promise\;|@ohos.account.distributedAccount.d.ts| +|新增|NA|类名:DistributedAccountAbility
方法or属性:setOsAccountDistributedInfo(accountInfo: DistributedInfo, callback: AsyncCallback\): void;|@ohos.account.distributedAccount.d.ts| +|新增|NA|类名:DistributedAccountAbility
方法or属性:setOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise\;|@ohos.account.distributedAccount.d.ts| +|新增|NA|类名:DistributedInfo
方法or属性:nickname?: string;|@ohos.account.distributedAccount.d.ts| +|新增|NA|类名:DistributedInfo
方法or属性:avatar?: string;|@ohos.account.distributedAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:checkMultiOsAccountEnabled(callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:checkMultiOsAccountEnabled(): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:checkOsAccountActivated(localId: number, callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:checkOsAccountActivated(localId: number): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:checkOsAccountConstraintEnabled(localId: number, constraint: string, callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:checkOsAccountConstraintEnabled(localId: number, constraint: string): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:checkOsAccountTestable(callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:checkOsAccountTestable(): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:checkOsAccountVerified(callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:checkOsAccountVerified(): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:checkOsAccountVerified(localId: number, callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:checkOsAccountVerified(localId: number): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountCount(callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountCount(): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalId(callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalId(): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalIdForUid(uid: number, callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalIdForUid(uid: number): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalIdForDomain(domainInfo: DomainAccountInfo, callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalIdForDomain(domainInfo: DomainAccountInfo): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountConstraints(localId: number, callback: AsyncCallback\>): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountConstraints(localId: number): Promise\>;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getActivatedOsAccountLocalIds(callback: AsyncCallback\>): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getActivatedOsAccountLocalIds(): Promise\>;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getCurrentOsAccount(callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getCurrentOsAccount(): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountType(callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountType(): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:queryDistributedVirtualDeviceId(callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:queryDistributedVirtualDeviceId(): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalIdForSerialNumber(serialNumber: number, callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalIdForSerialNumber(serialNumber: number): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getSerialNumberForOsAccountLocalId(localId: number, callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getSerialNumberForOsAccountLocalId(localId: number): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getBundleIdForUid(uid: number, callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getBundleIdForUid(uid: number): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:isMainOsAccount(callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:isMainOsAccount(): Promise\;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountConstraintSourceTypes(localId: number, constraint: string, callback: AsyncCallback\>): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AccountManager
方法or属性:getOsAccountConstraintSourceTypes(localId: number, constraint: string): Promise\>;|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: InputerManager|@ohos.account.osAccount.d.ts| +|新增|NA|类名:InputerManager
方法or属性:|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: InputerManager
方法 or 属性:static registerInputer(authType: AuthType, inputer: IInputer): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名: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|类名:InputerManager
方法or属性:static unregisterInputer(authType: AuthType): void;|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: DomainPlugin|@ohos.account.osAccount.d.ts| +|新增|NA|类名:DomainPlugin
方法or属性:|@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|类名: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|类名:DomainAccountManager
方法or属性:|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: DomainAccountManager
方法 or 属性:static registerPlugin(plugin: DomainPlugin): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名: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|类名:DomainAccountManager
方法or属性:static unregisterPlugin(): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:UserIdentityManager
方法or属性:getAuthInfo(callback: AsyncCallback\>): void;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:UserIdentityManager
方法or属性:getAuthInfo(authType: AuthType, callback: AsyncCallback\>): void;|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: AuthType
方法 or 属性:DOMAIN = 1024|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AuthType
方法or属性:DOMAIN = 1024|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: AuthSubType
方法 or 属性:DOMAIN_MIXED = 10240001|@ohos.account.osAccount.d.ts| +|新增|NA|类名:AuthSubType
方法or属性:DOMAIN_MIXED = 10240001|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: ConstraintSourceType|@ohos.account.osAccount.d.ts| +|新增|NA|类名:ConstraintSourceType
方法or属性:|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: ConstraintSourceType
方法 or 属性:CONSTRAINT_NOT_EXIST = 0|@ohos.account.osAccount.d.ts| +|新增|NA|类名:ConstraintSourceType
方法or属性:CONSTRAINT_NOT_EXIST = 0|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: ConstraintSourceType
方法 or 属性:CONSTRAINT_TYPE_BASE = 1|@ohos.account.osAccount.d.ts| +|新增|NA|类名:ConstraintSourceType
方法or属性:CONSTRAINT_TYPE_BASE = 1|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: ConstraintSourceType
方法 or 属性:CONSTRAINT_TYPE_DEVICE_OWNER = 2|@ohos.account.osAccount.d.ts| +|新增|NA|类名:ConstraintSourceType
方法or属性:CONSTRAINT_TYPE_DEVICE_OWNER = 2|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: ConstraintSourceType
方法 or 属性:CONSTRAINT_TYPE_PROFILE_OWNER = 3|@ohos.account.osAccount.d.ts| +|新增|NA|类名:ConstraintSourceType
方法or属性:CONSTRAINT_TYPE_PROFILE_OWNER = 3|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: ConstraintSourceTypeInfo|@ohos.account.osAccount.d.ts| +|新增|NA|类名:ConstraintSourceTypeInfo
方法or属性:|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: ConstraintSourceTypeInfo
方法 or 属性:localId: number;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:ConstraintSourceTypeInfo
方法or属性:localId: number;|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: ConstraintSourceTypeInfo
方法 or 属性:type: ConstraintSourceType;|@ohos.account.osAccount.d.ts| +|新增|NA|类名:ConstraintSourceTypeInfo
方法or属性:type: ConstraintSourceType;|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:addAccount(name: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:addAccount(name: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:addAccount(name: string, extraInfo: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:addAccount(name: string, extraInfo: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:addAccount(name: string, extraInfo?: string): Promise\;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:addAccount(name: string, extraInfo?: string): Promise\;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:addAccountImplicitly(owner: string, authType: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:addAccountImplicitly(owner: string, authType: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:deleteAccount(name: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:deleteAccount(name: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:deleteAccount(name: string): Promise\;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:deleteAccount(name: string): Promise\;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:disableAppAccess(name: string, bundleName: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:disableAppAccess(name: string, bundleName: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:disableAppAccess(name: string, bundleName: string): Promise\;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:disableAppAccess(name: string, bundleName: string): Promise\;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:enableAppAccess(name: string, bundleName: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:enableAppAccess(name: string, bundleName: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:enableAppAccess(name: string, bundleName: string): Promise\;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:enableAppAccess(name: string, bundleName: string): Promise\;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:checkAppAccountSyncEnable(name: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:checkAppAccountSyncEnable(name: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:checkAppAccountSyncEnable(name: string): Promise\;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:checkAppAccountSyncEnable(name: string): Promise\;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:setAccountCredential(name: string, credentialType: string, credential: string,
callback: AsyncCallback\): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:setAccountCredential(name: string, credentialType: string, credential: string,
callback: AsyncCallback\): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:setAccountCredential(name: string, credentialType: string, credential: string): Promise\;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:setAccountCredential(name: string, credentialType: string, credential: string): Promise\;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:setAccountExtraInfo(name: string, extraInfo: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:setAccountExtraInfo(name: string, extraInfo: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:setAccountExtraInfo(name: string, extraInfo: string): Promise\;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:setAccountExtraInfo(name: string, extraInfo: string): Promise\;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:setAppAccountSyncEnable(name: string, isEnable: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:setAppAccountSyncEnable(name: string, isEnable: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:setAppAccountSyncEnable(name: string, isEnable: boolean): Promise\;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:setAppAccountSyncEnable(name: string, isEnable: boolean): Promise\;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:setAssociatedData(name: string, key: string, value: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:setAssociatedData(name: string, key: string, value: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:setAssociatedData(name: string, key: string, value: string): Promise\;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:setAssociatedData(name: string, key: string, value: string): Promise\;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:getAllAccessibleAccounts(callback: AsyncCallback\>): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:getAllAccessibleAccounts(callback: AsyncCallback\>): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:getAllAccessibleAccounts(): Promise\>;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:getAllAccessibleAccounts(): Promise\>;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:getAllAccounts(owner: string, callback: AsyncCallback\>): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:getAllAccounts(owner: string, callback: AsyncCallback\>): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:getAllAccounts(owner: string): Promise\>;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:getAllAccounts(owner: string): Promise\>;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:getAccountCredential(name: string, credentialType: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:getAccountCredential(name: string, credentialType: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:getAccountCredential(name: string, credentialType: string): Promise\;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:getAccountCredential(name: string, credentialType: string): Promise\;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:getAccountExtraInfo(name: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:getAccountExtraInfo(name: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:getAccountExtraInfo(name: string): Promise\;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:getAccountExtraInfo(name: string): Promise\;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:getAssociatedData(name: string, key: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:getAssociatedData(name: string, key: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:getAssociatedData(name: string, key: string): Promise\;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:getAssociatedData(name: string, key: string): Promise\;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:on(type: 'change', owners: Array\, callback: Callback\>): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:on(type: 'change', owners: Array\, callback: Callback\>): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:off(type: 'change', callback?: Callback\>): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:off(type: 'change', callback?: Callback\>): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:authenticate(name: string, owner: string, authType: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:authenticate(name: string, owner: string, authType: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:getOAuthToken(name: string, owner: string, authType: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:getOAuthToken(name: string, owner: string, authType: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:getOAuthToken(name: string, owner: string, authType: string): Promise\;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:getOAuthToken(name: string, owner: string, authType: string): Promise\;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:setOAuthToken(name: string, authType: string, token: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:setOAuthToken(name: string, authType: string, token: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:setOAuthToken(name: string, authType: string, token: string): Promise\;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:setOAuthToken(name: string, authType: string, token: string): Promise\;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:deleteOAuthToken(name: string, owner: string, authType: string, token: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:deleteOAuthToken(name: string, owner: string, authType: string, token: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:deleteOAuthToken(name: string, owner: string, authType: string, token: string): Promise\;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:deleteOAuthToken(name: string, owner: string, authType: string, token: string): Promise\;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean): Promise\;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean): Promise\;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:checkOAuthTokenVisibility(name: string, authType: string, bundleName: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:checkOAuthTokenVisibility(name: string, authType: string, bundleName: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:checkOAuthTokenVisibility(name: string, authType: string, bundleName: string): Promise\;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:checkOAuthTokenVisibility(name: string, authType: string, bundleName: string): Promise\;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:getAllOAuthTokens(name: string, owner: string, callback: AsyncCallback\>): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:getAllOAuthTokens(name: string, owner: string, callback: AsyncCallback\>): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:getAllOAuthTokens(name: string, owner: string): Promise\>;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:getAllOAuthTokens(name: string, owner: string): Promise\>;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:getOAuthList(name: string, authType: string, callback: AsyncCallback\>): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:getOAuthList(name: string, authType: string, callback: AsyncCallback\>): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:getOAuthList(name: string, authType: string): Promise\>;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:getOAuthList(name: string, authType: string): Promise\>;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:getAuthenticatorCallback(sessionId: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:getAuthenticatorCallback(sessionId: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:getAuthenticatorCallback(sessionId: string): Promise\;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:getAuthenticatorCallback(sessionId: string): Promise\;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:getAuthenticatorInfo(owner: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:getAuthenticatorInfo(owner: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AppAccountManager
方法 or 属性:getAuthenticatorInfo(owner: string): Promise\;
废弃版本:N/A|类名:AppAccountManager
方法 or 属性:getAuthenticatorInfo(owner: string): Promise\;
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:OAuthTokenInfo
废弃版本:N/A|类名:OAuthTokenInfo
废弃版本:9
代替接口:appAccount.AuthTokenInfo |@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:Constants
方法 or 属性:ACTION_ADD_ACCOUNT_IMPLICITLY = "addAccountImplicitly"
废弃版本:N/A|类名:Constants
方法 or 属性:ACTION_ADD_ACCOUNT_IMPLICITLY = "addAccountImplicitly"
废弃版本:9
代替接口:appAccount.Constants|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:Constants
方法 or 属性:ACTION_AUTHENTICATE = "authenticate"
废弃版本:N/A|类名:Constants
方法 or 属性:ACTION_AUTHENTICATE = "authenticate"
废弃版本:9
代替接口:appAccount.Constants|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:ResultCode
废弃版本:N/A|类名:ResultCode
废弃版本:9
代替接口:N/A|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:AuthenticatorCallback
废弃版本:N/A|类名:AuthenticatorCallback
废弃版本:9
代替接口:AppAccount.AuthCallback |@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:Authenticator
方法 or 属性:addAccountImplicitly(authType: string, callerBundleName: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void;
废弃版本:N/A|类名:Authenticator
方法 or 属性:addAccountImplicitly(authType: string, callerBundleName: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void;
废弃版本:9
代替接口:appAccount.Authenticator|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:Authenticator
方法 or 属性:authenticate(name: string, authType: string, callerBundleName: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void;
废弃版本:N/A|类名:Authenticator
方法 or 属性:authenticate(name: string, authType: string, callerBundleName: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void;
废弃版本:9
代替接口:appAccount.Authenticator|@ohos.account.appAccount.d.ts| +|废弃版本有变化|类名:DistributedAccountAbility
方法 or 属性:queryOsAccountDistributedInfo(callback: AsyncCallback\): void;
废弃版本:N/A|类名:DistributedAccountAbility
方法 or 属性:queryOsAccountDistributedInfo(callback: AsyncCallback\): void;
废弃版本:9
代替接口:distributedAccount.DistributedAccountAbility|@ohos.account.distributedAccount.d.ts| +|废弃版本有变化|类名:DistributedAccountAbility
方法 or 属性:queryOsAccountDistributedInfo(): Promise\;
废弃版本:N/A|类名:DistributedAccountAbility
方法 or 属性:queryOsAccountDistributedInfo(): Promise\;
废弃版本:9
代替接口:distributedAccount.DistributedAccountAbility|@ohos.account.distributedAccount.d.ts| +|废弃版本有变化|类名:DistributedAccountAbility
方法 or 属性:updateOsAccountDistributedInfo(accountInfo: DistributedInfo, callback: AsyncCallback\): void;
废弃版本:N/A|类名:DistributedAccountAbility
方法 or 属性:updateOsAccountDistributedInfo(accountInfo: DistributedInfo, callback: AsyncCallback\): void;
废弃版本:9
代替接口:distributedAccount.DistributedAccountAbility|@ohos.account.distributedAccount.d.ts| +|废弃版本有变化|类名:DistributedAccountAbility
方法 or 属性:updateOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise\;
废弃版本:N/A|类名:DistributedAccountAbility
方法 or 属性:updateOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise\;
废弃版本:9
代替接口:distributedAccount.DistributedAccountAbility|@ohos.account.distributedAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:isMultiOsAccountEnable(callback: AsyncCallback\): void;
废弃版本:N/A|类名:AccountManager
方法 or 属性:isMultiOsAccountEnable(callback: AsyncCallback\): void;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:isMultiOsAccountEnable(): Promise\;
废弃版本:N/A|类名:AccountManager
方法 or 属性:isMultiOsAccountEnable(): Promise\;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:isOsAccountActived(localId: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AccountManager
方法 or 属性:isOsAccountActived(localId: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:isOsAccountActived(localId: number): Promise\;
废弃版本:N/A|类名:AccountManager
方法 or 属性:isOsAccountActived(localId: number): Promise\;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:isOsAccountConstraintEnable(localId: number, constraint: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AccountManager
方法 or 属性:isOsAccountConstraintEnable(localId: number, constraint: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:isOsAccountConstraintEnable(localId: number, constraint: string): Promise\;
废弃版本:N/A|类名:AccountManager
方法 or 属性:isOsAccountConstraintEnable(localId: number, constraint: string): Promise\;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:isTestOsAccount(callback: AsyncCallback\): void;
废弃版本:N/A|类名:AccountManager
方法 or 属性:isTestOsAccount(callback: AsyncCallback\): void;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:isTestOsAccount(): Promise\;
废弃版本:N/A|类名:AccountManager
方法 or 属性:isTestOsAccount(): Promise\;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:isOsAccountVerified(callback: AsyncCallback\): void;
废弃版本:N/A|类名:AccountManager
方法 or 属性:isOsAccountVerified(callback: AsyncCallback\): void;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:isOsAccountVerified(localId: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AccountManager
方法 or 属性:isOsAccountVerified(localId: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:isOsAccountVerified(localId?: number): Promise\;
废弃版本:N/A|类名:AccountManager
方法 or 属性:isOsAccountVerified(localId?: number): Promise\;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:getCreatedOsAccountsCount(callback: AsyncCallback\): void;
废弃版本:N/A|类名:AccountManager
方法 or 属性:getCreatedOsAccountsCount(callback: AsyncCallback\): void;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:getCreatedOsAccountsCount(): Promise\;
废弃版本:N/A|类名:AccountManager
方法 or 属性:getCreatedOsAccountsCount(): Promise\;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:getOsAccountLocalIdFromProcess(callback: AsyncCallback\): void;
废弃版本:N/A|类名:AccountManager
方法 or 属性:getOsAccountLocalIdFromProcess(callback: AsyncCallback\): void;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:getOsAccountLocalIdFromProcess(): Promise\;
废弃版本:N/A|类名:AccountManager
方法 or 属性:getOsAccountLocalIdFromProcess(): Promise\;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:getOsAccountLocalIdFromUid(uid: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AccountManager
方法 or 属性:getOsAccountLocalIdFromUid(uid: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:getOsAccountLocalIdFromUid(uid: number): Promise\;
废弃版本:N/A|类名:AccountManager
方法 or 属性:getOsAccountLocalIdFromUid(uid: number): Promise\;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AccountManager
方法 or 属性:getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo, callback: AsyncCallback\): void;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo): Promise\;
废弃版本:N/A|类名:AccountManager
方法 or 属性:getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo): Promise\;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:getOsAccountAllConstraints(localId: number, callback: AsyncCallback\>): void;
废弃版本:N/A|类名:AccountManager
方法 or 属性:getOsAccountAllConstraints(localId: number, callback: AsyncCallback\>): void;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:getOsAccountAllConstraints(localId: number): Promise\>;
废弃版本:N/A|类名:AccountManager
方法 or 属性:getOsAccountAllConstraints(localId: number): Promise\>;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:queryActivatedOsAccountIds(callback: AsyncCallback\>): void;
废弃版本:N/A|类名:AccountManager
方法 or 属性:queryActivatedOsAccountIds(callback: AsyncCallback\>): void;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:queryActivatedOsAccountIds(): Promise\>;
废弃版本:N/A|类名:AccountManager
方法 or 属性:queryActivatedOsAccountIds(): Promise\>;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:queryCurrentOsAccount(callback: AsyncCallback\): void;
废弃版本:N/A|类名:AccountManager
方法 or 属性:queryCurrentOsAccount(callback: AsyncCallback\): void;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:queryCurrentOsAccount(): Promise\;
废弃版本:N/A|类名:AccountManager
方法 or 属性:queryCurrentOsAccount(): Promise\;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:getOsAccountTypeFromProcess(callback: AsyncCallback\): void;
废弃版本:N/A|类名:AccountManager
方法 or 属性:getOsAccountTypeFromProcess(callback: AsyncCallback\): void;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:getOsAccountTypeFromProcess(): Promise\;
废弃版本:N/A|类名:AccountManager
方法 or 属性:getOsAccountTypeFromProcess(): Promise\;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:getDistributedVirtualDeviceId(callback: AsyncCallback\): void;
废弃版本:N/A|类名:AccountManager
方法 or 属性:getDistributedVirtualDeviceId(callback: AsyncCallback\): void;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:getDistributedVirtualDeviceId(): Promise\;
废弃版本:N/A|类名:AccountManager
方法 or 属性:getDistributedVirtualDeviceId(): Promise\;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:getOsAccountLocalIdBySerialNumber(serialNumber: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AccountManager
方法 or 属性:getOsAccountLocalIdBySerialNumber(serialNumber: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:getOsAccountLocalIdBySerialNumber(serialNumber: number): Promise\;
废弃版本:N/A|类名:AccountManager
方法 or 属性:getOsAccountLocalIdBySerialNumber(serialNumber: number): Promise\;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:getSerialNumberByOsAccountLocalId(localId: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AccountManager
方法 or 属性:getSerialNumberByOsAccountLocalId(localId: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|废弃版本有变化|类名:AccountManager
方法 or 属性:getSerialNumberByOsAccountLocalId(localId: number): Promise\;
废弃版本:N/A|类名:AccountManager
方法 or 属性:getSerialNumberByOsAccountLocalId(localId: number): Promise\;
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|起始版本有变化|类名:OAuthTokenInfo
方法 or 属性:authType: string;
起始版本:N/A|类名:OAuthTokenInfo
方法 or 属性:authType: string;
起始版本:8|@ohos.account.appAccount.d.ts| +|起始版本有变化|类名:OAuthTokenInfo
方法 or 属性:token: string;
起始版本:N/A|类名:OAuthTokenInfo
方法 or 属性:token: string;
起始版本:8|@ohos.account.appAccount.d.ts| +|起始版本有变化|类名:Constants
方法 or 属性:ACTION_ADD_ACCOUNT_IMPLICITLY = "addAccountImplicitly"
起始版本:N/A|类名:Constants
方法 or 属性:ACTION_ADD_ACCOUNT_IMPLICITLY = "addAccountImplicitly"
起始版本:8|@ohos.account.appAccount.d.ts| +|起始版本有变化|类名:Constants
方法 or 属性:ACTION_AUTHENTICATE = "authenticate"
起始版本:N/A|类名:Constants
方法 or 属性:ACTION_AUTHENTICATE = "authenticate"
起始版本:8|@ohos.account.appAccount.d.ts| +|起始版本有变化|类名:Constants
方法 or 属性:KEY_NAME = "name"
起始版本:N/A|类名:Constants
方法 or 属性:KEY_NAME = "name"
起始版本:8|@ohos.account.appAccount.d.ts| +|起始版本有变化|类名:Constants
方法 or 属性:KEY_OWNER = "owner"
起始版本:N/A|类名:Constants
方法 or 属性:KEY_OWNER = "owner"
起始版本:8|@ohos.account.appAccount.d.ts| +|起始版本有变化|类名:Constants
方法 or 属性:KEY_TOKEN = "token"
起始版本:N/A|类名:Constants
方法 or 属性:KEY_TOKEN = "token"
起始版本:8|@ohos.account.appAccount.d.ts| +|起始版本有变化|类名:Constants
方法 or 属性:KEY_ACTION = "action"
起始版本:N/A|类名:Constants
方法 or 属性:KEY_ACTION = "action"
起始版本:8|@ohos.account.appAccount.d.ts| +|起始版本有变化|类名:Constants
方法 or 属性:KEY_AUTH_TYPE = "authType"
起始版本:N/A|类名:Constants
方法 or 属性:KEY_AUTH_TYPE = "authType"
起始版本:8|@ohos.account.appAccount.d.ts| +|起始版本有变化|类名:Constants
方法 or 属性:KEY_SESSION_ID = "sessionId"
起始版本:N/A|类名:Constants
方法 or 属性:KEY_SESSION_ID = "sessionId"
起始版本:8|@ohos.account.appAccount.d.ts| +|起始版本有变化|类名:Constants
方法 or 属性:KEY_CALLER_PID = "callerPid"
起始版本:N/A|类名:Constants
方法 or 属性:KEY_CALLER_PID = "callerPid"
起始版本:8|@ohos.account.appAccount.d.ts| +|起始版本有变化|类名:Constants
方法 or 属性:KEY_CALLER_UID = "callerUid"
起始版本:N/A|类名:Constants
方法 or 属性:KEY_CALLER_UID = "callerUid"
起始版本:8|@ohos.account.appAccount.d.ts| +|起始版本有变化|类名:Constants
方法 or 属性:KEY_CALLER_BUNDLE_NAME = "callerBundleName"
起始版本:N/A|类名:Constants
方法 or 属性:KEY_CALLER_BUNDLE_NAME = "callerBundleName"
起始版本:8|@ohos.account.appAccount.d.ts| +|起始版本有变化|类名:DistributedInfo
方法 or 属性:name: string;
起始版本:N/A|类名:DistributedInfo
方法 or 属性:name: string;
起始版本:7|@ohos.account.distributedAccount.d.ts| +|起始版本有变化|类名:DistributedInfo
方法 or 属性:id: string;
起始版本:N/A|类名:DistributedInfo
方法 or 属性:id: string;
起始版本:7|@ohos.account.distributedAccount.d.ts| +|起始版本有变化|类名:DistributedInfo
方法 or 属性:event: string;
起始版本:N/A|类名:DistributedInfo
方法 or 属性:event: string;
起始版本:7|@ohos.account.distributedAccount.d.ts| +|起始版本有变化|类名:PINAuth
方法 or 属性:unregisterInputer(): void;
起始版本:N/A|类名:PINAuth
方法 or 属性:unregisterInputer(): void;
起始版本:8|@ohos.account.osAccount.d.ts| +|权限有变化|类名:UserIdentityManager
方法 or 属性:getAuthInfo(authType?: AuthType): Promise\>;
权限:ohos.permission.ACCESS_USER_IDM|类名:UserIdentityManager
方法 or 属性:getAuthInfo(authType?: AuthType): Promise\>;
权限:ohos.permission.USE_USER_IDM|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:activateOsAccount(localId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 12300001, 12300002, 12300003, 12300008, 12300009|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:activateOsAccount(localId: number): Promise\;
错误码内容: 201, 401, 12300001, 12300002, 12300003, 12300008, 12300009|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:removeOsAccount(localId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 12300001, 12300002, 12300003, 12300008|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:removeOsAccount(localId: number): Promise\;
错误码内容: 201, 401, 12300001, 12300002, 12300003, 12300008|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:setOsAccountConstraints(localId: number, constraints: Array\, enable: boolean,
callback: AsyncCallback\): void;
错误码内容: 201, 401, 12300001, 12300002, 12300003, 12300008|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:setOsAccountConstraints(localId: number, constraints: Array\, enable: boolean): Promise\;
错误码内容: 201, 401, 12300001, 12300002, 12300003, 12300008|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:setOsAccountName(localId: number, localName: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 12300001, 12300002, 12300003, 12300008|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:setOsAccountName(localId: number, localName: string): Promise\;
错误码内容: 201, 401, 12300001, 12300002, 12300003, 12300008|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:queryMaxOsAccountNumber(callback: AsyncCallback\): void;
错误码内容: 401, 12300001|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:queryMaxOsAccountNumber(): Promise\;
错误码内容: 401, 12300001|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:queryAllCreatedOsAccounts(callback: AsyncCallback\>): void;
错误码内容: 201, 401, 12300001|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:queryAllCreatedOsAccounts(): Promise\>;
错误码内容: 201, 401, 12300001|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:createOsAccount(localName: string, type: OsAccountType, callback: AsyncCallback\): void;
错误码内容: 201, 401, 12300001, 12300002, 12300005, 12300006, 12300007|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:createOsAccount(localName: string, type: OsAccountType): Promise\;
错误码内容: 201, 401, 12300001, 12300002, 12300005, 12300006, 12300007|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:createOsAccountForDomain(type: OsAccountType, domainInfo: DomainAccountInfo, callback: AsyncCallback\): void;
错误码内容: 201, 401, 12300001, 12300002, 12300005, 12300006, 12300007|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:createOsAccountForDomain(type: OsAccountType, domainInfo: DomainAccountInfo): Promise\;
错误码内容: 201, 401, 12300001, 12300002, 12300005, 12300006, 12300007|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:queryOsAccountById(localId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 12300001, 12300002, 12300003|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:queryOsAccountById(localId: number): Promise\;
错误码内容: 201, 401, 12300001, 12300002, 12300003|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:getOsAccountProfilePhoto(localId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 12300001, 12300002, 12300003|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:getOsAccountProfilePhoto(localId: number): Promise\;
错误码内容: 201, 401, 12300001, 12300002, 12300003|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:setOsAccountProfilePhoto(localId: number, photo: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 12300001, 12300002, 12300003, 12300008|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:setOsAccountProfilePhoto(localId: number, photo: string): Promise\;
错误码内容: 201, 401, 12300001, 12300002, 12300003, 12300008|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:on(type: 'activate' \| 'activating', name: string, callback: Callback\): void;
错误码内容: 201, 401, 12300001, 12300002, 12300011|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:on(type: 'activate' \| 'activating', name: string, callback: Callback\): void;
错误码内容: 201, 401, 12300001, 12300002, 12300011|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:off(type: 'activate' \| 'activating', name: string, callback?: Callback\): void;
错误码内容: 201, 401, 12300001, 12300002, 12300012|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:AccountManager
方法 or 属性:off(type: 'activate' \| 'activating', name: string, callback?: Callback\): void;
错误码内容: 201, 401, 12300001, 12300002, 12300012|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:UserAuth
方法 or 属性:getAvailableStatus(authType: AuthType, authTrustLevel: AuthTrustLevel): number;
错误码内容: 201, 401, 12300001, 12300002|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:UserAuth
方法 or 属性:getProperty(request: GetPropertyRequest, callback: AsyncCallback\): void;
错误码内容: 201, 401, 12300001, 12300002|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:UserAuth
方法 or 属性:getProperty(request: GetPropertyRequest): Promise\;
错误码内容: 201, 401, 12300001, 12300002|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:UserAuth
方法 or 属性:auth(challenge: Uint8Array, authType: AuthType, authTrustLevel: AuthTrustLevel, callback: IUserAuthCallback): Uint8Array;
错误码内容: 201, 401, 12300001, 12300002, 12300101, 12300105, 12300106, 12300110, 12300111, 12300112|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:UserAuth
方法 or 属性:authUser(userId: number, challenge: Uint8Array, authType: AuthType, authTrustLevel: AuthTrustLevel, callback: IUserAuthCallback): Uint8Array;
错误码内容: 201, 401, 12300001, 12300002, 12300101, 12300105, 12300106, 12300110, 12300111, 12300112|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:PINAuth
方法 or 属性:unregisterInputer(): void;
错误码内容: 201|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:UserIdentityManager
方法 or 属性:openSession(callback: AsyncCallback\): void;
错误码内容: 201, 401, 12300001|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:UserIdentityManager
方法 or 属性:openSession(): Promise\;
错误码内容: 201, 401, 12300001|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:UserIdentityManager
方法 or 属性:addCredential(credentialInfo: CredentialInfo, callback: IIdmCallback): void;
错误码内容: 201, 401, 12300001, 12300002, 12300101, 12300106|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:UserIdentityManager
方法 or 属性:updateCredential(credentialInfo: CredentialInfo, callback: IIdmCallback): void;
错误码内容: 201, 401, 12300001, 12300002, 12300101, 12300106|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:UserIdentityManager
方法 or 属性:closeSession(): void;
错误码内容: 201|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:UserIdentityManager
方法 or 属性:delUser(token: Uint8Array, callback: IIdmCallback): void;
错误码内容: 201, 401, 12300001, 12300101|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:UserIdentityManager
方法 or 属性:delCred(credentialId: Uint8Array, token: Uint8Array, callback: IIdmCallback): void;
错误码内容: 201, 401, 12300001, 12300002, 12300101, 12300102|@ohos.account.osAccount.d.ts| +|新增(错误码)|NA|类名:UserIdentityManager
方法 or 属性:getAuthInfo(authType?: AuthType): Promise\>;
错误码内容: 201, 401, 12300001, 12300002, 12300102|@ohos.account.osAccount.d.ts| +|新增(权限)|类名:AccountManager
方法 or 属性:isOsAccountVerified(callback: AsyncCallback\): void;
权限:N/A|类名:AccountManager
方法 or 属性:isOsAccountVerified(callback: AsyncCallback\): void;
权限:ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS|@ohos.account.osAccount.d.ts| +|函数有变化|类名:AppAccountManager
方法 or 属性:getAllAccounts(owner: string, callback: AsyncCallback\>): void;
|类名:AppAccountManager
方法 or 属性:getAllAccounts(callback: AsyncCallback\>): void;
|@ohos.account.appAccount.d.ts| +|函数有变化|类名:AppAccountManager
方法 or 属性:getAllAccounts(owner: string): Promise\>;
|类名:AppAccountManager
方法 or 属性:getAllAccounts(): Promise\>;
|@ohos.account.appAccount.d.ts| +|函数有变化|类名:AppAccountManager
方法 or 属性:getAllAccounts(owner: string, callback: AsyncCallback\>): void;
|类名:AppAccountManager
方法 or 属性:getAllAccounts(owner: string, callback: AsyncCallback\>): void;
|@ohos.account.appAccount.d.ts| +|函数有变化|类名:AppAccountManager
方法 or 属性:getAllAccounts(owner: string): Promise\>;
|类名:AppAccountManager
方法 or 属性:getAllAccounts(owner: string): Promise\>;
|@ohos.account.appAccount.d.ts| +|函数有变化|类名:UserAuth
方法 or 属性:setProperty(request: SetPropertyRequest, callback: AsyncCallback\): void;
|类名:UserAuth
方法 or 属性:setProperty(request: SetPropertyRequest, callback: AsyncCallback\): void;
|@ohos.account.osAccount.d.ts| +|函数有变化|类名:UserAuth
方法 or 属性:setProperty(request: SetPropertyRequest): Promise\;
|类名:UserAuth
方法 or 属性:setProperty(request: SetPropertyRequest): Promise\;
|@ohos.account.osAccount.d.ts| +|函数有变化|类名:UserAuth
方法 or 属性:cancelAuth(contextID: Uint8Array): number;
|类名:UserAuth
方法 or 属性:cancelAuth(contextID: Uint8Array): void;
|@ohos.account.osAccount.d.ts| +|函数有变化|类名:PINAuth
方法 or 属性:registerInputer(inputer: IInputer): boolean;
|类名:PINAuth
方法 or 属性:registerInputer(inputer: IInputer): void;
|@ohos.account.osAccount.d.ts| +|函数有变化|类名:UserIdentityManager
方法 or 属性:cancel(challenge: Uint8Array): number;
|类名:UserIdentityManager
方法 or 属性:cancel(challenge: Uint8Array): void;
|@ohos.account.osAccount.d.ts| +|函数有变化|类名:IInputData
方法 or 属性:onSetData: (pinSubType: AuthSubType, data: Uint8Array) => void;
|类名:IInputData
方法 or 属性:onSetData: (authSubType: AuthSubType, data: Uint8Array) => void;
|@ohos.account.osAccount.d.ts| +|函数有变化|类名:IInputer
方法 or 属性:onGetData: (callback: IInputData) => void;
|类名:IInputer
方法 or 属性:onGetData: (authSubType: AuthSubType, callback: IInputData) => void;
|@ohos.account.osAccount.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-application.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-application.md new file mode 100644 index 0000000000000000000000000000000000000000..943e6f09c10353ebf29825097e650f504682aecc --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-application.md @@ -0,0 +1,79 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:Contact
方法or属性:readonly id?: number|@ohos.contact.d.ts| +|新增|NA|类名:Contact
方法or属性:readonly key?: string|@ohos.contact.d.ts| +|新增|NA|类名:Contact
方法or属性:contactAttributes?: ContactAttributes|@ohos.contact.d.ts| +|新增|NA|类名:Contact
方法or属性:emails?: Email[]|@ohos.contact.d.ts| +|新增|NA|类名:Contact
方法or属性:events?: Event[]|@ohos.contact.d.ts| +|新增|NA|类名:Contact
方法or属性:groups?: Group[]|@ohos.contact.d.ts| +|新增|NA|类名:Contact
方法or属性:imAddresses?: ImAddress[]|@ohos.contact.d.ts| +|新增|NA|类名:Contact
方法or属性:phoneNumbers?: PhoneNumber[]|@ohos.contact.d.ts| +|新增|NA|类名:Contact
方法or属性:portrait?: Portrait|@ohos.contact.d.ts| +|新增|NA|类名:Contact
方法or属性:postalAddresses?: PostalAddress[]|@ohos.contact.d.ts| +|新增|NA|类名:Contact
方法or属性:relations?: Relation[]|@ohos.contact.d.ts| +|新增|NA|类名:Contact
方法or属性:sipAddresses?: SipAddress[]|@ohos.contact.d.ts| +|新增|NA|类名:Contact
方法or属性:websites?: Website[]|@ohos.contact.d.ts| +|新增|NA|类名:Contact
方法or属性:name?: Name|@ohos.contact.d.ts| +|新增|NA|类名:Contact
方法or属性:nickName?: NickName|@ohos.contact.d.ts| +|新增|NA|类名:Contact
方法or属性:note?: Note|@ohos.contact.d.ts| +|新增|NA|类名:Contact
方法or属性:organization?: Organization|@ohos.contact.d.ts| +|新增|NA|类名:Email
方法or属性:labelName?: string|@ohos.contact.d.ts| +|新增|NA|类名:Email
方法or属性:displayName?: string|@ohos.contact.d.ts| +|新增|NA|类名:Email
方法or属性:labelId?: number|@ohos.contact.d.ts| +|新增|NA|类名:Event
方法or属性:labelName?: string|@ohos.contact.d.ts| +|新增|NA|类名:Event
方法or属性:labelId?: number|@ohos.contact.d.ts| +|新增|NA|类名:Group
方法or属性:groupId?: number|@ohos.contact.d.ts| +|新增|NA|类名:Holder
方法or属性:readonly displayName?: string|@ohos.contact.d.ts| +|新增|NA|类名:Holder
方法or属性:holderId?: number|@ohos.contact.d.ts| +|新增|NA|类名:ImAddress
方法or属性:labelName?: string|@ohos.contact.d.ts| +|新增|NA|类名:ImAddress
方法or属性:labelId?: number|@ohos.contact.d.ts| +|新增|NA|类名:Name
方法or属性:familyName?: string|@ohos.contact.d.ts| +|新增|NA|类名:Name
方法or属性:familyNamePhonetic?: string|@ohos.contact.d.ts| +|新增|NA|类名:Name
方法or属性:givenName?: string|@ohos.contact.d.ts| +|新增|NA|类名:Name
方法or属性:givenNamePhonetic?: string|@ohos.contact.d.ts| +|新增|NA|类名:Name
方法or属性:middleName?: string|@ohos.contact.d.ts| +|新增|NA|类名:Name
方法or属性:middleNamePhonetic?: string|@ohos.contact.d.ts| +|新增|NA|类名:Name
方法or属性:namePrefix?: string|@ohos.contact.d.ts| +|新增|NA|类名:Name
方法or属性:nameSuffix?: string|@ohos.contact.d.ts| +|新增|NA|类名:Organization
方法or属性:title?: string|@ohos.contact.d.ts| +|新增|NA|类名:PhoneNumber
方法or属性:labelName?: string|@ohos.contact.d.ts| +|新增|NA|类名:PhoneNumber
方法or属性:labelId?: number|@ohos.contact.d.ts| +|新增|NA|类名:PostalAddress
方法or属性:city?: string|@ohos.contact.d.ts| +|新增|NA|类名:PostalAddress
方法or属性:country?: string|@ohos.contact.d.ts| +|新增|NA|类名:PostalAddress
方法or属性:labelName?: string|@ohos.contact.d.ts| +|新增|NA|类名:PostalAddress
方法or属性:neighborhood?: string|@ohos.contact.d.ts| +|新增|NA|类名:PostalAddress
方法or属性:pobox?: string|@ohos.contact.d.ts| +|新增|NA|类名:PostalAddress
方法or属性:postcode?: string|@ohos.contact.d.ts| +|新增|NA|类名:PostalAddress
方法or属性:region?: string|@ohos.contact.d.ts| +|新增|NA|类名:PostalAddress
方法or属性:street?: string|@ohos.contact.d.ts| +|新增|NA|类名:PostalAddress
方法or属性:labelId?: number|@ohos.contact.d.ts| +|新增|NA|类名:Relation
方法or属性:labelName?: string|@ohos.contact.d.ts| +|新增|NA|类名:Relation
方法or属性:labelId?: number|@ohos.contact.d.ts| +|新增|NA|类名:SipAddress
方法or属性:labelName?: string|@ohos.contact.d.ts| +|新增|NA|类名:SipAddress
方法or属性:labelId?: number|@ohos.contact.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
代替接口:N/A|@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
代替接口:N/A|@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
代替接口:N/A|@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| +|新增(错误码)|NA|类名:call
方法 or 属性:function makeCall(phoneNumber: string, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function makeCall(phoneNumber: string): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(权限)|类名:contact
方法 or 属性:function addContact(contact: Contact, callback: AsyncCallback\): void;
权限:N/A|类名:contact
方法 or 属性:function addContact(contact: Contact, callback: AsyncCallback\): void;
权限:ohos.permission.WRITE_CONTACTS|@ohos.contact.d.ts| +|新增(权限)|类名:contact
方法 or 属性:function addContact(contact: Contact): Promise\;
权限:N/A|类名:contact
方法 or 属性:function addContact(contact: Contact): Promise\;
权限:ohos.permission.WRITE_CONTACTS|@ohos.contact.d.ts| +|新增(权限)|类名:contact
方法 or 属性:function deleteContact(key: string, callback: AsyncCallback\): void;
权限:N/A|类名:contact
方法 or 属性:function deleteContact(key: string, callback: AsyncCallback\): void;
权限:ohos.permission.WRITE_CONTACTS|@ohos.contact.d.ts| +|新增(权限)|类名:contact
方法 or 属性:function deleteContact(key: string): Promise\;
权限:N/A|类名:contact
方法 or 属性:function deleteContact(key: string): Promise\;
权限:ohos.permission.WRITE_CONTACTS|@ohos.contact.d.ts| +|新增(权限)|类名:contact
方法 or 属性:function updateContact(contact: Contact, callback: AsyncCallback\): void;
权限:N/A|类名:contact
方法 or 属性:function updateContact(contact: Contact, callback: AsyncCallback\): void;
权限:ohos.permission.WRITE_CONTACTS|@ohos.contact.d.ts| +|新增(权限)|类名:contact
方法 or 属性:function updateContact(contact: Contact, attrs: ContactAttributes, callback: AsyncCallback\): void;
权限:N/A|类名:contact
方法 or 属性:function updateContact(contact: Contact, attrs: ContactAttributes, callback: AsyncCallback\): void;
权限:ohos.permission.WRITE_CONTACTS|@ohos.contact.d.ts| +|新增(权限)|类名:contact
方法 or 属性:function updateContact(contact: Contact, attrs?: ContactAttributes): Promise\;
权限:N/A|类名:contact
方法 or 属性:function updateContact(contact: Contact, attrs?: ContactAttributes): Promise\;
权限:ohos.permission.WRITE_CONTACTS|@ohos.contact.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| +|SysCap有变化|类名:contact
方法 or 属性:function selectContact(callback: AsyncCallback\>): void;
SysCap:SystemCapability.Applications.ContactsData|类名:contact
方法 or 属性:function selectContact(callback: AsyncCallback\>): void;
SysCap:SystemCapability.Applications.Contacts|@ohos.contact.d.ts| +|SysCap有变化|类名:contact
方法 or 属性:function selectContact(): Promise\>;
SysCap:SystemCapability.Applications.ContactsData|类名:contact
方法 or 属性:function selectContact(): Promise\>;
SysCap:SystemCapability.Applications.Contacts|@ohos.contact.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-arkui.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-arkui.md new file mode 100644 index 0000000000000000000000000000000000000000..810b0fc4d72bbc2816961d70640476a7aee64ab3 --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-arkui.md @@ -0,0 +1,2213 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: canvaspattern
类名: CanvasPattern|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: CanvasPattern
方法 or 属性: setTransform(transform?: Matrix2D): void;|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法 or 属性: scaleX?: number;|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法 or 属性: rotateY?: number;|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法 or 属性: rotateX?: number;|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法 or 属性: scaleY?: number;|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法 or 属性: translateX?: number;|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法 or 属性: translateY?: number;|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法 or 属性: identity(): Matrix2D;|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法 or 属性: invert(): Matrix2D;|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法 or 属性: multiply(other?: Matrix2D): Matrix2D;|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法 or 属性: rotate(rx?: number, ry?: number): Matrix2D;|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法 or 属性: translate(tx?: number, ty?: number): Matrix2D;|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法 or 属性: scale(sx?: number, sy?: number): Matrix2D;|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法 or 属性: constructor();|canvaspattern.d.ts| +|新增|NA|类名:AnimatorResult
方法or属性:reset(options: AnimatorOptions): void;|@ohos.animator.d.ts| +|新增|NA|类名:Animator
方法or属性:static create(options: AnimatorOptions): AnimatorResult;|@ohos.animator.d.ts| +|新增|NA|模块名: ohos.curves
类名: ICurve|@ohos.curves.d.ts| +|新增|NA|类名:ICurve
方法or属性:|@ohos.curves.d.ts| +|新增|NA|模块名: ohos.curves
类名: ICurve
方法 or 属性:interpolate(fraction : number) : number;|@ohos.curves.d.ts| +|新增|NA|类名:ICurve
方法or属性:interpolate(fraction : number) : number;|@ohos.curves.d.ts| +|新增|NA|类名:curves
方法or属性:function initCurve(curve?: Curve): ICurve;|@ohos.curves.d.ts| +|新增|NA|类名:curves
方法or属性:function stepsCurve(count: number, end: boolean): ICurve;|@ohos.curves.d.ts| +|新增|NA|类名:curves
方法or属性:function cubicBezierCurve(x1: number, y1: number, x2: number, y2: number): ICurve;|@ohos.curves.d.ts| +|新增|NA|类名:curves
方法or属性:function springCurve(velocity: number, mass: number, stiffness: number, damping: number): ICurve;|@ohos.curves.d.ts| +|新增|NA|类名:curves
方法or属性:function springMotion(response?: number, dampingFraction?: number, overlapDuration?: number): ICurve;|@ohos.curves.d.ts| +|新增|NA|类名:curves
方法or属性:function responsiveSpringMotion(response?: number, dampingFraction?: number, overlapDuration?: number): ICurve;|@ohos.curves.d.ts| +|新增|NA|模块名: ohos.font
类名: font|@ohos.font.d.ts| +|新增|NA|模块名: ohos.font
类名: FontOptions|@ohos.font.d.ts| +|新增|NA|模块名: ohos.font
类名: FontOptions
方法 or 属性: familyName: string;|@ohos.font.d.ts| +|新增|NA|模块名: ohos.font
类名: FontOptions
方法 or 属性: familySrc: string;|@ohos.font.d.ts| +|新增|NA|模块名: ohos.font
类名: font
方法 or 属性: function registerFont(options: FontOptions):void;|@ohos.font.d.ts| +|新增|NA|模块名: ohos.measure
类名: MeasureOptions|@ohos.measure.d.ts| +|新增|NA|模块名: ohos.measure
类名: MeasureOptions
方法 or 属性: textContent: string;|@ohos.measure.d.ts| +|新增|NA|模块名: ohos.measure
类名: MeasureOptions
方法 or 属性: fontSize?: number \| string \| Resource;|@ohos.measure.d.ts| +|新增|NA|模块名: ohos.measure
类名: MeasureOptions
方法 or 属性: fontStyle?: number \| FontStyle;|@ohos.measure.d.ts| +|新增|NA|模块名: ohos.measure
类名: MeasureOptions
方法 or 属性: fontWeight?: number \| string \| FontWeight;|@ohos.measure.d.ts| +|新增|NA|模块名: ohos.measure
类名: MeasureOptions
方法 or 属性: fontFamily?: string \| Resource;|@ohos.measure.d.ts| +|新增|NA|模块名: ohos.measure
类名: MeasureOptions
方法 or 属性: letterSpacing?: number \| string;|@ohos.measure.d.ts| +|新增|NA|模块名: ohos.measure
类名: MeasureText|@ohos.measure.d.ts| +|新增|NA|模块名: ohos.measure
类名: MeasureText
方法 or 属性: static measureText(options: MeasureOptions): number;|@ohos.measure.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: PushParameterForStage|@ohos.pluginComponent.d.ts| +|新增|NA|类名:PushParameterForStage
方法or属性:|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: PushParameterForStage
方法 or 属性:owner: Want;|@ohos.pluginComponent.d.ts| +|新增|NA|类名:PushParameterForStage
方法or属性:owner: Want;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: PushParameterForStage
方法 or 属性:target: Want;|@ohos.pluginComponent.d.ts| +|新增|NA|类名:PushParameterForStage
方法or属性:target: Want;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: PushParameterForStage
方法 or 属性:name: string;|@ohos.pluginComponent.d.ts| +|新增|NA|类名:PushParameterForStage
方法or属性:name: string;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: PushParameterForStage
方法 or 属性:data: KVObject;|@ohos.pluginComponent.d.ts| +|新增|NA|类名:PushParameterForStage
方法or属性:data: KVObject;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: PushParameterForStage
方法 or 属性:extraData: KVObject;|@ohos.pluginComponent.d.ts| +|新增|NA|类名:PushParameterForStage
方法or属性:extraData: KVObject;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: PushParameterForStage
方法 or 属性:jsonPath?: string;|@ohos.pluginComponent.d.ts| +|新增|NA|类名:PushParameterForStage
方法or属性:jsonPath?: string;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: RequestParameterForStage|@ohos.pluginComponent.d.ts| +|新增|NA|类名:RequestParameterForStage
方法or属性:|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: RequestParameterForStage
方法 or 属性:owner: Want;|@ohos.pluginComponent.d.ts| +|新增|NA|类名:RequestParameterForStage
方法or属性:owner: Want;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: RequestParameterForStage
方法 or 属性:target: Want;|@ohos.pluginComponent.d.ts| +|新增|NA|类名:RequestParameterForStage
方法or属性:target: Want;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: RequestParameterForStage
方法 or 属性:name: string;|@ohos.pluginComponent.d.ts| +|新增|NA|类名:RequestParameterForStage
方法or属性:name: string;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: RequestParameterForStage
方法 or 属性:data: KVObject;|@ohos.pluginComponent.d.ts| +|新增|NA|类名:RequestParameterForStage
方法or属性:data: KVObject;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: RequestParameterForStage
方法 or 属性:jsonPath?: string;|@ohos.pluginComponent.d.ts| +|新增|NA|类名:RequestParameterForStage
方法or属性:jsonPath?: string;|@ohos.pluginComponent.d.ts| +|新增|NA|类名:pluginComponentManager
方法or属性:function push(param: PushParameterForStage, callback: AsyncCallback\): void;|@ohos.pluginComponent.d.ts| +|新增|NA|类名:pluginComponentManager
方法or属性:function request(param: RequestParameterForStage, callback: AsyncCallback\): void;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: promptAction|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowToastOptions|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowToastOptions
方法 or 属性: message: string \| Resource;|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowToastOptions
方法 or 属性: duration?: number;|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowToastOptions
方法 or 属性: bottom?: string \| number;|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: Button|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: Button
方法 or 属性: text: string \| Resource;|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: Button
方法 or 属性: color: string \| Resource;|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowDialogSuccessResponse|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowDialogSuccessResponse
方法 or 属性: index: number;|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowDialogOptions|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowDialogOptions
方法 or 属性: title?: string \| Resource;|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowDialogOptions
方法 or 属性: message?: string \| Resource;|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowDialogOptions
方法 or 属性: buttons?: [Button, Button?, Button?];|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ActionMenuSuccessResponse|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ActionMenuSuccessResponse
方法 or 属性: index: number;|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ActionMenuOptions|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ActionMenuOptions
方法 or 属性: title?: string \| Resource;|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ActionMenuOptions
方法 or 属性: buttons: [Button, Button?, Button?, Button?, Button?, Button?];|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: promptAction
方法 or 属性: function showToast(options: ShowToastOptions):void;|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: promptAction
方法 or 属性: function showDialog(options: ShowDialogOptions, callback: AsyncCallback\):void;|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: promptAction
方法 or 属性: function showDialog(options: ShowDialogOptions): Promise\;|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: promptAction
方法 or 属性: function showActionMenu(options: ActionMenuOptions, callback: AsyncCallback\):void;|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: promptAction
方法 or 属性: function showActionMenu(options: ActionMenuOptions): Promise\;|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.router
类名: RouterMode|@ohos.router.d.ts| +|新增|NA|类名:RouterMode
方法or属性:|@ohos.router.d.ts| +|新增|NA|模块名: ohos.router
类名: RouterMode
方法 or 属性:Standard|@ohos.router.d.ts| +|新增|NA|类名:RouterMode
方法or属性:Standard|@ohos.router.d.ts| +|新增|NA|模块名: ohos.router
类名: RouterMode
方法 or 属性:Single|@ohos.router.d.ts| +|新增|NA|类名:RouterMode
方法or属性:Single|@ohos.router.d.ts| +|新增|NA|类名:router
方法or属性:function pushUrl(options: RouterOptions, callback: AsyncCallback\):void;|@ohos.router.d.ts| +|新增|NA|类名:router
方法or属性:function pushUrl(options: RouterOptions): Promise\;|@ohos.router.d.ts| +|新增|NA|类名:router
方法or属性:function pushUrl(options: RouterOptions, mode: RouterMode, callback: AsyncCallback\):void;|@ohos.router.d.ts| +|新增|NA|类名:router
方法or属性:function pushUrl(options: RouterOptions, mode: RouterMode): Promise\;|@ohos.router.d.ts| +|新增|NA|类名:router
方法or属性:function replaceUrl(options: RouterOptions, callback: AsyncCallback\):void;|@ohos.router.d.ts| +|新增|NA|类名:router
方法or属性:function replaceUrl(options: RouterOptions): Promise\;|@ohos.router.d.ts| +|新增|NA|类名:router
方法or属性:function replaceUrl(options: RouterOptions, mode: RouterMode, callback: AsyncCallback\):void;|@ohos.router.d.ts| +|新增|NA|类名:router
方法or属性:function replaceUrl(options: RouterOptions, mode: RouterMode): Promise\;|@ohos.router.d.ts| +|新增|NA|类名:router
方法or属性:function showAlertBeforeBackPage(options: EnableAlertOptions):void;|@ohos.router.d.ts| +|新增|NA|类名:router
方法or属性:function hideAlertBeforeBackPage():void;|@ohos.router.d.ts| +|新增|NA|模块名: ability_component
类名: AbilityComponentInterface|ability_component.d.ts| +|新增|NA|模块名: ability_component
类名: AbilityComponentInterface
方法 or 属性: (value: {want: import('../api/@ohos.app.ability.Want').default}): AbilityComponentAttribute;|ability_component.d.ts| +|新增|NA|模块名: ability_component
类名: AbilityComponentAttribute|ability_component.d.ts| +|新增|NA|模块名: ability_component
类名: AbilityComponentAttribute
方法 or 属性: onConnect(callback: () => void): AbilityComponentAttribute;|ability_component.d.ts| +|新增|NA|模块名: ability_component
类名: AbilityComponentAttribute
方法 or 属性: onDisconnect(callback: () => void): AbilityComponentAttribute;|ability_component.d.ts| +|新增|NA|模块名: ability_component
类名: global
方法 or 属性: declare const AbilityComponent: AbilityComponentInterface;|ability_component.d.ts| +|新增|NA|模块名: ability_component
类名: global
方法 or 属性: declare const AbilityComponentInstance: AbilityComponentAttribute;|ability_component.d.ts| +|新增|NA|类名:CanvasRenderer
方法or属性:filter: string;|canvas.d.ts| +|新增|NA|类名:CanvasRenderer
方法or属性:imageSmoothingQuality: ImageSmoothingQuality;|canvas.d.ts| +|新增|NA|类名:CanvasRenderer
方法or属性:direction: CanvasDirection;|canvas.d.ts| +|新增|NA|类名:global
方法or属性:declare const Entry: ClassDecorator & ((storage?: LocalStorage) => ClassDecorator);|common.d.ts| +|新增|NA|类名:global
方法or属性:declare const Concurrent: MethodDecorator;|common.d.ts| +|新增|NA|类名:global
方法or属性:declare const LocalStorageLink: (value: string) => PropertyDecorator;|common.d.ts| +|新增|NA|类名:global
方法or属性:declare const LocalStorageProp: (value: string) => PropertyDecorator;|common.d.ts| +|新增|NA|类名:
方法or属性:function getContext(component?: Object): Context;|common.d.ts| +|新增|NA|类名:
方法or属性:function postCardAction(component: Object, action: Object): void;|common.d.ts| +|新增|NA|类名:AnimateParam
方法or属性:curve?: Curve \| string \| ICurve;|common.d.ts| +|新增|NA|模块名: common
类名: ICurve|common.d.ts| +|新增|NA|类名:ICurve
方法or属性:|common.d.ts| +|新增|NA|模块名: common
类名: ICurve
方法 or 属性:interpolate(fraction : number) : number;|common.d.ts| +|新增|NA|类名:ICurve
方法or属性:interpolate(fraction : number) : number;|common.d.ts| +|新增|NA|模块名: common
类名: AlignRuleOption|common.d.ts| +|新增|NA|类名:AlignRuleOption
方法or属性:|common.d.ts| +|新增|NA|模块名: common
类名: AlignRuleOption
方法 or 属性:left?: { anchor: string, align: HorizontalAlign };|common.d.ts| +|新增|NA|类名:AlignRuleOption
方法or属性:left?: { anchor: string, align: HorizontalAlign };|common.d.ts| +|新增|NA|模块名: common
类名: AlignRuleOption
方法 or 属性:right?: { anchor: string, align: HorizontalAlign };|common.d.ts| +|新增|NA|类名:AlignRuleOption
方法or属性:right?: { anchor: string, align: HorizontalAlign };|common.d.ts| +|新增|NA|模块名: common
类名: AlignRuleOption
方法 or 属性:middle?: { anchor: string, align: HorizontalAlign };|common.d.ts| +|新增|NA|类名:AlignRuleOption
方法or属性:middle?: { anchor: string, align: HorizontalAlign };|common.d.ts| +|新增|NA|模块名: common
类名: AlignRuleOption
方法 or 属性:top?: { anchor: string, align: VerticalAlign };|common.d.ts| +|新增|NA|类名:AlignRuleOption
方法or属性:top?: { anchor: string, align: VerticalAlign };|common.d.ts| +|新增|NA|模块名: common
类名: AlignRuleOption
方法 or 属性:bottom?: { anchor: string, align: VerticalAlign };|common.d.ts| +|新增|NA|类名:AlignRuleOption
方法or属性:bottom?: { anchor: string, align: VerticalAlign };|common.d.ts| +|新增|NA|模块名: common
类名: AlignRuleOption
方法 or 属性:center?: { anchor: string, align: VerticalAlign };|common.d.ts| +|新增|NA|类名:AlignRuleOption
方法or属性:center?: { anchor: string, align: VerticalAlign };|common.d.ts| +|新增|NA|模块名: common
类名: focusControl|common.d.ts| +|新增|NA|类名:focusControl
方法or属性:|common.d.ts| +|新增|NA|模块名: common
类名: focusControl
方法 or 属性:function requestFocus(value: string): boolean;|common.d.ts| +|新增|NA|类名:focusControl
方法or属性:function requestFocus(value: string): boolean;|common.d.ts| +|新增|NA|模块名: common
类名: SourceTool|common.d.ts| +|新增|NA|类名:SourceTool
方法or属性:|common.d.ts| +|新增|NA|模块名: common
类名: SourceTool
方法 or 属性:Unknown|common.d.ts| +|新增|NA|类名:SourceTool
方法or属性:Unknown|common.d.ts| +|新增|NA|模块名: common
类名: SourceTool
方法 or 属性:FINGER|common.d.ts| +|新增|NA|类名:SourceTool
方法or属性:FINGER|common.d.ts| +|新增|NA|模块名: common
类名: SourceTool
方法 or 属性:PEN|common.d.ts| +|新增|NA|类名:SourceTool
方法or属性:PEN|common.d.ts| +|新增|NA|模块名: common
类名: RepeatMode|common.d.ts| +|新增|NA|类名:RepeatMode
方法or属性:|common.d.ts| +|新增|NA|模块名: common
类名: RepeatMode
方法 or 属性:Repeat|common.d.ts| +|新增|NA|类名:RepeatMode
方法or属性:Repeat|common.d.ts| +|新增|NA|模块名: common
类名: RepeatMode
方法 or 属性:Stretch|common.d.ts| +|新增|NA|类名:RepeatMode
方法or属性:Stretch|common.d.ts| +|新增|NA|模块名: common
类名: RepeatMode
方法 or 属性:Round|common.d.ts| +|新增|NA|类名:RepeatMode
方法or属性:Round|common.d.ts| +|新增|NA|模块名: common
类名: RepeatMode
方法 or 属性:Space|common.d.ts| +|新增|NA|类名:RepeatMode
方法or属性:Space|common.d.ts| +|新增|NA|模块名: common
类名: BlurStyle|common.d.ts| +|新增|NA|类名:BlurStyle
方法or属性:|common.d.ts| +|新增|NA|模块名: common
类名: BlurStyle
方法 or 属性:Thin|common.d.ts| +|新增|NA|类名:BlurStyle
方法or属性:Thin|common.d.ts| +|新增|NA|模块名: common
类名: BlurStyle
方法 or 属性:Regular|common.d.ts| +|新增|NA|类名:BlurStyle
方法or属性:Regular|common.d.ts| +|新增|NA|模块名: common
类名: BlurStyle
方法 or 属性:Thick|common.d.ts| +|新增|NA|类名:BlurStyle
方法or属性:Thick|common.d.ts| +|新增|NA|类名:BaseEvent
方法or属性:pressure: number;|common.d.ts| +|新增|NA|类名:BaseEvent
方法or属性:tiltX: number;|common.d.ts| +|新增|NA|类名:BaseEvent
方法or属性:tiltY: number;|common.d.ts| +|新增|NA|类名:BaseEvent
方法or属性:sourceTool: SourceTool;|common.d.ts| +|新增|NA|模块名: common
类名: BorderImageOption|common.d.ts| +|新增|NA|类名:BorderImageOption
方法or属性:|common.d.ts| +|新增|NA|模块名: common
类名: BorderImageOption
方法 or 属性:slice?: Length \| EdgeWidths,|common.d.ts| +|新增|NA|类名:BorderImageOption
方法or属性:slice?: Length \| EdgeWidths,|common.d.ts| +|新增|NA|模块名: common
类名: BorderImageOption
方法 or 属性:repeat?: RepeatMode,|common.d.ts| +|新增|NA|类名:BorderImageOption
方法or属性:repeat?: RepeatMode,|common.d.ts| +|新增|NA|模块名: common
类名: BorderImageOption
方法 or 属性:source?: string \| Resource \| LinearGradient,|common.d.ts| +|新增|NA|类名:BorderImageOption
方法or属性:source?: string \| Resource \| LinearGradient,|common.d.ts| +|新增|NA|模块名: common
类名: BorderImageOption
方法 or 属性:width?: Length \| EdgeWidths,|common.d.ts| +|新增|NA|类名:BorderImageOption
方法or属性:width?: Length \| EdgeWidths,|common.d.ts| +|新增|NA|模块名: common
类名: BorderImageOption
方法 or 属性:outset?: Length \| EdgeWidths,|common.d.ts| +|新增|NA|类名:BorderImageOption
方法or属性:outset?: Length \| EdgeWidths,|common.d.ts| +|新增|NA|模块名: common
类名: BorderImageOption
方法 or 属性:fill?: boolean|common.d.ts| +|新增|NA|类名:BorderImageOption
方法or属性:fill?: boolean|common.d.ts| +|新增|NA|模块名: common
类名: PopupOptions
方法 or 属性:arrowOffset?: Length;|common.d.ts| +|新增|NA|类名:PopupOptions
方法or属性:arrowOffset?: Length;|common.d.ts| +|新增|NA|模块名: common
类名: PopupOptions
方法 or 属性:showInSubWindow?: boolean;|common.d.ts| +|新增|NA|类名:PopupOptions
方法or属性:showInSubWindow?: boolean;|common.d.ts| +|新增|NA|模块名: common
类名: CustomPopupOptions
方法 or 属性:arrowOffset?: Length;|common.d.ts| +|新增|NA|类名:CustomPopupOptions
方法or属性:arrowOffset?: Length;|common.d.ts| +|新增|NA|模块名: common
类名: CustomPopupOptions
方法 or 属性:showInSubWindow?: boolean;|common.d.ts| +|新增|NA|类名:CustomPopupOptions
方法or属性:showInSubWindow?: boolean;|common.d.ts| +|新增|NA|类名:CommonMethod
方法or属性:hitTestBehavior(value: HitTestMode): T;|common.d.ts| +|新增|NA|类名:CommonMethod
方法or属性:backgroundBlurStyle(value: BlurStyle): T;|common.d.ts| +|新增|NA|类名:CommonMethod
方法or属性:borderStyle(value: EdgeStyles): T;|common.d.ts| +|新增|NA|类名:CommonMethod
方法or属性:borderWidth(value: EdgeWidths): T;|common.d.ts| +|新增|NA|类名:CommonMethod
方法or属性:borderColor(value: EdgeColors): T;|common.d.ts| +|新增|NA|类名:CommonMethod
方法or属性:borderRadius(value: BorderRadiuses): T;|common.d.ts| +|新增|NA|类名:CommonMethod
方法or属性:borderImage(value: BorderImageOption): T;|common.d.ts| +|新增|NA|类名:CommonMethod
方法or属性:tabIndex(index: number): T;|common.d.ts| +|新增|NA|类名:CommonMethod
方法or属性:defaultFocus(value: boolean): T;|common.d.ts| +|新增|NA|类名:CommonMethod
方法or属性:groupDefaultFocus(value: boolean): T;|common.d.ts| +|新增|NA|类名:CommonMethod
方法or属性:focusOnTouch(value: boolean): T;|common.d.ts| +|新增|NA|类名:CommonMethod
方法or属性:alignRules(value: AlignRuleOption): T;|common.d.ts| +|新增|NA|类名:CommonMethod
方法or属性:onVisibleAreaChange(ratios: Array\, event: (isVisible: boolean, currentRatio: number) => void): T;|common.d.ts| +|新增|NA|模块名: common
类名: LinearGradient|common.d.ts| +|新增|NA|类名:LinearGradient
方法or属性:|common.d.ts| +|新增|NA|模块名: common
类名: LinearGradient
方法 or 属性:angle?: number \| string;|common.d.ts| +|新增|NA|类名:LinearGradient
方法or属性:angle?: number \| string;|common.d.ts| +|新增|NA|模块名: common
类名: LinearGradient
方法 or 属性:direction?: GradientDirection;|common.d.ts| +|新增|NA|类名:LinearGradient
方法or属性:direction?: GradientDirection;|common.d.ts| +|新增|NA|模块名: common
类名: LinearGradient
方法 or 属性:colors: Array\;|common.d.ts| +|新增|NA|类名:LinearGradient
方法or属性:colors: Array\;|common.d.ts| +|新增|NA|模块名: common
类名: LinearGradient
方法 or 属性:repeating?: boolean;|common.d.ts| +|新增|NA|类名:LinearGradient
方法or属性:repeating?: boolean;|common.d.ts| +|新增|NA|模块名: common
类名: LayoutBorderInfo|common.d.ts| +|新增|NA|类名:LayoutBorderInfo
方法or属性:|common.d.ts| +|新增|NA|模块名: common
类名: LayoutBorderInfo
方法 or 属性:borderWidth: EdgeWidths,|common.d.ts| +|新增|NA|类名:LayoutBorderInfo
方法or属性:borderWidth: EdgeWidths,|common.d.ts| +|新增|NA|模块名: common
类名: LayoutBorderInfo
方法 or 属性:margin: Margin,|common.d.ts| +|新增|NA|类名:LayoutBorderInfo
方法or属性:margin: Margin,|common.d.ts| +|新增|NA|模块名: common
类名: LayoutBorderInfo
方法 or 属性:padding: Padding,|common.d.ts| +|新增|NA|类名:LayoutBorderInfo
方法or属性:padding: Padding,|common.d.ts| +|新增|NA|模块名: common
类名: LayoutInfo|common.d.ts| +|新增|NA|类名:LayoutInfo
方法or属性:|common.d.ts| +|新增|NA|模块名: common
类名: LayoutInfo
方法 or 属性:position: Position,|common.d.ts| +|新增|NA|类名:LayoutInfo
方法or属性:position: Position,|common.d.ts| +|新增|NA|模块名: common
类名: LayoutInfo
方法 or 属性:constraint: ConstraintSizeOptions,|common.d.ts| +|新增|NA|类名:LayoutInfo
方法or属性:constraint: ConstraintSizeOptions,|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild|common.d.ts| +|新增|NA|类名:LayoutChild
方法or属性:|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法 or 属性:name: string,|common.d.ts| +|新增|NA|类名:LayoutChild
方法or属性:name: string,|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法 or 属性:id: string,|common.d.ts| +|新增|NA|类名:LayoutChild
方法or属性:id: string,|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法 or 属性:constraint: ConstraintSizeOptions,|common.d.ts| +|新增|NA|类名:LayoutChild
方法or属性:constraint: ConstraintSizeOptions,|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法 or 属性:borderInfo: LayoutBorderInfo,|common.d.ts| +|新增|NA|类名:LayoutChild
方法or属性:borderInfo: LayoutBorderInfo,|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法 or 属性:position: Position,|common.d.ts| +|新增|NA|类名:LayoutChild
方法or属性:position: Position,|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法 or 属性:measure(childConstraint: ConstraintSizeOptions),|common.d.ts| +|新增|NA|类名:LayoutChild
方法or属性:measure(childConstraint: ConstraintSizeOptions),|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法 or 属性:layout(childLayoutInfo: LayoutInfo)|common.d.ts| +|新增|NA|类名:LayoutChild
方法or属性:layout(childLayoutInfo: LayoutInfo)|common.d.ts| +|新增|NA|类名:CustomComponent
方法or属性:onLayout?(children: Array\, constraint: ConstraintSizeOptions): void;|common.d.ts| +|新增|NA|类名:CustomComponent
方法or属性:onMeasure?(children: Array\, constraint: ConstraintSizeOptions): void;|common.d.ts| +|新增|NA|类名:CustomComponent
方法or属性:pageTransition?(): void;|common.d.ts| +|新增|NA|模块名: common
类名: SpecialEvent|common.d.ts| +|新增|NA|类名:SpecialEvent
方法or属性:|common.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: AppStorage|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: AppStorage
方法 or 属性: static Link(propName: string): any;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: AppStorage
方法 or 属性: static SetAndLink\(propName: string, defaultValue: T): SubscribedAbstractProperty\;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: AppStorage
方法 or 属性: static Prop(propName: string): any;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: AppStorage
方法 or 属性: static SetAndProp\(propName: string, defaultValue: S): SubscribedAbstractProperty\;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: AppStorage
方法 or 属性: static Has(propName: string): boolean;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: AppStorage
方法 or 属性: static Get\(propName: string): T \| undefined;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: AppStorage
方法 or 属性: static Set\(propName: string, newValue: T): boolean;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: AppStorage
方法 or 属性: static SetOrCreate\(propName: string, newValue: T): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: AppStorage
方法 or 属性: static Delete(propName: string): boolean;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: AppStorage
方法 or 属性: static Keys(): IterableIterator\;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: AppStorage
方法 or 属性: static staticClear(): boolean;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: AppStorage
方法 or 属性: static Clear(): boolean;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: AppStorage
方法 or 属性: static IsMutable(propName: string): boolean;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: AppStorage
方法 or 属性: static Size(): number;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribedAbstractProperty|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribedAbstractProperty
方法 or 属性: protected subscribers_: Set\;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribedAbstractProperty
方法 or 属性: private id_;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribedAbstractProperty
方法 or 属性: private info_?;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribedAbstractProperty
方法 or 属性: constructor(
/**
* Subscriber IPropertySubscriber.
* @since 7
* @systemapi
*/
subscribeMe?: IPropertySubscriber,
/**
* Subscriber info.
* @since 7
* @systemapi
*/
info?: string,
);|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribedAbstractProperty
方法 or 属性: id(): number;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribedAbstractProperty
方法 or 属性: info(): string;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribedAbstractProperty
方法 or 属性: abstract get(): T;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribedAbstractProperty
方法 or 属性: abstract set(newValue: T): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribedAbstractProperty
方法 or 属性: createTwoWaySync(subscribeMe?: IPropertySubscriber, info?: string): SyncedPropertyTwoWay\;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribedAbstractProperty
方法 or 属性: createOneWaySync(subscribeMe?: IPropertySubscriber, info?: string): SyncedPropertyOneWay\;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribedAbstractProperty
方法 or 属性: unlinkSuscriber(subscriberId: number): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribedAbstractProperty
方法 or 属性: protected notifyHasChanged(newValue: T): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribedAbstractProperty
方法 or 属性: protected notifyPropertyRead(): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribedAbstractProperty
方法 or 属性: numberOfSubscrbers(): number;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: IPropertySubscriber|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: IPropertySubscriber
方法 or 属性: id(): number;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: IPropertySubscriber
方法 or 属性: aboutToBeDeleted(owningView?: IPropertySubscriber): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SyncedPropertyTwoWay|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SyncedPropertyTwoWay
方法 or 属性: private source_;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SyncedPropertyTwoWay
方法 or 属性: constructor(source: SubscribedAbstractProperty\, subscribeMe?: IPropertySubscriber, info?: string);|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SyncedPropertyTwoWay
方法 or 属性: aboutToBeDeleted(unsubscribeMe?: IPropertySubscriber): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SyncedPropertyTwoWay
方法 or 属性: hasChanged(newValue: T): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SyncedPropertyTwoWay
方法 or 属性: get(): T;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SyncedPropertyTwoWay
方法 or 属性: set(newValue: T): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SyncedPropertyOneWay|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SyncedPropertyOneWay
方法 or 属性: private wrappedValue_;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SyncedPropertyOneWay
方法 or 属性: private source_;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SyncedPropertyOneWay
方法 or 属性: constructor(source: SubscribedAbstractProperty\, subscribeMe?: IPropertySubscriber, info?: string);|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SyncedPropertyOneWay
方法 or 属性: aboutToBeDeleted(unsubscribeMe?: IPropertySubscriber): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SyncedPropertyOneWay
方法 or 属性: hasChanged(newValue: T): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SyncedPropertyOneWay
方法 or 属性: get(): T;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SyncedPropertyOneWay
方法 or 属性: set(newValue: T): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: ISinglePropertyChangeSubscriber|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: ISinglePropertyChangeSubscriber
方法 or 属性: hasChanged(newValue: T): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribaleAbstract|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribaleAbstract
方法 or 属性: private owningProperties_: Set\;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribaleAbstract
方法 or 属性: constructor();|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribaleAbstract
方法 or 属性: protected notifyPropertyHasChanged(propName: string, newValue: any): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribaleAbstract
方法 or 属性: public addOwningProperty(subscriber: IPropertySubscriber): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribaleAbstract
方法 or 属性: public removeOwningProperty(property: IPropertySubscriber): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: SubscribaleAbstract
方法 or 属性: public removeOwningPropertyById(subscriberId: number): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: Environment|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: Environment
方法 or 属性: constructor();|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: Environment
方法 or 属性: static EnvProp\(key: string, value: S): boolean;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: Environment
方法 or 属性: static EnvProps(
props: {
key: string;
defaultValue: any;
}[],
): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: Environment
方法 or 属性: static Keys(): Array\;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: PersistentStorage|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: PersistentStorage
方法 or 属性: constructor(appStorage: AppStorage, storage: Storage);|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: PersistentStorage
方法 or 属性: static PersistProp\(key: string, defaultValue: T): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: PersistentStorage
方法 or 属性: static DeleteProp(key: string): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: PersistentStorage
方法 or 属性: static PersistProps(
properties: {
key: string;
defaultValue: any;
}[],
): void;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: PersistentStorage
方法 or 属性: static Keys(): Array\;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: global
方法 or 属性: declare const appStorage: AppStorage;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法 or 属性: constructor(initializingProperties?: Object);|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法 or 属性: static GetShared(): LocalStorage;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法 or 属性: has(propName: string): boolean;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法 or 属性: keys(): IterableIterator\;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法 or 属性: size(): number;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法 or 属性: get\(propName: string): T \| undefined;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法 or 属性: set\(propName: string, newValue: T): boolean;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法 or 属性: setOrCreate\(propName: string, newValue: T): boolean;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法 or 属性: link\(propName: string): SubscribedAbstractProperty\;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法 or 属性: setAndLink\(propName: string, defaultValue: T): SubscribedAbstractProperty\;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法 or 属性: prop\(propName: string): SubscribedAbstractProperty\;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法 or 属性: setAndProp\(propName: string, defaultValue: S): SubscribedAbstractProperty\;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法 or 属性: delete(propName: string): boolean;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法 or 属性: clear(): boolean;|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: StateManagement|common_ts_ets_api.d.ts| +|新增|NA|类名:Color
方法or属性:Transparent|enums.d.ts| +|新增|NA|类名:Placement
方法or属性:LeftTop|enums.d.ts| +|新增|NA|类名:Placement
方法or属性:LeftBottom|enums.d.ts| +|新增|NA|类名:Placement
方法or属性:RightTop|enums.d.ts| +|新增|NA|类名:Placement
方法or属性:RightBottom|enums.d.ts| +|新增|NA|模块名: enums
类名: CopyOptions|enums.d.ts| +|新增|NA|类名:CopyOptions
方法or属性:|enums.d.ts| +|新增|NA|模块名: enums
类名: CopyOptions
方法 or 属性:None = 0|enums.d.ts| +|新增|NA|类名:CopyOptions
方法or属性:None = 0|enums.d.ts| +|新增|NA|模块名: enums
类名: CopyOptions
方法 or 属性:InApp = 1|enums.d.ts| +|新增|NA|类名:CopyOptions
方法or属性:InApp = 1|enums.d.ts| +|新增|NA|模块名: enums
类名: CopyOptions
方法 or 属性:LocalDevice = 2|enums.d.ts| +|新增|NA|类名:CopyOptions
方法or属性:LocalDevice = 2|enums.d.ts| +|新增|NA|模块名: enums
类名: HitTestMode|enums.d.ts| +|新增|NA|类名:HitTestMode
方法or属性:|enums.d.ts| +|新增|NA|模块名: enums
类名: HitTestMode
方法 or 属性:Default|enums.d.ts| +|新增|NA|类名:HitTestMode
方法or属性:Default|enums.d.ts| +|新增|NA|模块名: enums
类名: HitTestMode
方法 or 属性:Block|enums.d.ts| +|新增|NA|类名:HitTestMode
方法or属性:Block|enums.d.ts| +|新增|NA|模块名: enums
类名: HitTestMode
方法 or 属性:Transparent|enums.d.ts| +|新增|NA|类名:HitTestMode
方法or属性:Transparent|enums.d.ts| +|新增|NA|模块名: enums
类名: HitTestMode
方法 or 属性:None|enums.d.ts| +|新增|NA|类名:HitTestMode
方法or属性:None|enums.d.ts| +|新增|NA|模块名: enums
类名: TitleHeight|enums.d.ts| +|新增|NA|类名:TitleHeight
方法or属性:|enums.d.ts| +|新增|NA|模块名: enums
类名: TitleHeight
方法 or 属性:MainOnly|enums.d.ts| +|新增|NA|类名:TitleHeight
方法or属性:MainOnly|enums.d.ts| +|新增|NA|模块名: enums
类名: TitleHeight
方法 or 属性:MainWithSub|enums.d.ts| +|新增|NA|类名:TitleHeight
方法or属性:MainWithSub|enums.d.ts| +|新增|NA|模块名: flow_item
类名: FlowItemInterface|flow_item.d.ts| +|新增|NA|模块名: flow_item
类名: FlowItemInterface
方法 or 属性: (): FlowItemAttribute;|flow_item.d.ts| +|新增|NA|模块名: flow_item
类名: FlowItemAttribute|flow_item.d.ts| +|新增|NA|模块名: flow_item
类名: global
方法 or 属性: declare const FlowItem: FlowItemInterface|flow_item.d.ts| +|新增|NA|模块名: flow_item
类名: global
方法 or 属性: declare const FlowItemInstance: FlowItemAttribute;|flow_item.d.ts| +|新增|NA|模块名: form_component
类名: FormDimension
方法 or 属性:Dimension_2_1|form_component.d.ts| +|新增|NA|类名:FormDimension
方法or属性:Dimension_2_1|form_component.d.ts| +|新增|NA|模块名: grid_col
类名: GridColColumnOption|grid_col.d.ts| +|新增|NA|模块名: grid_col
类名: GridColColumnOption
方法 or 属性: xs?: number,|grid_col.d.ts| +|新增|NA|模块名: grid_col
类名: GridColColumnOption
方法 or 属性: sm?: number,|grid_col.d.ts| +|新增|NA|模块名: grid_col
类名: GridColColumnOption
方法 or 属性: md?: number,|grid_col.d.ts| +|新增|NA|模块名: grid_col
类名: GridColColumnOption
方法 or 属性: lg?: number,|grid_col.d.ts| +|新增|NA|模块名: grid_col
类名: GridColColumnOption
方法 or 属性: xl?: number,|grid_col.d.ts| +|新增|NA|模块名: grid_col
类名: GridColColumnOption
方法 or 属性: xxl?: number,|grid_col.d.ts| +|新增|NA|模块名: grid_col
类名: GridColOptions|grid_col.d.ts| +|新增|NA|模块名: grid_col
类名: GridColOptions
方法 or 属性: span?: number \| GridColColumnOption;|grid_col.d.ts| +|新增|NA|模块名: grid_col
类名: GridColOptions
方法 or 属性: offset?: number \| GridColColumnOption;|grid_col.d.ts| +|新增|NA|模块名: grid_col
类名: GridColOptions
方法 or 属性: order?: number \| GridColColumnOption;|grid_col.d.ts| +|新增|NA|模块名: grid_col
类名: GridColInterface|grid_col.d.ts| +|新增|NA|模块名: grid_col
类名: GridColInterface
方法 or 属性: (option?: GridColOptions): GridColAttribute;|grid_col.d.ts| +|新增|NA|模块名: grid_col
类名: GridColAttribute|grid_col.d.ts| +|新增|NA|模块名: grid_col
类名: GridColAttribute
方法 or 属性: span(value: number \| GridColColumnOption): GridRowAttribute;|grid_col.d.ts| +|新增|NA|模块名: grid_col
类名: GridColAttribute
方法 or 属性: offset(value: number \| GridColColumnOption): GridRowAttribute;|grid_col.d.ts| +|新增|NA|模块名: grid_col
类名: GridColAttribute
方法 or 属性: order(value: number \| GridColColumnOption): GridRowAttribute;|grid_col.d.ts| +|新增|NA|模块名: grid_col
类名: global
方法 or 属性: declare const GridCol: GridColInterface|grid_col.d.ts| +|新增|NA|模块名: grid_col
类名: global
方法 or 属性: declare const GridColInstance: GridColAttribute;|grid_col.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowSizeOption|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowSizeOption
方法 or 属性: xs?: Length,|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowSizeOption
方法 or 属性: sm?: Length,|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowSizeOption
方法 or 属性: md?: Length,|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowSizeOption
方法 or 属性: lg?: Length,|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowSizeOption
方法 or 属性: xl?: Length,|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowSizeOption
方法 or 属性: xxl?: Length,|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowColumnOption|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowColumnOption
方法 or 属性: xs?: number,|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowColumnOption
方法 or 属性: sm?: number,|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowColumnOption
方法 or 属性: md?: number,|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowColumnOption
方法 or 属性: lg?: number,|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowColumnOption
方法 or 属性: xl?: number,|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowColumnOption
方法 or 属性: xxl?: number,|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GutterOption|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GutterOption
方法 or 属性: x?: Length \| GridRowSizeOption,|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GutterOption
方法 or 属性: y?: Length \| GridRowSizeOption|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: BreakpointsReference|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: BreakpointsReference
方法 or 属性: WindowSize|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: BreakpointsReference
方法 or 属性: ComponentSize|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowDirection|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowDirection
方法 or 属性: Row|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowDirection
方法 or 属性: RowReverse|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: BreakPoints|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: BreakPoints
方法 or 属性: value?: Array\,|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: BreakPoints
方法 or 属性: reference?: BreakpointsReference,|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowOptions|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowOptions
方法 or 属性: gutter?: Length \| GutterOption;|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowOptions
方法 or 属性: columns?: number \| GridRowColumnOption;|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowOptions
方法 or 属性: breakpoints?: BreakPoints;|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowOptions
方法 or 属性: direction?: GridRowDirection;|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowInterface|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowInterface
方法 or 属性: (option?: GridRowOptions): GridRowAttribute;|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowAttribute|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GridRowAttribute
方法 or 属性: onBreakpointChange(callback: (breakpoints: string) => void): GridRowAttribute;|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: global
方法 or 属性: declare const GridRow: GridRowInterface;|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: global
方法 or 属性: declare const GridRowInstance: GridRowAttribute;|grid_row.d.ts| +|新增|NA|类名:ImageAttribute
方法or属性:colorFilter(value: ColorFilter): ImageAttribute;|image.d.ts| +|新增|NA|类名:ImageAttribute
方法or属性:copyOption(value: CopyOptions): ImageAttribute;|image.d.ts| +|新增|NA|类名:ImageAttribute
方法or属性:draggable(value: boolean): ImageAttribute;|image.d.ts| +|新增|NA|类名:ImageAttribute
方法or属性:onError(callback: (event?: { componentWidth: number; componentHeight: number; message: string }) => void): ImageAttribute;|image.d.ts| +|新增|NA|模块名: image_animator
类名: ImageFrameInfo|image_animator.d.ts| +|新增|NA|类名:ImageFrameInfo
方法or属性:|image_animator.d.ts| +|新增|NA|模块名: image_animator
类名: ImageFrameInfo
方法 or 属性:src: string \| Resource;|image_animator.d.ts| +|新增|NA|类名:ImageFrameInfo
方法or属性:src: string \| Resource;|image_animator.d.ts| +|新增|NA|模块名: image_animator
类名: ImageFrameInfo
方法 or 属性:width?: number \| string;|image_animator.d.ts| +|新增|NA|类名:ImageFrameInfo
方法or属性:width?: number \| string;|image_animator.d.ts| +|新增|NA|模块名: image_animator
类名: ImageFrameInfo
方法 or 属性:height?: number \| string;|image_animator.d.ts| +|新增|NA|类名:ImageFrameInfo
方法or属性:height?: number \| string;|image_animator.d.ts| +|新增|NA|模块名: image_animator
类名: ImageFrameInfo
方法 or 属性:top?: number \| string;|image_animator.d.ts| +|新增|NA|类名:ImageFrameInfo
方法or属性:top?: number \| string;|image_animator.d.ts| +|新增|NA|模块名: image_animator
类名: ImageFrameInfo
方法 or 属性:left?: number \| string;|image_animator.d.ts| +|新增|NA|类名:ImageFrameInfo
方法or属性:left?: number \| string;|image_animator.d.ts| +|新增|NA|模块名: image_animator
类名: ImageFrameInfo
方法 or 属性:duration?: number;|image_animator.d.ts| +|新增|NA|类名:ImageFrameInfo
方法or属性:duration?: number;|image_animator.d.ts| +|新增|NA|模块名: list
类名: ListItemAlign|list.d.ts| +|新增|NA|类名:ListItemAlign
方法or属性:|list.d.ts| +|新增|NA|模块名: list
类名: ListItemAlign
方法 or 属性:Start|list.d.ts| +|新增|NA|类名:ListItemAlign
方法or属性:Start|list.d.ts| +|新增|NA|模块名: list
类名: ListItemAlign
方法 or 属性:Center|list.d.ts| +|新增|NA|类名:ListItemAlign
方法or属性:Center|list.d.ts| +|新增|NA|模块名: list
类名: ListItemAlign
方法 or 属性:End|list.d.ts| +|新增|NA|类名:ListItemAlign
方法or属性:End|list.d.ts| +|新增|NA|模块名: list
类名: StickyStyle|list.d.ts| +|新增|NA|类名:StickyStyle
方法or属性:|list.d.ts| +|新增|NA|模块名: list
类名: StickyStyle
方法 or 属性:None = 0|list.d.ts| +|新增|NA|类名:StickyStyle
方法or属性:None = 0|list.d.ts| +|新增|NA|模块名: list
类名: StickyStyle
方法 or 属性:Header = 1|list.d.ts| +|新增|NA|类名:StickyStyle
方法or属性:Header = 1|list.d.ts| +|新增|NA|模块名: list
类名: StickyStyle
方法 or 属性:Footer = 2|list.d.ts| +|新增|NA|类名:StickyStyle
方法or属性:Footer = 2|list.d.ts| +|新增|NA|类名:ListAttribute
方法or属性:lanes(value: number \| LengthConstrain): ListAttribute;|list.d.ts| +|新增|NA|类名:ListAttribute
方法or属性:alignListItem(value: ListItemAlign): ListAttribute;|list.d.ts| +|新增|NA|类名:ListAttribute
方法or属性:sticky(value: StickyStyle): ListAttribute;|list.d.ts| +|新增|NA|类名:ListAttribute
方法or属性:onScrollStart(event: () => void): ListAttribute;|list.d.ts| +|新增|NA|类名:ListAttribute
方法or属性:onScrollFrameBegin(event: (offset: number, state: ScrollState) => { offsetRemain: number }): ListAttribute;|list.d.ts| +|新增|NA|模块名: list_item
类名: SwipeEdgeEffect|list_item.d.ts| +|新增|NA|类名:SwipeEdgeEffect
方法or属性:|list_item.d.ts| +|新增|NA|模块名: list_item
类名: SwipeEdgeEffect
方法 or 属性:Spring|list_item.d.ts| +|新增|NA|类名:SwipeEdgeEffect
方法or属性:Spring|list_item.d.ts| +|新增|NA|模块名: list_item
类名: SwipeEdgeEffect
方法 or 属性:None|list_item.d.ts| +|新增|NA|类名:SwipeEdgeEffect
方法or属性:None|list_item.d.ts| +|新增|NA|模块名: list_item
类名: SwipeActionOptions|list_item.d.ts| +|新增|NA|类名:SwipeActionOptions
方法or属性:|list_item.d.ts| +|新增|NA|模块名: list_item
类名: SwipeActionOptions
方法 or 属性:start?: CustomBuilder;|list_item.d.ts| +|新增|NA|类名:SwipeActionOptions
方法or属性:start?: CustomBuilder;|list_item.d.ts| +|新增|NA|模块名: list_item
类名: SwipeActionOptions
方法 or 属性:end?: CustomBuilder;|list_item.d.ts| +|新增|NA|类名:SwipeActionOptions
方法or属性:end?: CustomBuilder;|list_item.d.ts| +|新增|NA|模块名: list_item
类名: SwipeActionOptions
方法 or 属性:edgeEffect?: SwipeEdgeEffect;|list_item.d.ts| +|新增|NA|类名:SwipeActionOptions
方法or属性:edgeEffect?: SwipeEdgeEffect;|list_item.d.ts| +|新增|NA|类名:ListItemAttribute
方法or属性:swipeAction(value: SwipeActionOptions): ListItemAttribute;|list_item.d.ts| +|新增|NA|模块名: list_item_group
类名: ListItemGroupOptions|list_item_group.d.ts| +|新增|NA|模块名: list_item_group
类名: ListItemGroupOptions
方法 or 属性: header?: CustomBuilder;|list_item_group.d.ts| +|新增|NA|模块名: list_item_group
类名: ListItemGroupOptions
方法 or 属性: footer?: CustomBuilder;|list_item_group.d.ts| +|新增|NA|模块名: list_item_group
类名: ListItemGroupOptions
方法 or 属性: space?: number \| string;|list_item_group.d.ts| +|新增|NA|模块名: list_item_group
类名: ListItemGroupInterface|list_item_group.d.ts| +|新增|NA|模块名: list_item_group
类名: ListItemGroupInterface
方法 or 属性: (options?: ListItemGroupOptions): ListItemGroupAttribute;|list_item_group.d.ts| +|新增|NA|模块名: list_item_group
类名: ListItemGroupAttribute|list_item_group.d.ts| +|新增|NA|模块名: list_item_group
类名: ListItemGroupAttribute
方法 or 属性: divider(
value: {
strokeWidth: Length;
color?: ResourceColor;
startMargin?: Length;
endMargin?: Length;
} \| null,
): ListItemGroupAttribute;|list_item_group.d.ts| +|新增|NA|模块名: list_item_group
类名: global
方法 or 属性: declare const ListItemGroupInstance: ListItemGroupAttribute;|list_item_group.d.ts| +|新增|NA|模块名: list_item_group
类名: global
方法 or 属性: declare const ListItemGroup: ListItemGroupInterface;|list_item_group.d.ts| +|新增|NA|模块名: menu
类名: MenuInterface|menu.d.ts| +|新增|NA|模块名: menu
类名: MenuInterface
方法 or 属性: (): MenuAttribute;|menu.d.ts| +|新增|NA|模块名: menu
类名: MenuAttribute|menu.d.ts| +|新增|NA|模块名: menu
类名: MenuAttribute
方法 or 属性: fontSize(value: Length): MenuAttribute;|menu.d.ts| +|新增|NA|模块名: menu
类名: global
方法 or 属性: declare const Menu: MenuInterface;|menu.d.ts| +|新增|NA|模块名: menu
类名: global
方法 or 属性: declare const MenuInstance: MenuAttribute;|menu.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemOptions|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemOptions
方法 or 属性: startIcon?: ResourceStr;|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemOptions
方法 or 属性: content?: ResourceStr;|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemOptions
方法 or 属性: endIcon?: ResourceStr;|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemOptions
方法 or 属性: labelInfo?: ResourceStr;|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemOptions
方法 or 属性: builder?: CustomBuilder;|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemInterface|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemInterface
方法 or 属性: (value?: MenuItemOptions \| CustomBuilder): MenuItemAttribute;|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemAttribute|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemAttribute
方法 or 属性: selected(value: boolean): MenuItemAttribute;|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemAttribute
方法 or 属性: selectIcon(value: boolean): MenuItemAttribute;|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: MenuItemAttribute
方法 or 属性: onChange(callback: (selected: boolean) => void): MenuItemAttribute;|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: global
方法 or 属性: declare const MenuItem: MenuItemInterface;|menu_item.d.ts| +|新增|NA|模块名: menu_item
类名: global
方法 or 属性: declare const MenuItemInstance: MenuItemAttribute;|menu_item.d.ts| +|新增|NA|模块名: menu_item_group
类名: MenuItemGroupOptions|menu_item_group.d.ts| +|新增|NA|模块名: menu_item_group
类名: MenuItemGroupOptions
方法 or 属性: header?: ResourceStr \| CustomBuilder;|menu_item_group.d.ts| +|新增|NA|模块名: menu_item_group
类名: MenuItemGroupOptions
方法 or 属性: footer?: ResourceStr \| CustomBuilder;|menu_item_group.d.ts| +|新增|NA|模块名: menu_item_group
类名: MenuItemGroupInterface|menu_item_group.d.ts| +|新增|NA|模块名: menu_item_group
类名: MenuItemGroupInterface
方法 or 属性: (value?: MenuItemGroupOptions): MenuItemGroupAttribute;|menu_item_group.d.ts| +|新增|NA|模块名: menu_item_group
类名: MenuItemGroupAttribute|menu_item_group.d.ts| +|新增|NA|模块名: menu_item_group
类名: global
方法 or 属性: declare const MenuItemGroup: MenuItemGroupInterface;|menu_item_group.d.ts| +|新增|NA|模块名: menu_item_group
类名: global
方法 or 属性: declare const MenuItemGroupInstance: MenuItemGroupAttribute;|menu_item_group.d.ts| +|新增|NA|模块名: navigation
类名: NavigationCommonTitle|navigation.d.ts| +|新增|NA|类名:NavigationCommonTitle
方法or属性:|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationCommonTitle
方法 or 属性:main: string;|navigation.d.ts| +|新增|NA|类名:NavigationCommonTitle
方法or属性:main: string;|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationCommonTitle
方法 or 属性:sub: string;|navigation.d.ts| +|新增|NA|类名:NavigationCommonTitle
方法or属性:sub: string;|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationCustomTitle|navigation.d.ts| +|新增|NA|类名:NavigationCustomTitle
方法or属性:|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationCustomTitle
方法 or 属性:builder: CustomBuilder;|navigation.d.ts| +|新增|NA|类名:NavigationCustomTitle
方法or属性:builder: CustomBuilder;|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationCustomTitle
方法 or 属性:height: TitleHeight \| Length;|navigation.d.ts| +|新增|NA|类名:NavigationCustomTitle
方法or属性:height: TitleHeight \| Length;|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationMode|navigation.d.ts| +|新增|NA|类名:NavigationMode
方法or属性:|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationMode
方法 or 属性:Stack|navigation.d.ts| +|新增|NA|类名:NavigationMode
方法or属性:Stack|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationMode
方法 or 属性:Split|navigation.d.ts| +|新增|NA|类名:NavigationMode
方法or属性:Split|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationMode
方法 or 属性:Auto|navigation.d.ts| +|新增|NA|类名:NavigationMode
方法or属性:Auto|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavBarPosition|navigation.d.ts| +|新增|NA|类名:NavBarPosition
方法or属性:|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavBarPosition
方法 or 属性:Start|navigation.d.ts| +|新增|NA|类名:NavBarPosition
方法or属性:Start|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavBarPosition
方法 or 属性:End|navigation.d.ts| +|新增|NA|类名:NavBarPosition
方法or属性:End|navigation.d.ts| +|新增|NA|类名:NavigationAttribute
方法or属性:navBarWidth(value: Length): NavigationAttribute;|navigation.d.ts| +|新增|NA|类名:NavigationAttribute
方法or属性:navBarPosition(value: NavBarPosition): NavigationAttribute;|navigation.d.ts| +|新增|NA|类名:NavigationAttribute
方法or属性:mode(value: NavigationMode): NavigationAttribute;|navigation.d.ts| +|新增|NA|类名:NavigationAttribute
方法or属性:backButtonIcon(value: string \| PixelMap \| Resource): NavigationAttribute;|navigation.d.ts| +|新增|NA|类名:NavigationAttribute
方法or属性:hideNavBar(value: boolean): NavigationAttribute;|navigation.d.ts| +|新增|NA|类名:NavigationAttribute
方法or属性:onNavBarStateChange(callback: (isVisible: boolean) => void): NavigationAttribute;|navigation.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationCommonTitle|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationCommonTitle
方法 or 属性: main: string;|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationCommonTitle
方法 or 属性: sub: string;|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationCustomTitle|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationCustomTitle
方法 or 属性: builder: CustomBuilder;|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationCustomTitle
方法 or 属性: height: TitleHeight \| Length;|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationInterface|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationInterface
方法 or 属性: (): NavDestinationAttribute;|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationAttribute|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationAttribute
方法 or 属性: title(value: string \| CustomBuilder \| NavDestinationCommonTitle \| NavDestinationCustomTitle): NavDestinationAttribute;|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationAttribute
方法 or 属性: hideTitleBar(value: boolean): NavDestinationAttribute;|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: global
方法 or 属性: declare const NavDestination: NavDestinationInterface;|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: global
方法 or 属性: declare const NavDestinationInstance: NavDestinationAttribute;|nav_destination.d.ts| +|新增|NA|模块名: nav_router
类名: NavRouterInterface|nav_router.d.ts| +|新增|NA|模块名: nav_router
类名: NavRouterInterface
方法 or 属性: (): NavRouterAttribute;|nav_router.d.ts| +|新增|NA|模块名: nav_router
类名: NavRouterAttribute|nav_router.d.ts| +|新增|NA|模块名: nav_router
类名: NavRouterAttribute
方法 or 属性: onStateChange(callback: (isActivated: boolean) => void): NavRouterAttribute;|nav_router.d.ts| +|新增|NA|模块名: nav_router
类名: global
方法 or 属性: declare const NavRouter: NavRouterInterface;|nav_router.d.ts| +|新增|NA|模块名: nav_router
类名: global
方法 or 属性: declare const NavRouterInstance: NavRouterAttribute;|nav_router.d.ts| +|新增|NA|模块名: panel
类名: PanelAttribute
方法 or 属性:backgroundMask(color: ResourceColor): PanelAttribute;|panel.d.ts| +|新增|NA|类名:PanelAttribute
方法or属性:backgroundMask(color: ResourceColor): PanelAttribute;|panel.d.ts| +|新增|NA|模块名: panel
类名: PanelAttribute
方法 or 属性:onHeightChange(callback: (value: number) => void): PanelAttribute;|panel.d.ts| +|新增|NA|类名:PanelAttribute
方法or属性:onHeightChange(callback: (value: number) => void): PanelAttribute;|panel.d.ts| +|新增|NA|模块名: pattern_lock
类名: PatternLockController|pattern_lock.d.ts| +|新增|NA|模块名: pattern_lock
类名: PatternLockController
方法 or 属性: constructor();|pattern_lock.d.ts| +|新增|NA|模块名: pattern_lock
类名: PatternLockController
方法 or 属性: reset();|pattern_lock.d.ts| +|新增|NA|模块名: pattern_lock
类名: PatternLockInterface|pattern_lock.d.ts| +|新增|NA|模块名: pattern_lock
类名: PatternLockInterface
方法 or 属性: (controller?: PatternLockController): PatternLockAttribute;|pattern_lock.d.ts| +|新增|NA|模块名: pattern_lock
类名: PatternLockAttribute|pattern_lock.d.ts| +|新增|NA|模块名: pattern_lock
类名: PatternLockAttribute
方法 or 属性: sideLength(value: Length): PatternLockAttribute;|pattern_lock.d.ts| +|新增|NA|模块名: pattern_lock
类名: PatternLockAttribute
方法 or 属性: circleRadius(value: Length): PatternLockAttribute;|pattern_lock.d.ts| +|新增|NA|模块名: pattern_lock
类名: PatternLockAttribute
方法 or 属性: backgroundColor(value: ResourceColor): PatternLockAttribute;|pattern_lock.d.ts| +|新增|NA|模块名: pattern_lock
类名: PatternLockAttribute
方法 or 属性: regularColor(value: ResourceColor): PatternLockAttribute;|pattern_lock.d.ts| +|新增|NA|模块名: pattern_lock
类名: PatternLockAttribute
方法 or 属性: selectedColor(value: ResourceColor): PatternLockAttribute;|pattern_lock.d.ts| +|新增|NA|模块名: pattern_lock
类名: PatternLockAttribute
方法 or 属性: activeColor(value: ResourceColor): PatternLockAttribute;|pattern_lock.d.ts| +|新增|NA|模块名: pattern_lock
类名: PatternLockAttribute
方法 or 属性: pathColor(value: ResourceColor): PatternLockAttribute;|pattern_lock.d.ts| +|新增|NA|模块名: pattern_lock
类名: PatternLockAttribute
方法 or 属性: pathStrokeWidth(value: number \| string): PatternLockAttribute;|pattern_lock.d.ts| +|新增|NA|模块名: pattern_lock
类名: PatternLockAttribute
方法 or 属性: onPatternComplete(callback: (input: Array\) => void): PatternLockAttribute;|pattern_lock.d.ts| +|新增|NA|模块名: pattern_lock
类名: PatternLockAttribute
方法 or 属性: autoReset(value: boolean): PatternLockAttribute;|pattern_lock.d.ts| +|新增|NA|模块名: pattern_lock
类名: global
方法 or 属性: declare const PatternLock: PatternLockInterface;|pattern_lock.d.ts| +|新增|NA|模块名: pattern_lock
类名: global
方法 or 属性: declare const PatternLockInstance: PatternLockAttribute;|pattern_lock.d.ts| +|新增|NA|模块名: plugin_component
类名: PluginComponentTemplate|plugin_component.d.ts| +|新增|NA|模块名: plugin_component
类名: PluginComponentTemplate
方法 or 属性: source: string;|plugin_component.d.ts| +|新增|NA|模块名: plugin_component
类名: PluginComponentTemplate
方法 or 属性: bundleName: string;|plugin_component.d.ts| +|新增|NA|模块名: plugin_component
类名: PluginComponentInterface|plugin_component.d.ts| +|新增|NA|模块名: plugin_component
类名: PluginComponentInterface
方法 or 属性: (value: { template: PluginComponentTemplate; data: any }): PluginComponentAttribute;|plugin_component.d.ts| +|新增|NA|模块名: plugin_component
类名: PluginComponentAttribute|plugin_component.d.ts| +|新增|NA|模块名: plugin_component
类名: PluginComponentAttribute
方法 or 属性: onComplete(callback: () => void): PluginComponentAttribute;|plugin_component.d.ts| +|新增|NA|模块名: plugin_component
类名: PluginComponentAttribute
方法 or 属性: onError(callback: (info: { errcode: number; msg: string }) => void): PluginComponentAttribute;|plugin_component.d.ts| +|新增|NA|模块名: plugin_component
类名: global
方法 or 属性: declare const PluginComponent: PluginComponentInterface;|plugin_component.d.ts| +|新增|NA|模块名: plugin_component
类名: global
方法 or 属性: declare const PluginComponentInstance: PluginComponentAttribute;|plugin_component.d.ts| +|新增|NA|类名:global
方法or属性:declare const RectInstance: RectAttribute;|rect.d.ts| +|新增|NA|模块名: relative_container
类名: RelativeContainerInterface|relative_container.d.ts| +|新增|NA|模块名: relative_container
类名: RelativeContainerInterface
方法 or 属性: (): RelativeContainerAttribute;|relative_container.d.ts| +|新增|NA|模块名: relative_container
类名: RelativeContainerAttribute|relative_container.d.ts| +|新增|NA|模块名: relative_container
类名: global
方法 or 属性: declare const RelativeContainer : RelativeContainerInterface;|relative_container.d.ts| +|新增|NA|模块名: relative_container
类名: global
方法 or 属性: declare const RelativeContainerInstance: RelativeContainerAttribute;|relative_container.d.ts| +|新增|NA|模块名: remote_window
类名: RRect|remote_window.d.ts| +|新增|NA|模块名: remote_window
类名: RRect
方法 or 属性: left: number;|remote_window.d.ts| +|新增|NA|模块名: remote_window
类名: RRect
方法 or 属性: top: number;|remote_window.d.ts| +|新增|NA|模块名: remote_window
类名: RRect
方法 or 属性: width: number;|remote_window.d.ts| +|新增|NA|模块名: remote_window
类名: RRect
方法 or 属性: height: number;|remote_window.d.ts| +|新增|NA|模块名: remote_window
类名: RRect
方法 or 属性: radius: number;|remote_window.d.ts| +|新增|NA|模块名: remote_window
类名: WindowAnimationTarget|remote_window.d.ts| +|新增|NA|模块名: remote_window
类名: WindowAnimationTarget
方法 or 属性: readonly bundleName: string;|remote_window.d.ts| +|新增|NA|模块名: remote_window
类名: WindowAnimationTarget
方法 or 属性: readonly abilityName: string;|remote_window.d.ts| +|新增|NA|模块名: remote_window
类名: WindowAnimationTarget
方法 or 属性: readonly windowBounds: RRect;|remote_window.d.ts| +|新增|NA|模块名: remote_window
类名: WindowAnimationTarget
方法 or 属性: readonly missionId: number;|remote_window.d.ts| +|新增|NA|模块名: remote_window
类名: RemoteWindowInterface|remote_window.d.ts| +|新增|NA|模块名: remote_window
类名: RemoteWindowInterface
方法 or 属性: (target: WindowAnimationTarget): RemoteWindowAttribute;|remote_window.d.ts| +|新增|NA|模块名: remote_window
类名: RemoteWindowAttribute|remote_window.d.ts| +|新增|NA|模块名: remote_window
类名: global
方法 or 属性: declare const RemoteWindow: RemoteWindowInterface;|remote_window.d.ts| +|新增|NA|模块名: remote_window
类名: global
方法 or 属性: declare const RemoteWindowInstance: RemoteWindowAttribute;|remote_window.d.ts| +|新增|NA|类名:Scroller
方法or属性:scrollPage(value: { next: boolean });|scroll.d.ts| +|新增|NA|类名:Scroller
方法or属性:scrollBy(dx: Length, dy: Length);|scroll.d.ts| +|新增|NA|类名:ScrollAttribute
方法or属性:onScrollStart(event: () => void): ScrollAttribute;|scroll.d.ts| +|新增|NA|类名:ScrollAttribute
方法or属性:onScrollStop(event: () => void): ScrollAttribute;|scroll.d.ts| +|新增|NA|类名:ScrollAttribute
方法or属性:onScrollFrameBegin(event: (offset: number, state: ScrollState) => { offsetRemain: number }): ScrollAttribute;|scroll.d.ts| +|新增|NA|模块名: search
类名: SearchAttribute
方法 or 属性:copyOption(value: CopyOptions): SearchAttribute;|search.d.ts| +|新增|NA|类名:SearchAttribute
方法or属性:copyOption(value: CopyOptions): SearchAttribute;|search.d.ts| +|新增|NA|模块名: search
类名: SearchAttribute
方法 or 属性:textAlign(value: TextAlign): SearchAttribute;|search.d.ts| +|新增|NA|类名:SearchAttribute
方法or属性:textAlign(value: TextAlign): SearchAttribute;|search.d.ts| +|新增|NA|类名:ShapeInterface
方法or属性:(value: PixelMap): ShapeAttribute;|shape.d.ts| +|新增|NA|类名:ShapeInterface
方法or属性:(): ShapeAttribute;|shape.d.ts| +|新增|NA|模块名: sidebar
类名: SideBarPosition|sidebar.d.ts| +|新增|NA|类名:SideBarPosition
方法or属性:|sidebar.d.ts| +|新增|NA|模块名: sidebar
类名: SideBarPosition
方法 or 属性:Start|sidebar.d.ts| +|新增|NA|类名:SideBarPosition
方法or属性:Start|sidebar.d.ts| +|新增|NA|模块名: sidebar
类名: SideBarPosition
方法 or 属性:End|sidebar.d.ts| +|新增|NA|类名:SideBarPosition
方法or属性:End|sidebar.d.ts| +|新增|NA|模块名: sidebar
类名: SideBarContainerAttribute
方法 or 属性:sideBarWidth(value: Length): SideBarContainerAttribute;|sidebar.d.ts| +|新增|NA|类名:SideBarContainerAttribute
方法or属性:sideBarWidth(value: Length): SideBarContainerAttribute;|sidebar.d.ts| +|新增|NA|模块名: sidebar
类名: SideBarContainerAttribute
方法 or 属性:minSideBarWidth(value: Length): SideBarContainerAttribute;|sidebar.d.ts| +|新增|NA|类名:SideBarContainerAttribute
方法or属性:minSideBarWidth(value: Length): SideBarContainerAttribute;|sidebar.d.ts| +|新增|NA|模块名: sidebar
类名: SideBarContainerAttribute
方法 or 属性:maxSideBarWidth(value: Length): SideBarContainerAttribute;|sidebar.d.ts| +|新增|NA|类名:SideBarContainerAttribute
方法or属性:maxSideBarWidth(value: Length): SideBarContainerAttribute;|sidebar.d.ts| +|新增|NA|模块名: sidebar
类名: SideBarContainerAttribute
方法 or 属性:autoHide(value: boolean): SideBarContainerAttribute;|sidebar.d.ts| +|新增|NA|类名:SideBarContainerAttribute
方法or属性:autoHide(value: boolean): SideBarContainerAttribute;|sidebar.d.ts| +|新增|NA|模块名: sidebar
类名: SideBarContainerAttribute
方法 or 属性:sideBarPosition(value: SideBarPosition): SideBarContainerAttribute;|sidebar.d.ts| +|新增|NA|类名:SideBarContainerAttribute
方法or属性:sideBarPosition(value: SideBarPosition): SideBarContainerAttribute;|sidebar.d.ts| +|新增|NA|模块名: swiper
类名: SwiperAttribute
方法 or 属性:onAnimationStart(event: (index: number) => void): SwiperAttribute;|swiper.d.ts| +|新增|NA|类名: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|类名:SwiperAttribute
方法or属性:onAnimationEnd(event: (index: number) => void): SwiperAttribute;|swiper.d.ts| +|新增|NA|模块名: tabs
类名: TabsAttribute
方法 or 属性:barPosition(value: BarPosition): TabsAttribute;|tabs.d.ts| +|新增|NA|类名:TabsAttribute
方法or属性:barPosition(value: BarPosition): TabsAttribute;|tabs.d.ts| +|新增|NA|模块名: tab_content
类名: SubTabBarStyle|tab_content.d.ts| +|新增|NA|类名:SubTabBarStyle
方法or属性:|tab_content.d.ts| +|新增|NA|模块名: tab_content
类名: SubTabBarStyle
方法 or 属性:constructor(content: string \| Resource);|tab_content.d.ts| +|新增|NA|类名:SubTabBarStyle
方法or属性:constructor(content: string \| Resource);|tab_content.d.ts| +|新增|NA|模块名: tab_content
类名: BottomTabBarStyle|tab_content.d.ts| +|新增|NA|类名:BottomTabBarStyle
方法or属性:|tab_content.d.ts| +|新增|NA|模块名: tab_content
类名: BottomTabBarStyle
方法 or 属性:constructor(icon: string \| Resource, text: string \| Resource);|tab_content.d.ts| +|新增|NA|类名:BottomTabBarStyle
方法or属性:constructor(icon: string \| Resource, text: string \| Resource);|tab_content.d.ts| +|新增|NA|类名:TabContentAttribute
方法or属性:tabBar(value: SubTabBarStyle \| BottomTabBarStyle): TabContentAttribute;|tab_content.d.ts| +|新增|NA|类名:TextAttribute
方法or属性:copyOption(value: CopyOptions): TextAttribute;|text.d.ts| +|新增|NA|模块名: text_area
类名: TextAreaAttribute
方法 or 属性:copyOption(value: CopyOptions): TextAreaAttribute;|text_area.d.ts| +|新增|NA|类名:TextAreaAttribute
方法or属性:copyOption(value: CopyOptions): TextAreaAttribute;|text_area.d.ts| +|新增|NA|模块名: text_input
类名: InputType
方法 or 属性:PhoneNumber|text_input.d.ts| +|新增|NA|类名:InputType
方法or属性:PhoneNumber|text_input.d.ts| +|新增|NA|模块名: text_input
类名: TextInputStyle|text_input.d.ts| +|新增|NA|类名:TextInputStyle
方法or属性:|text_input.d.ts| +|新增|NA|模块名: text_input
类名: TextInputStyle
方法 or 属性:Default|text_input.d.ts| +|新增|NA|类名:TextInputStyle
方法or属性:Default|text_input.d.ts| +|新增|NA|模块名: text_input
类名: TextInputStyle
方法 or 属性:Inline|text_input.d.ts| +|新增|NA|类名:TextInputStyle
方法or属性:Inline|text_input.d.ts| +|新增|NA|模块名: text_input
类名: TextInputAttribute
方法 or 属性:copyOption(value: CopyOptions): TextInputAttribute;|text_input.d.ts| +|新增|NA|类名:TextInputAttribute
方法or属性:copyOption(value: CopyOptions): TextInputAttribute;|text_input.d.ts| +|新增|NA|模块名: text_input
类名: TextInputAttribute
方法 or 属性:showPasswordIcon(value: boolean): TextInputAttribute;|text_input.d.ts| +|新增|NA|类名:TextInputAttribute
方法or属性:showPasswordIcon(value: boolean): TextInputAttribute;|text_input.d.ts| +|新增|NA|模块名: text_input
类名: TextInputAttribute
方法 or 属性:textAlign(value: TextAlign): TextInputAttribute;|text_input.d.ts| +|新增|NA|类名:TextInputAttribute
方法or属性:textAlign(value: TextAlign): TextInputAttribute;|text_input.d.ts| +|新增|NA|模块名: text_input
类名: TextInputAttribute
方法 or 属性:style(value: TextInputStyle): TextInputAttribute;|text_input.d.ts| +|新增|NA|类名:TextInputAttribute
方法or属性:style(value: TextInputStyle): TextInputAttribute;|text_input.d.ts| +|新增|NA|模块名: units
类名: Resource
方法 or 属性:readonly bundleName: string;|units.d.ts| +|新增|NA|类名:Resource
方法or属性:readonly bundleName: string;|units.d.ts| +|新增|NA|模块名: units
类名: Resource
方法 or 属性:readonly moduleName: string;|units.d.ts| +|新增|NA|类名:Resource
方法or属性:readonly moduleName: string;|units.d.ts| +|新增|NA|类名:BorderOptions
方法or属性:width?: EdgeWidths \| Length;|units.d.ts| +|新增|NA|类名:BorderOptions
方法or属性:color?: EdgeColors \| ResourceColor;|units.d.ts| +|新增|NA|类名:BorderOptions
方法or属性:radius?: BorderRadiuses \| Length;|units.d.ts| +|新增|NA|类名:BorderOptions
方法or属性:style?: EdgeStyles \| BorderStyle;|units.d.ts| +|新增|NA|模块名: units
类名: ColorFilter|units.d.ts| +|新增|NA|类名:ColorFilter
方法or属性:|units.d.ts| +|新增|NA|模块名: units
类名: ColorFilter
方法 or 属性:constructor(value: number[]);|units.d.ts| +|新增|NA|类名:ColorFilter
方法or属性:constructor(value: number[]);|units.d.ts| +|新增|NA|模块名: units
类名: GlobalResource|units.d.ts| +|新增|NA|类名:GlobalResource
方法or属性:|units.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowOptions|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowOptions
方法 or 属性: footer?: CustomBuilder;|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowOptions
方法 or 属性: scroller?: Scroller;|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowInterface|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowInterface
方法 or 属性: (options?: WaterFlowOptions): WaterFlowAttribute;|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法 or 属性: columnsTemplate(value: string): WaterFlowAttribute;|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法 or 属性: itemConstraintSize(value: ConstraintSizeOptions): WaterFlowAttribute;|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法 or 属性: rowsTemplate(value: string): WaterFlowAttribute;|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法 or 属性: columnsGap(value: Length): WaterFlowAttribute;|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法 or 属性: rowsGap(value: Length): WaterFlowAttribute;|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法 or 属性: layoutDirection(value: FlexDirection): WaterFlowAttribute;|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法 or 属性: onReachStart(event: () => void): WaterFlowAttribute;|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法 or 属性: onReachEnd(event: () => void): WaterFlowAttribute;|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: global
方法 or 属性: declare const WaterFlow: WaterFlowInterface;|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: global
方法 or 属性: declare const WaterFlowInstance: WaterFlowAttribute;|water_flow.d.ts| +|新增|NA|模块名: web
类名: CacheMode
方法 or 属性:Default|web.d.ts| +|新增|NA|类名:CacheMode
方法or属性:Default|web.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
类名: FullScreenExitHandler|web.d.ts| +|新增|NA|类名:FullScreenExitHandler
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: FullScreenExitHandler
方法 or 属性:constructor();|web.d.ts| +|新增|NA|类名:FullScreenExitHandler
方法or属性:constructor();|web.d.ts| +|新增|NA|模块名: web
类名: FullScreenExitHandler
方法 or 属性:exitFullScreen(): void;|web.d.ts| +|新增|NA|类名:FullScreenExitHandler
方法or属性:exitFullScreen(): void;|web.d.ts| +|新增|NA|模块名: web
类名: RenderExitReason|web.d.ts| +|新增|NA|类名:RenderExitReason
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: RenderExitReason
方法 or 属性:ProcessAbnormalTermination|web.d.ts| +|新增|NA|类名:RenderExitReason
方法or属性:ProcessAbnormalTermination|web.d.ts| +|新增|NA|模块名: web
类名: RenderExitReason
方法 or 属性:ProcessWasKilled|web.d.ts| +|新增|NA|类名:RenderExitReason
方法or属性:ProcessWasKilled|web.d.ts| +|新增|NA|模块名: web
类名: RenderExitReason
方法 or 属性:ProcessCrashed|web.d.ts| +|新增|NA|类名:RenderExitReason
方法or属性:ProcessCrashed|web.d.ts| +|新增|NA|模块名: web
类名: RenderExitReason
方法 or 属性:ProcessOom|web.d.ts| +|新增|NA|类名:RenderExitReason
方法or属性:ProcessOom|web.d.ts| +|新增|NA|模块名: web
类名: RenderExitReason
方法 or 属性:ProcessExitUnknown|web.d.ts| +|新增|NA|类名:RenderExitReason
方法or属性:ProcessExitUnknown|web.d.ts| +|新增|NA|模块名: web
类名: SslError|web.d.ts| +|新增|NA|类名:SslError
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: SslError
方法 or 属性:Invalid|web.d.ts| +|新增|NA|类名:SslError
方法or属性:Invalid|web.d.ts| +|新增|NA|模块名: web
类名: SslError
方法 or 属性:HostMismatch|web.d.ts| +|新增|NA|类名:SslError
方法or属性:HostMismatch|web.d.ts| +|新增|NA|模块名: web
类名: SslError
方法 or 属性:DateInvalid|web.d.ts| +|新增|NA|类名:SslError
方法or属性:DateInvalid|web.d.ts| +|新增|NA|模块名: web
类名: SslError
方法 or 属性:Untrusted|web.d.ts| +|新增|NA|类名:SslError
方法or属性:Untrusted|web.d.ts| +|新增|NA|模块名: web
类名: FileSelectorMode|web.d.ts| +|新增|NA|类名:FileSelectorMode
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: FileSelectorMode
方法 or 属性:FileOpenMode|web.d.ts| +|新增|NA|类名:FileSelectorMode
方法or属性:FileOpenMode|web.d.ts| +|新增|NA|模块名: web
类名: FileSelectorMode
方法 or 属性:FileOpenMultipleMode|web.d.ts| +|新增|NA|类名:FileSelectorMode
方法or属性:FileOpenMultipleMode|web.d.ts| +|新增|NA|模块名: web
类名: FileSelectorMode
方法 or 属性:FileOpenFolderMode|web.d.ts| +|新增|NA|类名:FileSelectorMode
方法or属性:FileOpenFolderMode|web.d.ts| +|新增|NA|模块名: web
类名: FileSelectorMode
方法 or 属性:FileSaveMode|web.d.ts| +|新增|NA|类名:FileSelectorMode
方法or属性:FileSaveMode|web.d.ts| +|新增|NA|模块名: web
类名: FileSelectorParam|web.d.ts| +|新增|NA|类名:FileSelectorParam
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: FileSelectorParam
方法 or 属性:constructor();|web.d.ts| +|新增|NA|类名:FileSelectorParam
方法or属性:constructor();|web.d.ts| +|新增|NA|模块名: web
类名: FileSelectorParam
方法 or 属性:getTitle(): string;|web.d.ts| +|新增|NA|类名:FileSelectorParam
方法or属性:getTitle(): string;|web.d.ts| +|新增|NA|模块名: web
类名: FileSelectorParam
方法 or 属性:getMode(): FileSelectorMode;|web.d.ts| +|新增|NA|类名:FileSelectorParam
方法or属性:getMode(): FileSelectorMode;|web.d.ts| +|新增|NA|模块名: web
类名: FileSelectorParam
方法 or 属性:getAcceptType(): Array\;|web.d.ts| +|新增|NA|类名:FileSelectorParam
方法or属性:getAcceptType(): Array\;|web.d.ts| +|新增|NA|模块名: web
类名: FileSelectorParam
方法 or 属性:isCapture(): boolean;|web.d.ts| +|新增|NA|类名:FileSelectorParam
方法or属性:isCapture(): boolean;|web.d.ts| +|新增|NA|模块名: web
类名: JsResult
方法 or 属性:handlePromptConfirm(result: string): void;|web.d.ts| +|新增|NA|类名:JsResult
方法or属性:handlePromptConfirm(result: string): void;|web.d.ts| +|新增|NA|模块名: web
类名: FileSelectorResult|web.d.ts| +|新增|NA|类名:FileSelectorResult
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: FileSelectorResult
方法 or 属性:constructor();|web.d.ts| +|新增|NA|类名:FileSelectorResult
方法or属性:constructor();|web.d.ts| +|新增|NA|模块名: web
类名: FileSelectorResult
方法 or 属性:handleFileList(fileList: Array\): void;|web.d.ts| +|新增|NA|类名:FileSelectorResult
方法or属性:handleFileList(fileList: Array\): void;|web.d.ts| +|新增|NA|模块名: web
类名: HttpAuthHandler|web.d.ts| +|新增|NA|类名:HttpAuthHandler
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: HttpAuthHandler
方法 or 属性:constructor();|web.d.ts| +|新增|NA|类名:HttpAuthHandler
方法or属性:constructor();|web.d.ts| +|新增|NA|模块名: web
类名: HttpAuthHandler
方法 or 属性:confirm(userName: string, password: string): boolean;|web.d.ts| +|新增|NA|类名:HttpAuthHandler
方法or属性:confirm(userName: string, password: string): boolean;|web.d.ts| +|新增|NA|模块名: web
类名: HttpAuthHandler
方法 or 属性:cancel(): void;|web.d.ts| +|新增|NA|类名:HttpAuthHandler
方法or属性:cancel(): void;|web.d.ts| +|新增|NA|模块名: web
类名: HttpAuthHandler
方法 or 属性:isHttpAuthInfoSaved(): boolean;|web.d.ts| +|新增|NA|类名:HttpAuthHandler
方法or属性:isHttpAuthInfoSaved(): boolean;|web.d.ts| +|新增|NA|模块名: web
类名: SslErrorHandler|web.d.ts| +|新增|NA|类名:SslErrorHandler
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: SslErrorHandler
方法 or 属性:constructor();|web.d.ts| +|新增|NA|类名:SslErrorHandler
方法or属性:constructor();|web.d.ts| +|新增|NA|模块名: web
类名: SslErrorHandler
方法 or 属性:handleConfirm(): void;|web.d.ts| +|新增|NA|类名:SslErrorHandler
方法or属性:handleConfirm(): void;|web.d.ts| +|新增|NA|模块名: web
类名: SslErrorHandler
方法 or 属性:handleCancel(): void;|web.d.ts| +|新增|NA|类名:SslErrorHandler
方法or属性:handleCancel(): void;|web.d.ts| +|新增|NA|模块名: web
类名: ClientAuthenticationHandler|web.d.ts| +|新增|NA|类名:ClientAuthenticationHandler
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: ClientAuthenticationHandler
方法 or 属性:constructor();|web.d.ts| +|新增|NA|类名:ClientAuthenticationHandler
方法or属性:constructor();|web.d.ts| +|新增|NA|模块名: web
类名: ClientAuthenticationHandler
方法 or 属性:confirm(priKeyFile : string, certChainFile : string): void;|web.d.ts| +|新增|NA|类名:ClientAuthenticationHandler
方法or属性:confirm(priKeyFile : string, certChainFile : string): void;|web.d.ts| +|新增|NA|模块名: web
类名: ClientAuthenticationHandler
方法 or 属性:cancel(): void;|web.d.ts| +|新增|NA|类名:ClientAuthenticationHandler
方法or属性:cancel(): void;|web.d.ts| +|新增|NA|模块名: web
类名: ClientAuthenticationHandler
方法 or 属性:ignore(): void;|web.d.ts| +|新增|NA|类名:ClientAuthenticationHandler
方法or属性:ignore(): void;|web.d.ts| +|新增|NA|模块名: web
类名: ProtectedResourceType|web.d.ts| +|新增|NA|类名:ProtectedResourceType
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: ProtectedResourceType
方法 or 属性:MidiSysex = "TYPE_MIDI_SYSEX"|web.d.ts| +|新增|NA|类名:ProtectedResourceType
方法or属性:MidiSysex = "TYPE_MIDI_SYSEX"|web.d.ts| +|新增|NA|模块名: web
类名: PermissionRequest|web.d.ts| +|新增|NA|类名:PermissionRequest
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: PermissionRequest
方法 or 属性:constructor();|web.d.ts| +|新增|NA|类名:PermissionRequest
方法or属性:constructor();|web.d.ts| +|新增|NA|模块名: web
类名: PermissionRequest
方法 or 属性:deny(): void;|web.d.ts| +|新增|NA|类名:PermissionRequest
方法or属性:deny(): void;|web.d.ts| +|新增|NA|模块名: web
类名: PermissionRequest
方法 or 属性:getOrigin(): string;|web.d.ts| +|新增|NA|类名:PermissionRequest
方法or属性:getOrigin(): string;|web.d.ts| +|新增|NA|模块名: web
类名: PermissionRequest
方法 or 属性:getAccessibleResource(): Array\;|web.d.ts| +|新增|NA|类名:PermissionRequest
方法or属性:getAccessibleResource(): Array\;|web.d.ts| +|新增|NA|模块名: web
类名: PermissionRequest
方法 or 属性:grant(resources: Array\): void;|web.d.ts| +|新增|NA|类名:PermissionRequest
方法or属性:grant(resources: Array\): void;|web.d.ts| +|新增|NA|模块名: web
类名: DataResubmissionHandler|web.d.ts| +|新增|NA|类名:DataResubmissionHandler
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: DataResubmissionHandler
方法 or 属性:constructor();|web.d.ts| +|新增|NA|类名:DataResubmissionHandler
方法or属性:constructor();|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
类名: ControllerHandler|web.d.ts| +|新增|NA|类名:ControllerHandler
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: ControllerHandler
方法 or 属性:constructor();|web.d.ts| +|新增|NA|类名:ControllerHandler
方法or属性:constructor();|web.d.ts| +|新增|NA|模块名: web
类名: ControllerHandler
方法 or 属性:setWebController(controller: WebviewController): void;|web.d.ts| +|新增|NA|类名:ControllerHandler
方法or属性:setWebController(controller: WebviewController): 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|模块名: web
类名: WebContextMenuParam|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuParam
方法 or 属性:constructor();|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:constructor();|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuParam
方法 or 属性:x(): number;|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:x(): number;|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuParam
方法 or 属性:y(): number;|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:y(): number;|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuParam
方法 or 属性:getLinkUrl(): string;|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:getLinkUrl(): string;|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuParam
方法 or 属性:getUnfilteredLinkUrl(): string;|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:getUnfilteredLinkUrl(): string;|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuParam
方法 or 属性:getSourceUrl(): string;|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:getSourceUrl(): string;|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuParam
方法 or 属性:existsImageContents(): boolean;|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:existsImageContents(): boolean;|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuParam
方法 or 属性:getMediaType(): ContextMenuMediaType;|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:getMediaType(): ContextMenuMediaType;|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuParam
方法 or 属性:getSelectionText(): string;|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:getSelectionText(): string;|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuParam
方法 or 属性:getSourceType(): ContextMenuSourceType;|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:getSourceType(): ContextMenuSourceType;|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuParam
方法 or 属性:getInputFieldType(): ContextMenuInputFieldType;|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:getInputFieldType(): ContextMenuInputFieldType;|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuParam
方法 or 属性:isEditable(): boolean;|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:isEditable(): boolean;|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuParam
方法 or 属性:getEditStateFlags(): number;|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:getEditStateFlags(): number;|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuResult|web.d.ts| +|新增|NA|类名:WebContextMenuResult
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuResult
方法 or 属性:constructor();|web.d.ts| +|新增|NA|类名:WebContextMenuResult
方法or属性:constructor();|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuResult
方法 or 属性:closeContextMenu(): void;|web.d.ts| +|新增|NA|类名:WebContextMenuResult
方法or属性:closeContextMenu(): void;|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuResult
方法 or 属性:copyImage(): void;|web.d.ts| +|新增|NA|类名:WebContextMenuResult
方法or属性:copyImage(): void;|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|类名:ConsoleMessage
方法or属性:constructor();|web.d.ts| +|新增|NA|模块名: web
类名: WebResourceRequest
方法 or 属性:getRequestMethod(): string;|web.d.ts| +|新增|NA|类名:WebResourceRequest
方法or属性:getRequestMethod(): string;|web.d.ts| +|新增|NA|模块名: web
类名: WebResourceResponse
方法 or 属性:setResponseData(data: string \| number);|web.d.ts| +|新增|NA|类名:WebResourceResponse
方法or属性:setResponseData(data: string \| number);|web.d.ts| +|新增|NA|模块名: web
类名: WebResourceResponse
方法 or 属性:setResponseEncoding(encoding: string);|web.d.ts| +|新增|NA|类名:WebResourceResponse
方法or属性:setResponseEncoding(encoding: string);|web.d.ts| +|新增|NA|模块名: web
类名: WebResourceResponse
方法 or 属性:setResponseMimeType(mimeType: string);|web.d.ts| +|新增|NA|类名:WebResourceResponse
方法or属性:setResponseMimeType(mimeType: string);|web.d.ts| +|新增|NA|模块名: web
类名: WebResourceResponse
方法 or 属性:setReasonMessage(reason: string);|web.d.ts| +|新增|NA|类名:WebResourceResponse
方法or属性:setReasonMessage(reason: string);|web.d.ts| +|新增|NA|模块名: web
类名: WebResourceResponse
方法 or 属性:setResponseHeader(header: Array\
);|web.d.ts| +|新增|NA|类名:WebResourceResponse
方法or属性:setResponseHeader(header: Array\
);|web.d.ts| +|新增|NA|模块名: web
类名: WebResourceResponse
方法 or 属性:setResponseCode(code: number);|web.d.ts| +|新增|NA|类名:WebResourceResponse
方法or属性:setResponseCode(code: number);|web.d.ts| +|新增|NA|模块名: web
类名: WebResourceResponse
方法 or 属性:setResponseIsReady(IsReady: boolean);|web.d.ts| +|新增|NA|类名:WebResourceResponse
方法or属性:setResponseIsReady(IsReady: boolean);|web.d.ts| +|新增|NA|类名:WebController
方法or属性:getCookieManager() : WebCookie|web.d.ts| +|新增|NA|类名:WebOptions
方法or属性:controller: WebController \| WebviewController;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:darkMode(mode: WebDarkMode): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:forceDarkAccess(access: boolean): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:textZoomRatio(textZoomRatio: number): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:initialScale(percent: number): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onPrompt(callback: (event?: {url: string, message: string, value: string, result: JsResult }) => boolean): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onRenderExited(callback: (event?: { renderExitReason: RenderExitReason }) => void): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onShowFileSelector(callback: (event?: { result: FileSelectorResult,
fileSelector: FileSelectorParam }) => boolean): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onResourceLoad(callback: (event: {url: string}) => void): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onFullScreenExit(callback: () => void): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onFullScreenEnter(callback: (event: { handler: FullScreenExitHandler}) => void): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onScaleChange(callback: (event: {oldScale: number, newScale: number}) => void): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onHttpAuthRequest(callback: (event?: { handler: HttpAuthHandler, host: string, realm: string }) => boolean): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onInterceptRequest(callback: (event?: { request: WebResourceRequest}) => WebResourceResponse): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onPermissionRequest(callback: (event?: { request: PermissionRequest }) => void): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onContextMenuShow(callback: (event?: { param: WebContextMenuParam, result: WebContextMenuResult }) => boolean): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:mediaPlayGestureAccess(access: boolean): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onSearchResultReceive(callback: (event?: {activeMatchOrdinal: number, numberOfMatches: number, isDoneCounting: boolean}) => void): WebAttribute|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onScroll(callback: (event: {xOffset: number, yOffset: number}) => void): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onSslErrorEventReceive(callback: (event: { handler: SslErrorHandler, error: SslError }) => void): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onClientAuthenticationRequest(callback: (event: {handler : ClientAuthenticationHandler, host : string, port : number,
keyTypes : Array\, issuers : Array\}) => void): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onWindowNew(callback: (event: {isAlert: boolean, isUserTrigger: boolean, targetUrl: string,
handler: ControllerHandler}) => void): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onWindowExit(callback: () => void): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:multiWindowAccess(multiWindow: boolean): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onInterceptKeyEvent(callback: (event: KeyEvent) => boolean): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:webStandardFont(family: string): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:webSerifFont(family: string): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:webSansSerifFont(family: string): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:webFixedFont(family: string): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:webFantasyFont(family: string): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:webCursiveFont(family: string): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:defaultFixedFontSize(size: number): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:defaultFontSize(size: number): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:minFontSize(size: number): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:minLogicalFontSize(size: number): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:blockNetwork(block: boolean): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:horizontalScrollBarAccess(horizontalScrollBar: boolean): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:verticalScrollBarAccess(verticalScrollBar: boolean): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onTouchIconUrlReceived(callback: (event: {url: string,
precomposed: boolean}) => void): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onFaviconReceived(callback: (event: {favicon: PixelMap}) => void): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onPageVisible(callback: (event: {url: string}) => void): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onDataResubmitted(callback: (event: {handler: DataResubmissionHandler}) => void): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:pinchSmooth(isEnabled: boolean): WebAttribute;|web.d.ts| +|新增|NA|模块名: viewmodel
类名: OffscreenCanvasRenderingContext2D
方法 or 属性: drawImage(image: image.PixelMap, dx: number, dy: number, dw: number, dh: number): void;|viewmodel.d.ts| +|新增|NA|模块名: viewmodel
类名: OffscreenCanvasRenderingContext2D
方法 or 属性: 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|模块名: viewmodel
类名: OffscreenCanvasRenderingContext2D
方法 or 属性: getPixelMap(sx: number, sy: number, sw: number, sh: number): image.PixelMap|viewmodel.d.ts| +|新增|NA|模块名: viewmodel
类名: CanvasRenderingContext2D
方法 or 属性: drawImage(image: image.PixelMap, dx: number, dy: number, dWidth: number, dHeight: number): void;|viewmodel.d.ts| +|新增|NA|模块名: viewmodel
类名: CanvasRenderingContext2D
方法 or 属性: drawImage(
image: image.PixelMap,
sx: number,
sy: number,
sWidth: number,
sHeight: number,
dx: number,
dy: number,
dWidth: number,
dHeight: number,
): void;|viewmodel.d.ts| +|新增|NA|模块名: viewmodel
类名: CanvasRenderingContext2D
方法 or 属性: getPixelMap(sx: number, sy: number, sw: number, sh: number): image.PixelMap|viewmodel.d.ts| +|删除|模块名: canvas
类名: CanvasPattern|NA|canvas.d.ts| +|删除|模块名: canvas
类名: CanvasPattern
方法 or 属性:setTransform(transform?: Matrix2D): void;|NA|canvas.d.ts| +|删除|模块名:canvas
类名:CanvasRenderer
方法 or 属性:filter(filter: string): void;|NA|canvas.d.ts| +|删除|模块名:canvas
类名:CanvasRenderer
方法 or 属性:imageSmoothingQuality(quality: ImageSmoothingQuality): void;|NA|canvas.d.ts| +|删除|模块名:canvas
类名:CanvasRenderer
方法 or 属性:direction(direction: CanvasDirection): void;|NA|canvas.d.ts| +|删除|模块名:common
类名:global
方法 or 属性:declare const isSystemplugin: (...args: string[]) => any;|NA|common.d.ts| +|删除|模块名: state_management
类名: IPropertySubscriber|NA|state_management.d.ts| +|删除|模块名: state_management
类名: IPropertySubscriber
方法 or 属性:id(): number;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: IPropertySubscriber
方法 or 属性:aboutToBeDeleted(owningView?: IPropertySubscriber): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: ISinglePropertyChangeSubscriber|NA|state_management.d.ts| +|删除|模块名: state_management
类名: ISinglePropertyChangeSubscriber
方法 or 属性:hasChanged(newValue: T): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribedAbstractProperty|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribedAbstractProperty
方法 or 属性:protected subscribers_: Set\;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribedAbstractProperty
方法 or 属性:private id_;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribedAbstractProperty
方法 or 属性:private info_?;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribedAbstractProperty
方法 or 属性:constructor(
/**
* Subscriber IPropertySubscriber.
* @since 7
* @systemapi
*/
subscribeMe?: IPropertySubscriber,
/**
* Subscriber info.
* @since 7
* @systemapi
*/
info?: string,
);|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribedAbstractProperty
方法 or 属性:id(): number;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribedAbstractProperty
方法 or 属性:info(): string;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribedAbstractProperty
方法 or 属性:abstract get(): T;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribedAbstractProperty
方法 or 属性:abstract set(newValue: T): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribedAbstractProperty
方法 or 属性:createTwoWaySync(subscribeMe?: IPropertySubscriber, info?: string): SyncedPropertyTwoWay\;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribedAbstractProperty
方法 or 属性:createOneWaySync(subscribeMe?: IPropertySubscriber, info?: string): SyncedPropertyOneWay\;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribedAbstractProperty
方法 or 属性:unlinkSuscriber(subscriberId: number): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribedAbstractProperty
方法 or 属性:protected notifyHasChanged(newValue: T): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribedAbstractProperty
方法 or 属性:protected notifyPropertyRead(): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribedAbstractProperty
方法 or 属性:numberOfSubscrbers(): number;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SyncedPropertyTwoWay|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SyncedPropertyTwoWay
方法 or 属性:private source_;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SyncedPropertyTwoWay
方法 or 属性:constructor(source: SubscribedAbstractProperty\, subscribeMe?: IPropertySubscriber, info?: string);|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SyncedPropertyTwoWay
方法 or 属性:aboutToBeDeleted(unsubscribeMe?: IPropertySubscriber): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SyncedPropertyTwoWay
方法 or 属性:hasChanged(newValue: T): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SyncedPropertyTwoWay
方法 or 属性:get(): T;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SyncedPropertyTwoWay
方法 or 属性:set(newValue: T): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SyncedPropertyOneWay|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SyncedPropertyOneWay
方法 or 属性:private wrappedValue_;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SyncedPropertyOneWay
方法 or 属性:private source_;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SyncedPropertyOneWay
方法 or 属性:constructor(source: SubscribedAbstractProperty\, subscribeMe?: IPropertySubscriber, info?: string);|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SyncedPropertyOneWay
方法 or 属性:aboutToBeDeleted(unsubscribeMe?: IPropertySubscriber): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SyncedPropertyOneWay
方法 or 属性:hasChanged(newValue: T): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SyncedPropertyOneWay
方法 or 属性:get(): T;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SyncedPropertyOneWay
方法 or 属性:set(newValue: T): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: AppStorage|NA|state_management.d.ts| +|删除|模块名: state_management
类名: AppStorage
方法 or 属性:static Link(propName: string): any;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: AppStorage
方法 or 属性:static SetAndLink\(propName: string, defaultValue: T): SubscribedAbstractProperty\;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: AppStorage
方法 or 属性:static Prop(propName: string): any;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: AppStorage
方法 or 属性:static SetAndProp\(propName: string, defaultValue: S): SubscribedAbstractProperty\;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: AppStorage
方法 or 属性:static Has(propName: string): boolean;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: AppStorage
方法 or 属性:static Get\(propName: string): T \| undefined;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: AppStorage
方法 or 属性:static Set\(propName: string, newValue: T): boolean;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: AppStorage
方法 or 属性:static SetOrCreate\(propName: string, newValue: T): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: AppStorage
方法 or 属性:static Delete(propName: string): boolean;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: AppStorage
方法 or 属性:static Keys(): IterableIterator\;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: AppStorage
方法 or 属性:static staticClear(): boolean;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: AppStorage
方法 or 属性:static IsMutable(propName: string): boolean;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: AppStorage
方法 or 属性:static Size(): number;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: Environment|NA|state_management.d.ts| +|删除|模块名: state_management
类名: Environment
方法 or 属性:constructor();|NA|state_management.d.ts| +|删除|模块名: state_management
类名: Environment
方法 or 属性:static EnvProp\(key: string, value: S): boolean;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: Environment
方法 or 属性:static EnvProps(
props: {
key: string;
defaultValue: any;
}[],
): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: Environment
方法 or 属性:static Keys(): Array\;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: PersistentStorage|NA|state_management.d.ts| +|删除|模块名: state_management
类名: PersistentStorage
方法 or 属性:constructor(appStorage: AppStorage, storage: Storage);|NA|state_management.d.ts| +|删除|模块名: state_management
类名: PersistentStorage
方法 or 属性:static PersistProp\(key: string, defaultValue: T): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: PersistentStorage
方法 or 属性:static DeleteProp(key: string): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: PersistentStorage
方法 or 属性:static PersistProps(
properties: {
key: string;
defaultValue: any;
}[],
): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: PersistentStorage
方法 or 属性:static Keys(): Array\;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribaleAbstract|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribaleAbstract
方法 or 属性:private owningProperties_: Set\;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribaleAbstract
方法 or 属性:constructor();|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribaleAbstract
方法 or 属性:protected notifyPropertyHasChanged(propName: string, newValue: any): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribaleAbstract
方法 or 属性:public addOwningProperty(subscriber: IPropertySubscriber): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribaleAbstract
方法 or 属性:public removeOwningProperty(property: IPropertySubscriber): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: SubscribaleAbstract
方法 or 属性:public removeOwningPropertyById(subscriberId: number): void;|NA|state_management.d.ts| +|删除|模块名: state_management
类名: global
方法 or 属性:declare const appStorage: AppStorage;|NA|state_management.d.ts| +|访问级别有变化|类名:
方法 or 属性: function getInspectorByKey(id: string): string;
访问级别:系统API|类名:
方法 or 属性: function getInspectorByKey(id: string): string;
访问级别:公开API|global.d.ts| +|访问级别有变化|类名:
方法 or 属性: function sendEventByKey(id: string, action: number, params: string): boolean;
访问级别:系统API|类名:
方法 or 属性: function sendEventByKey(id: string, action: number, params: string): boolean;
访问级别:公开API|global.d.ts| +|访问级别有变化|类名:
方法 or 属性: function sendTouchEvent(event: TouchObject): boolean;
访问级别:系统API|类名:
方法 or 属性: function sendTouchEvent(event: TouchObject): boolean;
访问级别:公开API|global.d.ts| +|访问级别有变化|类名:
方法 or 属性: function sendKeyEvent(event: KeyEvent): boolean;
访问级别:系统API|类名:
方法 or 属性: function sendKeyEvent(event: KeyEvent): boolean;
访问级别:公开API|global.d.ts| +|访问级别有变化|类名:
方法 or 属性: function sendMouseEvent(event: MouseEvent): boolean;
访问级别:系统API|类名:
方法 or 属性: function sendMouseEvent(event: MouseEvent): boolean;
访问级别:公开API|global.d.ts| +|访问级别有变化|类名:global
方法 or 属性:declare const Animator: AnimatorInterface;
访问级别:公开API|类名:global
方法 or 属性:declare const Animator: AnimatorInterface;
访问级别:系统API|animator.d.ts| +|访问级别有变化|类名:global
方法 or 属性:declare const AnimatorInstance: AnimatorAttribute;
访问级别:公开API|类名:global
方法 or 属性:declare const AnimatorInstance: AnimatorAttribute;
访问级别:系统API|animator.d.ts| +|访问级别有变化|类名:global
方法 or 属性:declare const Calendar: CalendarInterface;
访问级别:公开API|类名:global
方法 or 属性:declare const Calendar: CalendarInterface;
访问级别:系统API|calendar.d.ts| +|访问级别有变化|类名:global
方法 or 属性:declare const CalendarInstance: CalendarAttribute;
访问级别:公开API|类名:global
方法 or 属性:declare const CalendarInstance: CalendarAttribute;
访问级别:系统API|calendar.d.ts| +|访问级别有变化|类名:PreviewParams
访问级别:系统API|类名:PreviewParams
访问级别:公开API|common.d.ts| +|访问级别有变化|类名:PreviewParams
方法 or 属性:title?: string;
访问级别:系统API|类名:PreviewParams
方法 or 属性:title?: string;
访问级别:公开API|common.d.ts| +|访问级别有变化|类名:PreviewParams
方法 or 属性:width?: number;
访问级别:系统API|类名:PreviewParams
方法 or 属性:width?: number;
访问级别:公开API|common.d.ts| +|访问级别有变化|类名:PreviewParams
方法 or 属性:height?: number;
访问级别:系统API|类名:PreviewParams
方法 or 属性:height?: number;
访问级别:公开API|common.d.ts| +|访问级别有变化|类名:PreviewParams
方法 or 属性:locale?: string;
访问级别:系统API|类名:PreviewParams
方法 or 属性:locale?: string;
访问级别:公开API|common.d.ts| +|访问级别有变化|类名:PreviewParams
方法 or 属性:colorMode?: string;
访问级别:系统API|类名:PreviewParams
方法 or 属性:colorMode?: string;
访问级别:公开API|common.d.ts| +|访问级别有变化|类名:PreviewParams
方法 or 属性:deviceType?: string;
访问级别:系统API|类名:PreviewParams
方法 or 属性:deviceType?: string;
访问级别:公开API|common.d.ts| +|访问级别有变化|类名:PreviewParams
方法 or 属性:dpi?: number;
访问级别:系统API|类名:PreviewParams
方法 or 属性:dpi?: number;
访问级别:公开API|common.d.ts| +|访问级别有变化|类名:PreviewParams
方法 or 属性:orientation?: string;
访问级别:系统API|类名:PreviewParams
方法 or 属性:orientation?: string;
访问级别:公开API|common.d.ts| +|访问级别有变化|类名:PreviewParams
方法 or 属性:roundScreen?: boolean;
访问级别:系统API|类名:PreviewParams
方法 or 属性:roundScreen?: boolean;
访问级别:公开API|common.d.ts| +|访问级别有变化|类名:CommonShapeMethod
方法 or 属性:constructor();
访问级别:公开API|类名:CommonShapeMethod
方法 or 属性:constructor();
访问级别:系统API|common.d.ts| +|访问级别有变化|类名:global
方法 or 属性:declare const FormComponent: FormComponentInterface;
访问级别:公开API|类名:global
方法 or 属性:declare const FormComponent: FormComponentInterface;
访问级别:系统API|form_component.d.ts| +|访问级别有变化|类名:global
方法 or 属性:declare const FormComponentInstance: FormComponentAttribute;
访问级别:公开API|类名:global
方法 or 属性:declare const FormComponentInstance: FormComponentAttribute;
访问级别:系统API|form_component.d.ts| +|废弃版本有变化|类名:AnimatorResult
方法 or 属性:update(options: AnimatorOptions): void;
废弃版本:N/A|类名:AnimatorResult
方法 or 属性:update(options: AnimatorOptions): void;
废弃版本:9
代替接口:ohos.animator.reset |@ohos.animator.d.ts| +|废弃版本有变化|类名:Animator
方法 or 属性:static createAnimator(options: AnimatorOptions): AnimatorResult;
废弃版本:N/A|类名:Animator
方法 or 属性:static createAnimator(options: AnimatorOptions): AnimatorResult;
废弃版本:9
代替接口:ohos.animator.create |@ohos.animator.d.ts| +|废弃版本有变化|类名:curves
方法 or 属性:function init(curve?: Curve): string;
废弃版本:N/A|类名:curves
方法 or 属性:function init(curve?: Curve): string;
废弃版本:9
代替接口:initCurve |@ohos.curves.d.ts| +|废弃版本有变化|类名:curves
方法 or 属性:function steps(count: number, end: boolean): string;
废弃版本:N/A|类名:curves
方法 or 属性:function steps(count: number, end: boolean): string;
废弃版本:9
代替接口:stepsCurve |@ohos.curves.d.ts| +|废弃版本有变化|类名:curves
方法 or 属性:function cubicBezier(x1: number, y1: number, x2: number, y2: number): string;
废弃版本:N/A|类名:curves
方法 or 属性:function cubicBezier(x1: number, y1: number, x2: number, y2: number): string;
废弃版本:9
代替接口:cubicBezierCurve |@ohos.curves.d.ts| +|废弃版本有变化|类名:curves
方法 or 属性:function spring(velocity: number, mass: number, stiffness: number, damping: number): string;
废弃版本:N/A|类名:curves
方法 or 属性:function spring(velocity: number, mass: number, stiffness: number, damping: number): string;
废弃版本:9
代替接口:springCurve |@ohos.curves.d.ts| +|废弃版本有变化|类名:prompt
废弃版本:N/A|类名:prompt
废弃版本:9
代替接口:ohos.promptAction |@ohos.prompt.d.ts| +|废弃版本有变化|类名:router
方法 or 属性:function push(options: RouterOptions):void;
废弃版本:N/A|类名:router
方法 or 属性:function push(options: RouterOptions):void;
废弃版本:9
代替接口:ohos.router.router|@ohos.router.d.ts| +|废弃版本有变化|类名:router
方法 or 属性:function replace(options: RouterOptions):void;
废弃版本:N/A|类名:router
方法 or 属性:function replace(options: RouterOptions):void;
废弃版本:9
代替接口:ohos.router.router|@ohos.router.d.ts| +|废弃版本有变化|类名:router
方法 or 属性:function enableAlertBeforeBackPage(options: EnableAlertOptions):void;
废弃版本:N/A|类名:router
方法 or 属性:function enableAlertBeforeBackPage(options: EnableAlertOptions):void;
废弃版本:9
代替接口:ohos.router.router|@ohos.router.d.ts| +|废弃版本有变化|类名:router
方法 or 属性:function disableAlertBeforeBackPage():void;
废弃版本:N/A|类名:router
方法 or 属性:function disableAlertBeforeBackPage():void;
废弃版本:9
代替接口:ohos.router.router|@ohos.router.d.ts| +|废弃版本有变化|类名:CommonMethod
方法 or 属性:touchable(value: boolean): T;
废弃版本:N/A|类名:CommonMethod
方法 or 属性:touchable(value: boolean): T;
废弃版本:9
代替接口:hitTestBehavior |common.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| +|废弃版本有变化|类名:GridItemAttribute
方法 or 属性:forceRebuild(value: boolean): GridItemAttribute;
废弃版本:N/A|类名:GridItemAttribute
方法 or 属性:forceRebuild(value: boolean): GridItemAttribute;
废弃版本:9
代替接口:N/A|gridItem.d.ts| +|废弃版本有变化|类名:global
方法 or 属性:declare const GridContainer: GridContainerInterface
废弃版本:N/A|类名:global
方法 or 属性:declare const GridContainer: GridContainerInterface
废弃版本:9
代替接口:grid_col/|grid_container.d.ts| +|废弃版本有变化|类名:global
方法 or 属性:declare const GridContainerInstance: GridContainerAttribute;
废弃版本:N/A|类名:global
方法 or 属性:declare const GridContainerInstance: GridContainerAttribute;
废弃版本:9
代替接口:grid_col/|grid_container.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| +|废弃版本有变化|类名:NavigationAttribute
方法 or 属性:subTitle(value: string): NavigationAttribute;
废弃版本:N/A|类名:NavigationAttribute
方法 or 属性:subTitle(value: string): NavigationAttribute;
废弃版本:9
代替接口:title |navigation.d.ts| +|废弃版本有变化|类名:global
方法 or 属性:declare const RectInStance: RectAttribute;
废弃版本:N/A|类名:global
方法 or 属性:declare const RectInStance: RectAttribute;
废弃版本:9
代替接口:N/A|rect.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| +|废弃版本有变化|类名:ScrollAttribute
方法 or 属性:onScrollEnd(event: () => void): ScrollAttribute;
废弃版本:N/A|类名:ScrollAttribute
方法 or 属性:onScrollEnd(event: () => void): ScrollAttribute;
废弃版本:9
代替接口:scroll/Scroll|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| +|废弃版本有变化|类名:ConsoleMessage
方法 or 属性:constructor(message: string, sourceId: string, lineNumber: number, messageLevel: MessageLevel);
废弃版本:N/A|类名:ConsoleMessage
方法 or 属性:constructor(message: string, sourceId: string, lineNumber: number, messageLevel: MessageLevel);
废弃版本:9
代替接口:ohos.web.ConsoleMessage|web.d.ts| +|废弃版本有变化|类名:WebCookie
方法 or 属性:setCookie();
废弃版本:N/A|类名:WebCookie
方法 or 属性:setCookie();
废弃版本:9
代替接口:ohos.web.webview.webview.WebCookieManager|web.d.ts| +|废弃版本有变化|类名:WebCookie
方法 or 属性:saveCookie();
废弃版本:N/A|类名:WebCookie
方法 or 属性:saveCookie();
废弃版本:9
代替接口:ohos.web.webview.webview.WebCookieManager|web.d.ts| +|废弃版本有变化|类名:WebController
废弃版本:N/A|类名:WebController
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController |web.d.ts| +|废弃版本有变化|类名:WebController
方法 or 属性:constructor();
废弃版本:N/A|类名:WebController
方法 or 属性:constructor();
废弃版本:9
代替接口:N/A|web.d.ts| +|废弃版本有变化|类名:WebController
方法 or 属性:onInactive(): void;
废弃版本:N/A|类名:WebController
方法 or 属性:onInactive(): void;
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| +|废弃版本有变化|类名:WebController
方法 or 属性:onActive(): void;
废弃版本:N/A|类名:WebController
方法 or 属性:onActive(): void;
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| +|废弃版本有变化|类名:WebController
方法 or 属性:zoom(factor: number): void;
废弃版本:N/A|类名:WebController
方法 or 属性:zoom(factor: number): void;
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| +|废弃版本有变化|类名:WebController
方法 or 属性:clearHistory(): void;
废弃版本:N/A|类名:WebController
方法 or 属性:clearHistory(): void;
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| +|废弃版本有变化|类名:WebController
方法 or 属性:runJavaScript(options: { script: string, callback?: (result: string) => void });
废弃版本:N/A|类名:WebController
方法 or 属性:runJavaScript(options: { script: string, callback?: (result: string) => void });
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| +|废弃版本有变化|类名:WebController
方法 or 属性:loadData(options: { data: string, mimeType: string, encoding: string, baseUrl?: string, historyUrl?: string });
废弃版本:N/A|类名:WebController
方法 or 属性:loadData(options: { data: string, mimeType: string, encoding: string, baseUrl?: string, historyUrl?: string });
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| +|废弃版本有变化|类名:WebController
方法 or 属性:loadUrl(options: { url: string \| Resource, headers?: Array\
});
废弃版本:N/A|类名:WebController
方法 or 属性:loadUrl(options: { url: string \| Resource, headers?: Array\
});
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| +|废弃版本有变化|类名:WebController
方法 or 属性:refresh();
废弃版本:N/A|类名:WebController
方法 or 属性:refresh();
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| +|废弃版本有变化|类名:WebController
方法 or 属性:stop();
废弃版本:N/A|类名:WebController
方法 or 属性:stop();
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| +|废弃版本有变化|类名:WebController
方法 or 属性:registerJavaScriptProxy(options: { object: object, name: string, methodList: Array\ });
废弃版本:N/A|类名:WebController
方法 or 属性:registerJavaScriptProxy(options: { object: object, name: string, methodList: Array\ });
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| +|废弃版本有变化|类名:WebController
方法 or 属性:deleteJavaScriptRegister(name: string);
废弃版本:N/A|类名:WebController
方法 or 属性:deleteJavaScriptRegister(name: string);
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| +|废弃版本有变化|类名:WebController
方法 or 属性:getHitTest(): HitTestType;
废弃版本:N/A|类名:WebController
方法 or 属性:getHitTest(): HitTestType;
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| +|废弃版本有变化|类名:WebController
方法 or 属性:requestFocus();
废弃版本:N/A|类名:WebController
方法 or 属性:requestFocus();
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| +|废弃版本有变化|类名:WebController
方法 or 属性:accessBackward(): boolean;
废弃版本:N/A|类名:WebController
方法 or 属性:accessBackward(): boolean;
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| +|废弃版本有变化|类名:WebController
方法 or 属性:accessForward(): boolean;
废弃版本:N/A|类名:WebController
方法 or 属性:accessForward(): boolean;
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| +|废弃版本有变化|类名:WebController
方法 or 属性:accessStep(step: number): boolean;
废弃版本:N/A|类名:WebController
方法 or 属性:accessStep(step: number): boolean;
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| +|废弃版本有变化|类名:WebController
方法 or 属性:backward();
废弃版本:N/A|类名:WebController
方法 or 属性:backward();
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| +|废弃版本有变化|类名:WebController
方法 or 属性:forward();
废弃版本:N/A|类名:WebController
方法 or 属性:forward();
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| +|废弃版本有变化|类名:WebAttribute
方法 or 属性:textZoomAtio(textZoomAtio: number): WebAttribute;
废弃版本:N/A|类名:WebAttribute
方法 or 属性:textZoomAtio(textZoomAtio: number): WebAttribute;
废弃版本:9
代替接口:ohos.web.WebAttribute|web.d.ts| +|废弃版本有变化|类名:WebAttribute
方法 or 属性:onSslErrorReceive(callback: (event?: { handler: Function, error: object }) => void): WebAttribute;
废弃版本:N/A|类名:WebAttribute
方法 or 属性:onSslErrorReceive(callback: (event?: { handler: Function, error: object }) => void): WebAttribute;
废弃版本:9
代替接口:ohos.web.WebAttribute|web.d.ts| +|废弃版本有变化|类名:WebAttribute
方法 or 属性:onRenderExited(callback: (event?: { detail: object }) => boolean): WebAttribute;
废弃版本:N/A|类名:WebAttribute
方法 or 属性:onRenderExited(callback: (event?: { detail: object }) => boolean): WebAttribute;
废弃版本:9
代替接口:ohos.web.WebAttribute|web.d.ts| +|废弃版本有变化|类名:WebAttribute
方法 or 属性:onFileSelectorShow(callback: (event?: { callback: Function, fileSelector: object }) => void): WebAttribute;
废弃版本:N/A|类名:WebAttribute
方法 or 属性:onFileSelectorShow(callback: (event?: { callback: Function, fileSelector: object }) => void): WebAttribute;
废弃版本:9
代替接口:ohos.web.WebAttribute|web.d.ts| +|起始版本有变化|类名:console
起始版本:7|类名:console
起始版本:9|global.d.ts| +|起始版本有变化|类名:console
方法 or 属性:static debug(message: string, ...arguments: any[]): void;
起始版本:7|类名:console
方法 or 属性:static debug(message: string, ...arguments: any[]): void;
起始版本:9|global.d.ts| +|起始版本有变化|类名:console
方法 or 属性:static log(message: string, ...arguments: any[]): void;
起始版本:7|类名:console
方法 or 属性:static log(message: string, ...arguments: any[]): void;
起始版本:9|global.d.ts| +|起始版本有变化|类名:console
方法 or 属性:static info(message: string, ...arguments: any[]): void;
起始版本:7|类名:console
方法 or 属性:static info(message: string, ...arguments: any[]): void;
起始版本:9|global.d.ts| +|起始版本有变化|类名:console
方法 or 属性:static warn(message: string, ...arguments: any[]): void;
起始版本:7|类名:console
方法 or 属性:static warn(message: string, ...arguments: any[]): void;
起始版本:9|global.d.ts| +|起始版本有变化|类名:console
方法 or 属性:static error(message: string, ...arguments: any[]): void;
起始版本:7|类名:console
方法 or 属性:static error(message: string, ...arguments: any[]): void;
起始版本:9|global.d.ts| +|起始版本有变化|类名:
方法 or 属性: function getInspectorByKey(id: string): string;
起始版本:8|类名:
方法 or 属性: function getInspectorByKey(id: string): string;
起始版本:9|global.d.ts| +|起始版本有变化|类名:
方法 or 属性: function sendEventByKey(id: string, action: number, params: string): boolean;
起始版本:8|类名:
方法 or 属性: function sendEventByKey(id: string, action: number, params: string): boolean;
起始版本:9|global.d.ts| +|起始版本有变化|类名:
方法 or 属性: function sendTouchEvent(event: TouchObject): boolean;
起始版本:8|类名:
方法 or 属性: function sendTouchEvent(event: TouchObject): boolean;
起始版本:9|global.d.ts| +|起始版本有变化|类名:
方法 or 属性: function sendKeyEvent(event: KeyEvent): boolean;
起始版本:8|类名:
方法 or 属性: function sendKeyEvent(event: KeyEvent): boolean;
起始版本:9|global.d.ts| +|起始版本有变化|类名:
方法 or 属性: function sendMouseEvent(event: MouseEvent): boolean;
起始版本:8|类名:
方法 or 属性: function sendMouseEvent(event: MouseEvent): boolean;
起始版本:9|global.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const AlphabetIndexer: AlphabetIndexerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const AlphabetIndexer: AlphabetIndexerInterface;
起始版本:7|alphabet_indexer.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const AlphabetIndexerInstance: AlphabetIndexerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const AlphabetIndexerInstance: AlphabetIndexerAttribute;
起始版本:7|alphabet_indexer.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Animator: AnimatorInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Animator: AnimatorInterface;
起始版本:7|animator.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const AnimatorInstance: AnimatorAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const AnimatorInstance: AnimatorAttribute;
起始版本:7|animator.d.ts| +|起始版本有变化|类名:BadgePosition
起始版本:7|类名:BadgePosition
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgePosition
方法 or 属性:RightTop
起始版本:7|类名:BadgePosition
方法 or 属性:RightTop
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgePosition
方法 or 属性:Right
起始版本:7|类名:BadgePosition
方法 or 属性:Right
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgePosition
方法 or 属性:Left
起始版本:7|类名:BadgePosition
方法 or 属性:Left
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeStyle
起始版本:7|类名:BadgeStyle
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeStyle
方法 or 属性:color?: ResourceColor;
起始版本:7|类名:BadgeStyle
方法 or 属性:color?: ResourceColor;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeStyle
方法 or 属性:fontSize?: number \| string;
起始版本:7|类名:BadgeStyle
方法 or 属性:fontSize?: number \| string;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeStyle
方法 or 属性:badgeSize?: number \| string;
起始版本:7|类名:BadgeStyle
方法 or 属性:badgeSize?: number \| string;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeStyle
方法 or 属性:badgeColor?: ResourceColor;
起始版本:7|类名:BadgeStyle
方法 or 属性:badgeColor?: ResourceColor;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeParam
起始版本:7|类名:BadgeParam
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeParam
方法 or 属性:position?: BadgePosition;
起始版本:7|类名:BadgeParam
方法 or 属性:position?: BadgePosition;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeParam
方法 or 属性:style: BadgeStyle;
起始版本:7|类名:BadgeParam
方法 or 属性:style: BadgeStyle;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeParamWithNumber
起始版本:7|类名:BadgeParamWithNumber
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeParamWithNumber
方法 or 属性:count: number;
起始版本:7|类名:BadgeParamWithNumber
方法 or 属性:count: number;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeParamWithNumber
方法 or 属性:maxCount?: number;
起始版本:7|类名:BadgeParamWithNumber
方法 or 属性:maxCount?: number;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeParamWithString
起始版本:7|类名:BadgeParamWithString
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeParamWithString
方法 or 属性:value: string;
起始版本:7|类名:BadgeParamWithString
方法 or 属性:value: string;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeInterface
起始版本:7|类名:BadgeInterface
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeInterface
方法 or 属性:(value: BadgeParamWithNumber): BadgeAttribute;
起始版本:7|类名:BadgeInterface
方法 or 属性:(value: BadgeParamWithNumber): BadgeAttribute;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeInterface
方法 or 属性:(value: BadgeParamWithString): BadgeAttribute;
起始版本:7|类名:BadgeInterface
方法 or 属性:(value: BadgeParamWithString): BadgeAttribute;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BadgeAttribute
起始版本:7|类名:BadgeAttribute
起始版本:9|badge.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Badge: BadgeInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Badge: BadgeInterface;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const BadgeInstance: BadgeAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const BadgeInstance: BadgeAttribute;
起始版本:9|badge.d.ts| +|起始版本有变化|类名:BlankInterface
起始版本:7|类名:BlankInterface
起始版本:9|blank.d.ts| +|起始版本有变化|类名:BlankInterface
方法 or 属性:(min?: number \| string): BlankAttribute;
起始版本:7|类名:BlankInterface
方法 or 属性:(min?: number \| string): BlankAttribute;
起始版本:9|blank.d.ts| +|起始版本有变化|类名:BlankAttribute
起始版本:7|类名:BlankAttribute
起始版本:9|blank.d.ts| +|起始版本有变化|类名:BlankAttribute
方法 or 属性:color(value: ResourceColor): BlankAttribute;
起始版本:7|类名:BlankAttribute
方法 or 属性:color(value: ResourceColor): BlankAttribute;
起始版本:9|blank.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Blank: BlankInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Blank: BlankInterface;
起始版本:9|blank.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const BlankInstance: BlankAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const BlankInstance: BlankAttribute;
起始版本:9|blank.d.ts| +|起始版本有变化|类名:ButtonType
起始版本:7|类名:ButtonType
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonType
方法 or 属性:Capsule
起始版本:7|类名:ButtonType
方法 or 属性:Capsule
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonType
方法 or 属性:Circle
起始版本:7|类名:ButtonType
方法 or 属性:Circle
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonType
方法 or 属性:Normal
起始版本:7|类名:ButtonType
方法 or 属性:Normal
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonOptions
起始版本:7|类名:ButtonOptions
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonOptions
方法 or 属性:type?: ButtonType;
起始版本:7|类名:ButtonOptions
方法 or 属性:type?: ButtonType;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonOptions
方法 or 属性:stateEffect?: boolean;
起始版本:7|类名:ButtonOptions
方法 or 属性:stateEffect?: boolean;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonInterface
起始版本:7|类名:ButtonInterface
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonInterface
方法 or 属性:(): ButtonAttribute;
起始版本:7|类名:ButtonInterface
方法 or 属性:(): ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonInterface
方法 or 属性:(options: ButtonOptions): ButtonAttribute;
起始版本:7|类名:ButtonInterface
方法 or 属性:(options: ButtonOptions): ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonInterface
方法 or 属性:(label: ResourceStr, options?: ButtonOptions): ButtonAttribute;
起始版本:7|类名:ButtonInterface
方法 or 属性:(label: ResourceStr, options?: ButtonOptions): ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonAttribute
起始版本:7|类名:ButtonAttribute
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonAttribute
方法 or 属性:type(value: ButtonType): ButtonAttribute;
起始版本:7|类名:ButtonAttribute
方法 or 属性:type(value: ButtonType): ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonAttribute
方法 or 属性:stateEffect(value: boolean): ButtonAttribute;
起始版本:7|类名:ButtonAttribute
方法 or 属性:stateEffect(value: boolean): ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonAttribute
方法 or 属性:fontColor(value: ResourceColor): ButtonAttribute;
起始版本:7|类名:ButtonAttribute
方法 or 属性:fontColor(value: ResourceColor): ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonAttribute
方法 or 属性:fontSize(value: Length): ButtonAttribute;
起始版本:7|类名:ButtonAttribute
方法 or 属性:fontSize(value: Length): ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): ButtonAttribute;
起始版本:7|类名:ButtonAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonAttribute
方法 or 属性:fontStyle(value: FontStyle): ButtonAttribute;
起始版本:8|类名:ButtonAttribute
方法 or 属性:fontStyle(value: FontStyle): ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:ButtonAttribute
方法 or 属性:fontFamily(value: string \| Resource): ButtonAttribute;
起始版本:8|类名:ButtonAttribute
方法 or 属性:fontFamily(value: string \| Resource): ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Button: ButtonInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Button: ButtonInterface;
起始版本:9|button.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ButtonInstance: ButtonAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ButtonInstance: ButtonAttribute;
起始版本:9|button.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Calendar: CalendarInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Calendar: CalendarInterface;
起始版本:7|calendar.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const CalendarInstance: CalendarAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const CalendarInstance: CalendarAttribute;
起始版本:7|calendar.d.ts| +|起始版本有变化|类名:CanvasGradient
起始版本:8|类名:CanvasGradient
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasGradient
方法 or 属性:addColorStop(offset: number, color: string): void;
起始版本:8|类名:CanvasGradient
方法 or 属性:addColorStop(offset: number, color: string): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasPath
起始版本:8|类名:CanvasPath
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasPath
方法 or 属性:arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
起始版本:8|类名:CanvasPath
方法 or 属性:arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasPath
方法 or 属性:arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
起始版本:8|类名:CanvasPath
方法 or 属性:arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasPath
方法 or 属性:bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
起始版本:8|类名:CanvasPath
方法 or 属性:bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasPath
方法 or 属性:closePath(): void;
起始版本:8|类名:CanvasPath
方法 or 属性:closePath(): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasPath
方法 or 属性:ellipse(
x: number,
y: number,
radiusX: number,
radiusY: number,
rotation: number,
startAngle: number,
endAngle: number,
counterclockwise?: boolean,
): void;
起始版本:8|类名:CanvasPath
方法 or 属性:ellipse(
x: number,
y: number,
radiusX: number,
radiusY: number,
rotation: number,
startAngle: number,
endAngle: number,
counterclockwise?: boolean,
): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasPath
方法 or 属性:lineTo(x: number, y: number): void;
起始版本:8|类名:CanvasPath
方法 or 属性:lineTo(x: number, y: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasPath
方法 or 属性:moveTo(x: number, y: number): void;
起始版本:8|类名:CanvasPath
方法 or 属性:moveTo(x: number, y: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasPath
方法 or 属性:quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
起始版本:8|类名:CanvasPath
方法 or 属性:quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasPath
方法 or 属性:rect(x: number, y: number, w: number, h: number): void;
起始版本:8|类名:CanvasPath
方法 or 属性:rect(x: number, y: number, w: number, h: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:Path2D
起始版本:8|类名:Path2D
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:Path2D
方法 or 属性:addPath(path: Path2D, transform?: Matrix2D): void;
起始版本:8|类名:Path2D
方法 or 属性:addPath(path: Path2D, transform?: Matrix2D): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:Path2D
方法 or 属性:constructor();
起始版本:8|类名:Path2D
方法 or 属性:constructor();
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:Path2D
方法 or 属性:constructor(path: Path2D);
起始版本:8|类名:Path2D
方法 or 属性:constructor(path: Path2D);
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:Path2D
方法 or 属性:constructor(d: string);
起始版本:8|类名:Path2D
方法 or 属性:constructor(d: string);
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
起始版本:8|类名:TextMetrics
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxAscent: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxAscent: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxDescent: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxDescent: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxLeft: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxLeft: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxRight: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxRight: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly alphabeticBaseline: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly alphabeticBaseline: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly emHeightAscent: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly emHeightAscent: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly emHeightDescent: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly emHeightDescent: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly fontBoundingBoxAscent: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly fontBoundingBoxAscent: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly fontBoundingBoxDescent: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly fontBoundingBoxDescent: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly hangingBaseline: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly hangingBaseline: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly ideographicBaseline: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly ideographicBaseline: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly width: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly width: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly height: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly height: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:ImageBitmap
起始版本:8|类名:ImageBitmap
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:ImageBitmap
方法 or 属性:readonly height: number;
起始版本:8|类名:ImageBitmap
方法 or 属性:readonly height: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:ImageBitmap
方法 or 属性:readonly width: number;
起始版本:8|类名:ImageBitmap
方法 or 属性:readonly width: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:ImageBitmap
方法 or 属性:close(): void;
起始版本:8|类名:ImageBitmap
方法 or 属性:close(): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:ImageBitmap
方法 or 属性:constructor(src: string);
起始版本:8|类名:ImageBitmap
方法 or 属性:constructor(src: string);
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:ImageData
起始版本:8|类名:ImageData
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:ImageData
方法 or 属性:readonly data: Uint8ClampedArray;
起始版本:8|类名:ImageData
方法 or 属性:readonly data: Uint8ClampedArray;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:ImageData
方法 or 属性:readonly height: number;
起始版本:8|类名:ImageData
方法 or 属性:readonly height: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:ImageData
方法 or 属性:readonly width: number;
起始版本:8|类名:ImageData
方法 or 属性:readonly width: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:ImageData
方法 or 属性:constructor(width: number, height: number, data?: Uint8ClampedArray);
起始版本:8|类名:ImageData
方法 or 属性:constructor(width: number, height: number, data?: Uint8ClampedArray);
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:RenderingContextSettings
起始版本:8|类名:RenderingContextSettings
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:RenderingContextSettings
方法 or 属性:antialias?: boolean;
起始版本:8|类名:RenderingContextSettings
方法 or 属性:antialias?: boolean;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:RenderingContextSettings
方法 or 属性:constructor(antialias?: boolean);
起始版本:8|类名:RenderingContextSettings
方法 or 属性:constructor(antialias?: boolean);
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
起始版本:8|类名:CanvasRenderer
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:globalAlpha: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:globalAlpha: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:globalCompositeOperation: string;
起始版本:8|类名:CanvasRenderer
方法 or 属性:globalCompositeOperation: string;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:drawImage(image: ImageBitmap \| PixelMap, dx: number, dy: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:drawImage(image: ImageBitmap \| PixelMap, dx: number, dy: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:drawImage(image: ImageBitmap \| PixelMap, dx: number, dy: number, dw: number, dh: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:drawImage(image: ImageBitmap \| PixelMap, dx: number, dy: number, dw: number, dh: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:drawImage(
image: ImageBitmap \| PixelMap,
sx: number,
sy: number,
sw: number,
sh: number,
dx: number,
dy: number,
dw: number,
dh: number,
): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:drawImage(
image: ImageBitmap \| PixelMap,
sx: number,
sy: number,
sw: number,
sh: number,
dx: number,
dy: number,
dw: number,
dh: number,
): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:beginPath(): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:beginPath(): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:clip(fillRule?: CanvasFillRule): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:clip(fillRule?: CanvasFillRule): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:clip(path: Path2D, fillRule?: CanvasFillRule): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:clip(path: Path2D, fillRule?: CanvasFillRule): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:fill(fillRule?: CanvasFillRule): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:fill(fillRule?: CanvasFillRule): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:fill(path: Path2D, fillRule?: CanvasFillRule): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:fill(path: Path2D, fillRule?: CanvasFillRule): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:stroke(): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:stroke(): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:stroke(path: Path2D): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:stroke(path: Path2D): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:fillStyle: string \| CanvasGradient \| CanvasPattern;
起始版本:8|类名:CanvasRenderer
方法 or 属性:fillStyle: string \| CanvasGradient \| CanvasPattern;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:strokeStyle: string \| CanvasGradient \| CanvasPattern;
起始版本:8|类名:CanvasRenderer
方法 or 属性:strokeStyle: string \| CanvasGradient \| CanvasPattern;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
起始版本:8|类名:CanvasRenderer
方法 or 属性:createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:createPattern(image: ImageBitmap, repetition: string \| null): CanvasPattern \| null;
起始版本:8|类名:CanvasRenderer
方法 or 属性:createPattern(image: ImageBitmap, repetition: string \| null): CanvasPattern \| null;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
起始版本:8|类名:CanvasRenderer
方法 or 属性:createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:createImageData(sw: number, sh: number): ImageData;
起始版本:8|类名:CanvasRenderer
方法 or 属性:createImageData(sw: number, sh: number): ImageData;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:createImageData(imagedata: ImageData): ImageData;
起始版本:8|类名:CanvasRenderer
方法 or 属性:createImageData(imagedata: ImageData): ImageData;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
起始版本:8|类名:CanvasRenderer
方法 or 属性:getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:putImageData(imagedata: ImageData, dx: number, dy: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:putImageData(imagedata: ImageData, dx: number, dy: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:putImageData(
imagedata: ImageData,
dx: number,
dy: number,
dirtyX: number,
dirtyY: number,
dirtyWidth: number,
dirtyHeight: number,
): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:putImageData(
imagedata: ImageData,
dx: number,
dy: number,
dirtyX: number,
dirtyY: number,
dirtyWidth: number,
dirtyHeight: number,
): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:imageSmoothingEnabled: boolean;
起始版本:8|类名:CanvasRenderer
方法 or 属性:imageSmoothingEnabled: boolean;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:lineCap: CanvasLineCap;
起始版本:8|类名:CanvasRenderer
方法 or 属性:lineCap: CanvasLineCap;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:lineDashOffset: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:lineDashOffset: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:lineJoin: CanvasLineJoin;
起始版本:8|类名:CanvasRenderer
方法 or 属性:lineJoin: CanvasLineJoin;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:lineWidth: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:lineWidth: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:miterLimit: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:miterLimit: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:getLineDash(): number[];
起始版本:8|类名:CanvasRenderer
方法 or 属性:getLineDash(): number[];
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:setLineDash(segments: number[]): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:setLineDash(segments: number[]): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:clearRect(x: number, y: number, w: number, h: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:clearRect(x: number, y: number, w: number, h: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:fillRect(x: number, y: number, w: number, h: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:fillRect(x: number, y: number, w: number, h: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:strokeRect(x: number, y: number, w: number, h: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:strokeRect(x: number, y: number, w: number, h: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:shadowBlur: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:shadowBlur: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:shadowColor: string;
起始版本:8|类名:CanvasRenderer
方法 or 属性:shadowColor: string;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:shadowOffsetX: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:shadowOffsetX: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:shadowOffsetY: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:shadowOffsetY: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:restore(): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:restore(): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:save(): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:save(): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:fillText(text: string, x: number, y: number, maxWidth?: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:fillText(text: string, x: number, y: number, maxWidth?: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:measureText(text: string): TextMetrics;
起始版本:8|类名:CanvasRenderer
方法 or 属性:measureText(text: string): TextMetrics;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:strokeText(text: string, x: number, y: number, maxWidth?: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:strokeText(text: string, x: number, y: number, maxWidth?: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:font: string;
起始版本:8|类名:CanvasRenderer
方法 or 属性:font: string;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:textAlign: CanvasTextAlign;
起始版本:8|类名:CanvasRenderer
方法 or 属性:textAlign: CanvasTextAlign;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:textBaseline: CanvasTextBaseline;
起始版本:8|类名:CanvasRenderer
方法 or 属性:textBaseline: CanvasTextBaseline;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:getTransform(): Matrix2D;
起始版本:8|类名:CanvasRenderer
方法 or 属性:getTransform(): Matrix2D;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:resetTransform(): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:resetTransform(): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:rotate(angle: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:rotate(angle: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:scale(x: number, y: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:scale(x: number, y: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:setTransform(transform?: Matrix2D): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:setTransform(transform?: Matrix2D): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:translate(x: number, y: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:translate(x: number, y: number): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderer
方法 or 属性:transferFromImageBitmap(bitmap: ImageBitmap): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:transferFromImageBitmap(bitmap: ImageBitmap): void;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderingContext2D
起始版本:8|类名:CanvasRenderingContext2D
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderingContext2D
方法 or 属性:readonly height: number;
起始版本:8|类名:CanvasRenderingContext2D
方法 or 属性:readonly height: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderingContext2D
方法 or 属性:readonly width: number;
起始版本:8|类名:CanvasRenderingContext2D
方法 or 属性:readonly width: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderingContext2D
方法 or 属性:toDataURL(type?: string, quality?: any): string;
起始版本:8|类名:CanvasRenderingContext2D
方法 or 属性:toDataURL(type?: string, quality?: any): string;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasRenderingContext2D
方法 or 属性:constructor(settings?: RenderingContextSettings);
起始版本:8|类名:CanvasRenderingContext2D
方法 or 属性:constructor(settings?: RenderingContextSettings);
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:OffscreenCanvasRenderingContext2D
起始版本:8|类名:OffscreenCanvasRenderingContext2D
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:OffscreenCanvasRenderingContext2D
方法 or 属性:toDataURL(type?: string, quality?: any): string;
起始版本:8|类名:OffscreenCanvasRenderingContext2D
方法 or 属性:toDataURL(type?: string, quality?: any): string;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:OffscreenCanvasRenderingContext2D
方法 or 属性:transferToImageBitmap(): ImageBitmap;
起始版本:8|类名:OffscreenCanvasRenderingContext2D
方法 or 属性:transferToImageBitmap(): ImageBitmap;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:OffscreenCanvasRenderingContext2D
方法 or 属性:constructor(width: number, height: number, settings?: RenderingContextSettings);
起始版本:8|类名:OffscreenCanvasRenderingContext2D
方法 or 属性:constructor(width: number, height: number, settings?: RenderingContextSettings);
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:OffscreenCanvas
起始版本:8|类名:OffscreenCanvas
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:OffscreenCanvas
方法 or 属性:height: number;
起始版本:8|类名:OffscreenCanvas
方法 or 属性:height: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:OffscreenCanvas
方法 or 属性:width: number;
起始版本:8|类名:OffscreenCanvas
方法 or 属性:width: number;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:OffscreenCanvas
方法 or 属性:transferToImageBitmap(): ImageBitmap;
起始版本:8|类名:OffscreenCanvas
方法 or 属性:transferToImageBitmap(): ImageBitmap;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:OffscreenCanvas
方法 or 属性:constructor(width: number, height: number);
起始版本:8|类名:OffscreenCanvas
方法 or 属性:constructor(width: number, height: number);
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasInterface
起始版本:8|类名:CanvasInterface
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasInterface
方法 or 属性:(context?: CanvasRenderingContext2D): CanvasAttribute;
起始版本:8|类名:CanvasInterface
方法 or 属性:(context?: CanvasRenderingContext2D): CanvasAttribute;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CanvasAttribute
方法 or 属性:onReady(event: () => void): CanvasAttribute;
起始版本:8|类名:CanvasAttribute
方法 or 属性:onReady(event: () => void): CanvasAttribute;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Canvas: CanvasInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Canvas: CanvasInterface;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const CanvasInstance: CanvasAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const CanvasInstance: CanvasAttribute;
起始版本:9|canvas.d.ts| +|起始版本有变化|类名:CheckboxOptions
起始版本:8|类名:CheckboxOptions
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:CheckboxOptions
方法 or 属性:name?: string;
起始版本:8|类名:CheckboxOptions
方法 or 属性:name?: string;
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:CheckboxOptions
方法 or 属性:group?: string;
起始版本:8|类名:CheckboxOptions
方法 or 属性:group?: string;
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:CheckboxInterface
起始版本:8|类名:CheckboxInterface
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:CheckboxInterface
方法 or 属性:(options?: CheckboxOptions): CheckboxAttribute;
起始版本:8|类名:CheckboxInterface
方法 or 属性:(options?: CheckboxOptions): CheckboxAttribute;
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:CheckboxAttribute
起始版本:8|类名:CheckboxAttribute
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:CheckboxAttribute
方法 or 属性:select(value: boolean): CheckboxAttribute;
起始版本:8|类名:CheckboxAttribute
方法 or 属性:select(value: boolean): CheckboxAttribute;
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:CheckboxAttribute
方法 or 属性:selectedColor(value: ResourceColor): CheckboxAttribute;
起始版本:8|类名:CheckboxAttribute
方法 or 属性:selectedColor(value: ResourceColor): CheckboxAttribute;
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:CheckboxAttribute
方法 or 属性:onChange(callback: (value: boolean) => void): CheckboxAttribute;
起始版本:8|类名:CheckboxAttribute
方法 or 属性:onChange(callback: (value: boolean) => void): CheckboxAttribute;
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Checkbox: CheckboxInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Checkbox: CheckboxInterface;
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const CheckboxInstance: CheckboxAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const CheckboxInstance: CheckboxAttribute;
起始版本:9|checkbox.d.ts| +|起始版本有变化|类名:SelectStatus
起始版本:8|类名:SelectStatus
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:SelectStatus
方法 or 属性:All
起始版本:8|类名:SelectStatus
方法 or 属性:All
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:SelectStatus
方法 or 属性:Part
起始版本:8|类名:SelectStatus
方法 or 属性:Part
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:SelectStatus
方法 or 属性:None
起始版本:8|类名:SelectStatus
方法 or 属性:None
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupOptions
起始版本:8|类名:CheckboxGroupOptions
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupOptions
方法 or 属性:group?: string;
起始版本:8|类名:CheckboxGroupOptions
方法 or 属性:group?: string;
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupResult
起始版本:8|类名:CheckboxGroupResult
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupResult
方法 or 属性:name: Array\;
起始版本:8|类名:CheckboxGroupResult
方法 or 属性:name: Array\;
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupResult
方法 or 属性:status: SelectStatus;
起始版本:8|类名:CheckboxGroupResult
方法 or 属性:status: SelectStatus;
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupInterface
起始版本:8|类名:CheckboxGroupInterface
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupInterface
方法 or 属性:(options?: CheckboxGroupOptions): CheckboxGroupAttribute;
起始版本:8|类名:CheckboxGroupInterface
方法 or 属性:(options?: CheckboxGroupOptions): CheckboxGroupAttribute;
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupAttribute
起始版本:8|类名:CheckboxGroupAttribute
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupAttribute
方法 or 属性:selectAll(value: boolean): CheckboxGroupAttribute;
起始版本:8|类名:CheckboxGroupAttribute
方法 or 属性:selectAll(value: boolean): CheckboxGroupAttribute;
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupAttribute
方法 or 属性:selectedColor(value: ResourceColor): CheckboxGroupAttribute;
起始版本:8|类名:CheckboxGroupAttribute
方法 or 属性:selectedColor(value: ResourceColor): CheckboxGroupAttribute;
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CheckboxGroupAttribute
方法 or 属性:onChange(callback: (event: CheckboxGroupResult) => void): CheckboxGroupAttribute;
起始版本:8|类名:CheckboxGroupAttribute
方法 or 属性:onChange(callback: (event: CheckboxGroupResult) => void): CheckboxGroupAttribute;
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const CheckboxGroup: CheckboxGroupInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const CheckboxGroup: CheckboxGroupInterface;
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const CheckboxGroupInstance: CheckboxGroupAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const CheckboxGroupInstance: CheckboxGroupAttribute;
起始版本:9|checkboxgroup.d.ts| +|起始版本有变化|类名:CircleOptions
起始版本:7|类名:CircleOptions
起始版本:9|circle.d.ts| +|起始版本有变化|类名:CircleOptions
方法 or 属性:width?: string \| number;
起始版本:7|类名:CircleOptions
方法 or 属性:width?: string \| number;
起始版本:9|circle.d.ts| +|起始版本有变化|类名:CircleOptions
方法 or 属性:height?: string \| number;
起始版本:7|类名:CircleOptions
方法 or 属性:height?: string \| number;
起始版本:9|circle.d.ts| +|起始版本有变化|类名:CircleInterface
起始版本:7|类名:CircleInterface
起始版本:9|circle.d.ts| +|起始版本有变化|类名:CircleInterface
方法 or 属性:new (value?: CircleOptions): CircleAttribute;
起始版本:7|类名:CircleInterface
方法 or 属性:new (value?: CircleOptions): CircleAttribute;
起始版本:9|circle.d.ts| +|起始版本有变化|类名:CircleInterface
方法 or 属性:(value?: CircleOptions): CircleAttribute;
起始版本:7|类名:CircleInterface
方法 or 属性:(value?: CircleOptions): CircleAttribute;
起始版本:9|circle.d.ts| +|起始版本有变化|类名:CircleAttribute
起始版本:7|类名:CircleAttribute
起始版本:9|circle.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Circle: CircleInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Circle: CircleInterface;
起始版本:9|circle.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const CircleInstance: CircleAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const CircleInstance: CircleAttribute;
起始版本:9|circle.d.ts| +|起始版本有变化|类名:ColumnInterface
起始版本:7|类名:ColumnInterface
起始版本:9|column.d.ts| +|起始版本有变化|类名:ColumnInterface
方法 or 属性:(value?: { space?: string \| number }): ColumnAttribute;
起始版本:7|类名:ColumnInterface
方法 or 属性:(value?: { space?: string \| number }): ColumnAttribute;
起始版本:9|column.d.ts| +|起始版本有变化|类名:ColumnAttribute
起始版本:7|类名:ColumnAttribute
起始版本:9|column.d.ts| +|起始版本有变化|类名:ColumnAttribute
方法 or 属性:alignItems(value: HorizontalAlign): ColumnAttribute;
起始版本:7|类名:ColumnAttribute
方法 or 属性:alignItems(value: HorizontalAlign): ColumnAttribute;
起始版本:9|column.d.ts| +|起始版本有变化|类名:ColumnAttribute
方法 or 属性:justifyContent(value: FlexAlign): ColumnAttribute;
起始版本:8|类名:ColumnAttribute
方法 or 属性:justifyContent(value: FlexAlign): ColumnAttribute;
起始版本:9|column.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Column: ColumnInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Column: ColumnInterface;
起始版本:9|column.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ColumnInstance: ColumnAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ColumnInstance: ColumnAttribute;
起始版本:9|column.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ColumnSplitInstance: ColumnSplitAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ColumnSplitInstance: ColumnSplitAttribute;
起始版本:7|column_split.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ColumnSplit: ColumnSplitInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const ColumnSplit: ColumnSplitInterface;
起始版本:7|column_split.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Component: ClassDecorator;
起始版本:7|类名:global
方法 or 属性:declare const Component: ClassDecorator;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Observed: ClassDecorator;
起始版本:7|类名:global
方法 or 属性:declare const Observed: ClassDecorator;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Preview: ClassDecorator & ((value: PreviewParams) => ClassDecorator);
起始版本:7|类名:global
方法 or 属性:declare const Preview: ClassDecorator & ((value: PreviewParams) => ClassDecorator);
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const BuilderParam: PropertyDecorator;
起始版本:7|类名:global
方法 or 属性:declare const BuilderParam: PropertyDecorator;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const State: PropertyDecorator;
起始版本:7|类名:global
方法 or 属性:declare const State: PropertyDecorator;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Prop: PropertyDecorator;
起始版本:7|类名:global
方法 or 属性:declare const Prop: PropertyDecorator;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Link: PropertyDecorator;
起始版本:7|类名:global
方法 or 属性:declare const Link: PropertyDecorator;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ObjectLink: PropertyDecorator;
起始版本:7|类名:global
方法 or 属性:declare const ObjectLink: PropertyDecorator;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Provide: PropertyDecorator & ((value: string) => PropertyDecorator);
起始版本:7|类名:global
方法 or 属性:declare const Provide: PropertyDecorator & ((value: string) => PropertyDecorator);
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Consume: PropertyDecorator & ((value: string) => PropertyDecorator);
起始版本:7|类名:global
方法 or 属性:declare const Consume: PropertyDecorator & ((value: string) => PropertyDecorator);
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Watch: (value: string) => PropertyDecorator;
起始版本:7|类名:global
方法 or 属性:declare const Watch: (value: string) => PropertyDecorator;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Builder: MethodDecorator;
起始版本:7|类名:global
方法 or 属性:declare const Builder: MethodDecorator;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Styles: MethodDecorator;
起始版本:8|类名:global
方法 or 属性:declare const Styles: MethodDecorator;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Extend: MethodDecorator & ((value: any) => MethodDecorator);
起始版本:7|类名:global
方法 or 属性:declare const Extend: MethodDecorator & ((value: any) => MethodDecorator);
起始版本:9|common.d.ts| +|起始版本有变化|类名:Configuration
起始版本:7|类名:Configuration
起始版本:9|common.d.ts| +|起始版本有变化|类名:Configuration
方法 or 属性:readonly colorMode: string;
起始版本:7|类名:Configuration
方法 or 属性:readonly colorMode: string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:Configuration
方法 or 属性:readonly fontScale: number;
起始版本:7|类名:Configuration
方法 or 属性:readonly fontScale: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:Rectangle
起始版本:8|类名:Rectangle
起始版本:9|common.d.ts| +|起始版本有变化|类名:Rectangle
方法 or 属性:x?: Length;
起始版本:8|类名:Rectangle
方法 or 属性:x?: Length;
起始版本:9|common.d.ts| +|起始版本有变化|类名:Rectangle
方法 or 属性:y?: Length;
起始版本:8|类名:Rectangle
方法 or 属性:y?: Length;
起始版本:9|common.d.ts| +|起始版本有变化|类名:Rectangle
方法 or 属性:width?: Length;
起始版本:8|类名:Rectangle
方法 or 属性:width?: Length;
起始版本:9|common.d.ts| +|起始版本有变化|类名:Rectangle
方法 or 属性:height?: Length;
起始版本:8|类名:Rectangle
方法 or 属性:height?: Length;
起始版本:9|common.d.ts| +|起始版本有变化|类名:
方法 or 属性:function $r(value: string, ...params: any[]): Resource;
起始版本:7|类名:
方法 or 属性:function $r(value: string, ...params: any[]): Resource;
起始版本:9|common.d.ts| +|起始版本有变化|类名:
方法 or 属性:function $rawfile(value: string): Resource;
起始版本:7|类名:
方法 or 属性:function $rawfile(value: string): Resource;
起始版本:9|common.d.ts| +|起始版本有变化|类名:AnimateParam
起始版本:7|类名:AnimateParam
起始版本:9|common.d.ts| +|起始版本有变化|类名:AnimateParam
方法 or 属性:duration?: number;
起始版本:7|类名:AnimateParam
方法 or 属性:duration?: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:AnimateParam
方法 or 属性:playMode?: PlayMode;
起始版本:7|类名:AnimateParam
方法 or 属性:playMode?: PlayMode;
起始版本:9|common.d.ts| +|起始版本有变化|类名:AnimateParam
方法 or 属性:onFinish?: () => void;
起始版本:7|类名:AnimateParam
方法 or 属性:onFinish?: () => void;
起始版本:9|common.d.ts| +|起始版本有变化|类名:TranslateOptions
起始版本:7|类名:TranslateOptions
起始版本:9|common.d.ts| +|起始版本有变化|类名:TranslateOptions
方法 or 属性:x?: number \| string;
起始版本:7|类名:TranslateOptions
方法 or 属性:x?: number \| string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:TranslateOptions
方法 or 属性:y?: number \| string;
起始版本:7|类名:TranslateOptions
方法 or 属性:y?: number \| string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:TranslateOptions
方法 or 属性:z?: number \| string;
起始版本:7|类名:TranslateOptions
方法 or 属性:z?: number \| string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:ScaleOptions
起始版本:7|类名:ScaleOptions
起始版本:9|common.d.ts| +|起始版本有变化|类名:ScaleOptions
方法 or 属性:x?: number;
起始版本:7|类名:ScaleOptions
方法 or 属性:x?: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:ScaleOptions
方法 or 属性:y?: number;
起始版本:7|类名:ScaleOptions
方法 or 属性:y?: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:ScaleOptions
方法 or 属性:z?: number;
起始版本:7|类名:ScaleOptions
方法 or 属性:z?: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:ScaleOptions
方法 or 属性:centerX?: number \| string;
起始版本:7|类名:ScaleOptions
方法 or 属性:centerX?: number \| string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:ScaleOptions
方法 or 属性:centerY?: number \| string;
起始版本:7|类名:ScaleOptions
方法 or 属性:centerY?: number \| string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:RotateOptions
方法 or 属性:x?: number;
起始版本:7|类名:RotateOptions
方法 or 属性:x?: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:RotateOptions
方法 or 属性:y?: number;
起始版本:7|类名:RotateOptions
方法 or 属性:y?: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:RotateOptions
方法 or 属性:z?: number;
起始版本:7|类名:RotateOptions
方法 or 属性:z?: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:RotateOptions
方法 or 属性:centerX?: number \| string;
起始版本:7|类名:RotateOptions
方法 or 属性:centerX?: number \| string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:RotateOptions
方法 or 属性:centerY?: number \| string;
起始版本:7|类名:RotateOptions
方法 or 属性:centerY?: number \| string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:RotateOptions
方法 or 属性:angle: number \| string;
起始版本:7|类名:RotateOptions
方法 or 属性:angle: number \| string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:TransitionOptions
起始版本:7|类名:TransitionOptions
起始版本:9|common.d.ts| +|起始版本有变化|类名:TransitionOptions
方法 or 属性:type?: TransitionType;
起始版本:7|类名:TransitionOptions
方法 or 属性:type?: TransitionType;
起始版本:9|common.d.ts| +|起始版本有变化|类名:TransitionOptions
方法 or 属性:opacity?: number;
起始版本:7|类名:TransitionOptions
方法 or 属性:opacity?: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:TransitionOptions
方法 or 属性:translate?: TranslateOptions;
起始版本:7|类名:TransitionOptions
方法 or 属性:translate?: TranslateOptions;
起始版本:9|common.d.ts| +|起始版本有变化|类名:TransitionOptions
方法 or 属性:scale?: ScaleOptions;
起始版本:7|类名:TransitionOptions
方法 or 属性:scale?: ScaleOptions;
起始版本:9|common.d.ts| +|起始版本有变化|类名:TransitionOptions
方法 or 属性:rotate?: RotateOptions;
起始版本:7|类名:TransitionOptions
方法 or 属性:rotate?: RotateOptions;
起始版本:9|common.d.ts| +|起始版本有变化|类名:PreviewParams
起始版本:8|类名:PreviewParams
起始版本:9|common.d.ts| +|起始版本有变化|类名:PreviewParams
方法 or 属性:title?: string;
起始版本:8|类名:PreviewParams
方法 or 属性:title?: string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:PreviewParams
方法 or 属性:width?: number;
起始版本:8|类名:PreviewParams
方法 or 属性:width?: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:PreviewParams
方法 or 属性:height?: number;
起始版本:8|类名:PreviewParams
方法 or 属性:height?: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:PreviewParams
方法 or 属性:locale?: string;
起始版本:8|类名:PreviewParams
方法 or 属性:locale?: string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:PreviewParams
方法 or 属性:colorMode?: string;
起始版本:8|类名:PreviewParams
方法 or 属性:colorMode?: string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:PreviewParams
方法 or 属性:deviceType?: string;
起始版本:8|类名:PreviewParams
方法 or 属性:deviceType?: string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:PreviewParams
方法 or 属性:dpi?: number;
起始版本:8|类名:PreviewParams
方法 or 属性:dpi?: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:PreviewParams
方法 or 属性:orientation?: string;
起始版本:8|类名:PreviewParams
方法 or 属性:orientation?: string;
起始版本:9|common.d.ts| +|起始版本有变化|类名:PreviewParams
方法 or 属性:roundScreen?: boolean;
起始版本:8|类名:PreviewParams
方法 or 属性:roundScreen?: boolean;
起始版本:9|common.d.ts| +|起始版本有变化|类名:
方法 or 属性:function animateTo(value: AnimateParam, event: () => void): void;
起始版本:7|类名:
方法 or 属性:function animateTo(value: AnimateParam, event: () => void): void;
起始版本:9|common.d.ts| +|起始版本有变化|类名:
方法 or 属性:function vp2px(value: number): number;
起始版本:7|类名:
方法 or 属性:function vp2px(value: number): number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:
方法 or 属性:function px2vp(value: number): number;
起始版本:7|类名:
方法 or 属性:function px2vp(value: number): number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:
方法 or 属性:function fp2px(value: number): number;
起始版本:7|类名:
方法 or 属性:function fp2px(value: number): number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:
方法 or 属性:function px2fp(value: number): number;
起始版本:7|类名:
方法 or 属性:function px2fp(value: number): number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:
方法 or 属性:function lpx2px(value: number): number;
起始版本:7|类名:
方法 or 属性:function lpx2px(value: number): number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:
方法 or 属性:function px2lpx(value: number): number;
起始版本:7|类名:
方法 or 属性:function px2lpx(value: number): number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:EventTarget
起始版本:8|类名:EventTarget
起始版本:9|common.d.ts| +|起始版本有变化|类名:EventTarget
方法 or 属性:area: Area;
起始版本:8|类名:EventTarget
方法 or 属性:area: Area;
起始版本:9|common.d.ts| +|起始版本有变化|类名:BaseEvent
起始版本:8|类名:BaseEvent
起始版本:9|common.d.ts| +|起始版本有变化|类名:BaseEvent
方法 or 属性:target: EventTarget;
起始版本:8|类名:BaseEvent
方法 or 属性:target: EventTarget;
起始版本:9|common.d.ts| +|起始版本有变化|类名:BaseEvent
方法 or 属性:timestamp: number;
起始版本:8|类名:BaseEvent
方法 or 属性:timestamp: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:BaseEvent
方法 or 属性:source: SourceType;
起始版本:8|类名:BaseEvent
方法 or 属性:source: SourceType;
起始版本:9|common.d.ts| +|起始版本有变化|类名:ClickEvent
起始版本:7|类名:ClickEvent
起始版本:9|common.d.ts| +|起始版本有变化|类名:ClickEvent
方法 or 属性:screenX: number;
起始版本:7|类名:ClickEvent
方法 or 属性:screenX: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:ClickEvent
方法 or 属性:screenY: number;
起始版本:7|类名:ClickEvent
方法 or 属性:screenY: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:ClickEvent
方法 or 属性:x: number;
起始版本:7|类名:ClickEvent
方法 or 属性:x: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:ClickEvent
方法 or 属性:y: number;
起始版本:7|类名:ClickEvent
方法 or 属性:y: number;
起始版本:9|common.d.ts| +|起始版本有变化|类名:StateStyles
起始版本:8|类名:StateStyles
起始版本:9|common.d.ts| +|起始版本有变化|类名:StateStyles
方法 or 属性:normal?: any;
起始版本:8|类名:StateStyles
方法 or 属性:normal?: any;
起始版本:9|common.d.ts| +|起始版本有变化|类名:StateStyles
方法 or 属性:pressed?: any;
起始版本:8|类名:StateStyles
方法 or 属性:pressed?: any;
起始版本:9|common.d.ts| +|起始版本有变化|类名:StateStyles
方法 or 属性:disabled?: any;
起始版本:8|类名:StateStyles
方法 or 属性:disabled?: any;
起始版本:9|common.d.ts| +|起始版本有变化|类名:StateStyles
方法 or 属性:focused?: any;
起始版本:8|类名:StateStyles
方法 or 属性:focused?: any;
起始版本:9|common.d.ts| +|起始版本有变化|类名:StateStyles
方法 or 属性:clicked?: any;
起始版本:8|类名:StateStyles
方法 or 属性:clicked?: any;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
起始版本:7|类名:CommonMethod
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:constructor();
起始版本:7|类名:CommonMethod
方法 or 属性:constructor();
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:width(value: Length): T;
起始版本:7|类名:CommonMethod
方法 or 属性:width(value: Length): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:height(value: Length): T;
起始版本:7|类名:CommonMethod
方法 or 属性:height(value: Length): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:responseRegion(value: Array\ \| Rectangle): T;
起始版本:8|类名:CommonMethod
方法 or 属性:responseRegion(value: Array\ \| Rectangle): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:size(value: SizeOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:size(value: SizeOptions): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:constraintSize(value: ConstraintSizeOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:constraintSize(value: ConstraintSizeOptions): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:layoutWeight(value: number \| string): T;
起始版本:7|类名:CommonMethod
方法 or 属性:layoutWeight(value: number \| string): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:padding(value: Padding \| Length): T;
起始版本:7|类名:CommonMethod
方法 or 属性:padding(value: Padding \| Length): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:margin(value: Margin \| Length): T;
起始版本:7|类名:CommonMethod
方法 or 属性:margin(value: Margin \| Length): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:backgroundColor(value: ResourceColor): T;
起始版本:7|类名:CommonMethod
方法 or 属性:backgroundColor(value: ResourceColor): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:backgroundImage(src: ResourceStr, repeat?: ImageRepeat): T;
起始版本:7|类名:CommonMethod
方法 or 属性:backgroundImage(src: ResourceStr, repeat?: ImageRepeat): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:backgroundImageSize(value: SizeOptions \| ImageSize): T;
起始版本:7|类名:CommonMethod
方法 or 属性:backgroundImageSize(value: SizeOptions \| ImageSize): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:backgroundImagePosition(value: Position \| Alignment): T;
起始版本:7|类名:CommonMethod
方法 or 属性:backgroundImagePosition(value: Position \| Alignment): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:opacity(value: number \| Resource): T;
起始版本:7|类名:CommonMethod
方法 or 属性:opacity(value: number \| Resource): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:border(value: BorderOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:border(value: BorderOptions): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:borderStyle(value: BorderStyle): T;
起始版本:7|类名:CommonMethod
方法 or 属性:borderStyle(value: BorderStyle): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:borderWidth(value: Length): T;
起始版本:7|类名:CommonMethod
方法 or 属性:borderWidth(value: Length): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:borderColor(value: ResourceColor): T;
起始版本:7|类名:CommonMethod
方法 or 属性:borderColor(value: ResourceColor): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:borderRadius(value: Length): T;
起始版本:7|类名:CommonMethod
方法 or 属性:borderRadius(value: Length): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:onClick(event: (event?: ClickEvent) => void): T;
起始版本:7|类名:CommonMethod
方法 or 属性:onClick(event: (event?: ClickEvent) => void): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:animation(value: AnimateParam): T;
起始版本:7|类名:CommonMethod
方法 or 属性:animation(value: AnimateParam): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:transition(value: TransitionOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:transition(value: TransitionOptions): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:blur(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:blur(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:brightness(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:brightness(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:contrast(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:contrast(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:grayscale(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:grayscale(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:colorBlend(value: Color \| string \| Resource): T;
起始版本:7|类名:CommonMethod
方法 or 属性:colorBlend(value: Color \| string \| Resource): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:saturate(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:saturate(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:sepia(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:sepia(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:invert(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:invert(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:hueRotate(value: number \| string): T;
起始版本:7|类名:CommonMethod
方法 or 属性:hueRotate(value: number \| string): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:backdropBlur(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:backdropBlur(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:translate(value: TranslateOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:translate(value: TranslateOptions): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:scale(value: ScaleOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:scale(value: ScaleOptions): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:rotate(value: RotateOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:rotate(value: RotateOptions): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:onAppear(event: () => void): T;
起始版本:7|类名:CommonMethod
方法 or 属性:onAppear(event: () => void): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:onDisAppear(event: () => void): T;
起始版本:7|类名:CommonMethod
方法 or 属性:onDisAppear(event: () => void): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:visibility(value: Visibility): T;
起始版本:7|类名:CommonMethod
方法 or 属性:visibility(value: Visibility): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:flexGrow(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:flexGrow(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:flexShrink(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:flexShrink(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:flexBasis(value: number \| string): T;
起始版本:7|类名:CommonMethod
方法 or 属性:flexBasis(value: number \| string): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:alignSelf(value: ItemAlign): T;
起始版本:7|类名:CommonMethod
方法 or 属性:alignSelf(value: ItemAlign): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:displayPriority(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:displayPriority(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:zIndex(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:zIndex(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:direction(value: Direction): T;
起始版本:7|类名:CommonMethod
方法 or 属性:direction(value: Direction): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:align(value: Alignment): T;
起始版本:7|类名:CommonMethod
方法 or 属性:align(value: Alignment): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:position(value: Position): T;
起始版本:7|类名:CommonMethod
方法 or 属性:position(value: Position): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:markAnchor(value: Position): T;
起始版本:7|类名:CommonMethod
方法 or 属性:markAnchor(value: Position): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:offset(value: Position): T;
起始版本:7|类名:CommonMethod
方法 or 属性:offset(value: Position): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:enabled(value: boolean): T;
起始版本:7|类名:CommonMethod
方法 or 属性:enabled(value: boolean): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:aspectRatio(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:aspectRatio(value: number): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:overlay(value: string, options?: { align?: Alignment; offset?: { x?: number; y?: number } }): T;
起始版本:7|类名:CommonMethod
方法 or 属性:overlay(value: string, options?: { align?: Alignment; offset?: { x?: number; y?: number } }): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:linearGradient(value: {
angle?: number \| string;
direction?: GradientDirection;
colors: Array\;
repeating?: boolean;
}): T;
起始版本:7|类名:CommonMethod
方法 or 属性:linearGradient(value: {
angle?: number \| string;
direction?: GradientDirection;
colors: Array\;
repeating?: boolean;
}): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:sweepGradient(value: {
center: Array\;
start?: number \| string;
end?: number \| string;
rotation?: number \| string;
colors: Array\;
repeating?: boolean;
}): T;
起始版本:7|类名:CommonMethod
方法 or 属性:sweepGradient(value: {
center: Array\;
start?: number \| string;
end?: number \| string;
rotation?: number \| string;
colors: Array\;
repeating?: boolean;
}): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:radialGradient(value: { center: Array\; radius: number \| string; colors: Array\; repeating?: boolean }): T;
起始版本:7|类名:CommonMethod
方法 or 属性:radialGradient(value: { center: Array\; radius: number \| string; colors: Array\; repeating?: boolean }): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:shadow(value: {
radius: number \| Resource;
color?: Color \| string \| Resource;
offsetX?: number \| Resource;
offsetY?: number \| Resource;
}): T;
起始版本:7|类名:CommonMethod
方法 or 属性:shadow(value: {
radius: number \| Resource;
color?: Color \| string \| Resource;
offsetX?: number \| Resource;
offsetY?: number \| Resource;
}): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:clip(value: boolean \| CircleAttribute \| EllipseAttribute \| PathAttribute \| RectAttribute): T;
起始版本:7|类名:CommonMethod
方法 or 属性:clip(value: boolean \| CircleAttribute \| EllipseAttribute \| PathAttribute \| RectAttribute): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:mask(value: CircleAttribute \| EllipseAttribute \| PathAttribute \| RectAttribute): T;
起始版本:7|类名:CommonMethod
方法 or 属性:mask(value: CircleAttribute \| EllipseAttribute \| PathAttribute \| RectAttribute): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:id(value: string): T;
起始版本:8|类名:CommonMethod
方法 or 属性:id(value: string): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonMethod
方法 or 属性:stateStyles(value: StateStyles): T;
起始版本:8|类名:CommonMethod
方法 or 属性:stateStyles(value: StateStyles): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonAttribute
起始版本:7|类名:CommonAttribute
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonInterface
起始版本:7|类名:CommonInterface
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const CommonInstance: CommonAttribute;
起始版本:7|类名:global
方法 or 属性:declare const CommonInstance: CommonAttribute;
起始版本:9|common.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Common: CommonInterface;
起始版本:7|类名:global
方法 or 属性:declare const Common: CommonInterface;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
起始版本:7|类名:CommonShapeMethod
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:constructor();
起始版本:7|类名:CommonShapeMethod
方法 or 属性:constructor();
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:stroke(value: ResourceColor): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:stroke(value: ResourceColor): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:fill(value: ResourceColor): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:fill(value: ResourceColor): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeDashOffset(value: number \| string): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeDashOffset(value: number \| string): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeLineCap(value: LineCapStyle): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeLineCap(value: LineCapStyle): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeLineJoin(value: LineJoinStyle): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeLineJoin(value: LineJoinStyle): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeMiterLimit(value: number \| string): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeMiterLimit(value: number \| string): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeOpacity(value: number \| string \| Resource): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeOpacity(value: number \| string \| Resource): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:fillOpacity(value: number \| string \| Resource): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:fillOpacity(value: number \| string \| Resource): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeWidth(value: Length): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeWidth(value: Length): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:antiAlias(value: boolean): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:antiAlias(value: boolean): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeDashArray(value: Array\): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeDashArray(value: Array\): T;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CustomComponent
起始版本:7|类名:CustomComponent
起始版本:9|common.d.ts| +|起始版本有变化|类名:CustomComponent
方法 or 属性:build(): void;
起始版本:7|类名:CustomComponent
方法 or 属性:build(): void;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CustomComponent
方法 or 属性:aboutToAppear?(): void;
起始版本:7|类名:CustomComponent
方法 or 属性:aboutToAppear?(): void;
起始版本:9|common.d.ts| +|起始版本有变化|类名:CustomComponent
方法 or 属性:aboutToDisappear?(): void;
起始版本:7|类名:CustomComponent
方法 or 属性:aboutToDisappear?(): void;
起始版本:9|common.d.ts| +|起始版本有变化|类名:View
起始版本:7|类名:View
起始版本:9|common.d.ts| +|起始版本有变化|类名:CounterInterface
起始版本:7|类名:CounterInterface
起始版本:9|counter.d.ts| +|起始版本有变化|类名:CounterInterface
方法 or 属性:(): CounterAttribute;
起始版本:7|类名:CounterInterface
方法 or 属性:(): CounterAttribute;
起始版本:9|counter.d.ts| +|起始版本有变化|类名:CounterAttribute
起始版本:7|类名:CounterAttribute
起始版本:9|counter.d.ts| +|起始版本有变化|类名:CounterAttribute
方法 or 属性:onInc(event: () => void): CounterAttribute;
起始版本:7|类名:CounterAttribute
方法 or 属性:onInc(event: () => void): CounterAttribute;
起始版本:9|counter.d.ts| +|起始版本有变化|类名:CounterAttribute
方法 or 属性:onDec(event: () => void): CounterAttribute;
起始版本:7|类名:CounterAttribute
方法 or 属性:onDec(event: () => void): CounterAttribute;
起始版本:9|counter.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const CounterInstance: CounterAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const CounterInstance: CounterAttribute;
起始版本:9|counter.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Counter: CounterInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Counter: CounterInterface;
起始版本:9|counter.d.ts| +|起始版本有变化|类名:DataPanelType
起始版本:8|类名:DataPanelType
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:DataPanelType
方法 or 属性:Line
起始版本:8|类名:DataPanelType
方法 or 属性:Line
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:DataPanelType
方法 or 属性:Circle
起始版本:8|类名:DataPanelType
方法 or 属性:Circle
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:DataPanelOptions
起始版本:7|类名:DataPanelOptions
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:DataPanelOptions
方法 or 属性:values: number[];
起始版本:7|类名:DataPanelOptions
方法 or 属性:values: number[];
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:DataPanelOptions
方法 or 属性:max?: number;
起始版本:7|类名:DataPanelOptions
方法 or 属性:max?: number;
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:DataPanelOptions
方法 or 属性:type?: DataPanelType;
起始版本:8|类名:DataPanelOptions
方法 or 属性:type?: DataPanelType;
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:DataPanelInterface
起始版本:7|类名:DataPanelInterface
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:DataPanelInterface
方法 or 属性:(options: DataPanelOptions): DataPanelAttribute;
起始版本:7|类名:DataPanelInterface
方法 or 属性:(options: DataPanelOptions): DataPanelAttribute;
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:DataPanelAttribute
起始版本:7|类名:DataPanelAttribute
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:DataPanelAttribute
方法 or 属性:closeEffect(value: boolean): DataPanelAttribute;
起始版本:7|类名:DataPanelAttribute
方法 or 属性:closeEffect(value: boolean): DataPanelAttribute;
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const DataPanel: DataPanelInterface
起始版本:N/A|类名:global
方法 or 属性:declare const DataPanel: DataPanelInterface
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const DataPanelInstance: DataPanelAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const DataPanelInstance: DataPanelAttribute;
起始版本:9|data_panel.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const DatePicker: DatePickerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const DatePicker: DatePickerInterface;
起始版本:8|date_picker.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const DatePickerInstance: DatePickerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const DatePickerInstance: DatePickerAttribute;
起始版本:8|date_picker.d.ts| +|起始版本有变化|类名:DividerInterface
起始版本:7|类名:DividerInterface
起始版本:9|divider.d.ts| +|起始版本有变化|类名:DividerInterface
方法 or 属性:(): DividerAttribute;
起始版本:7|类名:DividerInterface
方法 or 属性:(): DividerAttribute;
起始版本:9|divider.d.ts| +|起始版本有变化|类名:DividerAttribute
起始版本:7|类名:DividerAttribute
起始版本:9|divider.d.ts| +|起始版本有变化|类名:DividerAttribute
方法 or 属性:vertical(value: boolean): DividerAttribute;
起始版本:7|类名:DividerAttribute
方法 or 属性:vertical(value: boolean): DividerAttribute;
起始版本:9|divider.d.ts| +|起始版本有变化|类名:DividerAttribute
方法 or 属性:color(value: ResourceColor): DividerAttribute;
起始版本:7|类名:DividerAttribute
方法 or 属性:color(value: ResourceColor): DividerAttribute;
起始版本:9|divider.d.ts| +|起始版本有变化|类名:DividerAttribute
方法 or 属性:strokeWidth(value: number \| string): DividerAttribute;
起始版本:7|类名:DividerAttribute
方法 or 属性:strokeWidth(value: number \| string): DividerAttribute;
起始版本:9|divider.d.ts| +|起始版本有变化|类名:DividerAttribute
方法 or 属性:lineCap(value: LineCapStyle): DividerAttribute;
起始版本:7|类名:DividerAttribute
方法 or 属性:lineCap(value: LineCapStyle): DividerAttribute;
起始版本:9|divider.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Divider: DividerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Divider: DividerInterface;
起始版本:9|divider.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const DividerInstance: DividerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const DividerInstance: DividerAttribute;
起始版本:9|divider.d.ts| +|起始版本有变化|类名:EllipseInterface
起始版本:7|类名:EllipseInterface
起始版本:9|ellipse.d.ts| +|起始版本有变化|类名:EllipseInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): EllipseAttribute;
起始版本:7|类名:EllipseInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): EllipseAttribute;
起始版本:9|ellipse.d.ts| +|起始版本有变化|类名:EllipseInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): EllipseAttribute;
起始版本:7|类名:EllipseInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): EllipseAttribute;
起始版本:9|ellipse.d.ts| +|起始版本有变化|类名:EllipseAttribute
起始版本:7|类名:EllipseAttribute
起始版本:9|ellipse.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Ellipse: EllipseInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Ellipse: EllipseInterface;
起始版本:9|ellipse.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const EllipseInstance: EllipseAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const EllipseInstance: EllipseAttribute;
起始版本:9|ellipse.d.ts| +|起始版本有变化|类名:Color
起始版本:7|类名:Color
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:White
起始版本:7|类名:Color
方法 or 属性:White
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:Black
起始版本:7|类名:Color
方法 or 属性:Black
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:Blue
起始版本:7|类名:Color
方法 or 属性:Blue
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:Brown
起始版本:7|类名:Color
方法 or 属性:Brown
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:Gray
起始版本:7|类名:Color
方法 or 属性:Gray
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:Green
起始版本:7|类名:Color
方法 or 属性:Green
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:Grey
起始版本:7|类名:Color
方法 or 属性:Grey
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:Orange
起始版本:7|类名:Color
方法 or 属性:Orange
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:Pink
起始版本:7|类名:Color
方法 or 属性:Pink
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:Red
起始版本:7|类名:Color
方法 or 属性:Red
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Color
方法 or 属性:Yellow
起始版本:7|类名:Color
方法 or 属性:Yellow
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageFit
起始版本:7|类名:ImageFit
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageFit
方法 or 属性:Contain
起始版本:7|类名:ImageFit
方法 or 属性:Contain
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageFit
方法 or 属性:Cover
起始版本:7|类名:ImageFit
方法 or 属性:Cover
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageFit
方法 or 属性:Auto
起始版本:7|类名:ImageFit
方法 or 属性:Auto
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageFit
方法 or 属性:Fill
起始版本:7|类名:ImageFit
方法 or 属性:Fill
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageFit
方法 or 属性:ScaleDown
起始版本:7|类名:ImageFit
方法 or 属性:ScaleDown
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageFit
方法 or 属性:None
起始版本:7|类名:ImageFit
方法 or 属性:None
起始版本:9|enums.d.ts| +|起始版本有变化|类名:BorderStyle
起始版本:7|类名:BorderStyle
起始版本:9|enums.d.ts| +|起始版本有变化|类名:BorderStyle
方法 or 属性:Dotted
起始版本:7|类名:BorderStyle
方法 or 属性:Dotted
起始版本:9|enums.d.ts| +|起始版本有变化|类名:BorderStyle
方法 or 属性:Dashed
起始版本:7|类名:BorderStyle
方法 or 属性:Dashed
起始版本:9|enums.d.ts| +|起始版本有变化|类名:BorderStyle
方法 or 属性:Solid
起始版本:7|类名:BorderStyle
方法 or 属性:Solid
起始版本:9|enums.d.ts| +|起始版本有变化|类名:LineJoinStyle
起始版本:7|类名:LineJoinStyle
起始版本:9|enums.d.ts| +|起始版本有变化|类名:LineJoinStyle
方法 or 属性:Miter
起始版本:7|类名:LineJoinStyle
方法 or 属性:Miter
起始版本:9|enums.d.ts| +|起始版本有变化|类名:LineJoinStyle
方法 or 属性:Round
起始版本:7|类名:LineJoinStyle
方法 or 属性:Round
起始版本:9|enums.d.ts| +|起始版本有变化|类名:LineJoinStyle
方法 or 属性:Bevel
起始版本:7|类名:LineJoinStyle
方法 or 属性:Bevel
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TouchType
起始版本:7|类名:TouchType
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TouchType
方法 or 属性:Down
起始版本:7|类名:TouchType
方法 or 属性:Down
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TouchType
方法 or 属性:Up
起始版本:7|类名:TouchType
方法 or 属性:Up
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TouchType
方法 or 属性:Move
起始版本:7|类名:TouchType
方法 or 属性:Move
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TouchType
方法 or 属性:Cancel
起始版本:7|类名:TouchType
方法 or 属性:Cancel
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseButton
起始版本:8|类名:MouseButton
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseButton
方法 or 属性:Left
起始版本:8|类名:MouseButton
方法 or 属性:Left
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseButton
方法 or 属性:Right
起始版本:8|类名:MouseButton
方法 or 属性:Right
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseButton
方法 or 属性:Middle
起始版本:8|类名:MouseButton
方法 or 属性:Middle
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseButton
方法 or 属性:Back
起始版本:8|类名:MouseButton
方法 or 属性:Back
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseButton
方法 or 属性:Forward
起始版本:8|类名:MouseButton
方法 or 属性:Forward
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseButton
方法 or 属性:None
起始版本:8|类名:MouseButton
方法 or 属性:None
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseAction
起始版本:8|类名:MouseAction
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseAction
方法 or 属性:Press
起始版本:8|类名:MouseAction
方法 or 属性:Press
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseAction
方法 or 属性:Release
起始版本:8|类名:MouseAction
方法 or 属性:Release
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseAction
方法 or 属性:Move
起始版本:8|类名:MouseAction
方法 or 属性:Move
起始版本:9|enums.d.ts| +|起始版本有变化|类名:MouseAction
方法 or 属性:Hover
起始版本:8|类名:MouseAction
方法 or 属性:Hover
起始版本:9|enums.d.ts| +|起始版本有变化|类名:AnimationStatus
起始版本:7|类名:AnimationStatus
起始版本:9|enums.d.ts| +|起始版本有变化|类名:AnimationStatus
方法 or 属性:Initial
起始版本:7|类名:AnimationStatus
方法 or 属性:Initial
起始版本:9|enums.d.ts| +|起始版本有变化|类名:AnimationStatus
方法 or 属性:Running
起始版本:7|类名:AnimationStatus
方法 or 属性:Running
起始版本:9|enums.d.ts| +|起始版本有变化|类名:AnimationStatus
方法 or 属性:Paused
起始版本:7|类名:AnimationStatus
方法 or 属性:Paused
起始版本:9|enums.d.ts| +|起始版本有变化|类名:AnimationStatus
方法 or 属性:Stopped
起始版本:7|类名:AnimationStatus
方法 or 属性:Stopped
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
起始版本:7|类名:Curve
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:Linear
起始版本:7|类名:Curve
方法 or 属性:Linear
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:Ease
起始版本:7|类名:Curve
方法 or 属性:Ease
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:EaseIn
起始版本:7|类名:Curve
方法 or 属性:EaseIn
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:EaseOut
起始版本:7|类名:Curve
方法 or 属性:EaseOut
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:EaseInOut
起始版本:7|类名:Curve
方法 or 属性:EaseInOut
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:FastOutSlowIn
起始版本:7|类名:Curve
方法 or 属性:FastOutSlowIn
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:LinearOutSlowIn
起始版本:7|类名:Curve
方法 or 属性:LinearOutSlowIn
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:FastOutLinearIn
起始版本:7|类名:Curve
方法 or 属性:FastOutLinearIn
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:ExtremeDeceleration
起始版本:7|类名:Curve
方法 or 属性:ExtremeDeceleration
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:Sharp
起始版本:7|类名:Curve
方法 or 属性:Sharp
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:Rhythm
起始版本:7|类名:Curve
方法 or 属性:Rhythm
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:Smooth
起始版本:7|类名:Curve
方法 or 属性:Smooth
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Curve
方法 or 属性:Friction
起始版本:7|类名:Curve
方法 or 属性:Friction
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FillMode
起始版本:7|类名:FillMode
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FillMode
方法 or 属性:None
起始版本:7|类名:FillMode
方法 or 属性:None
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FillMode
方法 or 属性:Forwards
起始版本:7|类名:FillMode
方法 or 属性:Forwards
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FillMode
方法 or 属性:Backwards
起始版本:7|类名:FillMode
方法 or 属性:Backwards
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FillMode
方法 or 属性:Both
起始版本:7|类名:FillMode
方法 or 属性:Both
起始版本:9|enums.d.ts| +|起始版本有变化|类名:PlayMode
起始版本:7|类名:PlayMode
起始版本:9|enums.d.ts| +|起始版本有变化|类名:PlayMode
方法 or 属性:Normal
起始版本:7|类名:PlayMode
方法 or 属性:Normal
起始版本:9|enums.d.ts| +|起始版本有变化|类名:PlayMode
方法 or 属性:Reverse
起始版本:7|类名:PlayMode
方法 or 属性:Reverse
起始版本:9|enums.d.ts| +|起始版本有变化|类名:PlayMode
方法 or 属性:Alternate
起始版本:7|类名:PlayMode
方法 or 属性:Alternate
起始版本:9|enums.d.ts| +|起始版本有变化|类名:PlayMode
方法 or 属性:AlternateReverse
起始版本:7|类名:PlayMode
方法 or 属性:AlternateReverse
起始版本:9|enums.d.ts| +|起始版本有变化|类名:KeyType
起始版本:7|类名:KeyType
起始版本:9|enums.d.ts| +|起始版本有变化|类名:KeyType
方法 or 属性:Down
起始版本:7|类名:KeyType
方法 or 属性:Down
起始版本:9|enums.d.ts| +|起始版本有变化|类名:KeyType
方法 or 属性:Up
起始版本:7|类名:KeyType
方法 or 属性:Up
起始版本:9|enums.d.ts| +|起始版本有变化|类名:KeySource
起始版本:7|类名:KeySource
起始版本:9|enums.d.ts| +|起始版本有变化|类名:KeySource
方法 or 属性:Unknown
起始版本:7|类名:KeySource
方法 or 属性:Unknown
起始版本:9|enums.d.ts| +|起始版本有变化|类名:KeySource
方法 or 属性:Keyboard
起始版本:7|类名:KeySource
方法 or 属性:Keyboard
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Edge
起始版本:7|类名:Edge
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Edge
方法 or 属性:Top
起始版本:7|类名:Edge
方法 or 属性:Top
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Edge
方法 or 属性:Bottom
起始版本:7|类名:Edge
方法 or 属性:Bottom
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Edge
方法 or 属性:Start
起始版本:7|类名:Edge
方法 or 属性:Start
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Edge
方法 or 属性:End
起始版本:7|类名:Edge
方法 or 属性:End
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Week
起始版本:7|类名:Week
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Week
方法 or 属性:Mon
起始版本:7|类名:Week
方法 or 属性:Mon
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Week
方法 or 属性:Tue
起始版本:7|类名:Week
方法 or 属性:Tue
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Week
方法 or 属性:Wed
起始版本:7|类名:Week
方法 or 属性:Wed
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Week
方法 or 属性:Thur
起始版本:7|类名:Week
方法 or 属性:Thur
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Week
方法 or 属性:Fri
起始版本:7|类名:Week
方法 or 属性:Fri
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Week
方法 or 属性:Sat
起始版本:7|类名:Week
方法 or 属性:Sat
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Week
方法 or 属性:Sun
起始版本:7|类名:Week
方法 or 属性:Sun
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Direction
起始版本:7|类名:Direction
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Direction
方法 or 属性:Ltr
起始版本:7|类名:Direction
方法 or 属性:Ltr
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Direction
方法 or 属性:Rtl
起始版本:7|类名:Direction
方法 or 属性:Rtl
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Direction
方法 or 属性:Auto
起始版本:7|类名:Direction
方法 or 属性:Auto
起始版本:9|enums.d.ts| +|起始版本有变化|类名:BarState
起始版本:7|类名:BarState
起始版本:9|enums.d.ts| +|起始版本有变化|类名:BarState
方法 or 属性:Off
起始版本:7|类名:BarState
方法 or 属性:Off
起始版本:9|enums.d.ts| +|起始版本有变化|类名:BarState
方法 or 属性:Auto
起始版本:7|类名:BarState
方法 or 属性:Auto
起始版本:9|enums.d.ts| +|起始版本有变化|类名:BarState
方法 or 属性:On
起始版本:7|类名:BarState
方法 or 属性:On
起始版本:9|enums.d.ts| +|起始版本有变化|类名:EdgeEffect
起始版本:7|类名:EdgeEffect
起始版本:9|enums.d.ts| +|起始版本有变化|类名:EdgeEffect
方法 or 属性:Spring
起始版本:7|类名:EdgeEffect
方法 or 属性:Spring
起始版本:9|enums.d.ts| +|起始版本有变化|类名:EdgeEffect
方法 or 属性:Fade
起始版本:7|类名:EdgeEffect
方法 or 属性:Fade
起始版本:9|enums.d.ts| +|起始版本有变化|类名:EdgeEffect
方法 or 属性:None
起始版本:7|类名:EdgeEffect
方法 or 属性:None
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Alignment
起始版本:7|类名:Alignment
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Alignment
方法 or 属性:TopStart
起始版本:7|类名:Alignment
方法 or 属性:TopStart
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Alignment
方法 or 属性:Top
起始版本:7|类名:Alignment
方法 or 属性:Top
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Alignment
方法 or 属性:TopEnd
起始版本:7|类名:Alignment
方法 or 属性:TopEnd
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Alignment
方法 or 属性:Start
起始版本:7|类名:Alignment
方法 or 属性:Start
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Alignment
方法 or 属性:Center
起始版本:7|类名:Alignment
方法 or 属性:Center
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Alignment
方法 or 属性:End
起始版本:7|类名:Alignment
方法 or 属性:End
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Alignment
方法 or 属性:BottomStart
起始版本:7|类名:Alignment
方法 or 属性:BottomStart
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Alignment
方法 or 属性:Bottom
起始版本:7|类名:Alignment
方法 or 属性:Bottom
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Alignment
方法 or 属性:BottomEnd
起始版本:7|类名:Alignment
方法 or 属性:BottomEnd
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TransitionType
起始版本:7|类名:TransitionType
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TransitionType
方法 or 属性:All
起始版本:7|类名:TransitionType
方法 or 属性:All
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TransitionType
方法 or 属性:Insert
起始版本:7|类名:TransitionType
方法 or 属性:Insert
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TransitionType
方法 or 属性:Delete
起始版本:7|类名:TransitionType
方法 or 属性:Delete
起始版本:9|enums.d.ts| +|起始版本有变化|类名:RelateType
起始版本:7|类名:RelateType
起始版本:9|enums.d.ts| +|起始版本有变化|类名:RelateType
方法 or 属性:FILL
起始版本:7|类名:RelateType
方法 or 属性:FILL
起始版本:9|enums.d.ts| +|起始版本有变化|类名:RelateType
方法 or 属性:FIT
起始版本:7|类名:RelateType
方法 or 属性:FIT
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Visibility
起始版本:7|类名:Visibility
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Visibility
方法 or 属性:Visible
起始版本:7|类名:Visibility
方法 or 属性:Visible
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Visibility
方法 or 属性:Hidden
起始版本:7|类名:Visibility
方法 or 属性:Hidden
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Visibility
方法 or 属性:None
起始版本:7|类名:Visibility
方法 or 属性:None
起始版本:9|enums.d.ts| +|起始版本有变化|类名:LineCapStyle
起始版本:7|类名:LineCapStyle
起始版本:9|enums.d.ts| +|起始版本有变化|类名:LineCapStyle
方法 or 属性:Butt
起始版本:7|类名:LineCapStyle
方法 or 属性:Butt
起始版本:9|enums.d.ts| +|起始版本有变化|类名:LineCapStyle
方法 or 属性:Round
起始版本:7|类名:LineCapStyle
方法 or 属性:Round
起始版本:9|enums.d.ts| +|起始版本有变化|类名:LineCapStyle
方法 or 属性:Square
起始版本:7|类名:LineCapStyle
方法 or 属性:Square
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Axis
起始版本:7|类名:Axis
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Axis
方法 or 属性:Vertical
起始版本:7|类名:Axis
方法 or 属性:Vertical
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Axis
方法 or 属性:Horizontal
起始版本:7|类名:Axis
方法 or 属性:Horizontal
起始版本:9|enums.d.ts| +|起始版本有变化|类名:HorizontalAlign
起始版本:7|类名:HorizontalAlign
起始版本:9|enums.d.ts| +|起始版本有变化|类名:HorizontalAlign
方法 or 属性:Start
起始版本:7|类名:HorizontalAlign
方法 or 属性:Start
起始版本:9|enums.d.ts| +|起始版本有变化|类名:HorizontalAlign
方法 or 属性:Center
起始版本:7|类名:HorizontalAlign
方法 or 属性:Center
起始版本:9|enums.d.ts| +|起始版本有变化|类名:HorizontalAlign
方法 or 属性:End
起始版本:7|类名:HorizontalAlign
方法 or 属性:End
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexAlign
起始版本:7|类名:FlexAlign
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexAlign
方法 or 属性:Start
起始版本:7|类名:FlexAlign
方法 or 属性:Start
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexAlign
方法 or 属性:Center
起始版本:7|类名:FlexAlign
方法 or 属性:Center
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexAlign
方法 or 属性:End
起始版本:7|类名:FlexAlign
方法 or 属性:End
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexAlign
方法 or 属性:SpaceBetween
起始版本:7|类名:FlexAlign
方法 or 属性:SpaceBetween
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexAlign
方法 or 属性:SpaceAround
起始版本:7|类名:FlexAlign
方法 or 属性:SpaceAround
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexAlign
方法 or 属性:SpaceEvenly
起始版本:7|类名:FlexAlign
方法 or 属性:SpaceEvenly
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ItemAlign
起始版本:7|类名:ItemAlign
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ItemAlign
方法 or 属性:Auto
起始版本:7|类名:ItemAlign
方法 or 属性:Auto
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ItemAlign
方法 or 属性:Start
起始版本:7|类名:ItemAlign
方法 or 属性:Start
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ItemAlign
方法 or 属性:Center
起始版本:7|类名:ItemAlign
方法 or 属性:Center
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ItemAlign
方法 or 属性:End
起始版本:7|类名:ItemAlign
方法 or 属性:End
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ItemAlign
方法 or 属性:Baseline
起始版本:7|类名:ItemAlign
方法 or 属性:Baseline
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ItemAlign
方法 or 属性:Stretch
起始版本:7|类名:ItemAlign
方法 or 属性:Stretch
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexDirection
起始版本:7|类名:FlexDirection
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexDirection
方法 or 属性:Row
起始版本:7|类名:FlexDirection
方法 or 属性:Row
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexDirection
方法 or 属性:Column
起始版本:7|类名:FlexDirection
方法 or 属性:Column
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexDirection
方法 or 属性:RowReverse
起始版本:7|类名:FlexDirection
方法 or 属性:RowReverse
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexDirection
方法 or 属性:ColumnReverse
起始版本:7|类名:FlexDirection
方法 or 属性:ColumnReverse
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexWrap
起始版本:7|类名:FlexWrap
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexWrap
方法 or 属性:NoWrap
起始版本:7|类名:FlexWrap
方法 or 属性:NoWrap
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexWrap
方法 or 属性:Wrap
起始版本:7|类名:FlexWrap
方法 or 属性:Wrap
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexWrap
方法 or 属性:WrapReverse
起始版本:7|类名:FlexWrap
方法 or 属性:WrapReverse
起始版本:9|enums.d.ts| +|起始版本有变化|类名:VerticalAlign
起始版本:7|类名:VerticalAlign
起始版本:9|enums.d.ts| +|起始版本有变化|类名:VerticalAlign
方法 or 属性:Top
起始版本:7|类名:VerticalAlign
方法 or 属性:Top
起始版本:9|enums.d.ts| +|起始版本有变化|类名:VerticalAlign
方法 or 属性:Center
起始版本:7|类名:VerticalAlign
方法 or 属性:Center
起始版本:9|enums.d.ts| +|起始版本有变化|类名:VerticalAlign
方法 or 属性:Bottom
起始版本:7|类名:VerticalAlign
方法 or 属性:Bottom
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageRepeat
起始版本:7|类名:ImageRepeat
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageRepeat
方法 or 属性:NoRepeat
起始版本:7|类名:ImageRepeat
方法 or 属性:NoRepeat
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageRepeat
方法 or 属性:X
起始版本:7|类名:ImageRepeat
方法 or 属性:X
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageRepeat
方法 or 属性:Y
起始版本:7|类名:ImageRepeat
方法 or 属性:Y
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageRepeat
方法 or 属性:XY
起始版本:7|类名:ImageRepeat
方法 or 属性:XY
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageSize
起始版本:7|类名:ImageSize
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageSize
方法 or 属性:Auto
起始版本:7|类名:ImageSize
方法 or 属性:Auto
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageSize
方法 or 属性:Cover
起始版本:7|类名:ImageSize
方法 or 属性:Cover
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ImageSize
方法 or 属性:Contain
起始版本:7|类名:ImageSize
方法 or 属性:Contain
起始版本:9|enums.d.ts| +|起始版本有变化|类名:GradientDirection
起始版本:7|类名:GradientDirection
起始版本:9|enums.d.ts| +|起始版本有变化|类名:GradientDirection
方法 or 属性:Left
起始版本:7|类名:GradientDirection
方法 or 属性:Left
起始版本:9|enums.d.ts| +|起始版本有变化|类名:GradientDirection
方法 or 属性:Top
起始版本:7|类名:GradientDirection
方法 or 属性:Top
起始版本:9|enums.d.ts| +|起始版本有变化|类名:GradientDirection
方法 or 属性:Right
起始版本:7|类名:GradientDirection
方法 or 属性:Right
起始版本:9|enums.d.ts| +|起始版本有变化|类名:GradientDirection
方法 or 属性:Bottom
起始版本:7|类名:GradientDirection
方法 or 属性:Bottom
起始版本:9|enums.d.ts| +|起始版本有变化|类名:GradientDirection
方法 or 属性:LeftTop
起始版本:7|类名:GradientDirection
方法 or 属性:LeftTop
起始版本:9|enums.d.ts| +|起始版本有变化|类名:GradientDirection
方法 or 属性:LeftBottom
起始版本:7|类名:GradientDirection
方法 or 属性:LeftBottom
起始版本:9|enums.d.ts| +|起始版本有变化|类名:GradientDirection
方法 or 属性:RightTop
起始版本:7|类名:GradientDirection
方法 or 属性:RightTop
起始版本:9|enums.d.ts| +|起始版本有变化|类名:GradientDirection
方法 or 属性:RightBottom
起始版本:7|类名:GradientDirection
方法 or 属性:RightBottom
起始版本:9|enums.d.ts| +|起始版本有变化|类名:GradientDirection
方法 or 属性:None
起始版本:7|类名:GradientDirection
方法 or 属性:None
起始版本:9|enums.d.ts| +|起始版本有变化|类名:SharedTransitionEffectType
起始版本:7|类名:SharedTransitionEffectType
起始版本:9|enums.d.ts| +|起始版本有变化|类名:SharedTransitionEffectType
方法 or 属性:Static
起始版本:7|类名:SharedTransitionEffectType
方法 or 属性:Static
起始版本:9|enums.d.ts| +|起始版本有变化|类名:SharedTransitionEffectType
方法 or 属性:Exchange
起始版本:7|类名:SharedTransitionEffectType
方法 or 属性:Exchange
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FontStyle
起始版本:7|类名:FontStyle
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FontStyle
方法 or 属性:Normal
起始版本:7|类名:FontStyle
方法 or 属性:Normal
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FontStyle
方法 or 属性:Italic
起始版本:7|类名:FontStyle
方法 or 属性:Italic
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FontWeight
起始版本:7|类名:FontWeight
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FontWeight
方法 or 属性:Lighter
起始版本:7|类名:FontWeight
方法 or 属性:Lighter
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FontWeight
方法 or 属性:Normal
起始版本:7|类名:FontWeight
方法 or 属性:Normal
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FontWeight
方法 or 属性:Regular
起始版本:7|类名:FontWeight
方法 or 属性:Regular
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FontWeight
方法 or 属性:Medium
起始版本:7|类名:FontWeight
方法 or 属性:Medium
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FontWeight
方法 or 属性:Bold
起始版本:7|类名:FontWeight
方法 or 属性:Bold
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FontWeight
方法 or 属性:Bolder
起始版本:7|类名:FontWeight
方法 or 属性:Bolder
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextAlign
起始版本:7|类名:TextAlign
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextAlign
方法 or 属性:Center
起始版本:7|类名:TextAlign
方法 or 属性:Center
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextAlign
方法 or 属性:Start
起始版本:7|类名:TextAlign
方法 or 属性:Start
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextAlign
方法 or 属性:End
起始版本:7|类名:TextAlign
方法 or 属性:End
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextOverflow
起始版本:7|类名:TextOverflow
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextOverflow
方法 or 属性:Clip
起始版本:7|类名:TextOverflow
方法 or 属性:Clip
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextOverflow
方法 or 属性:Ellipsis
起始版本:7|类名:TextOverflow
方法 or 属性:Ellipsis
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextOverflow
方法 or 属性:None
起始版本:7|类名:TextOverflow
方法 or 属性:None
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextDecorationType
起始版本:7|类名:TextDecorationType
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextDecorationType
方法 or 属性:None
起始版本:7|类名:TextDecorationType
方法 or 属性:None
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextDecorationType
方法 or 属性:Underline
起始版本:7|类名:TextDecorationType
方法 or 属性:Underline
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextDecorationType
方法 or 属性:Overline
起始版本:7|类名:TextDecorationType
方法 or 属性:Overline
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextDecorationType
方法 or 属性:LineThrough
起始版本:7|类名:TextDecorationType
方法 or 属性:LineThrough
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextCase
起始版本:7|类名:TextCase
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextCase
方法 or 属性:Normal
起始版本:7|类名:TextCase
方法 or 属性:Normal
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextCase
方法 or 属性:LowerCase
起始版本:7|类名:TextCase
方法 or 属性:LowerCase
起始版本:9|enums.d.ts| +|起始版本有变化|类名:TextCase
方法 or 属性:UpperCase
起始版本:7|类名:TextCase
方法 or 属性:UpperCase
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ResponseType
起始版本:8|类名:ResponseType
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ResponseType
方法 or 属性:RightClick
起始版本:8|类名:ResponseType
方法 or 属性:RightClick
起始版本:9|enums.d.ts| +|起始版本有变化|类名:ResponseType
方法 or 属性:LongPress
起始版本:8|类名:ResponseType
方法 or 属性:LongPress
起始版本:9|enums.d.ts| +|起始版本有变化|类名:HoverEffect
起始版本:8|类名:HoverEffect
起始版本:9|enums.d.ts| +|起始版本有变化|类名:HoverEffect
方法 or 属性:Auto
起始版本:8|类名:HoverEffect
方法 or 属性:Auto
起始版本:9|enums.d.ts| +|起始版本有变化|类名:HoverEffect
方法 or 属性:Scale
起始版本:8|类名:HoverEffect
方法 or 属性:Scale
起始版本:9|enums.d.ts| +|起始版本有变化|类名:HoverEffect
方法 or 属性:Highlight
起始版本:8|类名:HoverEffect
方法 or 属性:Highlight
起始版本:9|enums.d.ts| +|起始版本有变化|类名:HoverEffect
方法 or 属性:None
起始版本:8|类名:HoverEffect
方法 or 属性:None
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Placement
起始版本:8|类名:Placement
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Placement
方法 or 属性:Left
起始版本:8|类名:Placement
方法 or 属性:Left
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Placement
方法 or 属性:Right
起始版本:8|类名:Placement
方法 or 属性:Right
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Placement
方法 or 属性:Top
起始版本:8|类名:Placement
方法 or 属性:Top
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Placement
方法 or 属性:Bottom
起始版本:8|类名:Placement
方法 or 属性:Bottom
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Placement
方法 or 属性:TopLeft
起始版本:8|类名:Placement
方法 or 属性:TopLeft
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Placement
方法 or 属性:TopRight
起始版本:8|类名:Placement
方法 or 属性:TopRight
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Placement
方法 or 属性:BottomLeft
起始版本:8|类名:Placement
方法 or 属性:BottomLeft
起始版本:9|enums.d.ts| +|起始版本有变化|类名:Placement
方法 or 属性:BottomRight
起始版本:8|类名:Placement
方法 or 属性:BottomRight
起始版本:9|enums.d.ts| +|起始版本有变化|类名:FlexOptions
起始版本:7|类名:FlexOptions
起始版本:9|flex.d.ts| +|起始版本有变化|类名:FlexOptions
方法 or 属性:direction?: FlexDirection;
起始版本:7|类名:FlexOptions
方法 or 属性:direction?: FlexDirection;
起始版本:9|flex.d.ts| +|起始版本有变化|类名:FlexOptions
方法 or 属性:wrap?: FlexWrap;
起始版本:7|类名:FlexOptions
方法 or 属性:wrap?: FlexWrap;
起始版本:9|flex.d.ts| +|起始版本有变化|类名:FlexOptions
方法 or 属性:justifyContent?: FlexAlign;
起始版本:7|类名:FlexOptions
方法 or 属性:justifyContent?: FlexAlign;
起始版本:9|flex.d.ts| +|起始版本有变化|类名:FlexOptions
方法 or 属性:alignItems?: ItemAlign;
起始版本:7|类名:FlexOptions
方法 or 属性:alignItems?: ItemAlign;
起始版本:9|flex.d.ts| +|起始版本有变化|类名:FlexOptions
方法 or 属性:alignContent?: FlexAlign;
起始版本:7|类名:FlexOptions
方法 or 属性:alignContent?: FlexAlign;
起始版本:9|flex.d.ts| +|起始版本有变化|类名:FlexInterface
起始版本:7|类名:FlexInterface
起始版本:9|flex.d.ts| +|起始版本有变化|类名:FlexInterface
方法 or 属性:(value?: FlexOptions): FlexAttribute;
起始版本:7|类名:FlexInterface
方法 or 属性:(value?: FlexOptions): FlexAttribute;
起始版本:9|flex.d.ts| +|起始版本有变化|类名:FlexAttribute
起始版本:7|类名:FlexAttribute
起始版本:9|flex.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Flex: FlexInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Flex: FlexInterface;
起始版本:9|flex.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const FlexInstance: FlexAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const FlexInstance: FlexAttribute;
起始版本:9|flex.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const FormComponent: FormComponentInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const FormComponent: FormComponentInterface;
起始版本:7|form_component.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const FormComponentInstance: FormComponentAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const FormComponentInstance: FormComponentAttribute;
起始版本:7|form_component.d.ts| +|起始版本有变化|类名:ForEachInterface
起始版本:7|类名:ForEachInterface
起始版本:9|for_each.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ForEach: ForEachInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const ForEach: ForEachInterface;
起始版本:9|for_each.d.ts| +|起始版本有变化|类名:GaugeInterface
起始版本:8|类名:GaugeInterface
起始版本:9|gauge.d.ts| +|起始版本有变化|类名:GaugeInterface
方法 or 属性:(options: { value: number; min?: number; max?: number }): GaugeAttribute;
起始版本:8|类名:GaugeInterface
方法 or 属性:(options: { value: number; min?: number; max?: number }): GaugeAttribute;
起始版本:9|gauge.d.ts| +|起始版本有变化|类名:GaugeAttribute
起始版本:8|类名:GaugeAttribute
起始版本:9|gauge.d.ts| +|起始版本有变化|类名:GaugeAttribute
方法 or 属性:value(value: number): GaugeAttribute;
起始版本:8|类名:GaugeAttribute
方法 or 属性:value(value: number): GaugeAttribute;
起始版本:9|gauge.d.ts| +|起始版本有变化|类名:GaugeAttribute
方法 or 属性:startAngle(angle: number): GaugeAttribute;
起始版本:8|类名:GaugeAttribute
方法 or 属性:startAngle(angle: number): GaugeAttribute;
起始版本:9|gauge.d.ts| +|起始版本有变化|类名:GaugeAttribute
方法 or 属性:endAngle(angle: number): GaugeAttribute;
起始版本:8|类名:GaugeAttribute
方法 or 属性:endAngle(angle: number): GaugeAttribute;
起始版本:9|gauge.d.ts| +|起始版本有变化|类名:GaugeAttribute
方法 or 属性:colors(colors: Array\): GaugeAttribute;
起始版本:8|类名:GaugeAttribute
方法 or 属性:colors(colors: Array\): GaugeAttribute;
起始版本:9|gauge.d.ts| +|起始版本有变化|类名:GaugeAttribute
方法 or 属性:strokeWidth(length: Length): GaugeAttribute;
起始版本:8|类名:GaugeAttribute
方法 or 属性:strokeWidth(length: Length): GaugeAttribute;
起始版本:9|gauge.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Gauge: GaugeInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Gauge: GaugeInterface;
起始版本:9|gauge.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const GaugeInstance: GaugeAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const GaugeInstance: GaugeAttribute;
起始版本:9|gauge.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TapGesture: TapGestureInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TapGesture: TapGestureInterface;
起始版本:7|gesture.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const LongPressGesture: LongPressGestureInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const LongPressGesture: LongPressGestureInterface;
起始版本:7|gesture.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const PanGesture: PanGestureInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const PanGesture: PanGestureInterface;
起始版本:7|gesture.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const SwipeGesture: SwipeGestureInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const SwipeGesture: SwipeGestureInterface;
起始版本:7|gesture.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const PinchGesture: PinchGestureInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const PinchGesture: PinchGestureInterface;
起始版本:7|gesture.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const RotationGesture: RotationGestureInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const RotationGesture: RotationGestureInterface;
起始版本:7|gesture.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const GestureGroup: GestureGroupInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const GestureGroup: GestureGroupInterface;
起始版本:7|gesture.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Grid: GridInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Grid: GridInterface;
起始版本:7|grid.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const GridInstance: GridAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const GridInstance: GridAttribute;
起始版本:7|grid.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const GridItem: GridItemInterface
起始版本:N/A|类名:global
方法 or 属性:declare const GridItem: GridItemInterface
起始版本:7|gridItem.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const GridItemInstance: GridItemAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const GridItemInstance: GridItemAttribute;
起始版本:7|gridItem.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const GridContainer: GridContainerInterface
起始版本:N/A|类名:global
方法 or 属性:declare const GridContainer: GridContainerInterface
起始版本:7|grid_container.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const GridContainerInstance: GridContainerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const GridContainerInstance: GridContainerAttribute;
起始版本:7|grid_container.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Hyperlink: HyperlinkInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Hyperlink: HyperlinkInterface;
起始版本:7|hyperlink.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const HyperlinkInterface: HyperlinkAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const HyperlinkInterface: HyperlinkAttribute;
起始版本:7|hyperlink.d.ts| +|起始版本有变化|类名:ImageRenderMode
起始版本:7|类名:ImageRenderMode
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageRenderMode
方法 or 属性:Original
起始版本:7|类名:ImageRenderMode
方法 or 属性:Original
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageRenderMode
方法 or 属性:Template
起始版本:7|类名:ImageRenderMode
方法 or 属性:Template
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageInterpolation
起始版本:7|类名:ImageInterpolation
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageInterpolation
方法 or 属性:None
起始版本:7|类名:ImageInterpolation
方法 or 属性:None
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageInterpolation
方法 or 属性:Low
起始版本:7|类名:ImageInterpolation
方法 or 属性:Low
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageInterpolation
方法 or 属性:Medium
起始版本:7|类名:ImageInterpolation
方法 or 属性:Medium
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageInterpolation
方法 or 属性:High
起始版本:7|类名:ImageInterpolation
方法 or 属性:High
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageInterface
起始版本:7|类名:ImageInterface
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageInterface
方法 or 属性:(src: string \| PixelMap \| Resource): ImageAttribute;
起始版本:7|类名:ImageInterface
方法 or 属性:(src: string \| PixelMap \| Resource): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
起始版本:7|类名:ImageAttribute
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:alt(value: string \| Resource): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:alt(value: string \| Resource): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:matchTextDirection(value: boolean): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:matchTextDirection(value: boolean): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:fitOriginalSize(value: boolean): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:fitOriginalSize(value: boolean): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:fillColor(value: ResourceColor): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:fillColor(value: ResourceColor): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:objectFit(value: ImageFit): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:objectFit(value: ImageFit): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:objectRepeat(value: ImageRepeat): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:objectRepeat(value: ImageRepeat): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:autoResize(value: boolean): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:autoResize(value: boolean): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:renderMode(value: ImageRenderMode): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:renderMode(value: ImageRenderMode): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:interpolation(value: ImageInterpolation): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:interpolation(value: ImageInterpolation): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:sourceSize(value: { width: number; height: number }): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:sourceSize(value: { width: number; height: number }): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:syncLoad(value: boolean): ImageAttribute;
起始版本:8|类名:ImageAttribute
方法 or 属性:syncLoad(value: boolean): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:onComplete(
callback: (event?: {
width: number;
height: number;
componentWidth: number;
componentHeight: number;
loadingStatus: number;
}) => void,
): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:onComplete(
callback: (event?: {
width: number;
height: number;
componentWidth: number;
componentHeight: number;
loadingStatus: number;
}) => void,
): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:onError(callback: (event?: { componentWidth: number; componentHeight: number }) => void): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:onError(callback: (event?: { componentWidth: number; componentHeight: number }) => void): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:ImageAttribute
方法 or 属性:onFinish(event: () => void): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:onFinish(event: () => void): ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Image: ImageInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Image: ImageInterface;
起始版本:9|image.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ImageInstance: ImageAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ImageInstance: ImageAttribute;
起始版本:9|image.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ImageAnimator: ImageAnimatorInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const ImageAnimator: ImageAnimatorInterface;
起始版本:7|image_animator.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ImageAnimatorInstance: ImageAnimatorAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ImageAnimatorInstance: ImageAnimatorAttribute;
起始版本:7|image_animator.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const LazyForEach: LazyForEachInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const LazyForEach: LazyForEachInterface;
起始版本:7|lazy_for_each.d.ts| +|起始版本有变化|类名:LineInterface
起始版本:7|类名:LineInterface
起始版本:9|line.d.ts| +|起始版本有变化|类名:LineInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): LineAttribute;
起始版本:7|类名:LineInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): LineAttribute;
起始版本:9|line.d.ts| +|起始版本有变化|类名:LineInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): LineAttribute;
起始版本:7|类名:LineInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): LineAttribute;
起始版本:9|line.d.ts| +|起始版本有变化|类名:LineAttribute
起始版本:7|类名:LineAttribute
起始版本:9|line.d.ts| +|起始版本有变化|类名:LineAttribute
方法 or 属性:startPoint(value: Array\): LineAttribute;
起始版本:7|类名:LineAttribute
方法 or 属性:startPoint(value: Array\): LineAttribute;
起始版本:9|line.d.ts| +|起始版本有变化|类名:LineAttribute
方法 or 属性:endPoint(value: Array\): LineAttribute;
起始版本:7|类名:LineAttribute
方法 or 属性:endPoint(value: Array\): LineAttribute;
起始版本:9|line.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Line: LineInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Line: LineInterface;
起始版本:9|line.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const LineInstance: LineAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const LineInstance: LineAttribute;
起始版本:9|line.d.ts| +|起始版本有变化|类名:ScrollState
起始版本:7|类名:ScrollState
起始版本:9|list.d.ts| +|起始版本有变化|类名:ScrollState
方法 or 属性:Idle
起始版本:7|类名:ScrollState
方法 or 属性:Idle
起始版本:9|list.d.ts| +|起始版本有变化|类名:ScrollState
方法 or 属性:Scroll
起始版本:7|类名:ScrollState
方法 or 属性:Scroll
起始版本:9|list.d.ts| +|起始版本有变化|类名:ScrollState
方法 or 属性:Fling
起始版本:7|类名:ScrollState
方法 or 属性:Fling
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListInterface
起始版本:7|类名:ListInterface
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListInterface
方法 or 属性:(value?: { initialIndex?: number; space?: number \| string; scroller?: Scroller }): ListAttribute;
起始版本:7|类名:ListInterface
方法 or 属性:(value?: { initialIndex?: number; space?: number \| string; scroller?: Scroller }): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
起始版本:7|类名:ListAttribute
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:listDirection(value: Axis): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:listDirection(value: Axis): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:scrollBar(value: BarState): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:scrollBar(value: BarState): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:edgeEffect(value: EdgeEffect): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:edgeEffect(value: EdgeEffect): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:divider(
value: {
strokeWidth: Length;
color?: ResourceColor;
startMargin?: Length;
endMargin?: Length;
} \| null,
): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:divider(
value: {
strokeWidth: Length;
color?: ResourceColor;
startMargin?: Length;
endMargin?: Length;
} \| null,
): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:multiSelectable(value: boolean): ListAttribute;
起始版本:8|类名:ListAttribute
方法 or 属性:multiSelectable(value: boolean): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:cachedCount(value: number): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:cachedCount(value: number): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:chainAnimation(value: boolean): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:chainAnimation(value: boolean): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:onScroll(event: (scrollOffset: number, scrollState: ScrollState) => void): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:onScroll(event: (scrollOffset: number, scrollState: ScrollState) => void): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:onScrollIndex(event: (start: number, end: number) => void): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:onScrollIndex(event: (start: number, end: number) => void): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:onReachStart(event: () => void): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:onReachStart(event: () => void): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:onReachEnd(event: () => void): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:onReachEnd(event: () => void): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListAttribute
方法 or 属性:onScrollStop(event: () => void): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:onScrollStop(event: () => void): ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const List: ListInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const List: ListInterface;
起始版本:9|list.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ListInstance: ListAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ListInstance: ListAttribute;
起始版本:9|list.d.ts| +|起始版本有变化|类名:ListItemInterface
起始版本:7|类名:ListItemInterface
起始版本:9|list_item.d.ts| +|起始版本有变化|类名:ListItemInterface
方法 or 属性:(value?: string): ListItemAttribute;
起始版本:7|类名:ListItemInterface
方法 or 属性:(value?: string): ListItemAttribute;
起始版本:9|list_item.d.ts| +|起始版本有变化|类名:ListItemAttribute
起始版本:7|类名:ListItemAttribute
起始版本:9|list_item.d.ts| +|起始版本有变化|类名:ListItemAttribute
方法 or 属性:onSelect(event: (isSelected: boolean) => void): ListItemAttribute;
起始版本:8|类名:ListItemAttribute
方法 or 属性:onSelect(event: (isSelected: boolean) => void): ListItemAttribute;
起始版本:9|list_item.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ListItemInstance: ListItemAttribute;
起始版本:7|类名:global
方法 or 属性:declare const ListItemInstance: ListItemAttribute;
起始版本:9|list_item.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ListItem: ListItemInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const ListItem: ListItemInterface;
起始版本:9|list_item.d.ts| +|起始版本有变化|类名:LoadingProgressStyle
起始版本:8|类名:LoadingProgressStyle
起始版本:9|loading_progress.d.ts| +|起始版本有变化|类名:LoadingProgressStyle
方法 or 属性:Default
起始版本:8|类名:LoadingProgressStyle
方法 or 属性:Default
起始版本:9|loading_progress.d.ts| +|起始版本有变化|类名:LoadingProgressStyle
方法 or 属性:Circular
起始版本:8|类名:LoadingProgressStyle
方法 or 属性:Circular
起始版本:9|loading_progress.d.ts| +|起始版本有变化|类名:LoadingProgressStyle
方法 or 属性:Orbital
起始版本:8|类名:LoadingProgressStyle
方法 or 属性:Orbital
起始版本:9|loading_progress.d.ts| +|起始版本有变化|类名:LoadingProgressInterface
起始版本:8|类名:LoadingProgressInterface
起始版本:9|loading_progress.d.ts| +|起始版本有变化|类名:LoadingProgressInterface
方法 or 属性:(): LoadingProgressAttribute;
起始版本:8|类名:LoadingProgressInterface
方法 or 属性:(): LoadingProgressAttribute;
起始版本:9|loading_progress.d.ts| +|起始版本有变化|类名:LoadingProgressAttribute
起始版本:8|类名:LoadingProgressAttribute
起始版本:9|loading_progress.d.ts| +|起始版本有变化|类名:LoadingProgressAttribute
方法 or 属性:color(value: ResourceColor): LoadingProgressAttribute;
起始版本:8|类名:LoadingProgressAttribute
方法 or 属性:color(value: ResourceColor): LoadingProgressAttribute;
起始版本:9|loading_progress.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const LoadingProgress: LoadingProgressInterface;
起始版本:8|类名:global
方法 or 属性:declare const LoadingProgress: LoadingProgressInterface;
起始版本:9|loading_progress.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const LoadingProgressInstance: LoadingProgressAttribute;
起始版本:8|类名:global
方法 or 属性:declare const LoadingProgressInstance: LoadingProgressAttribute;
起始版本:9|loading_progress.d.ts| +|起始版本有变化|类名:MarqueeInterface
起始版本:8|类名:MarqueeInterface
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:MarqueeInterface
方法 or 属性:(value: { start: boolean; step?: number; loop?: number; fromStart?: boolean; src: string }): MarqueeAttribute;
起始版本:8|类名:MarqueeInterface
方法 or 属性:(value: { start: boolean; step?: number; loop?: number; fromStart?: boolean; src: string }): MarqueeAttribute;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:MarqueeAttribute
起始版本:8|类名:MarqueeAttribute
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:fontColor(value: ResourceColor): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:fontColor(value: ResourceColor): MarqueeAttribute;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:fontSize(value: Length): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:fontSize(value: Length): MarqueeAttribute;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:allowScale(value: boolean): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:allowScale(value: boolean): MarqueeAttribute;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): MarqueeAttribute;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:fontFamily(value: string \| Resource): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:fontFamily(value: string \| Resource): MarqueeAttribute;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:onStart(event: () => void): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:onStart(event: () => void): MarqueeAttribute;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:onBounce(event: () => void): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:onBounce(event: () => void): MarqueeAttribute;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:onFinish(event: () => void): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:onFinish(event: () => void): MarqueeAttribute;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Marquee: MarqueeInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Marquee: MarqueeInterface;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const MarqueeInstance: MarqueeAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const MarqueeInstance: MarqueeAttribute;
起始版本:9|marquee.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Navigation: NavigationInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Navigation: NavigationInterface;
起始版本:8|navigation.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const NavigationInstance: NavigationAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const NavigationInstance: NavigationAttribute;
起始版本:8|navigation.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Navigator: NavigatorInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Navigator: NavigatorInterface;
起始版本:7|navigator.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const NavigatorInstance: NavigatorAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const NavigatorInstance: NavigatorAttribute;
起始版本:7|navigator.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const PageTransitionEnter: PageTransitionEnterInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const PageTransitionEnter: PageTransitionEnterInterface;
起始版本:7|page_transition.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const PageTransitionExit: PageTransitionExitInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const PageTransitionExit: PageTransitionExitInterface;
起始版本:7|page_transition.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Panel: PanelInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Panel: PanelInterface;
起始版本:7|panel.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const PanelInstance: PanelAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const PanelInstance: PanelAttribute;
起始版本:7|panel.d.ts| +|起始版本有变化|类名:PathInterface
起始版本:7|类名:PathInterface
起始版本:9|path.d.ts| +|起始版本有变化|类名:PathInterface
方法 or 属性:new (value?: { width?: number \| string; height?: number \| string; commands?: string }): PathAttribute;
起始版本:7|类名:PathInterface
方法 or 属性:new (value?: { width?: number \| string; height?: number \| string; commands?: string }): PathAttribute;
起始版本:9|path.d.ts| +|起始版本有变化|类名:PathInterface
方法 or 属性:(value?: { width?: number \| string; height?: number \| string; commands?: string }): PathAttribute;
起始版本:7|类名:PathInterface
方法 or 属性:(value?: { width?: number \| string; height?: number \| string; commands?: string }): PathAttribute;
起始版本:9|path.d.ts| +|起始版本有变化|类名:PathAttribute
起始版本:7|类名:PathAttribute
起始版本:9|path.d.ts| +|起始版本有变化|类名:PathAttribute
方法 or 属性:commands(value: string): PathAttribute;
起始版本:7|类名:PathAttribute
方法 or 属性:commands(value: string): PathAttribute;
起始版本:9|path.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Path: PathInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Path: PathInterface;
起始版本:9|path.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const PathInstance: PathAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const PathInstance: PathAttribute;
起始版本:9|path.d.ts| +|起始版本有变化|类名:PolygonInterface
起始版本:7|类名:PolygonInterface
起始版本:9|polygon.d.ts| +|起始版本有变化|类名:PolygonInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): PolygonAttribute;
起始版本:7|类名:PolygonInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): PolygonAttribute;
起始版本:9|polygon.d.ts| +|起始版本有变化|类名:PolygonInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): PolygonAttribute;
起始版本:7|类名:PolygonInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): PolygonAttribute;
起始版本:9|polygon.d.ts| +|起始版本有变化|类名:PolygonAttribute
方法 or 属性:points(value: Array\): PolygonAttribute;
起始版本:7|类名:PolygonAttribute
方法 or 属性:points(value: Array\): PolygonAttribute;
起始版本:9|polygon.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Polygon: PolygonInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Polygon: PolygonInterface;
起始版本:9|polygon.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const PolygonInstance: PolygonAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const PolygonInstance: PolygonAttribute;
起始版本:9|polygon.d.ts| +|起始版本有变化|类名:PolylineInterface
起始版本:7|类名:PolylineInterface
起始版本:9|polyline.d.ts| +|起始版本有变化|类名:PolylineInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): PolylineAttribute;
起始版本:7|类名:PolylineInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): PolylineAttribute;
起始版本:9|polyline.d.ts| +|起始版本有变化|类名:PolylineInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): PolylineAttribute;
起始版本:7|类名:PolylineInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): PolylineAttribute;
起始版本:9|polyline.d.ts| +|起始版本有变化|类名:PolylineAttribute
起始版本:7|类名:PolylineAttribute
起始版本:9|polyline.d.ts| +|起始版本有变化|类名:PolylineAttribute
方法 or 属性:points(value: Array\): PolylineAttribute;
起始版本:7|类名:PolylineAttribute
方法 or 属性:points(value: Array\): PolylineAttribute;
起始版本:9|polyline.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Polyline: PolylineInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Polyline: PolylineInterface;
起始版本:9|polyline.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const PolylineInstance: PolylineAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const PolylineInstance: PolylineAttribute;
起始版本:9|polyline.d.ts| +|起始版本有变化|类名:ProgressOptions
起始版本:7|类名:ProgressOptions
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressOptions
方法 or 属性:value: number;
起始版本:7|类名:ProgressOptions
方法 or 属性:value: number;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressOptions
方法 or 属性:total?: number;
起始版本:7|类名:ProgressOptions
方法 or 属性:total?: number;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressOptions
方法 or 属性:type?: ProgressType
起始版本:8|类名:ProgressOptions
方法 or 属性:type?: ProgressType
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressType
起始版本:8|类名:ProgressType
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressType
方法 or 属性:Linear
起始版本:8|类名:ProgressType
方法 or 属性:Linear
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressType
方法 or 属性:Ring
起始版本:8|类名:ProgressType
方法 or 属性:Ring
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressType
方法 or 属性:Eclipse
起始版本:8|类名:ProgressType
方法 or 属性:Eclipse
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressType
方法 or 属性:ScaleRing
起始版本:8|类名:ProgressType
方法 or 属性:ScaleRing
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressType
方法 or 属性:Capsule
起始版本:8|类名:ProgressType
方法 or 属性:Capsule
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressStyleOptions
起始版本:8|类名:ProgressStyleOptions
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressStyleOptions
方法 or 属性:strokeWidth?: Length;
起始版本:8|类名:ProgressStyleOptions
方法 or 属性:strokeWidth?: Length;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressStyleOptions
方法 or 属性:scaleCount?: number;
起始版本:8|类名:ProgressStyleOptions
方法 or 属性:scaleCount?: number;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressStyleOptions
方法 or 属性:scaleWidth?: Length;
起始版本:8|类名:ProgressStyleOptions
方法 or 属性:scaleWidth?: Length;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressStyle
起始版本:7|类名:ProgressStyle
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressStyle
方法 or 属性:Linear
起始版本:7|类名:ProgressStyle
方法 or 属性:Linear
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressStyle
方法 or 属性:Ring
起始版本:8|类名:ProgressStyle
方法 or 属性:Ring
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressStyle
方法 or 属性:Eclipse
起始版本:7|类名:ProgressStyle
方法 or 属性:Eclipse
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressStyle
方法 or 属性:ScaleRing
起始版本:8|类名:ProgressStyle
方法 or 属性:ScaleRing
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressStyle
方法 or 属性:Capsule
起始版本:8|类名:ProgressStyle
方法 or 属性:Capsule
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressInterface
起始版本:7|类名:ProgressInterface
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressInterface
方法 or 属性:(options: ProgressOptions): ProgressAttribute;
起始版本:7|类名:ProgressInterface
方法 or 属性:(options: ProgressOptions): ProgressAttribute;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressAttribute
起始版本:7|类名:ProgressAttribute
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressAttribute
方法 or 属性:value(value: number): ProgressAttribute;
起始版本:7|类名:ProgressAttribute
方法 or 属性:value(value: number): ProgressAttribute;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressAttribute
方法 or 属性:color(value: ResourceColor): ProgressAttribute;
起始版本:7|类名:ProgressAttribute
方法 or 属性:color(value: ResourceColor): ProgressAttribute;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:ProgressAttribute
方法 or 属性:style(value: ProgressStyleOptions): ProgressAttribute;
起始版本:8|类名:ProgressAttribute
方法 or 属性:style(value: ProgressStyleOptions): ProgressAttribute;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Progress: ProgressInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Progress: ProgressInterface;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ProgressInstance: ProgressAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ProgressInstance: ProgressAttribute;
起始版本:9|progress.d.ts| +|起始版本有变化|类名:QRCodeInterface
起始版本:7|类名:QRCodeInterface
起始版本:9|qrcode.d.ts| +|起始版本有变化|类名:QRCodeInterface
方法 or 属性:(value: string): QRCodeAttribute;
起始版本:7|类名:QRCodeInterface
方法 or 属性:(value: string): QRCodeAttribute;
起始版本:9|qrcode.d.ts| +|起始版本有变化|类名:QRCodeAttribute
起始版本:7|类名:QRCodeAttribute
起始版本:9|qrcode.d.ts| +|起始版本有变化|类名:QRCodeAttribute
方法 or 属性:color(value: ResourceColor): QRCodeAttribute;
起始版本:7|类名:QRCodeAttribute
方法 or 属性:color(value: ResourceColor): QRCodeAttribute;
起始版本:9|qrcode.d.ts| +|起始版本有变化|类名:QRCodeAttribute
方法 or 属性:backgroundColor(value: ResourceColor): QRCodeAttribute;
起始版本:7|类名:QRCodeAttribute
方法 or 属性:backgroundColor(value: ResourceColor): QRCodeAttribute;
起始版本:9|qrcode.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const QRCode: QRCodeInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const QRCode: QRCodeInterface;
起始版本:9|qrcode.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const QRCodeInstance: QRCodeAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const QRCodeInstance: QRCodeAttribute;
起始版本:9|qrcode.d.ts| +|起始版本有变化|类名:RadioOptions
起始版本:8|类名:RadioOptions
起始版本:9|radio.d.ts| +|起始版本有变化|类名:RadioOptions
方法 or 属性:group: string;
起始版本:8|类名:RadioOptions
方法 or 属性:group: string;
起始版本:9|radio.d.ts| +|起始版本有变化|类名:RadioOptions
方法 or 属性:value: string;
起始版本:8|类名:RadioOptions
方法 or 属性:value: string;
起始版本:9|radio.d.ts| +|起始版本有变化|类名:RadioInterface
起始版本:8|类名:RadioInterface
起始版本:9|radio.d.ts| +|起始版本有变化|类名:RadioInterface
方法 or 属性:(options: RadioOptions): RadioAttribute;
起始版本:8|类名:RadioInterface
方法 or 属性:(options: RadioOptions): RadioAttribute;
起始版本:9|radio.d.ts| +|起始版本有变化|类名:RadioAttribute
起始版本:8|类名:RadioAttribute
起始版本:9|radio.d.ts| +|起始版本有变化|类名:RadioAttribute
方法 or 属性:checked(value: boolean): RadioAttribute;
起始版本:8|类名:RadioAttribute
方法 or 属性:checked(value: boolean): RadioAttribute;
起始版本:9|radio.d.ts| +|起始版本有变化|类名:RadioAttribute
方法 or 属性:onChange(callback: (isChecked: boolean) => void): RadioAttribute;
起始版本:8|类名:RadioAttribute
方法 or 属性:onChange(callback: (isChecked: boolean) => void): RadioAttribute;
起始版本:9|radio.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Radio: RadioInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Radio: RadioInterface;
起始版本:9|radio.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const RadioInstance: RadioAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const RadioInstance: RadioAttribute;
起始版本:9|radio.d.ts| +|起始版本有变化|类名:RatingInterface
起始版本:7|类名:RatingInterface
起始版本:9|rating.d.ts| +|起始版本有变化|类名:RatingInterface
方法 or 属性:(options?: { rating: number; indicator?: boolean }): RatingAttribute;
起始版本:7|类名:RatingInterface
方法 or 属性:(options?: { rating: number; indicator?: boolean }): RatingAttribute;
起始版本:9|rating.d.ts| +|起始版本有变化|类名:RatingAttribute
起始版本:7|类名:RatingAttribute
起始版本:9|rating.d.ts| +|起始版本有变化|类名:RatingAttribute
方法 or 属性:stars(value: number): RatingAttribute;
起始版本:7|类名:RatingAttribute
方法 or 属性:stars(value: number): RatingAttribute;
起始版本:9|rating.d.ts| +|起始版本有变化|类名:RatingAttribute
方法 or 属性:stepSize(value: number): RatingAttribute;
起始版本:7|类名:RatingAttribute
方法 or 属性:stepSize(value: number): RatingAttribute;
起始版本:9|rating.d.ts| +|起始版本有变化|类名:RatingAttribute
方法 or 属性:starStyle(value: { backgroundUri: string; foregroundUri: string; secondaryUri?: string }): RatingAttribute;
起始版本:7|类名:RatingAttribute
方法 or 属性:starStyle(value: { backgroundUri: string; foregroundUri: string; secondaryUri?: string }): RatingAttribute;
起始版本:9|rating.d.ts| +|起始版本有变化|类名:RatingAttribute
方法 or 属性:onChange(callback: (value: number) => void): RatingAttribute;
起始版本:7|类名:RatingAttribute
方法 or 属性:onChange(callback: (value: number) => void): RatingAttribute;
起始版本:9|rating.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Rating: RatingInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Rating: RatingInterface;
起始版本:9|rating.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const RatingInstance: RatingAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const RatingInstance: RatingAttribute;
起始版本:9|rating.d.ts| +|起始版本有变化|类名:RectInterface
起始版本:7|类名:RectInterface
起始版本:9|rect.d.ts| +|起始版本有变化|类名:RectInterface
方法 or 属性:new (
value?:
{
width?: number \| string;
height?: number \| string;
radius?: number \| string \| Array\;
}
\| {
width?: number \| string;
height?: number \| string;
radiusWidth?: number \| string;
radiusHeight?: number \| string;
},
): RectAttribute;
起始版本:7|类名:RectInterface
方法 or 属性:new (
value?:
{
width?: number \| string;
height?: number \| string;
radius?: number \| string \| Array\;
}
\| {
width?: number \| string;
height?: number \| string;
radiusWidth?: number \| string;
radiusHeight?: number \| string;
},
): RectAttribute;
起始版本:9|rect.d.ts| +|起始版本有变化|类名:RectInterface
方法 or 属性:(
value?:
{
width?: number \| string;
height?: number \| string;
radius?: number \| string \| Array\;
}
\| {
width?: number \| string;
height?: number \| string;
radiusWidth?: number \| string;
radiusHeight?: number \| string;
},
): RectAttribute;
起始版本:7|类名:RectInterface
方法 or 属性:(
value?:
{
width?: number \| string;
height?: number \| string;
radius?: number \| string \| Array\;
}
\| {
width?: number \| string;
height?: number \| string;
radiusWidth?: number \| string;
radiusHeight?: number \| string;
},
): RectAttribute;
起始版本:9|rect.d.ts| +|起始版本有变化|类名:RectAttribute
起始版本:7|类名:RectAttribute
起始版本:9|rect.d.ts| +|起始版本有变化|类名:RectAttribute
方法 or 属性:radiusWidth(value: number \| string): RectAttribute;
起始版本:7|类名:RectAttribute
方法 or 属性:radiusWidth(value: number \| string): RectAttribute;
起始版本:9|rect.d.ts| +|起始版本有变化|类名:RectAttribute
方法 or 属性:radiusHeight(value: number \| string): RectAttribute;
起始版本:7|类名:RectAttribute
方法 or 属性:radiusHeight(value: number \| string): RectAttribute;
起始版本:9|rect.d.ts| +|起始版本有变化|类名:RectAttribute
方法 or 属性:radius(value: number \| string \| Array\): RectAttribute;
起始版本:7|类名:RectAttribute
方法 or 属性:radius(value: number \| string \| Array\): RectAttribute;
起始版本:9|rect.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Rect: RectInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Rect: RectInterface;
起始版本:9|rect.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Refresh: RefreshInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Refresh: RefreshInterface;
起始版本:8|refresh.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const RefreshInstance: RefreshAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const RefreshInstance: RefreshAttribute;
起始版本:8|refresh.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const RichText: RichTextInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const RichText: RichTextInterface;
起始版本:8|rich_text.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const RichTextInstance: RichTextAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const RichTextInstance: RichTextAttribute;
起始版本:8|rich_text.d.ts| +|起始版本有变化|类名:RowInterface
起始版本:7|类名:RowInterface
起始版本:9|row.d.ts| +|起始版本有变化|类名:RowInterface
方法 or 属性:(value?: { space?: string \| number }): RowAttribute;
起始版本:7|类名:RowInterface
方法 or 属性:(value?: { space?: string \| number }): RowAttribute;
起始版本:9|row.d.ts| +|起始版本有变化|类名:RowAttribute
起始版本:7|类名:RowAttribute
起始版本:9|row.d.ts| +|起始版本有变化|类名:RowAttribute
方法 or 属性:alignItems(value: VerticalAlign): RowAttribute;
起始版本:7|类名:RowAttribute
方法 or 属性:alignItems(value: VerticalAlign): RowAttribute;
起始版本:9|row.d.ts| +|起始版本有变化|类名:RowAttribute
方法 or 属性:justifyContent(value: FlexAlign): RowAttribute;
起始版本:8|类名:RowAttribute
方法 or 属性:justifyContent(value: FlexAlign): RowAttribute;
起始版本:9|row.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Row: RowInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Row: RowInterface;
起始版本:9|row.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const RowInstance: RowAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const RowInstance: RowAttribute;
起始版本:9|row.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const RowSplit: RowSplitInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const RowSplit: RowSplitInterface;
起始版本:7|row_split.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const RowSplitInstance: RowSplitAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const RowSplitInstance: RowSplitAttribute;
起始版本:7|row_split.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Scroll: ScrollInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Scroll: ScrollInterface;
起始版本:7|scroll.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ScrollInstance: ScrollAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ScrollInstance: ScrollAttribute;
起始版本:7|scroll.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ScrollBar: ScrollBarInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const ScrollBar: ScrollBarInterface;
起始版本:8|scroll_bar.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ScrollBarInstance: ScrollBarAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ScrollBarInstance: ScrollBarAttribute;
起始版本:8|scroll_bar.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Search: SearchInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Search: SearchInterface;
起始版本:8|search.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const SearchInstance: SearchAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const SearchInstance: SearchAttribute;
起始版本:8|search.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Select: SelectInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Select: SelectInterface;
起始版本:8|select.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const SelectInstance: SelectAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const SelectInstance: SelectAttribute;
起始版本:8|select.d.ts| +|起始版本有变化|类名:ShapeInterface
起始版本:7|类名:ShapeInterface
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
起始版本:7|类名:ShapeAttribute
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:viewPort(value: { x?: number \| string; y?: number \| string; width?: number \| string; height?: number \| string }): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:viewPort(value: { x?: number \| string; y?: number \| string; width?: number \| string; height?: number \| string }): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:stroke(value: ResourceColor): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:stroke(value: ResourceColor): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:fill(value: ResourceColor): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:fill(value: ResourceColor): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeDashOffset(value: number \| string): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeDashOffset(value: number \| string): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeDashArray(value: Array\): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeDashArray(value: Array\): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeLineCap(value: LineCapStyle): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeLineCap(value: LineCapStyle): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeLineJoin(value: LineJoinStyle): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeLineJoin(value: LineJoinStyle): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeMiterLimit(value: number \| string): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeMiterLimit(value: number \| string): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeOpacity(value: number \| string \| Resource): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeOpacity(value: number \| string \| Resource): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:fillOpacity(value: number \| string \| Resource): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:fillOpacity(value: number \| string \| Resource): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeWidth(value: number \| string): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeWidth(value: number \| string): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:antiAlias(value: boolean): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:antiAlias(value: boolean): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:ShapeAttribute
方法 or 属性:mesh(value: Array\, column: number, row: number): ShapeAttribute;
起始版本:8|类名:ShapeAttribute
方法 or 属性:mesh(value: Array\, column: number, row: number): ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Shape: ShapeInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Shape: ShapeInterface;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ShapeInstance: ShapeAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ShapeInstance: ShapeAttribute;
起始版本:9|shape.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const SideBarContainer: SideBarContainerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const SideBarContainer: SideBarContainerInterface;
起始版本:8|sidebar.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const SideBarContainerInstance: SideBarContainerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const SideBarContainerInstance: SideBarContainerAttribute;
起始版本:8|sidebar.d.ts| +|起始版本有变化|类名:SliderStyle
起始版本:7|类名:SliderStyle
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderStyle
方法 or 属性:OutSet
起始版本:7|类名:SliderStyle
方法 or 属性:OutSet
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderStyle
方法 or 属性:InSet
起始版本:7|类名:SliderStyle
方法 or 属性:InSet
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderChangeMode
起始版本:7|类名:SliderChangeMode
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderChangeMode
方法 or 属性:Begin
起始版本:7|类名:SliderChangeMode
方法 or 属性:Begin
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderChangeMode
方法 or 属性:Moving
起始版本:7|类名:SliderChangeMode
方法 or 属性:Moving
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderChangeMode
方法 or 属性:End
起始版本:7|类名:SliderChangeMode
方法 or 属性:End
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderChangeMode
方法 or 属性:Click
起始版本:8|类名:SliderChangeMode
方法 or 属性:Click
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderOptions
起始版本:7|类名:SliderOptions
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderOptions
方法 or 属性:value?: number;
起始版本:7|类名:SliderOptions
方法 or 属性:value?: number;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderOptions
方法 or 属性:min?: number;
起始版本:7|类名:SliderOptions
方法 or 属性:min?: number;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderOptions
方法 or 属性:max?: number;
起始版本:7|类名:SliderOptions
方法 or 属性:max?: number;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderOptions
方法 or 属性:step?: number;
起始版本:7|类名:SliderOptions
方法 or 属性:step?: number;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderOptions
方法 or 属性:style?: SliderStyle;
起始版本:7|类名:SliderOptions
方法 or 属性:style?: SliderStyle;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderOptions
方法 or 属性:direction?: Axis;
起始版本:8|类名:SliderOptions
方法 or 属性:direction?: Axis;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderOptions
方法 or 属性:reverse?: boolean;
起始版本:8|类名:SliderOptions
方法 or 属性:reverse?: boolean;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderInterface
起始版本:7|类名:SliderInterface
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderInterface
方法 or 属性:(options?: SliderOptions): SliderAttribute;
起始版本:7|类名:SliderInterface
方法 or 属性:(options?: SliderOptions): SliderAttribute;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderAttribute
起始版本:7|类名:SliderAttribute
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderAttribute
方法 or 属性:blockColor(value: ResourceColor): SliderAttribute;
起始版本:7|类名:SliderAttribute
方法 or 属性:blockColor(value: ResourceColor): SliderAttribute;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderAttribute
方法 or 属性:trackColor(value: ResourceColor): SliderAttribute;
起始版本:7|类名:SliderAttribute
方法 or 属性:trackColor(value: ResourceColor): SliderAttribute;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderAttribute
方法 or 属性:selectedColor(value: ResourceColor): SliderAttribute;
起始版本:7|类名:SliderAttribute
方法 or 属性:selectedColor(value: ResourceColor): SliderAttribute;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderAttribute
方法 or 属性:showSteps(value: boolean): SliderAttribute;
起始版本:7|类名:SliderAttribute
方法 or 属性:showSteps(value: boolean): SliderAttribute;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderAttribute
方法 or 属性:showTips(value: boolean): SliderAttribute;
起始版本:7|类名:SliderAttribute
方法 or 属性:showTips(value: boolean): SliderAttribute;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderAttribute
方法 or 属性:trackThickness(value: Length): SliderAttribute;
起始版本:8|类名:SliderAttribute
方法 or 属性:trackThickness(value: Length): SliderAttribute;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SliderAttribute
方法 or 属性:onChange(callback: (value: number, mode: SliderChangeMode) => void): SliderAttribute;
起始版本:7|类名:SliderAttribute
方法 or 属性:onChange(callback: (value: number, mode: SliderChangeMode) => void): SliderAttribute;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Slider: SliderInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Slider: SliderInterface;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const SliderInstance: SliderAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const SliderInstance: SliderAttribute;
起始版本:9|slider.d.ts| +|起始版本有变化|类名:SpanInterface
起始版本:7|类名:SpanInterface
起始版本:9|span.d.ts| +|起始版本有变化|类名:SpanInterface
方法 or 属性:(value: string \| Resource): SpanAttribute;
起始版本:7|类名:SpanInterface
方法 or 属性:(value: string \| Resource): SpanAttribute;
起始版本:9|span.d.ts| +|起始版本有变化|类名:SpanAttribute
起始版本:7|类名:SpanAttribute
起始版本:9|span.d.ts| +|起始版本有变化|类名:SpanAttribute
方法 or 属性:fontColor(value: ResourceColor): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:fontColor(value: ResourceColor): SpanAttribute;
起始版本:9|span.d.ts| +|起始版本有变化|类名:SpanAttribute
方法 or 属性:fontSize(value: number \| string \| Resource): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:fontSize(value: number \| string \| Resource): SpanAttribute;
起始版本:9|span.d.ts| +|起始版本有变化|类名:SpanAttribute
方法 or 属性:fontStyle(value: FontStyle): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:fontStyle(value: FontStyle): SpanAttribute;
起始版本:9|span.d.ts| +|起始版本有变化|类名:SpanAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): SpanAttribute;
起始版本:9|span.d.ts| +|起始版本有变化|类名:SpanAttribute
方法 or 属性:fontFamily(value: string \| Resource): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:fontFamily(value: string \| Resource): SpanAttribute;
起始版本:9|span.d.ts| +|起始版本有变化|类名:SpanAttribute
方法 or 属性:decoration(value: { type: TextDecorationType; color?: ResourceColor }): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:decoration(value: { type: TextDecorationType; color?: ResourceColor }): SpanAttribute;
起始版本:9|span.d.ts| +|起始版本有变化|类名:SpanAttribute
方法 or 属性:letterSpacing(value: number \| string): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:letterSpacing(value: number \| string): SpanAttribute;
起始版本:9|span.d.ts| +|起始版本有变化|类名:SpanAttribute
方法 or 属性:textCase(value: TextCase): SpanAttribute;
起始版本:N/A|类名:SpanAttribute
方法 or 属性:textCase(value: TextCase): SpanAttribute;
起始版本:9|span.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Span: SpanInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Span: SpanInterface;
起始版本:9|span.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const SpanInstance: SpanAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const SpanInstance: SpanAttribute;
起始版本:9|span.d.ts| +|起始版本有变化|类名:StackInterface
起始版本:7|类名:StackInterface
起始版本:9|stack.d.ts| +|起始版本有变化|类名:StackInterface
方法 or 属性:(value?: { alignContent?: Alignment }): StackAttribute;
起始版本:7|类名:StackInterface
方法 or 属性:(value?: { alignContent?: Alignment }): StackAttribute;
起始版本:9|stack.d.ts| +|起始版本有变化|类名:StackAttribute
起始版本:7|类名:StackAttribute
起始版本:9|stack.d.ts| +|起始版本有变化|类名:StackAttribute
方法 or 属性:alignContent(value: Alignment): StackAttribute;
起始版本:7|类名:StackAttribute
方法 or 属性:alignContent(value: Alignment): StackAttribute;
起始版本:9|stack.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Stack: StackInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Stack: StackInterface;
起始版本:9|stack.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const StackInstance: StackAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const StackInstance: StackAttribute;
起始版本:9|stack.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Stepper: StepperInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Stepper: StepperInterface;
起始版本:8|stepper.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const StepperInstance: StepperAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const StepperInstance: StepperAttribute;
起始版本:8|stepper.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const StepperItemInstance: StepperItemAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const StepperItemInstance: StepperItemAttribute;
起始版本:8|stepper_item.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const StepperItem: StepperItemInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const StepperItem: StepperItemInterface;
起始版本:8|stepper_item.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Swiper: SwiperInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Swiper: SwiperInterface;
起始版本:7|swiper.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const SwiperInstance: SwiperAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const SwiperInstance: SwiperAttribute;
起始版本:7|swiper.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Tabs: TabsInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Tabs: TabsInterface;
起始版本:7|tabs.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TabsInstance: TabsAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TabsInstance: TabsAttribute;
起始版本:7|tabs.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TabContent: TabContentInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TabContent: TabContentInterface;
起始版本:7|tab_content.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TabContentInstance: TabContentAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TabContentInstance: TabContentAttribute;
起始版本:7|tab_content.d.ts| +|起始版本有变化|类名:TextInterface
起始版本:7|类名:TextInterface
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextInterface
方法 or 属性:(content?: string \| Resource): TextAttribute;
起始版本:7|类名:TextInterface
方法 or 属性:(content?: string \| Resource): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
起始版本:7|类名:TextAttribute
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:fontColor(value: ResourceColor): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:fontColor(value: ResourceColor): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:fontSize(value: number \| string \| Resource): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:fontSize(value: number \| string \| Resource): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:minFontSize(value: number \| string \| Resource): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:minFontSize(value: number \| string \| Resource): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:maxFontSize(value: number \| string \| Resource): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:maxFontSize(value: number \| string \| Resource): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:fontStyle(value: FontStyle): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:fontStyle(value: FontStyle): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:textAlign(value: TextAlign): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:textAlign(value: TextAlign): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:lineHeight(value: number \| string \| Resource): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:lineHeight(value: number \| string \| Resource): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:textOverflow(value: { overflow: TextOverflow }): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:textOverflow(value: { overflow: TextOverflow }): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:fontFamily(value: string \| Resource): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:fontFamily(value: string \| Resource): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:maxLines(value: number): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:maxLines(value: number): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:decoration(value: { type: TextDecorationType; color?: ResourceColor }): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:decoration(value: { type: TextDecorationType; color?: ResourceColor }): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:letterSpacing(value: number \| string): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:letterSpacing(value: number \| string): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:textCase(value: TextCase): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:textCase(value: TextCase): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:TextAttribute
方法 or 属性:baselineOffset(value: number \| string): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:baselineOffset(value: number \| string): TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextInstance: TextAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TextInstance: TextAttribute;
起始版本:9|text.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Text: TextInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Text: TextInterface;
起始版本:9|text.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextArea: TextAreaInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TextArea: TextAreaInterface;
起始版本:7|text_area.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextAreaInstance: TextAreaAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TextAreaInstance: TextAreaAttribute;
起始版本:7|text_area.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextClock: TextClockInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TextClock: TextClockInterface;
起始版本:8|text_clock.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextClockInstance: TextClockAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TextClockInstance: TextClockAttribute;
起始版本:8|text_clock.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextInput: TextInputInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TextInput: TextInputInterface;
起始版本:7|text_input.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextInputInstance: TextInputAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TextInputInstance: TextInputAttribute;
起始版本:7|text_input.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextPicker: TextPickerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TextPicker: TextPickerInterface;
起始版本:8|text_picker.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextPickerInstance: TextPickerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TextPickerInstance: TextPickerAttribute;
起始版本:8|text_picker.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextTimer: TextTimerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TextTimer: TextTimerInterface;
起始版本:8|text_timer.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TextTimerInstance: TextTimerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TextTimerInstance: TextTimerAttribute;
起始版本:8|text_timer.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TimePicker: TimePickerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TimePicker: TimePickerInterface;
起始版本:8|time_picker.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const TimePickerInstance: TimePickerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TimePickerInstance: TimePickerAttribute;
起始版本:8|time_picker.d.ts| +|起始版本有变化|类名:ToggleType
起始版本:8|类名:ToggleType
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:ToggleType
方法 or 属性:Checkbox
起始版本:8|类名:ToggleType
方法 or 属性:Checkbox
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:ToggleType
方法 or 属性:Switch
起始版本:8|类名:ToggleType
方法 or 属性:Switch
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:ToggleType
方法 or 属性:Button
起始版本:8|类名:ToggleType
方法 or 属性:Button
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:ToggleInterface
起始版本:8|类名:ToggleInterface
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:ToggleInterface
方法 or 属性:(options: { type: ToggleType; isOn?: boolean }): ToggleAttribute;
起始版本:8|类名:ToggleInterface
方法 or 属性:(options: { type: ToggleType; isOn?: boolean }): ToggleAttribute;
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:ToggleAttribute
起始版本:8|类名:ToggleAttribute
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:ToggleAttribute
方法 or 属性:onChange(callback: (isOn: boolean) => void): ToggleAttribute;
起始版本:8|类名:ToggleAttribute
方法 or 属性:onChange(callback: (isOn: boolean) => void): ToggleAttribute;
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:ToggleAttribute
方法 or 属性:selectedColor(value: ResourceColor): ToggleAttribute;
起始版本:8|类名:ToggleAttribute
方法 or 属性:selectedColor(value: ResourceColor): ToggleAttribute;
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:ToggleAttribute
方法 or 属性:switchPointColor(color: ResourceColor): ToggleAttribute;
起始版本:8|类名:ToggleAttribute
方法 or 属性:switchPointColor(color: ResourceColor): ToggleAttribute;
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Toggle: ToggleInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Toggle: ToggleInterface;
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const ToggleInstance: ToggleAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ToggleInstance: ToggleAttribute;
起始版本:9|toggle.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Video: VideoInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Video: VideoInterface;
起始版本:7|video.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const VideoInstance: VideoAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const VideoInstance: VideoAttribute;
起始版本:7|video.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const Web: WebInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Web: WebInterface;
起始版本:8|web.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const WebInstance: WebAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const WebInstance: WebAttribute;
起始版本:8|web.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const XComponent: XComponentInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const XComponent: XComponentInterface;
起始版本:8|xcomponent.d.ts| +|起始版本有变化|类名:global
方法 or 属性:declare const XComponentInstance: XComponentAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const XComponentInstance: XComponentAttribute;
起始版本:8|xcomponent.d.ts| +|SysCap有变化|类名:console
方法 or 属性:static debug(message: string, ...arguments: any[]): void;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:console
方法 or 属性:static debug(message: string, ...arguments: any[]): void;
SysCap:N/A|global.d.ts| +|SysCap有变化|类名:console
方法 or 属性:static log(message: string, ...arguments: any[]): void;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:console
方法 or 属性:static log(message: string, ...arguments: any[]): void;
SysCap:N/A|global.d.ts| +|SysCap有变化|类名:console
方法 or 属性:static info(message: string, ...arguments: any[]): void;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:console
方法 or 属性:static info(message: string, ...arguments: any[]): void;
SysCap:N/A|global.d.ts| +|SysCap有变化|类名:console
方法 or 属性:static warn(message: string, ...arguments: any[]): void;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:console
方法 or 属性:static warn(message: string, ...arguments: any[]): void;
SysCap:N/A|global.d.ts| +|SysCap有变化|类名:console
方法 or 属性:static error(message: string, ...arguments: any[]): void;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:console
方法 or 属性:static error(message: string, ...arguments: any[]): void;
SysCap:N/A|global.d.ts| +|SysCap有变化|类名:
方法 or 属性: function getInspectorByKey(id: string): string;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:
方法 or 属性: function getInspectorByKey(id: string): string;
SysCap:N/A|global.d.ts| +|SysCap有变化|类名:
方法 or 属性: function sendEventByKey(id: string, action: number, params: string): boolean;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:
方法 or 属性: function sendEventByKey(id: string, action: number, params: string): boolean;
SysCap:N/A|global.d.ts| +|SysCap有变化|类名:
方法 or 属性: function sendTouchEvent(event: TouchObject): boolean;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:
方法 or 属性: function sendTouchEvent(event: TouchObject): boolean;
SysCap:N/A|global.d.ts| +|SysCap有变化|类名:
方法 or 属性: function sendKeyEvent(event: KeyEvent): boolean;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:
方法 or 属性: function sendKeyEvent(event: KeyEvent): boolean;
SysCap:N/A|global.d.ts| +|SysCap有变化|类名:
方法 or 属性: function sendMouseEvent(event: MouseEvent): boolean;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:
方法 or 属性: function sendMouseEvent(event: MouseEvent): boolean;
SysCap:N/A|global.d.ts| +|SysCap有变化|类名:RouterOptions
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:RouterOptions
SysCap:SystemCapability.ArkUI.ArkUI.Lite|@ohos.router.d.ts| +|SysCap有变化|类名:router
方法 or 属性:function replace(options: RouterOptions):void;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:router
方法 or 属性:function replace(options: RouterOptions):void;
SysCap:SystemCapability.ArkUI.ArkUI.Lite|@ohos.router.d.ts| +|SysCap有变化|类名:TabContentInterface
SysCap:N/A|类名:TabContentInterface
SysCap:SystemCapability.ArkUI.ArkUI.Full|tab_content.d.ts| +|SysCap有变化|类名:TabContentInterface
方法 or 属性:(): TabContentAttribute;
SysCap:N/A|类名:TabContentInterface
方法 or 属性:(): TabContentAttribute;
SysCap:SystemCapability.ArkUI.ArkUI.Full|tab_content.d.ts| +|SysCap有变化|类名:TabContentAttribute
SysCap:N/A|类名:TabContentAttribute
SysCap:SystemCapability.ArkUI.ArkUI.Full|tab_content.d.ts| +|SysCap有变化|类名:TabContentAttribute
方法 or 属性:tabBar(value: string \| Resource \| CustomBuilder \|
{ icon?: string \| Resource; text?: string \| Resource }): TabContentAttribute;
SysCap:N/A|类名:TabContentAttribute
方法 or 属性:tabBar(value: string \| Resource \| CustomBuilder \|
{ icon?: string \| Resource; text?: string \| Resource }): TabContentAttribute;
SysCap:SystemCapability.ArkUI.ArkUI.Full|tab_content.d.ts| +|SysCap有变化|类名:global
方法 or 属性:declare const TabContent: TabContentInterface;
SysCap:N/A|类名:global
方法 or 属性:declare const TabContent: TabContentInterface;
SysCap:SystemCapability.ArkUI.ArkUI.Full|tab_content.d.ts| +|SysCap有变化|类名:global
方法 or 属性:declare const TabContentInstance: TabContentAttribute;
SysCap:N/A|类名:global
方法 or 属性:declare const TabContentInstance: TabContentAttribute;
SysCap:SystemCapability.ArkUI.ArkUI.Full|tab_content.d.ts| +|SysCap有变化|类名:
方法 or 属性: function createLocalParticleAbility(name?: string): any;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:
方法 or 属性: function createLocalParticleAbility(name?: string): any;
SysCap:N/A|global.d.ts| +|函数有变化|类名:
方法 or 属性: function getInspectorTree(): string;
|类名:
方法 or 属性: function getInspectorTree(): Object;
|global.d.ts| +|函数有变化|类名:FormComponentInterface
方法 or 属性:(value: {
id: number;
name: string;
bundle: string;
ability: string;
module: string;
dimension?: FormDimension;
temporary?: boolean;
}): 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| +|函数有变化|类名:ImageAnimatorAttribute
方法 or 属性:images(
value: Array\<{
src: string;
width?: number \| string;
height?: number \| string;
top?: number \| string;
left?: number \| string;
duration?: number;
}>,
): ImageAnimatorAttribute;
|类名:ImageAnimatorAttribute
方法 or 属性:images(value: Array\): ImageAnimatorAttribute;
|image_animator.d.ts| +|函数有变化|类名:NavigationAttribute
方法 or 属性:title(value: string \| CustomBuilder): NavigationAttribute;
|类名:NavigationAttribute
方法 or 属性:title(value: string \| CustomBuilder \| NavigationCommonTitle \| NavigationCustomTitle): NavigationAttribute;
|navigation.d.ts| +|函数有变化|类名:WebAttribute
方法 or 属性:javaScriptProxy(javaScriptProxy: { object: object, name: string, methodList: Array\,
controller: WebController }): WebAttribute;
|类名:WebAttribute
方法 or 属性:javaScriptProxy(javaScriptProxy: { object: object, name: string, methodList: Array\,
controller: WebController \| WebviewController }): WebAttribute;
|web.d.ts| +|函数有变化|类名:WebAttribute
方法 or 属性:onRefreshAccessedHistory(callback: (event?: { url: string, refreshed: boolean }) => void): WebAttribute;
|类名:WebAttribute
方法 or 属性:onRefreshAccessedHistory(callback: (event?: { url: string, isRefreshed: boolean }) => void): WebAttribute;
|web.d.ts| +|函数有变化|类名:XComponentController
方法 or 属性:getXComponentSurfaceId();
|类名:XComponentController
方法 or 属性:getXComponentSurfaceId(): string;
|xcomponent.d.ts| +|函数有变化|类名:XComponentController
方法 or 属性:getXComponentContext();
|类名:XComponentController
方法 or 属性:getXComponentContext(): Object;
|xcomponent.d.ts| +|函数有变化|类名:XComponentController
方法 or 属性:setXComponentSurfaceSize(value: {
surfaceWidth: number;
surfaceHeight: number;
});
|类名:XComponentController
方法 or 属性:setXComponentSurfaceSize(value: {
surfaceWidth: number;
surfaceHeight: number;
}): void;
|xcomponent.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-battery.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-battery.md new file mode 100644 index 0000000000000000000000000000000000000000..ffe747302a62d35e974d78e95e522cabbef56131 --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-battery.md @@ -0,0 +1,115 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.batteryInfo
类名: batteryInfo
方法 or 属性: const batteryCapacityLevel: BatteryCapacityLevel;|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: batteryInfo
方法 or 属性: const estimatedRemainingChargeTime: number;|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: batteryInfo
方法 or 属性: const totalEnergy: number;|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: batteryInfo
方法 or 属性: const nowCurrent: number;|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: batteryInfo
方法 or 属性: const remainingEnergy: number;|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: BatteryCapacityLevel|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: BatteryCapacityLevel
方法 or 属性: LEVEL_FULL|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: BatteryCapacityLevel
方法 or 属性: LEVEL_HIGH|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: BatteryCapacityLevel
方法 or 属性: LEVEL_NORMAL|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: BatteryCapacityLevel
方法 or 属性: LEVEL_LOW|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: BatteryCapacityLevel
方法 or 属性: LEVEL_WARNING|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: BatteryCapacityLevel
方法 or 属性: LEVEL_CRITICAL|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: BatteryCapacityLevel
方法 or 属性: LEVEL_SHUTDOWN|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性: EXTRA_SOC = "soc"|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性: EXTRA_CHARGE_STATE = "chargeState"|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性: EXTRA_HEALTH_STATE = "healthState"|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性: EXTRA_PLUGGED_TYPE = "pluggedType"|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性: EXTRA_VOLTAGE = "voltage"|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性: EXTRA_TECHNOLOGY = "technology"|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性: EXTRA_TEMPERATURE = "temperature"|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性: EXTRA_PRESENT = "present"|@ohos.batteryInfo.d.ts| +|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性: EXTRA_CAPACITY_LEVEL = "capacityLevel"|@ohos.batteryInfo.d.ts| +|新增|NA|类名:power
方法or属性:function shutdown(reason: string): void;|@ohos.power.d.ts| +|新增|NA|类名:power
方法or属性:function reboot(reason: string): void;|@ohos.power.d.ts| +|新增|NA|类名:power
方法or属性:function isActive(): boolean;|@ohos.power.d.ts| +|新增|NA|类名:power
方法or属性:function wakeup(detail: string): void;|@ohos.power.d.ts| +|新增|NA|类名:power
方法or属性:function suspend(): void;|@ohos.power.d.ts| +|新增|NA|类名:power
方法or属性:function getPowerMode(): DevicePowerMode;|@ohos.power.d.ts| +|新增|NA|类名:power
方法or属性:function setPowerMode(mode: DevicePowerMode, callback: AsyncCallback\): void;|@ohos.power.d.ts| +|新增|NA|类名:power
方法or属性:function setPowerMode(mode: DevicePowerMode): Promise\;|@ohos.power.d.ts| +|新增|NA|模块名: ohos.power
类名: DevicePowerMode|@ohos.power.d.ts| +|新增|NA|类名:DevicePowerMode
方法or属性:|@ohos.power.d.ts| +|新增|NA|模块名: ohos.power
类名: DevicePowerMode
方法 or 属性:MODE_NORMAL = 600|@ohos.power.d.ts| +|新增|NA|类名:DevicePowerMode
方法or属性:MODE_NORMAL = 600|@ohos.power.d.ts| +|新增|NA|模块名: ohos.power
类名: DevicePowerMode
方法 or 属性:MODE_POWER_SAVE|@ohos.power.d.ts| +|新增|NA|类名:DevicePowerMode
方法or属性:MODE_POWER_SAVE|@ohos.power.d.ts| +|新增|NA|模块名: ohos.power
类名: DevicePowerMode
方法 or 属性:MODE_PERFORMANCE|@ohos.power.d.ts| +|新增|NA|类名:DevicePowerMode
方法or属性:MODE_PERFORMANCE|@ohos.power.d.ts| +|新增|NA|模块名: ohos.power
类名: DevicePowerMode
方法 or 属性:MODE_EXTREME_POWER_SAVE|@ohos.power.d.ts| +|新增|NA|类名:DevicePowerMode
方法or属性:MODE_EXTREME_POWER_SAVE|@ohos.power.d.ts| +|新增|NA|类名:RunningLock
方法or属性:hold(timeout: number): void;|@ohos.runningLock.d.ts| +|新增|NA|类名:RunningLock
方法or属性:isHolding(): boolean;|@ohos.runningLock.d.ts| +|新增|NA|类名:RunningLock
方法or属性:unhold(): void;|@ohos.runningLock.d.ts| +|新增|NA|类名:runningLock
方法or属性:function isSupported(type: RunningLockType): boolean;|@ohos.runningLock.d.ts| +|新增|NA|类名:runningLock
方法or属性:function create(name: string, type: RunningLockType, callback: AsyncCallback\): void;|@ohos.runningLock.d.ts| +|新增|NA|类名:runningLock
方法or属性:function create(name: string, type: RunningLockType): Promise\;|@ohos.runningLock.d.ts| +|新增|NA|类名:thermal
方法or属性:function registerThermalLevelCallback(callback: Callback\): void;|@ohos.thermal.d.ts| +|新增|NA|类名:thermal
方法or属性:function unregisterThermalLevelCallback(callback?: Callback\): void;|@ohos.thermal.d.ts| +|新增|NA|类名:thermal
方法or属性:function getLevel(): ThermalLevel;|@ohos.thermal.d.ts| +|删除|模块名:ohos.power
类名:power
方法 or 属性:function shutdownDevice(reason: string): void;|NA|@ohos.power.d.ts| +|访问级别有变化|类名:brightness
访问级别:公开API|类名:brightness
访问级别:系统API|@ohos.brightness.d.ts| +|废弃版本有变化|类名:power
方法 or 属性:function rebootDevice(reason: string): void;
废弃版本:N/A|类名:power
方法 or 属性:function rebootDevice(reason: string): void;
废弃版本:9
代替接口:{@link power|@ohos.power.d.ts| +|废弃版本有变化|类名:power
方法 or 属性:function isScreenOn(callback: AsyncCallback\): void;
废弃版本:N/A|类名:power
方法 or 属性:function isScreenOn(callback: AsyncCallback\): void;
废弃版本:9
代替接口:{@link power|@ohos.power.d.ts| +|废弃版本有变化|类名:power
方法 or 属性:function isScreenOn(): Promise\;
废弃版本:N/A|类名:power
方法 or 属性:function isScreenOn(): Promise\;
废弃版本:9
代替接口:{@link power|@ohos.power.d.ts| +|废弃版本有变化|类名:RunningLock
方法 or 属性:lock(timeout: number): void;
废弃版本:N/A|类名:RunningLock
方法 or 属性:lock(timeout: number): void;
废弃版本:9
代替接口:{@link RunningLock|@ohos.runningLock.d.ts| +|废弃版本有变化|类名:RunningLock
方法 or 属性:isUsed(): boolean;
废弃版本:N/A|类名:RunningLock
方法 or 属性:isUsed(): boolean;
废弃版本:9
代替接口:{@link RunningLock|@ohos.runningLock.d.ts| +|废弃版本有变化|类名:RunningLock
方法 or 属性:unlock(): void;
废弃版本:N/A|类名:RunningLock
方法 or 属性:unlock(): void;
废弃版本:9
代替接口:{@link RunningLock|@ohos.runningLock.d.ts| +|废弃版本有变化|类名:runningLock
方法 or 属性:function isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:runningLock
方法 or 属性:function isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:{@link RunningLock|@ohos.runningLock.d.ts| +|废弃版本有变化|类名:runningLock
方法 or 属性:function isRunningLockTypeSupported(type: RunningLockType): Promise\;
废弃版本:N/A|类名:runningLock
方法 or 属性:function isRunningLockTypeSupported(type: RunningLockType): Promise\;
废弃版本:9
代替接口:{@link RunningLock|@ohos.runningLock.d.ts| +|废弃版本有变化|类名:runningLock
方法 or 属性:function createRunningLock(name: string, type: RunningLockType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:runningLock
方法 or 属性:function createRunningLock(name: string, type: RunningLockType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:{@link RunningLock|@ohos.runningLock.d.ts| +|废弃版本有变化|类名:runningLock
方法 or 属性:function createRunningLock(name: string, type: RunningLockType): Promise\;
废弃版本:N/A|类名:runningLock
方法 or 属性:function createRunningLock(name: string, type: RunningLockType): Promise\;
废弃版本:9
代替接口:{@link RunningLock|@ohos.runningLock.d.ts| +|废弃版本有变化|类名:thermal
方法 or 属性:function subscribeThermalLevel(callback: AsyncCallback\): void;
废弃版本:N/A|类名:thermal
方法 or 属性:function subscribeThermalLevel(callback: AsyncCallback\): void;
废弃版本:9
代替接口:{@link thermal|@ohos.thermal.d.ts| +|废弃版本有变化|类名:thermal
方法 or 属性:function unsubscribeThermalLevel(callback?: AsyncCallback\): void;
废弃版本:N/A|类名:thermal
方法 or 属性:function unsubscribeThermalLevel(callback?: AsyncCallback\): void;
废弃版本:9
代替接口:{@link thermal|@ohos.thermal.d.ts| +|废弃版本有变化|类名:thermal
方法 or 属性:function getThermalLevel(): ThermalLevel;
废弃版本:N/A|类名:thermal
方法 or 属性:function getThermalLevel(): ThermalLevel;
废弃版本:9
代替接口:{@link thermal|@ohos.thermal.d.ts| +|废弃版本有变化|类名:BatteryResponse
废弃版本:N/A|类名:BatteryResponse
废弃版本:6
代替接口:N/A|@system.battery.d.ts| +|废弃版本有变化|类名:BatteryResponse
方法 or 属性:charging: boolean;
废弃版本:N/A|类名:BatteryResponse
方法 or 属性:charging: boolean;
废弃版本:6
代替接口:N/A|@system.battery.d.ts| +|废弃版本有变化|类名:BatteryResponse
方法 or 属性:level: number;
废弃版本:N/A|类名:BatteryResponse
方法 or 属性:level: number;
废弃版本:6
代替接口:N/A|@system.battery.d.ts| +|废弃版本有变化|类名:GetStatusOptions
废弃版本:N/A|类名:GetStatusOptions
废弃版本:6
代替接口:N/A|@system.battery.d.ts| +|废弃版本有变化|类名:GetStatusOptions
方法 or 属性:success?: (data: BatteryResponse) => void;
废弃版本:N/A|类名:GetStatusOptions
方法 or 属性:success?: (data: BatteryResponse) => void;
废弃版本:6
代替接口:N/A|@system.battery.d.ts| +|废弃版本有变化|类名:GetStatusOptions
方法 or 属性:fail?: (data: string, code: number) => void;
废弃版本:N/A|类名:GetStatusOptions
方法 or 属性:fail?: (data: string, code: number) => void;
废弃版本:6
代替接口:N/A|@system.battery.d.ts| +|废弃版本有变化|类名:GetStatusOptions
方法 or 属性:complete?: () => void;
废弃版本:N/A|类名:GetStatusOptions
方法 or 属性:complete?: () => void;
废弃版本:6
代替接口:N/A|@system.battery.d.ts| +|废弃版本有变化|类名:Battery
废弃版本:N/A|类名:Battery
废弃版本:6
代替接口:N/A|@system.battery.d.ts| +|废弃版本有变化|类名:Battery
方法 or 属性:static getStatus(options?: GetStatusOptions): void;
废弃版本:N/A|类名:Battery
方法 or 属性:static getStatus(options?: GetStatusOptions): void;
废弃版本:6
代替接口:N/A|@system.battery.d.ts| +|废弃版本有变化|类名:BrightnessResponse
废弃版本:N/A|类名:BrightnessResponse
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:BrightnessResponse
方法 or 属性:value: number;
废弃版本:N/A|类名:BrightnessResponse
方法 or 属性:value: number;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:GetBrightnessOptions
废弃版本:N/A|类名:GetBrightnessOptions
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:GetBrightnessOptions
方法 or 属性:success?: (data: BrightnessResponse) => void;
废弃版本:N/A|类名:GetBrightnessOptions
方法 or 属性:success?: (data: BrightnessResponse) => void;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:GetBrightnessOptions
方法 or 属性:fail?: (data: string, code: number) => void;
废弃版本:N/A|类名:GetBrightnessOptions
方法 or 属性:fail?: (data: string, code: number) => void;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:GetBrightnessOptions
方法 or 属性:complete?: () => void;
废弃版本:N/A|类名:GetBrightnessOptions
方法 or 属性:complete?: () => void;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:SetBrightnessOptions
废弃版本:N/A|类名:SetBrightnessOptions
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:SetBrightnessOptions
方法 or 属性:value: number;
废弃版本:N/A|类名:SetBrightnessOptions
方法 or 属性:value: number;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:SetBrightnessOptions
方法 or 属性:success?: () => void;
废弃版本:N/A|类名:SetBrightnessOptions
方法 or 属性:success?: () => void;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:SetBrightnessOptions
方法 or 属性:fail?: (data: string, code: number) => void;
废弃版本:N/A|类名:SetBrightnessOptions
方法 or 属性:fail?: (data: string, code: number) => void;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:SetBrightnessOptions
方法 or 属性:complete?: () => void
废弃版本:N/A|类名:SetBrightnessOptions
方法 or 属性:complete?: () => void
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:BrightnessModeResponse
废弃版本:N/A|类名:BrightnessModeResponse
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:BrightnessModeResponse
方法 or 属性:mode: number;
废弃版本:N/A|类名:BrightnessModeResponse
方法 or 属性:mode: number;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:GetBrightnessModeOptions
废弃版本:N/A|类名:GetBrightnessModeOptions
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:GetBrightnessModeOptions
方法 or 属性:success?: (data: BrightnessModeResponse) => void;
废弃版本:N/A|类名:GetBrightnessModeOptions
方法 or 属性:success?: (data: BrightnessModeResponse) => void;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:GetBrightnessModeOptions
方法 or 属性:fail?: (data: string, code: number) => void;
废弃版本:N/A|类名:GetBrightnessModeOptions
方法 or 属性:fail?: (data: string, code: number) => void;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:GetBrightnessModeOptions
方法 or 属性:complete?: () => void;
废弃版本:N/A|类名:GetBrightnessModeOptions
方法 or 属性:complete?: () => void;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:SetBrightnessModeOptions
废弃版本:N/A|类名:SetBrightnessModeOptions
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:SetBrightnessModeOptions
方法 or 属性:mode: number;
废弃版本:N/A|类名:SetBrightnessModeOptions
方法 or 属性:mode: number;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:SetBrightnessModeOptions
方法 or 属性:success?: () => void;
废弃版本:N/A|类名:SetBrightnessModeOptions
方法 or 属性:success?: () => void;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:SetBrightnessModeOptions
方法 or 属性:fail?: (data: string, code: number) => void;
废弃版本:N/A|类名:SetBrightnessModeOptions
方法 or 属性:fail?: (data: string, code: number) => void;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:SetBrightnessModeOptions
方法 or 属性:complete?: () => void
废弃版本:N/A|类名:SetBrightnessModeOptions
方法 or 属性:complete?: () => void
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:SetKeepScreenOnOptions
废弃版本:N/A|类名:SetKeepScreenOnOptions
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:SetKeepScreenOnOptions
方法 or 属性:keepScreenOn: boolean;
废弃版本:N/A|类名:SetKeepScreenOnOptions
方法 or 属性:keepScreenOn: boolean;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:SetKeepScreenOnOptions
方法 or 属性:success?: () => void;
废弃版本:N/A|类名:SetKeepScreenOnOptions
方法 or 属性:success?: () => void;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:SetKeepScreenOnOptions
方法 or 属性:fail?: (data: string, code: number) => void;
废弃版本:N/A|类名:SetKeepScreenOnOptions
方法 or 属性:fail?: (data: string, code: number) => void;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:SetKeepScreenOnOptions
方法 or 属性:complete?: () => void
废弃版本:N/A|类名:SetKeepScreenOnOptions
方法 or 属性:complete?: () => void
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:Brightness
废弃版本:N/A|类名:Brightness
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:Brightness
方法 or 属性:static getValue(options?: GetBrightnessOptions): void;
废弃版本:N/A|类名:Brightness
方法 or 属性:static getValue(options?: GetBrightnessOptions): void;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:Brightness
方法 or 属性:static setValue(options?: SetBrightnessOptions): void;
废弃版本:N/A|类名:Brightness
方法 or 属性:static setValue(options?: SetBrightnessOptions): void;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:Brightness
方法 or 属性:static getMode(options?: GetBrightnessModeOptions): void;
废弃版本:N/A|类名:Brightness
方法 or 属性:static getMode(options?: GetBrightnessModeOptions): void;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:Brightness
方法 or 属性:static setMode(options?: SetBrightnessModeOptions): void;
废弃版本:N/A|类名:Brightness
方法 or 属性:static setMode(options?: SetBrightnessModeOptions): void;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|废弃版本有变化|类名:Brightness
方法 or 属性:static setKeepScreenOn(options?: SetKeepScreenOnOptions): void;
废弃版本:N/A|类名:Brightness
方法 or 属性:static setKeepScreenOn(options?: SetKeepScreenOnOptions): void;
废弃版本:7
代替接口:N/A|@system.brightness.d.ts| +|新增(错误码)|NA|类名:batteryStats
方法 or 属性:function getBatteryStats(callback: AsyncCallback\>): void;
错误码内容: 401|@ohos.batteryStatistics.d.ts| +|新增(错误码)|NA|类名:batteryStats
方法 or 属性:function getAppPowerValue(uid: number): number;
错误码内容: 4600101|@ohos.batteryStatistics.d.ts| +|新增(错误码)|NA|类名:batteryStats
方法 or 属性:function getAppPowerPercent(uid: number): number;
错误码内容: 4600101|@ohos.batteryStatistics.d.ts| +|新增(错误码)|NA|类名:batteryStats
方法 or 属性:function getHardwareUnitPowerValue(type: ConsumptionType): number;
错误码内容: 401, 4600101|@ohos.batteryStatistics.d.ts| +|新增(错误码)|NA|类名:batteryStats
方法 or 属性:function getHardwareUnitPowerPercent(type: ConsumptionType): number;
错误码内容: 401, 4600101|@ohos.batteryStatistics.d.ts| +|新增(错误码)|NA|类名:brightness
方法 or 属性:function setValue(value: number): void;
错误码内容: 401, 4700101|@ohos.brightness.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-bundle.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-bundle.md new file mode 100644 index 0000000000000000000000000000000000000000..befebbdffd9f14965bf30c81779de193cf2ac9bb --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-bundle.md @@ -0,0 +1,547 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl|@ohos.bundle.appControl.d.ts| +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl
方法 or 属性: function setDisposedStatus(appId: string, disposedWant: Want, callback: AsyncCallback\): void;|@ohos.bundle.appControl.d.ts| +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl
方法 or 属性: function setDisposedStatus(appId: string, disposedWant: Want): Promise\;|@ohos.bundle.appControl.d.ts| +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl
方法 or 属性: function getDisposedStatus(appId: string, callback: AsyncCallback\): void;|@ohos.bundle.appControl.d.ts| +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl
方法 or 属性: function getDisposedStatus(appId: string): Promise\;|@ohos.bundle.appControl.d.ts| +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl
方法 or 属性: function deleteDisposedStatus(appId: string, callback: AsyncCallback\): void;|@ohos.bundle.appControl.d.ts| +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl
方法 or 属性: function deleteDisposedStatus(appId: string): Promise\;|@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 = 0x00000000|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法 or 属性: GET_BUNDLE_INFO_WITH_APPLICATION = 0x00000001|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法 or 属性: GET_BUNDLE_INFO_WITH_HAP_MODULE = 0x00000002|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法 or 属性: GET_BUNDLE_INFO_WITH_ABILITY = 0x00000004|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法 or 属性: GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY = 0x00000008|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法 or 属性: GET_BUNDLE_INFO_WITH_REQUESTED_PERMISSION = 0x00000010|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法 or 属性: GET_BUNDLE_INFO_WITH_METADATA = 0x00000020|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法 or 属性: GET_BUNDLE_INFO_WITH_DISABLE = 0x00000040|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法 or 属性: GET_BUNDLE_INFO_WITH_SIGNATURE_INFO = 0x00000080|@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 = 0x00000000|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ApplicationFlag
方法 or 属性: GET_APPLICATION_INFO_WITH_PERMISSION = 0x00000001|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ApplicationFlag
方法 or 属性: GET_APPLICATION_INFO_WITH_METADATA = 0x00000002|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ApplicationFlag
方法 or 属性: GET_APPLICATION_INFO_WITH_DISABLE = 0x00000004|@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 = 0x00000000|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法 or 属性: GET_ABILITY_INFO_WITH_PERMISSION = 0x00000001|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法 or 属性: GET_ABILITY_INFO_WITH_APPLICATION = 0x00000002|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法 or 属性: GET_ABILITY_INFO_WITH_METADATA = 0x00000004|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法 or 属性: GET_ABILITY_INFO_WITH_DISABLE = 0x00000008|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法 or 属性: GET_ABILITY_INFO_ONLY_SYSTEM_APP = 0x00000010|@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 = 0x00000000|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag
方法 or 属性: GET_EXTENSION_ABILITY_INFO_WITH_PERMISSION = 0x00000001|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag
方法 or 属性: GET_EXTENSION_ABILITY_INFO_WITH_APPLICATION = 0x00000002|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag
方法 or 属性: GET_EXTENSION_ABILITY_INFO_WITH_METADATA = 0x00000004|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法 or 属性: FORM = 0|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法 or 属性: WORK_SCHEDULER = 1|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法 or 属性: INPUT_METHOD = 2|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法 or 属性: SERVICE = 3|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法 or 属性: ACCESSIBILITY = 4|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法 or 属性: DATA_SHARE = 5|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法 or 属性: FILE_SHARE = 6|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法 or 属性: STATIC_SUBSCRIBER = 7|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法 or 属性: WALLPAPER = 8|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法 or 属性: BACKUP = 9|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法 or 属性: WINDOW = 10|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法 or 属性: ENTERPRISE_ADMIN = 11|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法 or 属性: THUMBNAIL = 13|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法 or 属性: PREVIEW = 14|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法 or 属性: UNSPECIFIED = 255|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: PermissionGrantState|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: PermissionGrantState
方法 or 属性: PERMISSION_DENIED = -1|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: PermissionGrantState
方法 or 属性: PERMISSION_GRANTED = 0|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: SupportWindowMode|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: SupportWindowMode
方法 or 属性: FULL_SCREEN = 0|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: SupportWindowMode
方法 or 属性: SPLIT = 1|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: SupportWindowMode
方法 or 属性: FLOATING = 2|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: LaunchType|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: LaunchType
方法 or 属性: SINGLETON = 0|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: LaunchType
方法 or 属性: MULTITON = 1|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: LaunchType
方法 or 属性: SPECIFIED = 2|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityType|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityType
方法 or 属性: PAGE = 1|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityType
方法 or 属性: SERVICE = 2|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityType
方法 or 属性: DATA = 3|@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
类名: ModuleType|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ModuleType
方法 or 属性: ENTRY = 1|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ModuleType
方法 or 属性: FEATURE = 2|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ModuleType
方法 or 属性: SHARED = 3|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleType|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleType
方法 or 属性: APP = 0|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleType
方法 or 属性: ATOMIC_SERVICE = 1|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getBundleInfoForSelf(bundleFlags: number): Promise\;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getBundleInfoForSelf(bundleFlags: number, callback: AsyncCallback\): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getBundleInfo(bundleName: string, bundleFlags: number, callback: AsyncCallback\): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getBundleInfo(bundleName: string, bundleFlags: number, userId: number, callback: AsyncCallback\): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getBundleInfo(bundleName: string, bundleFlags: number, userId?: number): Promise\;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getApplicationInfo(bundleName: string, appFlags: number, callback: AsyncCallback\): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getApplicationInfo(bundleName: string, appFlags: number, userId: number, callback: AsyncCallback\): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getApplicationInfo(bundleName: string, appFlags: number, userId?: number): Promise\;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getAllBundleInfo(bundleFlags: number, callback: AsyncCallback\>): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getAllBundleInfo(bundleFlags: number, userId: number, callback: AsyncCallback\>): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getAllBundleInfo(bundleFlags: number, userId?: number): Promise\>;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getAllApplicationInfo(appFlags: number, callback: AsyncCallback\>): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getAllApplicationInfo(appFlags: number, userId: number, callback: AsyncCallback\>): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getAllApplicationInfo(appFlags: number, userId?: number): Promise\>;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function queryAbilityInfo(want: Want, abilityFlags: number, callback: AsyncCallback\>): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function queryAbilityInfo(want: Want, abilityFlags: number, userId: number, callback: AsyncCallback\>): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function queryAbilityInfo(want: Want, abilityFlags: number, userId?: number): Promise\>;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function queryExtensionAbilityInfo(want: Want, extensionAbilityType: ExtensionAbilityType, extensionAbilityFlags: number, callback: AsyncCallback\>): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function queryExtensionAbilityInfo(want: Want, extensionAbilityType: ExtensionAbilityType, extensionAbilityFlags: number, userId: number, callback: AsyncCallback\>): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function queryExtensionAbilityInfo(want: Want, extensionAbilityType: ExtensionAbilityType, extensionAbilityFlags: number, userId?: number): Promise\>;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getBundleNameByUid(uid: number, callback: AsyncCallback\): void|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getBundleNameByUid(uid: number): Promise\;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getBundleArchiveInfo(hapFilePath: string, bundleFlags: number, callback: AsyncCallback\): void|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getBundleArchiveInfo(hapFilePath: string, bundleFlags: number): Promise\;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function cleanBundleCacheFiles(bundleName: string, callback: AsyncCallback\): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function cleanBundleCacheFiles(bundleName: string): Promise\;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function setApplicationEnabled(bundleName: string, isEnabled: boolean, callback: AsyncCallback\): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function setApplicationEnabled(bundleName: string, isEnabled: boolean): Promise\;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function setAbilityEnabled(info: AbilityInfo, isEnabled: boolean, callback: AsyncCallback\): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function setAbilityEnabled(info: AbilityInfo, isEnabled: boolean): Promise\;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function isApplicationEnabled(bundleName: string, callback: AsyncCallback\): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function isApplicationEnabled(bundleName: string): Promise\;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function isAbilityEnabled(info: AbilityInfo, callback: AsyncCallback\): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function isAbilityEnabled(info: AbilityInfo): Promise\;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getLaunchWantForBundle(bundleName: string, userId: number, callback: AsyncCallback\): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getLaunchWantForBundle(bundleName: string, callback: AsyncCallback\): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getLaunchWantForBundle(bundleName: string, userId?: number): Promise\;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getProfileByAbility(moduleName: string, abilityName: string, metadataName: string, callback: AsyncCallback\>): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getProfileByAbility(moduleName: string, abilityName: string, metadataName?: string): Promise\>;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getProfileByExtensionAbility(moduleName: string, extensionAbilityName: string, metadataName: string, callback: AsyncCallback\>): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getProfileByExtensionAbility(moduleName: string, extensionAbilityName: string, metadataName?: string): Promise\>;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getPermissionDef(permissionName: string, callback: AsyncCallback\): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getPermissionDef(permissionName: string): Promise\;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getAbilityLabel(bundleName: string, moduleName: string, abilityName: string, callback: AsyncCallback\): void;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getAbilityLabel(bundleName: string, moduleName: string, abilityName: string): Promise\;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getApplicationInfoSync(bundleName: string, applicationFlags: number, userId: number) : ApplicationInfo;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getApplicationInfoSync(bundleName: string, applicationFlags: number) : ApplicationInfo;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getBundleInfoSync(bundleName: string, bundleFlags: number, userId: number): BundleInfo;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法 or 属性: function getBundleInfoSync(bundleName: string, bundleFlags: number): BundleInfo;|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: BundleChangedEvent
方法 or 属性: type BundleChangedEvent = 'add' \| 'update' \| 'remove';|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: BundleChangedEvent
方法 or 属性: type BundleChangedEvent = 'add' \| 'update' \| 'remove';|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: BundleChangedEvent
方法 or 属性: type BundleChangedEvent = 'add' \| 'update' \| 'remove';|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: BundleChangedInfo|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: BundleChangedInfo
方法 or 属性: readonly bundleName: string;|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: BundleChangedInfo
方法 or 属性: readonly userId: number;|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法 or 属性: function on(type: BundleChangedEvent, callback: Callback\): void;|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法 or 属性: function on(type: BundleChangedEvent, callback: Callback\): void;|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法 or 属性: function on(type: BundleChangedEvent, callback: Callback\): void;|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法 or 属性: function off(type: BundleChangedEvent, callback?: Callback\): void;|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法 or 属性: function off(type: BundleChangedEvent, callback?: Callback\): void;|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法 or 属性: function off(type: BundleChangedEvent, callback?: Callback\): void;|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: defaultAppManager|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: ApplicationType|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: ApplicationType
方法 or 属性: BROWSER = "Web Browser"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: ApplicationType
方法 or 属性: IMAGE = "Image Gallery"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: ApplicationType
方法 or 属性: AUDIO = "Audio Player"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: ApplicationType
方法 or 属性: VIDEO = "Video Player"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: ApplicationType
方法 or 属性: PDF = "PDF Viewer"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: ApplicationType
方法 or 属性: WORD = "Word Viewer"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: ApplicationType
方法 or 属性: EXCEL = "Excel Viewer"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: ApplicationType
方法 or 属性: PPT = "PPT Viewer"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: defaultAppManager
方法 or 属性: function isDefaultApplication(type: string, callback: AsyncCallback\) : void;|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: defaultAppManager
方法 or 属性: function isDefaultApplication(type: string) : Promise\;|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: defaultAppManager
方法 or 属性: function getDefaultApplication(type: string, userId: number, callback: AsyncCallback\) : void;|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: defaultAppManager
方法 or 属性: function getDefaultApplication(type: string, callback: AsyncCallback\) : void;|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: defaultAppManager
方法 or 属性: function getDefaultApplication(type: string, userId?: number) : Promise\;|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: defaultAppManager
方法 or 属性: function setDefaultApplication(type: string, elementName: ElementName, userId: number, callback: AsyncCallback\) : void;|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: defaultAppManager
方法 or 属性: function setDefaultApplication(type: string, elementName: ElementName, callback: AsyncCallback\) : void;|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: defaultAppManager
方法 or 属性: function setDefaultApplication(type: string, elementName: ElementName, userId?: number) : Promise\;|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: defaultAppManager
方法 or 属性: function resetDefaultApplication(type: string, userId: number, callback: AsyncCallback\) : void;|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: defaultAppManager
方法 or 属性: function resetDefaultApplication(type: string, callback: AsyncCallback\) : void;|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.defaultAppManager
类名: defaultAppManager
方法 or 属性: function resetDefaultApplication(type: string, userId?: number) : Promise\;|@ohos.bundle.defaultAppManager.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|模块名: 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 = 0|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: UpgradeFlag
方法 or 属性: SINGLE_UPGRADE = 1|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: UpgradeFlag
方法 or 属性: RELATION_UPGRADE = 2|@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 = 0x00000000|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: BundlePackFlag
方法 or 属性: GET_PACKAGES = 0x00000001|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: BundlePackFlag
方法 or 属性: GET_BUNDLE_SUMMARY = 0x00000002|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: BundlePackFlag
方法 or 属性: GET_MODULE_SUMMARY = 0x00000004|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法 or 属性: function setHapModuleUpgradeFlag(bundleName: string, moduleName: string, upgradeFlag: UpgradeFlag, callback: AsyncCallback\) : void;|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法 or 属性: function setHapModuleUpgradeFlag(bundleName: string, moduleName: string, upgradeFlag: UpgradeFlag): Promise\;|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法 or 属性: function isHapModuleRemovable(bundleName: string, moduleName: string, callback: AsyncCallback\): void;|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法 or 属性: function isHapModuleRemovable(bundleName: string, moduleName: string): Promise\;|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法 or 属性: function getBundlePackInfo(bundleName: string, bundlePackFlag : BundlePackFlag, callback: AsyncCallback\): void;|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法 or 属性: function getBundlePackInfo(bundleName: string, bundlePackFlag : BundlePackFlag): Promise\;|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法 or 属性: function getDispatchInfo(callback: AsyncCallback\): void;|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法 or 属性: function getDispatchInfo(): Promise\;|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: installer|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: installer
方法 or 属性: function getBundleInstaller(callback: AsyncCallback\): void|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: installer
方法 or 属性: function getBundleInstaller(): Promise\;|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: BundleInstaller|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: BundleInstaller
方法 or 属性: install(hapFilePaths: Array\, installParam: InstallParam, callback: AsyncCallback\) : void;|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: BundleInstaller
方法 or 属性: install(hapFilePaths: Array\, callback: AsyncCallback\) : void;|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: BundleInstaller
方法 or 属性: install(hapFilePaths: Array\, installParam?: InstallParam) : Promise\;|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: BundleInstaller
方法 or 属性: uninstall(bundleName: string, installParam: InstallParam, callback : AsyncCallback\) : void;|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: BundleInstaller
方法 or 属性: uninstall(bundleName: string, callback : AsyncCallback\) : void;|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: BundleInstaller
方法 or 属性: uninstall(bundleName: string, installParam?: InstallParam) : Promise\;|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: BundleInstaller
方法 or 属性: recover(bundleName: string, installParam: InstallParam, callback: AsyncCallback\): void;|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: BundleInstaller
方法 or 属性: recover(bundleName: string, callback: AsyncCallback\): void;|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: BundleInstaller
方法 or 属性: recover(bundleName: string, installParam?: InstallParam) : Promise\;|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: HashParam|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: HashParam
方法 or 属性: moduleName: string;|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: HashParam
方法 or 属性: hashValue: string;|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: InstallParam|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: InstallParam
方法 or 属性: userId?: number;|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: InstallParam
方法 or 属性: installFlag?: number;|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: InstallParam
方法 or 属性: isKeepData?: boolean;|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: InstallParam
方法 or 属性: hashParams?: Array\;|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: InstallParam
方法 or 属性: crowdtestDeadline?: number;|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法 or 属性: function getLauncherAbilityInfo(bundleName: string, userId: number, callback: AsyncCallback\>) : void;|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法 or 属性: function getLauncherAbilityInfo(bundleName: string, userId: number) : Promise\>;|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法 or 属性: function getAllLauncherAbilityInfo(userId: number, callback: AsyncCallback\>) : void;|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法 or 属性: function getAllLauncherAbilityInfo(userId: number) : Promise\>;|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法 or 属性: function getShortcutInfo(bundleName :string, callback: AsyncCallback\>) : void;|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法 or 属性: function getShortcutInfo(bundleName : string) : Promise\>;|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|类名:zlib
方法or属性:function compressFile(inFile: string, outFile: string, options: Options, callback: AsyncCallback\): void;|@ohos.zlib.d.ts| +|新增|NA|类名:zlib
方法or属性:function compressFile(inFile:string, outFile:string, options: Options): Promise\;|@ohos.zlib.d.ts| +|新增|NA|类名:zlib
方法or属性:function decompressFile(inFile: string, outFile: string, options: Options, callback: AsyncCallback\): void;|@ohos.zlib.d.ts| +|新增|NA|类名:zlib
方法or属性:function decompressFile(inFile: string, outFile: string, options: Options): Promise\;|@ohos.zlib.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly bundleName: string;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly moduleName: string;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly name: string;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly label: string;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly labelId: number;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly description: string;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly descriptionId: number;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly icon: string;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly iconId: number;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly process: string;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly exported: boolean;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly type: bundleManager.AbilityType;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly orientation: bundleManager.DisplayOrientation;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly launchType: bundleManager.LaunchType;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly permissions: Array\;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly readPermission: string;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly writePermission: string;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly uri: string;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly deviceTypes: Array\;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly applicationInfo: ApplicationInfo;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly metadata: Array\;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly enabled: boolean;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly supportWindowModes: Array\;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly windowSize: WindowSize;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: WindowSize|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: WindowSize
方法 or 属性: readonly maxWindowRatio: number;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: WindowSize
方法 or 属性: readonly minWindowRatio: number;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: WindowSize
方法 or 属性: readonly maxWindowWidth: number;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: WindowSize
方法 or 属性: readonly minWindowWidth: number;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: WindowSize
方法 or 属性: readonly maxWindowHeight: number;|AbilityInfo.d.ts| +|新增|NA|模块名: AbilityInfo
类名: WindowSize
方法 or 属性: readonly minWindowHeight: number;|AbilityInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly name: string;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly description: string;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly descriptionId: number;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly enabled: boolean;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly label: string;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly labelId: number;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly icon: string;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly iconId: number;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly process: string;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly permissions: Array\;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly codePath: string;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly metadata: Map\>;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly removable: boolean;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly accessTokenId: number;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly uid: number;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly iconResource: Resource;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly labelResource: Resource;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly descriptionResource: Resource;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly appDistributionType: string;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly appProvisionType: string;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly systemApp: boolean;|ApplicationInfo.d.ts| +|新增|NA|模块名: ApplicationInfo
类名: ApplicationInfo
方法 or 属性: readonly bundleType: bundleManager.BundleType;|ApplicationInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly name: string;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly vendor: string;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly versionCode: number;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly versionName: string;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly minCompatibleVersionCode: number;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly targetVersion: number;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly appInfo: ApplicationInfo;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly hapModulesInfo: Array\;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly reqPermissionDetails: Array\;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly permissionGrantStates: Array\;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly signatureInfo: SignatureInfo;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly installTime: number;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: BundleInfo
方法 or 属性: readonly updateTime: number;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: ReqPermissionDetail|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: ReqPermissionDetail
方法 or 属性: name: string;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: ReqPermissionDetail
方法 or 属性: reason: string;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: ReqPermissionDetail
方法 or 属性: reasonId: number;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: ReqPermissionDetail
方法 or 属性: usedScene: UsedScene;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: UsedScene|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: UsedScene
方法 or 属性: abilities: Array\;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: UsedScene
方法 or 属性: when: string;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: SignatureInfo|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: SignatureInfo
方法 or 属性: readonly appId: string;|BundleInfo.d.ts| +|新增|NA|模块名: BundleInfo
类名: SignatureInfo
方法 or 属性: readonly fingerprint: string;|BundleInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: BundlePackInfo|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: BundlePackInfo
方法 or 属性: readonly packages: Array\;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: BundlePackInfo
方法 or 属性: readonly summary: PackageSummary;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: PackageConfig|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: PackageConfig
方法 or 属性: readonly deviceTypes: Array\;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: PackageConfig
方法 or 属性: readonly name: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: PackageConfig
方法 or 属性: readonly moduleType: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: PackageConfig
方法 or 属性: readonly deliveryWithInstall: boolean;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: PackageSummary|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: PackageSummary
方法 or 属性: readonly app: BundleConfigInfo;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: PackageSummary
方法 or 属性: readonly modules: Array\;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: BundleConfigInfo|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: BundleConfigInfo
方法 or 属性: readonly bundleName: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: BundleConfigInfo
方法 or 属性: readonly version: Version;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ExtensionAbility|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ExtensionAbility
方法 or 属性: readonly name: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ExtensionAbility
方法 or 属性: readonly forms: Array\;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleConfigInfo|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleConfigInfo
方法 or 属性: readonly mainAbility: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleConfigInfo
方法 or 属性: readonly apiVersion: ApiVersion;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleConfigInfo
方法 or 属性: readonly deviceTypes: Array\;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleConfigInfo
方法 or 属性: readonly distro: ModuleDistroInfo;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleConfigInfo
方法 or 属性: readonly abilities: Array\;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleConfigInfo
方法 or 属性: readonly extensionAbilities: Array\;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleDistroInfo|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleDistroInfo
方法 or 属性: readonly deliveryWithInstall: boolean;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleDistroInfo
方法 or 属性: readonly installationFree: boolean;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleDistroInfo
方法 or 属性: readonly moduleName: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleDistroInfo
方法 or 属性: readonly moduleType: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleAbilityInfo|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleAbilityInfo
方法 or 属性: readonly name: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleAbilityInfo
方法 or 属性: readonly label: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleAbilityInfo
方法 or 属性: readonly exported: boolean;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ModuleAbilityInfo
方法 or 属性: readonly forms: Array\;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: AbilityFormInfo|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: AbilityFormInfo
方法 or 属性: readonly name: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: AbilityFormInfo
方法 or 属性: readonly type: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: AbilityFormInfo
方法 or 属性: readonly updateEnabled: boolean;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: AbilityFormInfo
方法 or 属性: readonly scheduledUpdateTime: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: AbilityFormInfo
方法 or 属性: readonly updateDuration: number;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: AbilityFormInfo
方法 or 属性: readonly supportDimensions: Array\;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: AbilityFormInfo
方法 or 属性: readonly defaultDimension: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: Version|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: Version
方法 or 属性: readonly minCompatibleVersionCode: number;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: Version
方法 or 属性: readonly name: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: Version
方法 or 属性: readonly code: number;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ApiVersion|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ApiVersion
方法 or 属性: readonly releaseType: string;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ApiVersion
方法 or 属性: readonly compatible: number;|BundlePackInfo.d.ts| +|新增|NA|模块名: BundlePackInfo
类名: ApiVersion
方法 or 属性: readonly target: number;|BundlePackInfo.d.ts| +|新增|NA|模块名: DispatchInfo
类名: DispatchInfo|DispatchInfo.d.ts| +|新增|NA|模块名: DispatchInfo
类名: DispatchInfo
方法 or 属性: readonly version: string;|DispatchInfo.d.ts| +|新增|NA|模块名: DispatchInfo
类名: DispatchInfo
方法 or 属性: readonly dispatchAPIVersion: string;|DispatchInfo.d.ts| +|新增|NA|模块名: ElementName
类名: ElementName|ElementName.d.ts| +|新增|NA|模块名: ElementName
类名: ElementName
方法 or 属性: deviceId?: string;|ElementName.d.ts| +|新增|NA|模块名: ElementName
类名: ElementName
方法 or 属性: bundleName: string;|ElementName.d.ts| +|新增|NA|模块名: ElementName
类名: ElementName
方法 or 属性: moduleName?: string;|ElementName.d.ts| +|新增|NA|模块名: ElementName
类名: ElementName
方法 or 属性: abilityName: string;|ElementName.d.ts| +|新增|NA|模块名: ElementName
类名: ElementName
方法 or 属性: uri?: string;|ElementName.d.ts| +|新增|NA|模块名: ElementName
类名: ElementName
方法 or 属性: shortName?: string;|ElementName.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly bundleName: string;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly moduleName: string;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly name: string;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly labelId: number;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly descriptionId: number;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly iconId: number;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly exported: boolean;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly extensionAbilityType: bundleManager.ExtensionAbilityType;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly permissions: Array\;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly applicationInfo: ApplicationInfo;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly metadata: Array\;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly enabled: boolean;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly readPermission: string;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: ExtensionAbilityInfo
类名: ExtensionAbilityInfo
方法 or 属性: readonly writePermission: string;|ExtensionAbilityInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly name: string;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly icon: string;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly iconId: number;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly label: string;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly labelId: number;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly description: string;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly descriptionId: number;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly mainElementName: string;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly abilitiesInfo: Array\;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly extensionAbilitiesInfo: Array\;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly metadata: Array\;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly deviceTypes: Array\;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly installationFree: boolean;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly hashValue: string;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly type: bundleManager.ModuleType;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly dependencies: Array\;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: HapModuleInfo
方法 or 属性: readonly preloads: Array\;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: Dependency|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: Dependency
方法 or 属性: readonly moduleName: string;|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: PreloadItem|HapModuleInfo.d.ts| +|新增|NA|模块名: HapModuleInfo
类名: PreloadItem
方法 or 属性: readonly moduleName: string;|HapModuleInfo.d.ts| +|新增|NA|模块名: LauncherAbilityInfo
类名: LauncherAbilityInfo|LauncherAbilityInfo.d.ts| +|新增|NA|模块名: LauncherAbilityInfo
类名: LauncherAbilityInfo
方法 or 属性: readonly applicationInfo: ApplicationInfo;|LauncherAbilityInfo.d.ts| +|新增|NA|模块名: LauncherAbilityInfo
类名: LauncherAbilityInfo
方法 or 属性: readonly elementName : ElementName;|LauncherAbilityInfo.d.ts| +|新增|NA|模块名: LauncherAbilityInfo
类名: LauncherAbilityInfo
方法 or 属性: readonly labelId: number;|LauncherAbilityInfo.d.ts| +|新增|NA|模块名: LauncherAbilityInfo
类名: LauncherAbilityInfo
方法 or 属性: readonly iconId: number;|LauncherAbilityInfo.d.ts| +|新增|NA|模块名: LauncherAbilityInfo
类名: LauncherAbilityInfo
方法 or 属性: readonly userId: number;|LauncherAbilityInfo.d.ts| +|新增|NA|模块名: LauncherAbilityInfo
类名: LauncherAbilityInfo
方法 or 属性: readonly installTime : number;|LauncherAbilityInfo.d.ts| +|新增|NA|模块名: Metadata
类名: Metadata|Metadata.d.ts| +|新增|NA|模块名: Metadata
类名: Metadata
方法 or 属性: name: string;|Metadata.d.ts| +|新增|NA|模块名: Metadata
类名: Metadata
方法 or 属性: value: string;|Metadata.d.ts| +|新增|NA|模块名: Metadata
类名: Metadata
方法 or 属性: resource: string;|Metadata.d.ts| +|新增|NA|模块名: PermissionDef
类名: PermissionDef
方法 or 属性: readonly permissionName: string;|PermissionDef.d.ts| +|新增|NA|模块名: PermissionDef
类名: PermissionDef
方法 or 属性: readonly grantMode: number;|PermissionDef.d.ts| +|新增|NA|模块名: PermissionDef
类名: PermissionDef
方法 or 属性: readonly labelId: number;|PermissionDef.d.ts| +|新增|NA|模块名: PermissionDef
类名: PermissionDef
方法 or 属性: readonly descriptionId: number;|PermissionDef.d.ts| +|新增|NA|模块名: RemoteAbilityInfo
类名: RemoteAbilityInfo|RemoteAbilityInfo.d.ts| +|新增|NA|模块名: RemoteAbilityInfo
类名: RemoteAbilityInfo
方法 or 属性: readonly elementName: ElementName;|RemoteAbilityInfo.d.ts| +|新增|NA|模块名: RemoteAbilityInfo
类名: RemoteAbilityInfo
方法 or 属性: readonly label: string;|RemoteAbilityInfo.d.ts| +|新增|NA|模块名: RemoteAbilityInfo
类名: RemoteAbilityInfo
方法 or 属性: readonly icon: string;|RemoteAbilityInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutInfo|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutInfo
方法 or 属性: readonly id: string;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutInfo
方法 or 属性: readonly bundleName: string;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutInfo
方法 or 属性: readonly moduleName: string;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutInfo
方法 or 属性: readonly hostAbility: string;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutInfo
方法 or 属性: readonly icon: string;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutInfo
方法 or 属性: readonly iconId: number;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutInfo
方法 or 属性: readonly label: string;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutInfo
方法 or 属性: readonly labelId: number;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutInfo
方法 or 属性: readonly wants: Array\;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutWant|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutWant
方法 or 属性: readonly targetBundle: string;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutWant
方法 or 属性: readonly targetModule: string;|ShortcutInfo.d.ts| +|新增|NA|模块名: ShortcutInfo
类名: ShortcutWant
方法 or 属性: readonly targetAbility: string;|ShortcutInfo.d.ts| +|model有变化|类名:AbilityInfo
方法 or 属性:readonly orientation: bundle.DisplayOrientation;
model:@FAModelOnly|类名:AbilityInfo
方法 or 属性:readonly orientation: bundle.DisplayOrientation;
model:N/A|abilityInfo.d.ts| +|访问级别有变化|类名:LauncherAbilityInfo
访问级别:公开API|类名:LauncherAbilityInfo
访问级别:系统API|launcherAbilityInfo.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
代替接口:N/A|@ohos.bundle.d.ts| +|废弃版本有变化|类名:GrantStatus
废弃版本:N/A|类名:GrantStatus
废弃版本:9
代替接口:ohos.bundle.bundleManager.PermissionGrantState |@ohos.bundle.d.ts| +|废弃版本有变化|类名:AbilityType
废弃版本:N/A|类名:AbilityType
废弃版本:9
代替接口:ohos.bundle.bundleManager.AbilityType |@ohos.bundle.d.ts| +|废弃版本有变化|类名:AbilitySubType
废弃版本:N/A|类名:AbilitySubType
废弃版本:9
代替接口:N/A|@ohos.bundle.d.ts| +|废弃版本有变化|类名:DisplayOrientation
废弃版本:N/A|类名:DisplayOrientation
废弃版本:9
代替接口:ohos.bundle.bundleManager.DisplayOrientation |@ohos.bundle.d.ts| +|废弃版本有变化|类名:LaunchMode
废弃版本:N/A|类名:LaunchMode
废弃版本:9
代替接口:ohos.bundle.bundleManager.LaunchType |@ohos.bundle.d.ts| +|废弃版本有变化|类名:BundleOptions
废弃版本:N/A|类名:BundleOptions
废弃版本:9
代替接口:N/A|@ohos.bundle.d.ts| +|废弃版本有变化|类名:InstallErrorCode
废弃版本:N/A|类名:InstallErrorCode
废弃版本:9
代替接口:N/A|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getBundleInfo(bundleName: string, bundleFlags: number, options: BundleOptions, callback: AsyncCallback\): void;
废弃版本:N/A|类名:bundle
方法 or 属性:function getBundleInfo(bundleName: string, bundleFlags: number, options: BundleOptions, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getBundleInfo(bundleName: string, bundleFlags: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:bundle
方法 or 属性:function getBundleInfo(bundleName: string, bundleFlags: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getBundleInfo(bundleName: string, bundleFlags: number, options?: BundleOptions): Promise\;
废弃版本:N/A|类名:bundle
方法 or 属性:function getBundleInfo(bundleName: string, bundleFlags: number, options?: BundleOptions): Promise\;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getBundleInstaller(callback: AsyncCallback\): void;
废弃版本:N/A|类名:bundle
方法 or 属性:function getBundleInstaller(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bundle.installer|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getBundleInstaller(): Promise\;
废弃版本:N/A|类名:bundle
方法 or 属性:function getBundleInstaller(): Promise\;
废弃版本:9
代替接口:ohos.bundle.installer|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getAbilityInfo(bundleName: string, abilityName: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:bundle
方法 or 属性:function getAbilityInfo(bundleName: string, abilityName: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getAbilityInfo(bundleName: string, abilityName: string): Promise\;
废弃版本:N/A|类名:bundle
方法 or 属性:function getAbilityInfo(bundleName: string, abilityName: string): Promise\;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getApplicationInfo(bundleName: string, bundleFlags: number, userId: number, callback: AsyncCallback\) : void;
废弃版本:N/A|类名:bundle
方法 or 属性:function getApplicationInfo(bundleName: string, bundleFlags: number, userId: number, callback: AsyncCallback\) : void;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getApplicationInfo(bundleName: string, bundleFlags: number, callback: AsyncCallback\) : void;
废弃版本:N/A|类名:bundle
方法 or 属性:function getApplicationInfo(bundleName: string, bundleFlags: number, callback: AsyncCallback\) : void;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getApplicationInfo(bundleName: string, bundleFlags: number, userId?: number) : Promise\;
废弃版本:N/A|类名:bundle
方法 or 属性:function getApplicationInfo(bundleName: string, bundleFlags: number, userId?: number) : Promise\;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function queryAbilityByWant(want: Want, bundleFlags: number, userId: number, callback: AsyncCallback\>): void;
废弃版本:N/A|类名:bundle
方法 or 属性:function queryAbilityByWant(want: Want, bundleFlags: number, userId: number, callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function queryAbilityByWant(want: Want, bundleFlags: number, callback: AsyncCallback\>): void;
废弃版本:N/A|类名:bundle
方法 or 属性:function queryAbilityByWant(want: Want, bundleFlags: number, callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function queryAbilityByWant(want: Want, bundleFlags: number, userId?:number): Promise\>;
废弃版本:N/A|类名:bundle
方法 or 属性:function queryAbilityByWant(want: Want, bundleFlags: number, userId?:number): Promise\>;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getAllBundleInfo(bundleFlag: BundleFlag, userId: number, callback: AsyncCallback\>) : void;
废弃版本:N/A|类名:bundle
方法 or 属性:function getAllBundleInfo(bundleFlag: BundleFlag, userId: number, callback: AsyncCallback\>) : void;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getAllBundleInfo(bundleFlag: BundleFlag, callback: AsyncCallback\>) : void;
废弃版本:N/A|类名:bundle
方法 or 属性:function getAllBundleInfo(bundleFlag: BundleFlag, callback: AsyncCallback\>) : void;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getAllBundleInfo(bundleFlag: BundleFlag, userId?: number) : Promise\>;
废弃版本:N/A|类名:bundle
方法 or 属性:function getAllBundleInfo(bundleFlag: BundleFlag, userId?: number) : Promise\>;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getAllApplicationInfo(bundleFlags: number, userId: number, callback: AsyncCallback\>) : void;
废弃版本:N/A|类名:bundle
方法 or 属性:function getAllApplicationInfo(bundleFlags: number, userId: number, callback: AsyncCallback\>) : void;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getAllApplicationInfo(bundleFlags: number, callback: AsyncCallback\>) : void;
废弃版本:N/A|类名:bundle
方法 or 属性:function getAllApplicationInfo(bundleFlags: number, callback: AsyncCallback\>) : void;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getAllApplicationInfo(bundleFlags: number, userId?: number) : Promise\>;
废弃版本:N/A|类名:bundle
方法 or 属性:function getAllApplicationInfo(bundleFlags: number, userId?: number) : Promise\>;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getNameForUid(uid: number, callback: AsyncCallback\) : void
废弃版本:N/A|类名:bundle
方法 or 属性:function getNameForUid(uid: number, callback: AsyncCallback\) : void
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getNameForUid(uid: number) : Promise\;
废弃版本:N/A|类名:bundle
方法 or 属性:function getNameForUid(uid: number) : Promise\;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getBundleArchiveInfo(hapFilePath: string, bundleFlags: number, callback: AsyncCallback\) : void
废弃版本:N/A|类名:bundle
方法 or 属性:function getBundleArchiveInfo(hapFilePath: string, bundleFlags: number, callback: AsyncCallback\) : void
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getBundleArchiveInfo(hapFilePath: string, bundleFlags: number) : Promise\;
废弃版本:N/A|类名:bundle
方法 or 属性:function getBundleArchiveInfo(hapFilePath: string, bundleFlags: number) : Promise\;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getLaunchWantForBundle(bundleName: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:bundle
方法 or 属性:function getLaunchWantForBundle(bundleName: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getLaunchWantForBundle(bundleName: string): Promise\;
废弃版本:N/A|类名:bundle
方法 or 属性:function getLaunchWantForBundle(bundleName: string): Promise\;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function cleanBundleCacheFiles(bundleName: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:bundle
方法 or 属性:function cleanBundleCacheFiles(bundleName: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function cleanBundleCacheFiles(bundleName: string): Promise\;
废弃版本:N/A|类名:bundle
方法 or 属性:function cleanBundleCacheFiles(bundleName: string): Promise\;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function setApplicationEnabled(bundleName: string, isEnable: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:bundle
方法 or 属性:function setApplicationEnabled(bundleName: string, isEnable: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function setApplicationEnabled(bundleName: string, isEnable: boolean): Promise\;
废弃版本:N/A|类名:bundle
方法 or 属性:function setApplicationEnabled(bundleName: string, isEnable: boolean): Promise\;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function setAbilityEnabled(info: AbilityInfo, isEnable: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:bundle
方法 or 属性:function setAbilityEnabled(info: AbilityInfo, isEnable: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function setAbilityEnabled(info: AbilityInfo, isEnable: boolean): Promise\;
废弃版本:N/A|类名:bundle
方法 or 属性:function setAbilityEnabled(info: AbilityInfo, isEnable: boolean): Promise\;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getPermissionDef(permissionName: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:bundle
方法 or 属性:function getPermissionDef(permissionName: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getPermissionDef(permissionName: string): Promise\;
废弃版本:N/A|类名:bundle
方法 or 属性:function getPermissionDef(permissionName: string): Promise\;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getAbilityLabel(bundleName: string, abilityName: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:bundle
方法 or 属性:function getAbilityLabel(bundleName: string, abilityName: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getAbilityLabel(bundleName: string, abilityName: string): Promise\;
废弃版本:N/A|类名:bundle
方法 or 属性:function getAbilityLabel(bundleName: string, abilityName: string): Promise\;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getAbilityIcon(bundleName: string, abilityName: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:bundle
方法 or 属性:function getAbilityIcon(bundleName: string, abilityName: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.resourceManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function getAbilityIcon(bundleName: string, abilityName: string): Promise\;
废弃版本:N/A|类名:bundle
方法 or 属性:function getAbilityIcon(bundleName: string, abilityName: string): Promise\;
废弃版本:9
代替接口:ohos.resourceManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function isAbilityEnabled(info: AbilityInfo, callback: AsyncCallback\): void;
废弃版本:N/A|类名:bundle
方法 or 属性:function isAbilityEnabled(info: AbilityInfo, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function isAbilityEnabled(info: AbilityInfo): Promise\;
废弃版本:N/A|类名:bundle
方法 or 属性:function isAbilityEnabled(info: AbilityInfo): Promise\;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function isApplicationEnabled(bundleName: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:bundle
方法 or 属性:function isApplicationEnabled(bundleName: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:bundle
方法 or 属性:function isApplicationEnabled(bundleName: string): Promise\;
废弃版本:N/A|类名:bundle
方法 or 属性:function isApplicationEnabled(bundleName: string): Promise\;
废弃版本:9
代替接口:ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|废弃版本有变化|类名:innerBundleManager
废弃版本:N/A|类名:innerBundleManager
废弃版本:9
代替接口:ohos.bundle.launcherBundleManager |@ohos.bundle.innerBundleManager.d.ts| +|废弃版本有变化|类名:innerBundleManager
方法 or 属性:function getLauncherAbilityInfos(bundleName: string, userId: number, callback: AsyncCallback\>) : void;
废弃版本:N/A|类名:innerBundleManager
方法 or 属性:function getLauncherAbilityInfos(bundleName: string, userId: number, callback: AsyncCallback\>) : void;
废弃版本:9
代替接口:ohos.bundle.launcherBundleManager|@ohos.bundle.innerBundleManager.d.ts| +|废弃版本有变化|类名:innerBundleManager
方法 or 属性:function getLauncherAbilityInfos(bundleName: string, userId: number) : Promise\>;
废弃版本:N/A|类名:innerBundleManager
方法 or 属性:function getLauncherAbilityInfos(bundleName: string, userId: number) : Promise\>;
废弃版本:9
代替接口:ohos.bundle.launcherBundleManager|@ohos.bundle.innerBundleManager.d.ts| +|废弃版本有变化|类名:innerBundleManager
方法 or 属性:function on(type:"BundleStatusChange", bundleStatusCallback : BundleStatusCallback, callback: AsyncCallback\) : void;
废弃版本:N/A|类名:innerBundleManager
方法 or 属性:function on(type:"BundleStatusChange", bundleStatusCallback : BundleStatusCallback, callback: AsyncCallback\) : void;
废弃版本:9
代替接口:ohos.bundle.bundleMonitor|@ohos.bundle.innerBundleManager.d.ts| +|废弃版本有变化|类名:innerBundleManager
方法 or 属性:function on(type:"BundleStatusChange", bundleStatusCallback : BundleStatusCallback): Promise\;
废弃版本:N/A|类名:innerBundleManager
方法 or 属性:function on(type:"BundleStatusChange", bundleStatusCallback : BundleStatusCallback): Promise\;
废弃版本:9
代替接口:ohos.bundle.bundleMonitor|@ohos.bundle.innerBundleManager.d.ts| +|废弃版本有变化|类名:innerBundleManager
方法 or 属性:function off(type:"BundleStatusChange", callback: AsyncCallback\) : void;
废弃版本:N/A|类名:innerBundleManager
方法 or 属性:function off(type:"BundleStatusChange", callback: AsyncCallback\) : void;
废弃版本:9
代替接口:ohos.bundle.bundleMonitor|@ohos.bundle.innerBundleManager.d.ts| +|废弃版本有变化|类名:innerBundleManager
方法 or 属性:function off(type:"BundleStatusChange"): Promise\;
废弃版本:N/A|类名:innerBundleManager
方法 or 属性:function off(type:"BundleStatusChange"): Promise\;
废弃版本:9
代替接口:ohos.bundle.bundleMonitor|@ohos.bundle.innerBundleManager.d.ts| +|废弃版本有变化|类名:innerBundleManager
方法 or 属性:function getAllLauncherAbilityInfos(userId: number, callback: AsyncCallback\>) : void;
废弃版本:N/A|类名:innerBundleManager
方法 or 属性:function getAllLauncherAbilityInfos(userId: number, callback: AsyncCallback\>) : void;
废弃版本:9
代替接口:ohos.bundle.launcherBundleManager|@ohos.bundle.innerBundleManager.d.ts| +|废弃版本有变化|类名:innerBundleManager
方法 or 属性:function getAllLauncherAbilityInfos(userId: number) : Promise\>;
废弃版本:N/A|类名:innerBundleManager
方法 or 属性:function getAllLauncherAbilityInfos(userId: number) : Promise\>;
废弃版本:9
代替接口:ohos.bundle.launcherBundleManager|@ohos.bundle.innerBundleManager.d.ts| +|废弃版本有变化|类名:innerBundleManager
方法 or 属性:function getShortcutInfos(bundleName :string, callback: AsyncCallback\>) : void;
废弃版本:N/A|类名:innerBundleManager
方法 or 属性:function getShortcutInfos(bundleName :string, callback: AsyncCallback\>) : void;
废弃版本:9
代替接口:ohos.bundle.launcherBundleManager|@ohos.bundle.innerBundleManager.d.ts| +|废弃版本有变化|类名:innerBundleManager
方法 or 属性:function getShortcutInfos(bundleName : string) : Promise\>;
废弃版本:N/A|类名:innerBundleManager
方法 or 属性:function getShortcutInfos(bundleName : string) : Promise\>;
废弃版本:9
代替接口:ohos.bundle.launcherBundleManager|@ohos.bundle.innerBundleManager.d.ts| +|废弃版本有变化|类名:distributedBundle
废弃版本:N/A|类名:distributedBundle
废弃版本:9
代替接口:ohos.bundle.distributedBundleManager |@ohos.distributedBundle.d.ts| +|废弃版本有变化|类名:distributedBundle
方法 or 属性:function getRemoteAbilityInfo(elementName: ElementName, callback: AsyncCallback\): void;
废弃版本:N/A|类名:distributedBundle
方法 or 属性:function getRemoteAbilityInfo(elementName: ElementName, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bundle.distributedBundleManager|@ohos.distributedBundle.d.ts| +|废弃版本有变化|类名:distributedBundle
方法 or 属性:function getRemoteAbilityInfo(elementName: ElementName): Promise\;
废弃版本:N/A|类名:distributedBundle
方法 or 属性:function getRemoteAbilityInfo(elementName: ElementName): Promise\;
废弃版本:9
代替接口:ohos.bundle.distributedBundleManager|@ohos.distributedBundle.d.ts| +|废弃版本有变化|类名:distributedBundle
方法 or 属性:function getRemoteAbilityInfos(elementNames: Array\, callback: AsyncCallback\>): void;
废弃版本:N/A|类名:distributedBundle
方法 or 属性:function getRemoteAbilityInfos(elementNames: Array\, callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.bundle.distributedBundleManager|@ohos.distributedBundle.d.ts| +|废弃版本有变化|类名:distributedBundle
方法 or 属性:function getRemoteAbilityInfos(elementNames: Array\): Promise\>;
废弃版本:N/A|类名:distributedBundle
方法 or 属性:function getRemoteAbilityInfos(elementNames: Array\): Promise\>;
废弃版本:9
代替接口:ohos.bundle.distributedBundleManager|@ohos.distributedBundle.d.ts| +|废弃版本有变化|类名:ErrorCode
废弃版本:N/A|类名:ErrorCode
废弃版本:9
代替接口:N/A|@ohos.zlib.d.ts| +|废弃版本有变化|类名:zlib
方法 or 属性:function zipFile(inFile:string, outFile:string, options: Options): Promise\;
废弃版本:N/A|类名:zlib
方法 or 属性:function zipFile(inFile:string, outFile:string, options: Options): Promise\;
废弃版本:9
代替接口:ohos.zlib|@ohos.zlib.d.ts| +|废弃版本有变化|类名:zlib
方法 or 属性:function unzipFile(inFile:string, outFile:string, options: Options): Promise\;
废弃版本:N/A|类名:zlib
方法 or 属性:function unzipFile(inFile:string, outFile:string, options: Options): Promise\;
废弃版本:9
代替接口:ohos.zlib|@ohos.zlib.d.ts| +|废弃版本有变化|类名:CheckPackageHasInstalledResponse
废弃版本:N/A|类名:CheckPackageHasInstalledResponse
废弃版本:9
代替接口:N/A|@system.package.d.ts| +|废弃版本有变化|类名:CheckPackageHasInstalledOptions
废弃版本:N/A|类名:CheckPackageHasInstalledOptions
废弃版本:9
代替接口:N/A|@system.package.d.ts| +|废弃版本有变化|类名:Package
废弃版本:N/A|类名:Package
废弃版本:9
代替接口:N/A|@system.package.d.ts| +|废弃版本有变化|类名:Package
方法 or 属性:static hasInstalled(options: CheckPackageHasInstalledOptions): void;
废弃版本:N/A|类名:Package
方法 or 属性:static hasInstalled(options: CheckPackageHasInstalledOptions): void;
废弃版本:9
代替接口:N/A|@system.package.d.ts| +|废弃版本有变化|类名:AbilityInfo
废弃版本:N/A|类名:AbilityInfo
废弃版本:9
代替接口:ohos.bundle.bundleManager.AbilityInfo |abilityInfo.d.ts| +|废弃版本有变化|类名:ApplicationInfo
废弃版本:N/A|类名:ApplicationInfo
废弃版本:9
代替接口:ohos.bundle.bundleManager.ApplicationInfo |applicationInfo.d.ts| +|废弃版本有变化|类名:ApplicationInfo
方法 or 属性:readonly labelId: string;
废弃版本:N/A|类名:ApplicationInfo
方法 or 属性:readonly labelId: string;
废弃版本:9
代替接口:ohos.bundle.bundleManager.ApplicationInfo.labelIndex |applicationInfo.d.ts| +|废弃版本有变化|类名:ApplicationInfo
方法 or 属性:readonly iconId: string;
废弃版本:N/A|类名:ApplicationInfo
方法 or 属性:readonly iconId: string;
废弃版本:9
代替接口:ohos.bundle.bundleManager.ApplicationInfo.iconIndex |applicationInfo.d.ts| +|废弃版本有变化|类名:UsedScene
废弃版本:N/A|类名:UsedScene
废弃版本:9
代替接口:ohos.bundle.bundleManager.UsedScene |bundleInfo.d.ts| +|废弃版本有变化|类名:ReqPermissionDetail
废弃版本:N/A|类名:ReqPermissionDetail
废弃版本:9
代替接口:ohos.bundle.bundleManager.ReqPermissionDetail |bundleInfo.d.ts| +|废弃版本有变化|类名:BundleInfo
废弃版本:N/A|类名:BundleInfo
废弃版本:9
代替接口:ohos.bundle.bundleManager.BundleInfo |bundleInfo.d.ts| +|废弃版本有变化|类名:InstallParam
废弃版本:N/A|类名:InstallParam
废弃版本:9
代替接口:ohos.bundle.installer|bundleInstaller.d.ts| +|废弃版本有变化|类名:InstallParam
方法 or 属性:userId: number;
废弃版本:N/A|类名:InstallParam
方法 or 属性:userId: number;
废弃版本:9
代替接口:ohos.bundle.installer.InstallParam|bundleInstaller.d.ts| +|废弃版本有变化|类名:InstallParam
方法 or 属性:installFlag: number;
废弃版本:N/A|类名:InstallParam
方法 or 属性:installFlag: number;
废弃版本:9
代替接口:ohos.bundle.installer.InstallParam|bundleInstaller.d.ts| +|废弃版本有变化|类名:InstallParam
方法 or 属性:isKeepData: boolean;
废弃版本:N/A|类名:InstallParam
方法 or 属性:isKeepData: boolean;
废弃版本:9
代替接口:ohos.bundle.installer.InstallParam|bundleInstaller.d.ts| +|废弃版本有变化|类名:InstallStatus
废弃版本:N/A|类名:InstallStatus
废弃版本:9
代替接口:N/A|bundleInstaller.d.ts| +|废弃版本有变化|类名:InstallStatus
方法 or 属性:status: bundle.InstallErrorCode;
废弃版本:N/A|类名:InstallStatus
方法 or 属性:status: bundle.InstallErrorCode;
废弃版本:9
代替接口:N/A|bundleInstaller.d.ts| +|废弃版本有变化|类名:InstallStatus
方法 or 属性:statusMessage: string;
废弃版本:N/A|类名:InstallStatus
方法 or 属性:statusMessage: string;
废弃版本:9
代替接口:N/A|bundleInstaller.d.ts| +|废弃版本有变化|类名:BundleInstaller
废弃版本:N/A|类名:BundleInstaller
废弃版本:9
代替接口:ohos.bundle.installer|bundleInstaller.d.ts| +|废弃版本有变化|类名:BundleInstaller
方法 or 属性:install(bundleFilePaths: Array\, param: InstallParam, callback: AsyncCallback\): void;
废弃版本:N/A|类名:BundleInstaller
方法 or 属性:install(bundleFilePaths: Array\, param: InstallParam, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bundle.installer.BundleInstaller|bundleInstaller.d.ts| +|废弃版本有变化|类名:BundleInstaller
方法 or 属性:uninstall(bundleName: string, param: InstallParam, callback: AsyncCallback\): void;
废弃版本:N/A|类名:BundleInstaller
方法 or 属性:uninstall(bundleName: string, param: InstallParam, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bundle.installer.BundleInstaller|bundleInstaller.d.ts| +|废弃版本有变化|类名:BundleInstaller
方法 or 属性:recover(bundleName: string, param: InstallParam, callback: AsyncCallback\): void;
废弃版本:N/A|类名:BundleInstaller
方法 or 属性:recover(bundleName: string, param: InstallParam, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bundle.installer.BundleInstaller|bundleInstaller.d.ts| +|废弃版本有变化|类名:BundleStatusCallback
废弃版本:N/A|类名:BundleStatusCallback
废弃版本:9
代替接口:N/A|bundleStatusCallback.d.ts| +|废弃版本有变化|类名:CustomizeData
废弃版本:N/A|类名:CustomizeData
废弃版本:9
代替接口:ohos.bundle.bundleManager.Metadata |customizeData.d.ts| +|废弃版本有变化|类名:ElementName
废弃版本:N/A|类名:ElementName
废弃版本:9
代替接口:ohos.bundle.bundleManager.ElementName |elementName.d.ts| +|废弃版本有变化|类名:HapModuleInfo
废弃版本:N/A|类名:HapModuleInfo
废弃版本:9
代替接口:ohos.bundle.bundleManager.HapModuleInfo |hapModuleInfo.d.ts| +|废弃版本有变化|类名:LauncherAbilityInfo
废弃版本:N/A|类名:LauncherAbilityInfo
废弃版本:9
代替接口:ohos.bundle.bundleManager.LauncherAbilityInfo |launcherAbilityInfo.d.ts| +|废弃版本有变化|类名:ModuleInfo
废弃版本:N/A|类名:ModuleInfo
废弃版本:9
代替接口:ohos.bundle.bundleManager.HapModuleInfo |moduleInfo.d.ts| +|废弃版本有变化|类名:PermissionDef
废弃版本:N/A|类名:PermissionDef
废弃版本:9
代替接口:ohos.bundle.bundleManager.PermissionDef |PermissionDef.d.ts| +|废弃版本有变化|类名:RemoteAbilityInfo
废弃版本:N/A|类名:RemoteAbilityInfo
废弃版本:9
代替接口:ohos.bundle.distributedBundleManager.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| +|起始版本有变化|类名:LauncherAbilityInfo
起始版本:N/A|类名:LauncherAbilityInfo
起始版本:8|launcherAbilityInfo.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-communication.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-communication.md new file mode 100644 index 0000000000000000000000000000000000000000..7630596de7ce2aacbf1a34f1fb936bc1208caf19 --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-communication.md @@ -0,0 +1,1792 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function getState(): BluetoothState;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function getBtConnectionState(): ProfileConnectionState;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function pairDevice(deviceId: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function cancelPairedDevice(deviceId: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function getRemoteDeviceName(deviceId: string): string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function getRemoteDeviceClass(deviceId: string): DeviceClass;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function enableBluetooth(): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function disableBluetooth(): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function getLocalName(): string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function getPairedDevices(): Array\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function getProfileConnectionState(profileId: ProfileId): ProfileConnectionState;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function setDevicePairingConfirmation(device: string, accept: boolean): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function setLocalName(name: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function setBluetoothScanMode(mode: ScanMode, duration: number): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function getBluetoothScanMode(): ScanMode;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function startBluetoothDiscovery(): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function stopBluetoothDiscovery(): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function on(type: "bluetoothDeviceFind", callback: Callback\>): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function off(type: "bluetoothDeviceFind", callback?: Callback\>): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function on(type: "bondStateChange", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function off(type: "bondStateChange", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function on(type: "pinRequired", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function off(type: "pinRequired", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function on(type: "stateChange", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function off(type: "stateChange", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function sppListen(name: string, option: SppOption, callback: AsyncCallback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function sppAccept(serverSocket: number, callback: AsyncCallback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function sppConnect(device: string, option: SppOption, callback: AsyncCallback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function sppCloseServerSocket(socket: number): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function sppCloseClientSocket(socket: number): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function sppWrite(clientSocket: number, data: ArrayBuffer): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function on(type: "sppRead", clientSocket: number, callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function off(type: "sppRead", clientSocket: number, callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: bluetoothManager
方法 or 属性: function getProfileInstance(profileId: ProfileId): A2dpSourceProfile \| HandsFreeAudioGatewayProfile \| HidHostProfile \| PanProfile;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BaseProfile|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BaseProfile
方法 or 属性: getConnectionDevices(): Array\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BaseProfile
方法 or 属性: getDeviceState(device: string): ProfileConnectionState;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: A2dpSourceProfile|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: A2dpSourceProfile
方法 or 属性: connect(device: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: A2dpSourceProfile
方法 or 属性: disconnect(device: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: A2dpSourceProfile
方法 or 属性: on(type: "connectionStateChange", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: A2dpSourceProfile
方法 or 属性: off(type: "connectionStateChange", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: A2dpSourceProfile
方法 or 属性: getPlayingState(device: string): PlayingState;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: HandsFreeAudioGatewayProfile|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: HandsFreeAudioGatewayProfile
方法 or 属性: connect(device: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: HandsFreeAudioGatewayProfile
方法 or 属性: disconnect(device: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: HandsFreeAudioGatewayProfile
方法 or 属性: on(type: "connectionStateChange", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: HandsFreeAudioGatewayProfile
方法 or 属性: off(type: "connectionStateChange", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: HidHostProfile|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: HidHostProfile
方法 or 属性: connect(device: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: HidHostProfile
方法 or 属性: disconnect(device: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: HidHostProfile
方法 or 属性: on(type: "connectionStateChange", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: HidHostProfile
方法 or 属性: off(type: "connectionStateChange", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PanProfile|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PanProfile
方法 or 属性: disconnect(device: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PanProfile
方法 or 属性: on(type: "connectionStateChange", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PanProfile
方法 or 属性: off(type: "connectionStateChange", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PanProfile
方法 or 属性: setTethering(enable: boolean): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PanProfile
方法 or 属性: isTetheringOn(): boolean;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLE|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLE
方法 or 属性: function createGattServer(): GattServer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLE
方法 or 属性: function createGattClientDevice(deviceId: string): GattClientDevice;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLE
方法 or 属性: function getConnectedBLEDevices(): Array\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLE
方法 or 属性: function startBLEScan(filters: Array\, options?: ScanOptions): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLE
方法 or 属性: function stopBLEScan(): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLE
方法 or 属性: function on(type: "BLEDeviceFind", callback: Callback\>): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLE
方法 or 属性: function off(type: "BLEDeviceFind", callback?: Callback\>): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: startAdvertising(setting: AdvertiseSetting, advData: AdvertiseData, advResponse?: AdvertiseData): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: stopAdvertising(): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: addService(service: GattService): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: removeService(serviceUuid: string): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: close(): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: notifyCharacteristicChanged(deviceId: string, notifyCharacteristic: NotifyCharacteristic): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: sendResponse(serverResponse: ServerResponse): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: on(type: "characteristicRead", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: off(type: "characteristicRead", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: on(type: "characteristicWrite", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: off(type: "characteristicWrite", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: on(type: "descriptorRead", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: off(type: "descriptorRead", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: on(type: "descriptorWrite", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: off(type: "descriptorWrite", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: on(type: "connectStateChange", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattServer
方法 or 属性: off(type: "connectStateChange", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: connect(): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: disconnect(): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: close(): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: getDeviceName(callback: AsyncCallback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: getDeviceName(): Promise\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: getServices(callback: AsyncCallback\>): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: getServices(): Promise\>;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: readCharacteristicValue(characteristic: BLECharacteristic, callback: AsyncCallback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: readCharacteristicValue(characteristic: BLECharacteristic): Promise\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: readDescriptorValue(descriptor: BLEDescriptor, callback: AsyncCallback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: readDescriptorValue(descriptor: BLEDescriptor): Promise\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: writeCharacteristicValue(characteristic: BLECharacteristic): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: writeDescriptorValue(descriptor: BLEDescriptor): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: getRssiValue(callback: AsyncCallback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: getRssiValue(): Promise\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: setBLEMtuSize(mtu: number): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: setNotifyCharacteristicChanged(characteristic: BLECharacteristic, enable: boolean): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: on(type: "BLECharacteristicChange", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: off(type: "BLECharacteristicChange", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: on(type: "BLEConnectionStateChange", callback: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattClientDevice
方法 or 属性: off(type: "BLEConnectionStateChange", callback?: Callback\): void;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattService|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattService
方法 or 属性: serviceUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattService
方法 or 属性: isPrimary: boolean;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattService
方法 or 属性: characteristics: Array\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: GattService
方法 or 属性: includeServices?: Array\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLECharacteristic|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLECharacteristic
方法 or 属性: serviceUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLECharacteristic
方法 or 属性: characteristicUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLECharacteristic
方法 or 属性: characteristicValue: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLECharacteristic
方法 or 属性: descriptors: Array\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLEDescriptor|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLEDescriptor
方法 or 属性: serviceUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLEDescriptor
方法 or 属性: characteristicUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLEDescriptor
方法 or 属性: descriptorUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLEDescriptor
方法 or 属性: descriptorValue: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: NotifyCharacteristic|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: NotifyCharacteristic
方法 or 属性: serviceUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: NotifyCharacteristic
方法 or 属性: characteristicUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: NotifyCharacteristic
方法 or 属性: characteristicValue: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: NotifyCharacteristic
方法 or 属性: confirm: boolean;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicReadRequest|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicReadRequest
方法 or 属性: deviceId: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicReadRequest
方法 or 属性: transId: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicReadRequest
方法 or 属性: offset: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicReadRequest
方法 or 属性: characteristicUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicReadRequest
方法 or 属性: serviceUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicWriteRequest|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicWriteRequest
方法 or 属性: deviceId: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicWriteRequest
方法 or 属性: transId: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicWriteRequest
方法 or 属性: offset: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicWriteRequest
方法 or 属性: isPrep: boolean;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicWriteRequest
方法 or 属性: needRsp: boolean;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicWriteRequest
方法 or 属性: value: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicWriteRequest
方法 or 属性: characteristicUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: CharacteristicWriteRequest
方法 or 属性: serviceUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorReadRequest|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorReadRequest
方法 or 属性: deviceId: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorReadRequest
方法 or 属性: transId: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorReadRequest
方法 or 属性: offset: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorReadRequest
方法 or 属性: descriptorUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorReadRequest
方法 or 属性: characteristicUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorReadRequest
方法 or 属性: serviceUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorWriteRequest|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorWriteRequest
方法 or 属性: deviceId: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorWriteRequest
方法 or 属性: transId: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorWriteRequest
方法 or 属性: offset: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorWriteRequest
方法 or 属性: isPrep: boolean;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorWriteRequest
方法 or 属性: needRsp: boolean;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorWriteRequest
方法 or 属性: value: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorWriteRequest
方法 or 属性: descriptorUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorWriteRequest
方法 or 属性: characteristicUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DescriptorWriteRequest
方法 or 属性: serviceUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ServerResponse|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ServerResponse
方法 or 属性: deviceId: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ServerResponse
方法 or 属性: transId: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ServerResponse
方法 or 属性: status: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ServerResponse
方法 or 属性: offset: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ServerResponse
方法 or 属性: value: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLEConnectChangedState|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLEConnectChangedState
方法 or 属性: deviceId: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BLEConnectChangedState
方法 or 属性: state: ProfileConnectionState;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanResult|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanResult
方法 or 属性: deviceId: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanResult
方法 or 属性: rssi: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanResult
方法 or 属性: data: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: AdvertiseSetting|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: AdvertiseSetting
方法 or 属性: interval?: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: AdvertiseSetting
方法 or 属性: txPower?: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: AdvertiseSetting
方法 or 属性: connectable?: boolean;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: AdvertiseData|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: AdvertiseData
方法 or 属性: serviceUuids: Array\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: AdvertiseData
方法 or 属性: manufactureData: Array\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: AdvertiseData
方法 or 属性: serviceData: Array\;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ManufactureData|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ManufactureData
方法 or 属性: manufactureId: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ManufactureData
方法 or 属性: manufactureValue: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ServiceData|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ServiceData
方法 or 属性: serviceUuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ServiceData
方法 or 属性: serviceValue: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: deviceId?: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: name?: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: serviceUuid?: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: serviceUuidMask?: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: serviceSolicitationUuid?: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: serviceSolicitationUuidMask?: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: serviceData?: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: serviceDataMask?: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: manufactureId?: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: manufactureData?: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanFilter
方法 or 属性: manufactureDataMask?: ArrayBuffer;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanOptions|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanOptions
方法 or 属性: interval?: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanOptions
方法 or 属性: dutyMode?: ScanDuty;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanOptions
方法 or 属性: matchMode?: MatchMode;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: SppOption|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: SppOption
方法 or 属性: uuid: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: SppOption
方法 or 属性: secure: boolean;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: SppOption
方法 or 属性: type: SppType;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PinRequiredParam|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PinRequiredParam
方法 or 属性: deviceId: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PinRequiredParam
方法 or 属性: pinCode: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DeviceClass|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DeviceClass
方法 or 属性: majorClass: MajorClass;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DeviceClass
方法 or 属性: majorMinorClass: MajorMinorClass;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: DeviceClass
方法 or 属性: classOfDevice: number;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BondStateParam|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BondStateParam
方法 or 属性: deviceId: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BondStateParam
方法 or 属性: state: BondState;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: StateChangeParam|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: StateChangeParam
方法 or 属性: deviceId: string;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: StateChangeParam
方法 or 属性: state: ProfileConnectionState;|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanDuty|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanDuty
方法 or 属性: SCAN_MODE_LOW_POWER = 0|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanDuty
方法 or 属性: SCAN_MODE_BALANCED = 1|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanDuty
方法 or 属性: SCAN_MODE_LOW_LATENCY = 2|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MatchMode|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MatchMode
方法 or 属性: MATCH_MODE_AGGRESSIVE = 1|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MatchMode
方法 or 属性: MATCH_MODE_STICKY = 2|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ProfileConnectionState|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ProfileConnectionState
方法 or 属性: STATE_DISCONNECTED = 0|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ProfileConnectionState
方法 or 属性: STATE_CONNECTING = 1|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ProfileConnectionState
方法 or 属性: STATE_CONNECTED = 2|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ProfileConnectionState
方法 or 属性: STATE_DISCONNECTING = 3|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BluetoothState|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BluetoothState
方法 or 属性: STATE_OFF = 0|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BluetoothState
方法 or 属性: STATE_TURNING_ON = 1|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BluetoothState
方法 or 属性: STATE_ON = 2|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BluetoothState
方法 or 属性: STATE_TURNING_OFF = 3|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BluetoothState
方法 or 属性: STATE_BLE_TURNING_ON = 4|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BluetoothState
方法 or 属性: STATE_BLE_ON = 5|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BluetoothState
方法 or 属性: STATE_BLE_TURNING_OFF = 6|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: SppType|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: SppType
方法 or 属性: SPP_RFCOMM|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanMode|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanMode
方法 or 属性: SCAN_MODE_NONE = 0|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanMode
方法 or 属性: SCAN_MODE_CONNECTABLE = 1|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanMode
方法 or 属性: SCAN_MODE_GENERAL_DISCOVERABLE = 2|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanMode
方法 or 属性: SCAN_MODE_LIMITED_DISCOVERABLE = 3|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanMode
方法 or 属性: SCAN_MODE_CONNECTABLE_GENERAL_DISCOVERABLE = 4|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ScanMode
方法 or 属性: SCAN_MODE_CONNECTABLE_LIMITED_DISCOVERABLE = 5|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BondState|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BondState
方法 or 属性: BOND_STATE_INVALID = 0|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BondState
方法 or 属性: BOND_STATE_BONDING = 1|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: BondState
方法 or 属性: BOND_STATE_BONDED = 2|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_MISC = 0x0000|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_COMPUTER = 0x0100|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_PHONE = 0x0200|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_NETWORKING = 0x0300|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_AUDIO_VIDEO = 0x0400|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_PERIPHERAL = 0x0500|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_IMAGING = 0x0600|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_WEARABLE = 0x0700|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_TOY = 0x0800|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_HEALTH = 0x0900|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorClass
方法 or 属性: MAJOR_UNCATEGORIZED = 0x1F00|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: COMPUTER_UNCATEGORIZED = 0x0100|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: COMPUTER_DESKTOP = 0x0104|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: COMPUTER_SERVER = 0x0108|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: COMPUTER_LAPTOP = 0x010C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: COMPUTER_HANDHELD_PC_PDA = 0x0110|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: COMPUTER_PALM_SIZE_PC_PDA = 0x0114|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: COMPUTER_WEARABLE = 0x0118|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: COMPUTER_TABLET = 0x011C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PHONE_UNCATEGORIZED = 0x0200|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PHONE_CELLULAR = 0x0204|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PHONE_CORDLESS = 0x0208|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PHONE_SMART = 0x020C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PHONE_MODEM_OR_GATEWAY = 0x0210|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PHONE_ISDN = 0x0214|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: NETWORK_FULLY_AVAILABLE = 0x0300|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: NETWORK_1_TO_17_UTILIZED = 0x0320|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: NETWORK_17_TO_33_UTILIZED = 0x0340|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: NETWORK_33_TO_50_UTILIZED = 0x0360|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: NETWORK_60_TO_67_UTILIZED = 0x0380|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: NETWORK_67_TO_83_UTILIZED = 0x03A0|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: NETWORK_83_TO_99_UTILIZED = 0x03C0|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: NETWORK_NO_SERVICE = 0x03E0|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_UNCATEGORIZED = 0x0400|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_WEARABLE_HEADSET = 0x0404|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_HANDSFREE = 0x0408|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_MICROPHONE = 0x0410|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_LOUDSPEAKER = 0x0414|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_HEADPHONES = 0x0418|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_PORTABLE_AUDIO = 0x041C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_CAR_AUDIO = 0x0420|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_SET_TOP_BOX = 0x0424|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_HIFI_AUDIO = 0x0428|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_VCR = 0x042C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_VIDEO_CAMERA = 0x0430|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_CAMCORDER = 0x0434|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_VIDEO_MONITOR = 0x0438|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_VIDEO_DISPLAY_AND_LOUDSPEAKER = 0x043C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_VIDEO_CONFERENCING = 0x0440|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: AUDIO_VIDEO_VIDEO_GAMING_TOY = 0x0448|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_NON_KEYBOARD_NON_POINTING = 0x0500|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_KEYBOARD = 0x0540|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_POINTING_DEVICE = 0x0580|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_KEYBOARD_POINTING = 0x05C0|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_UNCATEGORIZED = 0x0500|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_JOYSTICK = 0x0504|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_GAMEPAD = 0x0508|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_REMOTE_CONTROL = 0x05C0|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_SENSING_DEVICE = 0x0510|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_DIGITIZER_TABLET = 0x0514|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_CARD_READER = 0x0518|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_DIGITAL_PEN = 0x051C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_SCANNER_RFID = 0x0520|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: PERIPHERAL_GESTURAL_INPUT = 0x0522|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: IMAGING_UNCATEGORIZED = 0x0600|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: IMAGING_DISPLAY = 0x0610|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: IMAGING_CAMERA = 0x0620|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: IMAGING_SCANNER = 0x0640|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: IMAGING_PRINTER = 0x0680|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: WEARABLE_UNCATEGORIZED = 0x0700|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: WEARABLE_WRIST_WATCH = 0x0704|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: WEARABLE_PAGER = 0x0708|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: WEARABLE_JACKET = 0x070C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: WEARABLE_HELMET = 0x0710|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: WEARABLE_GLASSES = 0x0714|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: TOY_UNCATEGORIZED = 0x0800|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: TOY_ROBOT = 0x0804|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: TOY_VEHICLE = 0x0808|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: TOY_DOLL_ACTION_FIGURE = 0x080C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: TOY_CONTROLLER = 0x0810|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: TOY_GAME = 0x0814|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_UNCATEGORIZED = 0x0900|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_BLOOD_PRESSURE = 0x0904|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_THERMOMETER = 0x0908|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_WEIGHING = 0x090C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_GLUCOSE = 0x0910|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_PULSE_OXIMETER = 0x0914|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_PULSE_RATE = 0x0918|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_DATA_DISPLAY = 0x091C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_STEP_COUNTER = 0x0920|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_BODY_COMPOSITION_ANALYZER = 0x0924|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_PEAK_FLOW_MONITOR = 0x0928|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_MEDICATION_MONITOR = 0x092C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_KNEE_PROSTHESIS = 0x0930|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_ANKLE_PROSTHESIS = 0x0934|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_GENERIC_HEALTH_MANAGER = 0x0938|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: MajorMinorClass
方法 or 属性: HEALTH_PERSONAL_MOBILITY_DEVICE = 0x093C|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PlayingState|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PlayingState
方法 or 属性: STATE_NOT_PLAYING|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: PlayingState
方法 or 属性: STATE_PLAYING|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ProfileId|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ProfileId
方法 or 属性: PROFILE_A2DP_SOURCE = 1|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ProfileId
方法 or 属性: PROFILE_HANDS_FREE_AUDIO_GATEWAY = 4|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ProfileId
方法 or 属性: PROFILE_HID_HOST = 6|@ohos.bluetoothManager.d.ts| +|新增|NA|模块名: ohos.bluetoothManager
类名: ProfileId
方法 or 属性: PROFILE_PAN_NETWORK = 7|@ohos.bluetoothManager.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|类名:connection
方法or属性:function getDefaultNetSync(): NetHandle;|@ohos.net.connection.d.ts| +|新增|NA|类名:connection
方法or属性:function isDefaultNetMetered(callback: AsyncCallback\): void;|@ohos.net.connection.d.ts| +|新增|NA|类名:connection
方法or属性:function isDefaultNetMetered(): Promise\;|@ohos.net.connection.d.ts| +|新增|NA|类名:connection
方法or属性:function getAppNet(callback: AsyncCallback\): void;|@ohos.net.connection.d.ts| +|新增|NA|类名:connection
方法or属性:function getAppNet(): Promise\;|@ohos.net.connection.d.ts| +|新增|NA|类名:connection
方法or属性:function setAppNet(netHandle: NetHandle, callback: AsyncCallback\): void;|@ohos.net.connection.d.ts| +|新增|NA|类名:connection
方法or属性:function setAppNet(netHandle: NetHandle): Promise\;|@ohos.net.connection.d.ts| +|新增|NA|类名:NetHandle
方法or属性:bindSocket(socketParam: TCPSocket \| UDPSocket, callback: AsyncCallback\): void;|@ohos.net.connection.d.ts| +|新增|NA|类名:NetHandle
方法or属性:bindSocket(socketParam: TCPSocket \| UDPSocket): Promise\;|@ohos.net.connection.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法 or 属性: function getIfaceConfig(iface: string, callback: AsyncCallback\): void;|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法 or 属性: function getIfaceConfig(iface: string): Promise\;|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法 or 属性: function setIfaceConfig(iface: string, ic: InterfaceConfiguration, callback: AsyncCallback\): void;|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法 or 属性: function setIfaceConfig(iface: string, ic: InterfaceConfiguration): Promise\;|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法 or 属性: function isIfaceActive(iface: string, callback: AsyncCallback\): void;|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法 or 属性: function isIfaceActive(iface: string): Promise\;|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法 or 属性: function getAllActiveIfaces(callback: AsyncCallback\>): void;|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法 or 属性: function getAllActiveIfaces(): Promise\>;|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法 or 属性: mode: IPSetMode;|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法 or 属性: ipAddr: string;|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法 or 属性: route: string;|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法 or 属性: gateway: string;|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法 or 属性: netMask: string;|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法 or 属性: dnsServers: string;|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: IPSetMode|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: IPSetMode
方法 or 属性: STATIC = 0|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: IPSetMode
方法 or 属性: DHCP = 1|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpRequestOptions
方法 or 属性:expectDataType?: HttpDataType;|@ohos.net.http.d.ts| +|新增|NA|类名:HttpRequestOptions
方法or属性:expectDataType?: HttpDataType;|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpRequestOptions
方法 or 属性:usingCache?: boolean;|@ohos.net.http.d.ts| +|新增|NA|类名:HttpRequestOptions
方法or属性:usingCache?: boolean;|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpRequestOptions
方法 or 属性:priority?: number;|@ohos.net.http.d.ts| +|新增|NA|类名:HttpRequestOptions
方法or属性:priority?: number;|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpRequestOptions
方法 or 属性:usingProtocol?: HttpProtocol;|@ohos.net.http.d.ts| +|新增|NA|类名:HttpRequestOptions
方法or属性:usingProtocol?: HttpProtocol;|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpProtocol|@ohos.net.http.d.ts| +|新增|NA|类名:HttpProtocol
方法or属性:|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpProtocol
方法 or 属性:HTTP1_1|@ohos.net.http.d.ts| +|新增|NA|类名:HttpProtocol
方法or属性:HTTP1_1|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpProtocol
方法 or 属性:HTTP2|@ohos.net.http.d.ts| +|新增|NA|类名:HttpProtocol
方法or属性:HTTP2|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpDataType|@ohos.net.http.d.ts| +|新增|NA|类名:HttpDataType
方法or属性:|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpDataType
方法 or 属性:STRING|@ohos.net.http.d.ts| +|新增|NA|类名:HttpDataType
方法or属性:STRING|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpDataType
方法 or 属性:OBJECT = 1|@ohos.net.http.d.ts| +|新增|NA|类名:HttpDataType
方法or属性:OBJECT = 1|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpDataType
方法 or 属性:ARRAY_BUFFER = 2|@ohos.net.http.d.ts| +|新增|NA|类名:HttpDataType
方法or属性:ARRAY_BUFFER = 2|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpResponse
方法 or 属性:resultType: HttpDataType;|@ohos.net.http.d.ts| +|新增|NA|类名:HttpResponse
方法or属性:resultType: HttpDataType;|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: http
方法 or 属性:function createHttpResponseCache(cacheSize?: number): HttpResponseCache;|@ohos.net.http.d.ts| +|新增|NA|类名:http
方法or属性:function createHttpResponseCache(cacheSize?: number): HttpResponseCache;|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpResponseCache|@ohos.net.http.d.ts| +|新增|NA|类名:HttpResponseCache
方法or属性:|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpResponseCache
方法 or 属性:flush(callback: AsyncCallback\): void;|@ohos.net.http.d.ts| +|新增|NA|类名:HttpResponseCache
方法or属性:flush(callback: AsyncCallback\): void;|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpResponseCache
方法 or 属性:flush(): Promise\;|@ohos.net.http.d.ts| +|新增|NA|类名:HttpResponseCache
方法or属性:flush(): Promise\;|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpResponseCache
方法 or 属性:delete(callback: AsyncCallback\): void;|@ohos.net.http.d.ts| +|新增|NA|类名:HttpResponseCache
方法or属性:delete(callback: AsyncCallback\): void;|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpResponseCache
方法 or 属性:delete(): Promise\;|@ohos.net.http.d.ts| +|新增|NA|类名:HttpResponseCache
方法or属性:delete(): Promise\;|@ohos.net.http.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.net.socket
类名: socket
方法 or 属性:function constructTLSSocketInstance(): TLSSocket;|@ohos.net.socket.d.ts| +|新增|NA|类名:socket
方法or属性:function constructTLSSocketInstance(): TLSSocket;|@ohos.net.socket.d.ts| +|新增|NA|类名:TCPExtraOptions
方法or属性:socketLinger?: {on: boolean, linger: number};|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:bind(address: NetAddress, callback: AsyncCallback\): void;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:bind(address: NetAddress, callback: AsyncCallback\): void;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:bind(address: NetAddress): Promise\;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:bind(address: NetAddress): Promise\;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:getRemoteAddress(callback: AsyncCallback\): void;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:getRemoteAddress(callback: AsyncCallback\): void;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:getRemoteAddress(): Promise\;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:getRemoteAddress(): Promise\;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:getState(callback: AsyncCallback\): void;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:getState(callback: AsyncCallback\): void;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:getState(): Promise\;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:getState(): Promise\;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:setExtraOptions(options: TCPExtraOptions, callback: AsyncCallback\): void;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:setExtraOptions(options: TCPExtraOptions, callback: AsyncCallback\): void;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:setExtraOptions(options: TCPExtraOptions): Promise\;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:setExtraOptions(options: TCPExtraOptions): Promise\;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:on(type: 'message', callback: Callback\<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): void;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:on(type: 'message', callback: Callback\<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): void;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:off(type: 'message', callback?: Callback\<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): void;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:off(type: 'message', callback?: Callback\<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): void;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:on(type: 'connect' \| 'close', callback: Callback\): void;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:on(type: 'connect' \| 'close', callback: Callback\): void;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:on(type: 'connect' \| 'close', callback: Callback\): void;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:on(type: 'connect' \| 'close', callback: Callback\): void;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:off(type: 'connect' \| 'close', callback?: Callback\): void;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:off(type: 'connect' \| 'close', callback?: Callback\): void;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:off(type: 'connect' \| 'close', callback?: Callback\): void;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:off(type: 'connect' \| 'close', callback?: Callback\): void;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:on(type: 'error', callback: ErrorCallback): void;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:on(type: 'error', callback: ErrorCallback): void;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:off(type: 'error', callback?: ErrorCallback): void;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:off(type: 'error', callback?: ErrorCallback): void;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:getCertificate(callback: AsyncCallback\): void;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:getCertificate(callback: AsyncCallback\): void;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:getCertificate(): Promise\;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:getCertificate(): Promise\;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:getRemoteCertificate(callback: AsyncCallback\): void;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:getRemoteCertificate(callback: AsyncCallback\): void;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:getRemoteCertificate(): Promise\;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:getRemoteCertificate(): Promise\;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:getProtocol(callback: AsyncCallback\): void;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:getProtocol(callback: AsyncCallback\): void;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:getProtocol(): Promise\;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:getProtocol(): Promise\;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:getCipherSuite(callback: AsyncCallback\>): void;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:getCipherSuite(callback: AsyncCallback\>): void;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:getCipherSuite(): Promise\>;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:getCipherSuite(): Promise\>;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:getSignatureAlgorithms(callback: AsyncCallback\>): void;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:getSignatureAlgorithms(callback: AsyncCallback\>): void;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:getSignatureAlgorithms(): Promise\>;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:getSignatureAlgorithms(): Promise\>;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:connect(options: TLSConnectOptions, callback: AsyncCallback\): void;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:connect(options: TLSConnectOptions, callback: AsyncCallback\): void;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:connect(options: TLSConnectOptions): Promise\;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:connect(options: TLSConnectOptions): Promise\;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:send(data: string, callback: AsyncCallback\): void;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:send(data: string, callback: AsyncCallback\): void;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:send(data: string): Promise\;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:send(data: string): Promise\;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:close(callback: AsyncCallback\): void;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:close(callback: AsyncCallback\): void;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法 or 属性:close(): Promise\;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSocket
方法or属性:close(): Promise\;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSecureOptions
方法or属性:|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法 or 属性:ca: string \| Array\;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSecureOptions
方法or属性:ca: string \| Array\;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法 or 属性:cert?: string;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSecureOptions
方法or属性:cert?: string;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法 or 属性:key?: string;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSecureOptions
方法or属性:key?: string;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法 or 属性:password?: string;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSecureOptions
方法or属性:password?: string;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法 or 属性:protocols?: Protocol \| Array\;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSecureOptions
方法or属性:protocols?: Protocol \| Array\;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法 or 属性:useRemoteCipherPrefer?: boolean;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSecureOptions
方法or属性:useRemoteCipherPrefer?: boolean;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法 or 属性:signatureAlgorithms?: string;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSecureOptions
方法or属性:signatureAlgorithms?: string;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法 or 属性:cipherSuite?: string;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSSecureOptions
方法or属性:cipherSuite?: string;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSConnectOptions|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSConnectOptions
方法or属性:|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSConnectOptions
方法 or 属性:address: NetAddress;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSConnectOptions
方法or属性:address: NetAddress;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSConnectOptions
方法 or 属性:secureOptions: TLSSecureOptions;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSConnectOptions
方法or属性:secureOptions: TLSSecureOptions;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSConnectOptions
方法 or 属性:ALPNProtocols?: Array\;|@ohos.net.socket.d.ts| +|新增|NA|类名:TLSConnectOptions
方法or属性:ALPNProtocols?: Array\;|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: Protocol|@ohos.net.socket.d.ts| +|新增|NA|类名:Protocol
方法or属性:|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: Protocol
方法 or 属性:TLSv12 = "TLSv1.2"|@ohos.net.socket.d.ts| +|新增|NA|类名:Protocol
方法or属性:TLSv12 = "TLSv1.2"|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: Protocol
方法 or 属性:TLSv13 = "TLSv1.3"|@ohos.net.socket.d.ts| +|新增|NA|类名:Protocol
方法or属性:TLSv13 = "TLSv1.3"|@ohos.net.socket.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属性:const NDEF_FORMATABLE = 7;|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType|@ohos.nfc.tag.d.ts| +|新增|NA|类名:TnfType
方法or属性:|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法 or 属性:TNF_EMPTY = 0x0|@ohos.nfc.tag.d.ts| +|新增|NA|类名:TnfType
方法or属性:TNF_EMPTY = 0x0|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法 or 属性:TNF_WELL_KNOWN = 0x1|@ohos.nfc.tag.d.ts| +|新增|NA|类名:TnfType
方法or属性:TNF_WELL_KNOWN = 0x1|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法 or 属性:TNF_MEDIA = 0x2|@ohos.nfc.tag.d.ts| +|新增|NA|类名:TnfType
方法or属性:TNF_MEDIA = 0x2|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法 or 属性:TNF_ABSOLUTE_URI = 0x3|@ohos.nfc.tag.d.ts| +|新增|NA|类名:TnfType
方法or属性:TNF_ABSOLUTE_URI = 0x3|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法 or 属性:TNF_EXT_APP = 0x4|@ohos.nfc.tag.d.ts| +|新增|NA|类名:TnfType
方法or属性:TNF_EXT_APP = 0x4|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法 or 属性:TNF_UNKNOWN = 0x5|@ohos.nfc.tag.d.ts| +|新增|NA|类名:TnfType
方法or属性:TNF_UNKNOWN = 0x5|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法 or 属性:TNF_UNCHANGED = 0x6|@ohos.nfc.tag.d.ts| +|新增|NA|类名:TnfType
方法or属性:TNF_UNCHANGED = 0x6|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NfcForumType|@ohos.nfc.tag.d.ts| +|新增|NA|类名:NfcForumType
方法or属性:|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NfcForumType
方法 or 属性:NFC_FORUM_TYPE_1 = 1|@ohos.nfc.tag.d.ts| +|新增|NA|类名:NfcForumType
方法or属性:NFC_FORUM_TYPE_1 = 1|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NfcForumType
方法 or 属性:NFC_FORUM_TYPE_2 = 2|@ohos.nfc.tag.d.ts| +|新增|NA|类名:NfcForumType
方法or属性:NFC_FORUM_TYPE_2 = 2|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NfcForumType
方法 or 属性:NFC_FORUM_TYPE_3 = 3|@ohos.nfc.tag.d.ts| +|新增|NA|类名:NfcForumType
方法or属性:NFC_FORUM_TYPE_3 = 3|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NfcForumType
方法 or 属性:NFC_FORUM_TYPE_4 = 4|@ohos.nfc.tag.d.ts| +|新增|NA|类名:NfcForumType
方法or属性:NFC_FORUM_TYPE_4 = 4|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NfcForumType
方法 or 属性:MIFARE_CLASSIC = 101|@ohos.nfc.tag.d.ts| +|新增|NA|类名:NfcForumType
方法or属性:MIFARE_CLASSIC = 101|@ohos.nfc.tag.d.ts| +|新增|NA|类名:tag
方法or属性:const RTD_TEXT: number[];|@ohos.nfc.tag.d.ts| +|新增|NA|类名:tag
方法or属性:const RTD_URI: number[];|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicType|@ohos.nfc.tag.d.ts| +|新增|NA|类名:MifareClassicType
方法or属性:|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicType
方法 or 属性:TYPE_UNKNOWN = 0|@ohos.nfc.tag.d.ts| +|新增|NA|类名:MifareClassicType
方法or属性:TYPE_UNKNOWN = 0|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicType
方法 or 属性:TYPE_CLASSIC = 1|@ohos.nfc.tag.d.ts| +|新增|NA|类名:MifareClassicType
方法or属性:TYPE_CLASSIC = 1|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicType
方法 or 属性:TYPE_PLUS = 2|@ohos.nfc.tag.d.ts| +|新增|NA|类名:MifareClassicType
方法or属性:TYPE_PLUS = 2|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicType
方法 or 属性:TYPE_PRO = 3|@ohos.nfc.tag.d.ts| +|新增|NA|类名:MifareClassicType
方法or属性:TYPE_PRO = 3|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicSize|@ohos.nfc.tag.d.ts| +|新增|NA|类名:MifareClassicSize
方法or属性:|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicSize
方法 or 属性:MC_SIZE_MINI = 320|@ohos.nfc.tag.d.ts| +|新增|NA|类名:MifareClassicSize
方法or属性:MC_SIZE_MINI = 320|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicSize
方法 or 属性:MC_SIZE_1K = 1024|@ohos.nfc.tag.d.ts| +|新增|NA|类名:MifareClassicSize
方法or属性:MC_SIZE_1K = 1024|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicSize
方法 or 属性:MC_SIZE_2K = 2048|@ohos.nfc.tag.d.ts| +|新增|NA|类名:MifareClassicSize
方法or属性:MC_SIZE_2K = 2048|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicSize
方法 or 属性:MC_SIZE_4K = 4096|@ohos.nfc.tag.d.ts| +|新增|NA|类名:MifareClassicSize
方法or属性:MC_SIZE_4K = 4096|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareUltralightType|@ohos.nfc.tag.d.ts| +|新增|NA|类名:MifareUltralightType
方法or属性:|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareUltralightType
方法 or 属性:TYPE_UNKNOWN = 0|@ohos.nfc.tag.d.ts| +|新增|NA|类名:MifareUltralightType
方法or属性:TYPE_UNKNOWN = 0|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareUltralightType
方法 or 属性:TYPE_ULTRALIGHT = 1|@ohos.nfc.tag.d.ts| +|新增|NA|类名:MifareUltralightType
方法or属性:TYPE_ULTRALIGHT = 1|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareUltralightType
方法 or 属性:TYPE_ULTRALIGHT_C = 2|@ohos.nfc.tag.d.ts| +|新增|NA|类名:MifareUltralightType
方法or属性:TYPE_ULTRALIGHT_C = 2|@ohos.nfc.tag.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|类名:tag
方法or属性:function getIsoDep(tagInfo: TagInfo): IsoDepTag|@ohos.nfc.tag.d.ts| +|新增|NA|类名:tag
方法or属性:function getNdef(tagInfo: TagInfo): NdefTag|@ohos.nfc.tag.d.ts| +|新增|NA|类名:tag
方法or属性:function getMifareClassic(tagInfo: TagInfo): MifareClassicTag|@ohos.nfc.tag.d.ts| +|新增|NA|类名:tag
方法or属性:function getMifareUltralight(tagInfo: TagInfo): MifareUltralightTag|@ohos.nfc.tag.d.ts| +|新增|NA|类名:tag
方法or属性:function getNdefFormatable(tagInfo: TagInfo): NdefFormatableTag|@ohos.nfc.tag.d.ts| +|新增|NA|类名:tag
方法or属性:function getTagInfo(want: Want): TagInfo|@ohos.nfc.tag.d.ts| +|新增|NA|类名:TagInfo
方法or属性:uid: number[];|@ohos.nfc.tag.d.ts| +|新增|NA|类名:TagInfo
方法or属性:technology: number[];|@ohos.nfc.tag.d.ts| +|新增|NA|类名:TagInfo
方法or属性:extrasData: PacMap[];|@ohos.nfc.tag.d.ts| +|新增|NA|类名:TagInfo
方法or属性:tagRfDiscId: number;|@ohos.nfc.tag.d.ts| +|新增|NA|类名:TagInfo
方法or属性:remoteTagService: rpc.RemoteObject;|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NdefRecord|@ohos.nfc.tag.d.ts| +|新增|NA|类名:NdefRecord
方法or属性:|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NdefRecord
方法 or 属性:tnf: number;|@ohos.nfc.tag.d.ts| +|新增|NA|类名:NdefRecord
方法or属性:tnf: number;|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NdefRecord
方法 or 属性:rtdType: number[];|@ohos.nfc.tag.d.ts| +|新增|NA|类名:NdefRecord
方法or属性:rtdType: number[];|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NdefRecord
方法 or 属性:id: number[];|@ohos.nfc.tag.d.ts| +|新增|NA|类名:NdefRecord
方法or属性:id: number[];|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NdefRecord
方法 or 属性:payload: number[];|@ohos.nfc.tag.d.ts| +|新增|NA|类名:NdefRecord
方法or属性:payload: number[];|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef|@ohos.nfc.tag.d.ts| +|新增|NA|类名:ndef
方法or属性:|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法 or 属性:function makeUriRecord(uri: string): NdefRecord;|@ohos.nfc.tag.d.ts| +|新增|NA|类名:ndef
方法or属性:function makeUriRecord(uri: string): NdefRecord;|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法 or 属性:function makeTextRecord(text: string, locale: string): NdefRecord;|@ohos.nfc.tag.d.ts| +|新增|NA|类名:ndef
方法or属性:function makeTextRecord(text: string, locale: string): NdefRecord;|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法 or 属性:function makeMimeRecord(mimeType: string, mimeData: number[]): NdefRecord;|@ohos.nfc.tag.d.ts| +|新增|NA|类名:ndef
方法or属性:function makeMimeRecord(mimeType: string, mimeData: number[]): NdefRecord;|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法 or 属性:function makeExternalRecord(domainName: string, type: string, externalData: number[]): NdefRecord;|@ohos.nfc.tag.d.ts| +|新增|NA|类名:ndef
方法or属性:function makeExternalRecord(domainName: string, type: string, externalData: number[]): NdefRecord;|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法 or 属性:function createNdefMessage(data: number[]): NdefMessage;|@ohos.nfc.tag.d.ts| +|新增|NA|类名:ndef
方法or属性:function createNdefMessage(data: number[]): NdefMessage;|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法 or 属性:function createNdefMessage(ndefRecords: NdefRecord[]): NdefMessage;|@ohos.nfc.tag.d.ts| +|新增|NA|类名:ndef
方法or属性:function createNdefMessage(ndefRecords: NdefRecord[]): NdefMessage;|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法 or 属性:function messageToBytes(ndefMessage: NdefMessage): number[];|@ohos.nfc.tag.d.ts| +|新增|NA|类名:ndef
方法or属性:function messageToBytes(ndefMessage: NdefMessage): number[];|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode|@ohos.rpc.d.ts| +|新增|NA|类名:ErrorCode
方法or属性:|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法 or 属性:CHECK_PARAM_ERROR = 401|@ohos.rpc.d.ts| +|新增|NA|类名:ErrorCode
方法or属性:CHECK_PARAM_ERROR = 401|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法 or 属性:OS_MMAP_ERROR = 1900001|@ohos.rpc.d.ts| +|新增|NA|类名:ErrorCode
方法or属性:OS_MMAP_ERROR = 1900001|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法 or 属性:OS_IOCTL_ERROR = 1900002|@ohos.rpc.d.ts| +|新增|NA|类名:ErrorCode
方法or属性:OS_IOCTL_ERROR = 1900002|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法 or 属性:WRITE_TO_ASHMEM_ERROR = 1900003|@ohos.rpc.d.ts| +|新增|NA|类名:ErrorCode
方法or属性:WRITE_TO_ASHMEM_ERROR = 1900003|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法 or 属性:READ_FROM_ASHMEM_ERROR = 1900004|@ohos.rpc.d.ts| +|新增|NA|类名:ErrorCode
方法or属性:READ_FROM_ASHMEM_ERROR = 1900004|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法 or 属性:ONLY_PROXY_OBJECT_PERMITTED_ERROR = 1900005|@ohos.rpc.d.ts| +|新增|NA|类名:ErrorCode
方法or属性:ONLY_PROXY_OBJECT_PERMITTED_ERROR = 1900005|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法 or 属性:ONLY_REMOTE_OBJECT_PERMITTED_ERROR = 1900006|@ohos.rpc.d.ts| +|新增|NA|类名:ErrorCode
方法or属性:ONLY_REMOTE_OBJECT_PERMITTED_ERROR = 1900006|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法 or 属性:COMMUNICATION_ERROR = 1900007|@ohos.rpc.d.ts| +|新增|NA|类名:ErrorCode
方法or属性:COMMUNICATION_ERROR = 1900007|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法 or 属性:PROXY_OR_REMOTE_OBJECT_INVALID_ERROR = 1900008|@ohos.rpc.d.ts| +|新增|NA|类名:ErrorCode
方法or属性:PROXY_OR_REMOTE_OBJECT_INVALID_ERROR = 1900008|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法 or 属性:WRITE_DATA_TO_MESSAGE_SEQUENCE_ERROR = 1900009|@ohos.rpc.d.ts| +|新增|NA|类名:ErrorCode
方法or属性:WRITE_DATA_TO_MESSAGE_SEQUENCE_ERROR = 1900009|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法 or 属性:READ_DATA_FROM_MESSAGE_SEQUENCE_ERROR = 1900010|@ohos.rpc.d.ts| +|新增|NA|类名:ErrorCode
方法or属性:READ_DATA_FROM_MESSAGE_SEQUENCE_ERROR = 1900010|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法 or 属性:PARCEL_MEMORY_ALLOC_ERROR = 1900011|@ohos.rpc.d.ts| +|新增|NA|类名:ErrorCode
方法or属性:PARCEL_MEMORY_ALLOC_ERROR = 1900011|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法 or 属性:CALL_JS_METHOD_ERROR = 1900012|@ohos.rpc.d.ts| +|新增|NA|类名:ErrorCode
方法or属性:CALL_JS_METHOD_ERROR = 1900012|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法 or 属性:OS_DUP_ERROR = 1900013|@ohos.rpc.d.ts| +|新增|NA|类名:ErrorCode
方法or属性:OS_DUP_ERROR = 1900013|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:static create(): MessageSequence;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:static create(): MessageSequence;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:reclaim(): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:reclaim(): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeRemoteObject(object: IRemoteObject): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeRemoteObject(object: IRemoteObject): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readRemoteObject(): IRemoteObject;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readRemoteObject(): IRemoteObject;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeInterfaceToken(token: string): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeInterfaceToken(token: string): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readInterfaceToken(): string;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readInterfaceToken(): string;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:getSize(): number;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:getSize(): number;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:getCapacity(): number;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:getCapacity(): number;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:setSize(size: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:setSize(size: number): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:setCapacity(size: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:setCapacity(size: number): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:getWritableBytes(): number;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:getWritableBytes(): number;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:getReadableBytes(): number;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:getReadableBytes(): number;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:getReadPosition(): number;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:getReadPosition(): number;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:getWritePosition(): number;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:getWritePosition(): number;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:rewindRead(pos: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:rewindRead(pos: number): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:rewindWrite(pos: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:rewindWrite(pos: number): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeNoException(): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeNoException(): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readException(): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readException(): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeByte(val: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeByte(val: number): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeShort(val: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeShort(val: number): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeInt(val: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeInt(val: number): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeLong(val: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeLong(val: number): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeFloat(val: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeFloat(val: number): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeDouble(val: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeDouble(val: number): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeBoolean(val: boolean): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeBoolean(val: boolean): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeChar(val: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeChar(val: number): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeString(val: string): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeString(val: string): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeParcelable(val: Parcelable): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeParcelable(val: Parcelable): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeByteArray(byteArray: number[]): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeByteArray(byteArray: number[]): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeShortArray(shortArray: number[]): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeShortArray(shortArray: number[]): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeIntArray(intArray: number[]): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeIntArray(intArray: number[]): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeLongArray(longArray: number[]): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeLongArray(longArray: number[]): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeFloatArray(floatArray: number[]): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeFloatArray(floatArray: number[]): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeDoubleArray(doubleArray: number[]): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeDoubleArray(doubleArray: number[]): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeBooleanArray(booleanArray: boolean[]): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeBooleanArray(booleanArray: boolean[]): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeCharArray(charArray: number[]): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeCharArray(charArray: number[]): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeStringArray(stringArray: string[]): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeStringArray(stringArray: string[]): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeParcelableArray(parcelableArray: Parcelable[]): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeParcelableArray(parcelableArray: Parcelable[]): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeRemoteObjectArray(objectArray: IRemoteObject[]): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeRemoteObjectArray(objectArray: IRemoteObject[]): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readByte(): number;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readByte(): number;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readShort(): number;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readShort(): number;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readInt(): number;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readInt(): number;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readLong(): number;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readLong(): number;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readFloat(): number;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readFloat(): number;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readDouble(): number;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readDouble(): number;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readBoolean(): boolean;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readBoolean(): boolean;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readChar(): number;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readChar(): number;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readString(): string;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readString(): string;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readParcelable(dataIn: Parcelable) : void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readParcelable(dataIn: Parcelable) : void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readByteArray(dataIn: number[]) : void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readByteArray(dataIn: number[]) : void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readByteArray(): number[];|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readByteArray(): number[];|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readShortArray(dataIn: number[]) : void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readShortArray(dataIn: number[]) : void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readShortArray(): number[];|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readShortArray(): number[];|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readIntArray(dataIn: number[]) : void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readIntArray(dataIn: number[]) : void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readIntArray(): number[];|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readIntArray(): number[];|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readLongArray(dataIn: number[]) : void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readLongArray(dataIn: number[]) : void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readLongArray(): number[];|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readLongArray(): number[];|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readFloatArray(dataIn: number[]) : void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readFloatArray(dataIn: number[]) : void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readFloatArray(): number[];|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readFloatArray(): number[];|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readDoubleArray(dataIn: number[]) : void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readDoubleArray(dataIn: number[]) : void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readDoubleArray(): number[];|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readDoubleArray(): number[];|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readBooleanArray(dataIn: boolean[]) : void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readBooleanArray(dataIn: boolean[]) : void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readBooleanArray(): boolean[];|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readBooleanArray(): boolean[];|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readCharArray(dataIn: number[]) : void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readCharArray(dataIn: number[]) : void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readCharArray(): number[];|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readCharArray(): number[];|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readStringArray(dataIn: string[]) : void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readStringArray(dataIn: string[]) : void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readStringArray(): string[];|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readStringArray(): string[];|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readParcelableArray(parcelableArray: Parcelable[]): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readParcelableArray(parcelableArray: Parcelable[]): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readRemoteObjectArray(objects: IRemoteObject[]): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readRemoteObjectArray(objects: IRemoteObject[]): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readRemoteObjectArray(): IRemoteObject[];|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readRemoteObjectArray(): IRemoteObject[];|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:static closeFileDescriptor(fd: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:static closeFileDescriptor(fd: number): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:static dupFileDescriptor(fd: number) :number;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:static dupFileDescriptor(fd: number) :number;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:containFileDescriptors(): boolean;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:containFileDescriptors(): boolean;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeFileDescriptor(fd: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeFileDescriptor(fd: number): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readFileDescriptor(): number;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readFileDescriptor(): number;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeAshmem(ashmem: Ashmem): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeAshmem(ashmem: Ashmem): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readAshmem(): Ashmem;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readAshmem(): Ashmem;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:getRawDataCapacity(): number;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:getRawDataCapacity(): number;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:writeRawData(rawData: number[], size: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:writeRawData(rawData: number[], size: number): void;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法 or 属性:readRawData(size: number): number[];|@ohos.rpc.d.ts| +|新增|NA|类名:MessageSequence
方法or属性:readRawData(size: number): number[];|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: Parcelable|@ohos.rpc.d.ts| +|新增|NA|类名:Parcelable
方法or属性:|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: Parcelable
方法 or 属性:marshalling(dataOut: MessageSequence): boolean;|@ohos.rpc.d.ts| +|新增|NA|类名:Parcelable
方法or属性:marshalling(dataOut: MessageSequence): boolean;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: Parcelable
方法 or 属性:unmarshalling(dataIn: MessageSequence) : boolean;|@ohos.rpc.d.ts| +|新增|NA|类名:Parcelable
方法or属性:unmarshalling(dataIn: MessageSequence) : boolean;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: RequestResult|@ohos.rpc.d.ts| +|新增|NA|类名:RequestResult
方法or属性:|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: RequestResult
方法 or 属性:errCode: number;|@ohos.rpc.d.ts| +|新增|NA|类名:RequestResult
方法or属性:errCode: number;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: RequestResult
方法 or 属性:code: number;|@ohos.rpc.d.ts| +|新增|NA|类名:RequestResult
方法or属性:code: number;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: RequestResult
方法 or 属性:data: MessageSequence;|@ohos.rpc.d.ts| +|新增|NA|类名:RequestResult
方法or属性:data: MessageSequence;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: RequestResult
方法 or 属性:reply: MessageSequence;|@ohos.rpc.d.ts| +|新增|NA|类名:RequestResult
方法or属性:reply: MessageSequence;|@ohos.rpc.d.ts| +|新增|NA|类名:IRemoteObject
方法or属性:getLocalInterface(descriptor: string): IRemoteBroker;|@ohos.rpc.d.ts| +|新增|NA|类名:IRemoteObject
方法or属性:sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, options: MessageOption): Promise\;|@ohos.rpc.d.ts| +|新增|NA|类名:IRemoteObject
方法or属性:sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, options: MessageOption, callback: AsyncCallback\): void;|@ohos.rpc.d.ts| +|新增|NA|类名:IRemoteObject
方法or属性:registerDeathRecipient(recipient: DeathRecipient, flags: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:IRemoteObject
方法or属性:unregisterDeathRecipient(recipient: DeathRecipient, flags: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:IRemoteObject
方法or属性:getDescriptor(): string;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageOption
方法or属性:TF_SYNC: number;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageOption
方法or属性:TF_ASYNC: number;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageOption
方法or属性:TF_ACCEPT_FDS: number;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageOption
方法or属性:TF_WAIT_TIME: number;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageOption
方法or属性:constructor(syncFlags?: number, waitTime?: number);|@ohos.rpc.d.ts| +|新增|NA|类名:MessageOption
方法or属性:constructor(async?: boolean);|@ohos.rpc.d.ts| +|新增|NA|类名:MessageOption
方法or属性:isAsync(): boolean;|@ohos.rpc.d.ts| +|新增|NA|类名:MessageOption
方法or属性:setAsync(async: boolean): void;|@ohos.rpc.d.ts| +|新增|NA|类名:RemoteObject
方法or属性:getLocalInterface(descriptor: string): IRemoteBroker;|@ohos.rpc.d.ts| +|新增|NA|类名:RemoteObject
方法or属性:getDescriptor(): string;|@ohos.rpc.d.ts| +|新增|NA|类名:RemoteObject
方法or属性:onRemoteMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, options: MessageOption): boolean \| Promise\;|@ohos.rpc.d.ts| +|新增|NA|类名:RemoteObject
方法or属性:sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, options: MessageOption): Promise\;|@ohos.rpc.d.ts| +|新增|NA|类名:RemoteObject
方法or属性:sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, options: MessageOption, callback: AsyncCallback\): void;|@ohos.rpc.d.ts| +|新增|NA|类名:RemoteObject
方法or属性:modifyLocalInterface(localInterface: IRemoteBroker, descriptor: string): void;|@ohos.rpc.d.ts| +|新增|NA|类名:RemoteProxy
方法or属性:PING_TRANSACTION: number;|@ohos.rpc.d.ts| +|新增|NA|类名:RemoteProxy
方法or属性:DUMP_TRANSACTION: number;|@ohos.rpc.d.ts| +|新增|NA|类名:RemoteProxy
方法or属性:INTERFACE_TRANSACTION: number;|@ohos.rpc.d.ts| +|新增|NA|类名:RemoteProxy
方法or属性:MIN_TRANSACTION_ID: number;|@ohos.rpc.d.ts| +|新增|NA|类名:RemoteProxy
方法or属性:MAX_TRANSACTION_ID: number;|@ohos.rpc.d.ts| +|新增|NA|类名:RemoteProxy
方法or属性:getLocalInterface(interface: string): IRemoteBroker;|@ohos.rpc.d.ts| +|新增|NA|类名:RemoteProxy
方法or属性:registerDeathRecipient(recipient: DeathRecipient, flags: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:RemoteProxy
方法or属性:unregisterDeathRecipient(recipient: DeathRecipient, flags: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:RemoteProxy
方法or属性:getDescriptor(): string;|@ohos.rpc.d.ts| +|新增|NA|类名:RemoteProxy
方法or属性:sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, options: MessageOption): Promise\;|@ohos.rpc.d.ts| +|新增|NA|类名:RemoteProxy
方法or属性:sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, options: MessageOption, callback: AsyncCallback\): void;|@ohos.rpc.d.ts| +|新增|NA|类名:IPCSkeleton
方法or属性:static flushCmdBuffer(object: IRemoteObject): void;|@ohos.rpc.d.ts| +|新增|NA|类名:IPCSkeleton
方法or属性:static restoreCallingIdentity(identity: string): void;|@ohos.rpc.d.ts| +|新增|NA|类名:Ashmem
方法or属性:PROT_EXEC: number;|@ohos.rpc.d.ts| +|新增|NA|类名:Ashmem
方法or属性:PROT_NONE: number;|@ohos.rpc.d.ts| +|新增|NA|类名:Ashmem
方法or属性:PROT_READ: number;|@ohos.rpc.d.ts| +|新增|NA|类名:Ashmem
方法or属性:PROT_WRITE: number;|@ohos.rpc.d.ts| +|新增|NA|类名:Ashmem
方法or属性:static create(name: string, size: number): Ashmem;|@ohos.rpc.d.ts| +|新增|NA|类名:Ashmem
方法or属性:static create(ashmem: Ashmem): Ashmem;|@ohos.rpc.d.ts| +|新增|NA|类名:Ashmem
方法or属性:mapTypedAshmem(mapType: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:Ashmem
方法or属性:mapReadWriteAshmem(): void;|@ohos.rpc.d.ts| +|新增|NA|类名:Ashmem
方法or属性:mapReadonlyAshmem(): void;|@ohos.rpc.d.ts| +|新增|NA|类名:Ashmem
方法or属性:setProtectionType(protectionType: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:Ashmem
方法or属性:writeAshmem(buf: number[], size: number, offset: number): void;|@ohos.rpc.d.ts| +|新增|NA|类名:Ashmem
方法or属性:readAshmem(size: number, offset: number): number[];|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function enableWifi(): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function disableWifi(): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function isWifiActive(): boolean;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function scan(): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getScanResults(): Promise\>;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getScanResults(callback: AsyncCallback\>): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getScanResultsSync(): Array\;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function addDeviceConfig(config: WifiDeviceConfig): Promise\;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function addDeviceConfig(config: WifiDeviceConfig, callback: AsyncCallback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function addCandidateConfig(config: WifiDeviceConfig): Promise\;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function addCandidateConfig(config: WifiDeviceConfig, callback: AsyncCallback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function removeCandidateConfig(networkId: number): Promise\;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function removeCandidateConfig(networkId: number, callback: AsyncCallback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getCandidateConfigs(): Array\;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function connectToCandidateConfig(networkId: number): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function connectToNetwork(networkId: number): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function connectToDevice(config: WifiDeviceConfig): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function disconnect(): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getSignalLevel(rssi: number, band: number): number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getLinkedInfo(): Promise\;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getLinkedInfo(callback: AsyncCallback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function isConnected(): boolean;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getSupportedFeatures(): number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function isFeatureSupported(featureId: number): boolean;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getDeviceMacAddress(): string[];|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getIpInfo(): IpInfo;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getCountryCode(): string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function reassociate(): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function reconnect(): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getDeviceConfigs(): Array\;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function updateNetwork(config: WifiDeviceConfig): number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function disableNetwork(netId: number): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function removeAllNetwork(): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function removeDevice(id: number): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function enableHotspot(): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function disableHotspot(): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function isHotspotDualBandSupported(): boolean;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function isHotspotActive(): boolean;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function setHotspotConfig(config: HotspotConfig): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getHotspotConfig(): HotspotConfig;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getStations(): Array\;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getP2pLinkedInfo(): Promise\;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getP2pLinkedInfo(callback: AsyncCallback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getCurrentGroup(): Promise\;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getCurrentGroup(callback: AsyncCallback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getP2pPeerDevices(): Promise\;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getP2pPeerDevices(callback: AsyncCallback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getP2pLocalDevice(): Promise\;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getP2pLocalDevice(callback: AsyncCallback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function createGroup(config: WifiP2PConfig): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function removeGroup(): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function p2pConnect(config: WifiP2PConfig): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function p2pCancelConnect(): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function startDiscoverDevices(): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function stopDiscoverDevices(): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function deletePersistentGroup(netId: number): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getP2pGroups(): Promise\>;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function getP2pGroups(callback: AsyncCallback\>): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function setDeviceName(devName: string): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function on(type: "wifiStateChange", callback: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function off(type: "wifiStateChange", callback?: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function on(type: "wifiConnectionChange", callback: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function off(type: "wifiConnectionChange", callback?: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function on(type: "wifiScanStateChange", callback: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function off(type: "wifiScanStateChange", callback?: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function on(type: "wifiRssiChange", callback: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function off(type: "wifiRssiChange", callback?: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function on(type: "streamChange", callback: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function off(type: "streamChange", callback?: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function on(type: "deviceConfigChange", callback: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function off(type: "deviceConfigChange", callback?: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function on(type: "hotspotStateChange", callback: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function off(type: "hotspotStateChange", callback?: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function on(type: "hotspotStaJoin", callback: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function off(type: "hotspotStaJoin", callback?: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function on(type: "hotspotStaLeave", callback: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function off(type: "hotspotStaLeave", callback?: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function on(type: "p2pStateChange", callback: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function off(type: "p2pStateChange", callback?: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function on(type: "p2pConnectionChange", callback: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function off(type: "p2pConnectionChange", callback?: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function on(type: "p2pDeviceChange", callback: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function off(type: "p2pDeviceChange", callback?: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function on(type: "p2pPeerDeviceChange", callback: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function off(type: "p2pPeerDeviceChange", callback?: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function on(type: "p2pPersistentGroupChange", callback: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function off(type: "p2pPersistentGroupChange", callback?: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function on(type: "p2pDiscoveryChange", callback: Callback\): void;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法 or 属性: function off(type: "p2pDiscoveryChange", callback?: Callback\): void;|@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: EapMethod;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法 or 属性: phase2Method: Phase2Method;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法 or 属性: identity: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法 or 属性: anonymousIdentity: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法 or 属性: password: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法 or 属性: caCertAliases: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法 or 属性: caPath: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法 or 属性: clientCertAliases: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法 or 属性: certEntry: Uint8Array;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法 or 属性: certPassword: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法 or 属性: altSubjectMatch: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法 or 属性: domainSuffixMatch: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法 or 属性: realm: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法 or 属性: plmn: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法 or 属性: eapSubId: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法 or 属性: ssid: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法 or 属性: bssid?: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法 or 属性: preSharedKey: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法 or 属性: isHiddenSsid?: boolean;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法 or 属性: securityType: WifiSecurityType;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法 or 属性: creatorUid?: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法 or 属性: disableReason?: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法 or 属性: netId?: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法 or 属性: randomMacType?: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法 or 属性: randomMacAddr?: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法 or 属性: ipType?: IpType;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法 or 属性: staticIp?: IpConfig;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法 or 属性: eapConfig?: WifiEapConfig;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpConfig
方法 or 属性: ipAddress: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpConfig
方法 or 属性: gateway: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpConfig
方法 or 属性: prefixLength: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpConfig
方法 or 属性: dnsServers: number[];|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpConfig
方法 or 属性: domains: Array\;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiInfoElem|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiInfoElem
方法 or 属性: eid: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiInfoElem
方法 or 属性: content: Uint8Array;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiChannelWidth|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiChannelWidth
方法 or 属性: WIDTH_20MHZ = 0|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiChannelWidth
方法 or 属性: WIDTH_40MHZ = 1|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiChannelWidth
方法 or 属性: WIDTH_80MHZ = 2|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiChannelWidth
方法 or 属性: WIDTH_160MHZ = 3|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiChannelWidth
方法 or 属性: WIDTH_80MHZ_PLUS = 4|@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: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法 or 属性: bssid: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法 or 属性: capabilities: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法 or 属性: securityType: WifiSecurityType;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法 or 属性: rssi: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法 or 属性: band: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法 or 属性: frequency: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法 or 属性: channelWidth: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法 or 属性: centerFrequency0: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法 or 属性: centerFrequency1: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法 or 属性: infoElems: Array\;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法 or 属性: timestamp: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法 or 属性: WIFI_SEC_TYPE_INVALID = 0|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法 or 属性: WIFI_SEC_TYPE_OPEN = 1|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法 or 属性: WIFI_SEC_TYPE_WEP = 2|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法 or 属性: WIFI_SEC_TYPE_PSK = 3|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法 or 属性: WIFI_SEC_TYPE_SAE = 4|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法 or 属性: WIFI_SEC_TYPE_EAP = 5|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法 or 属性: WIFI_SEC_TYPE_EAP_SUITE_B = 6|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法 or 属性: WIFI_SEC_TYPE_OWE = 7|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法 or 属性: WIFI_SEC_TYPE_WAPI_CERT = 8|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法 or 属性: WIFI_SEC_TYPE_WAPI_PSK = 9|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法 or 属性: ssid: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法 or 属性: bssid: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法 or 属性: networkId: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法 or 属性: rssi: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法 or 属性: band: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法 or 属性: linkSpeed: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法 or 属性: frequency: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法 or 属性: isHidden: boolean;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法 or 属性: isRestricted: boolean;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法 or 属性: chload: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法 or 属性: snr: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法 or 属性: macType: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法 or 属性: macAddress: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法 or 属性: ipAddress: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法 or 属性: suppState: SuppState;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法 or 属性: connState: ConnState;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法 or 属性: ipAddress: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法 or 属性: gateway: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法 or 属性: netmask: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法 or 属性: primaryDns: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法 or 属性: secondDns: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法 or 属性: serverIp: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法 or 属性: leaseDuration: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: HotspotConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: HotspotConfig
方法 or 属性: ssid: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: HotspotConfig
方法 or 属性: securityType: WifiSecurityType;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: HotspotConfig
方法 or 属性: band: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: HotspotConfig
方法 or 属性: preSharedKey: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: HotspotConfig
方法 or 属性: maxConn: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: StationInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: StationInfo
方法 or 属性: name: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: StationInfo
方法 or 属性: macAddress: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: StationInfo
方法 or 属性: ipAddress: string;|@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: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pDevice
方法 or 属性: deviceAddress: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pDevice
方法 or 属性: primaryDeviceType: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pDevice
方法 or 属性: deviceStatus: P2pDeviceStatus;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pDevice
方法 or 属性: groupCapabilities: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2PConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2PConfig
方法 or 属性: deviceAddress: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2PConfig
方法 or 属性: netId: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2PConfig
方法 or 属性: passphrase: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2PConfig
方法 or 属性: groupName: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2PConfig
方法 or 属性: goBand: GroupOwnerBand;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法 or 属性: isP2pGo: boolean;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法 or 属性: ownerInfo: WifiP2pDevice;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法 or 属性: passphrase: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法 or 属性: interface: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法 or 属性: groupName: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法 or 属性: networkId: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法 or 属性: frequency: number;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法 or 属性: clientDevices: WifiP2pDevice[];|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法 or 属性: goIpAddress: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pConnectState|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pConnectState
方法 or 属性: DISCONNECTED = 0|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pConnectState
方法 or 属性: CONNECTED = 1|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pLinkedInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pLinkedInfo
方法 or 属性: connectState: P2pConnectState;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pLinkedInfo
方法 or 属性: isGroupOwner: boolean;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pLinkedInfo
方法 or 属性: groupOwnerAddr: string;|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pDeviceStatus|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法 or 属性: CONNECTED = 0|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法 or 属性: INVITED = 1|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法 or 属性: FAILED = 2|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法 or 属性: AVAILABLE = 3|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法 or 属性: UNAVAILABLE = 4|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: GroupOwnerBand|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: GroupOwnerBand
方法 or 属性: GO_BAND_AUTO = 0|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: GroupOwnerBand
方法 or 属性: GO_BAND_2GHZ = 1|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: GroupOwnerBand
方法 or 属性: GO_BAND_5GHZ = 2|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法 or 属性: function enableHotspot(): void;|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法 or 属性: function disableHotspot(): void;|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法 or 属性: function getSupportedPowerMode(): Promise\>;|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法 or 属性: function getSupportedPowerMode(callback: AsyncCallback\>): void;|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法 or 属性: function getPowerMode (): Promise\;|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法 or 属性: function getPowerMode (callback: AsyncCallback\): void;|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法 or 属性: function setPowerMode(mode: PowerMode) : void|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: PowerMode|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: PowerMode
方法 or 属性: SLEEPING = 0|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: PowerMode
方法 or 属性: GENERAL = 1|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: PowerMode
方法 or 属性: THROUGH_WALL = 2|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: nfctech
类名: IsoDepTag|nfctech.d.ts| +|新增|NA|类名:IsoDepTag
方法or属性:|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: IsoDepTag
方法 or 属性:getHistoricalBytes(): number[];|nfctech.d.ts| +|新增|NA|类名:IsoDepTag
方法or属性:getHistoricalBytes(): number[];|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: IsoDepTag
方法 or 属性:getHiLayerResponse(): number[];|nfctech.d.ts| +|新增|NA|类名:IsoDepTag
方法or属性:getHiLayerResponse(): number[];|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: IsoDepTag
方法 or 属性:isExtendedApduSupported(): Promise\;|nfctech.d.ts| +|新增|NA|类名:IsoDepTag
方法or属性:isExtendedApduSupported(): Promise\;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: IsoDepTag
方法 or 属性:isExtendedApduSupported(callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|类名:IsoDepTag
方法or属性:isExtendedApduSupported(callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: NdefMessage|nfctech.d.ts| +|新增|NA|类名:NdefMessage
方法or属性:|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: NdefMessage
方法 or 属性:getNdefRecords(): tag.NdefRecord[];|nfctech.d.ts| +|新增|NA|类名:NdefMessage
方法or属性:getNdefRecords(): tag.NdefRecord[];|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: NdefTag|nfctech.d.ts| +|新增|NA|类名:NdefTag
方法or属性:|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: NdefTag
方法 or 属性:getNdefTagType(): tag.NfcForumType;|nfctech.d.ts| +|新增|NA|类名:NdefTag
方法or属性:getNdefTagType(): tag.NfcForumType;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: NdefTag
方法 or 属性:getNdefMessage(): NdefMessage;|nfctech.d.ts| +|新增|NA|类名:NdefTag
方法or属性:getNdefMessage(): NdefMessage;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: NdefTag
方法 or 属性:isNdefWritable(): boolean;|nfctech.d.ts| +|新增|NA|类名:NdefTag
方法or属性:isNdefWritable(): boolean;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: NdefTag
方法 or 属性:readNdef(): Promise\;|nfctech.d.ts| +|新增|NA|类名:NdefTag
方法or属性:readNdef(): Promise\;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: NdefTag
方法 or 属性:readNdef(callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|类名:NdefTag
方法or属性:readNdef(callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: NdefTag
方法 or 属性:writeNdef(msg: NdefMessage): Promise\;|nfctech.d.ts| +|新增|NA|类名:NdefTag
方法or属性:writeNdef(msg: NdefMessage): Promise\;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: NdefTag
方法 or 属性:writeNdef(msg: NdefMessage, callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|类名:NdefTag
方法or属性:writeNdef(msg: NdefMessage, callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: NdefTag
方法 or 属性:canSetReadOnly(): boolean;|nfctech.d.ts| +|新增|NA|类名:NdefTag
方法or属性:canSetReadOnly(): boolean;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: NdefTag
方法 or 属性:setReadOnly(): Promise\;|nfctech.d.ts| +|新增|NA|类名:NdefTag
方法or属性:setReadOnly(): Promise\;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: NdefTag
方法 or 属性:setReadOnly(callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|类名:NdefTag
方法or属性:setReadOnly(callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: NdefTag
方法 or 属性:getNdefTagTypeString(type: tag.NfcForumType): string;|nfctech.d.ts| +|新增|NA|类名:NdefTag
方法or属性:getNdefTagTypeString(type: tag.NfcForumType): string;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean): Promise\;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean): Promise\;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean, callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean, callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:readSingleBlock(blockIndex: number): Promise\;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:readSingleBlock(blockIndex: number): Promise\;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:readSingleBlock(blockIndex: number, callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:readSingleBlock(blockIndex: number, callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:writeSingleBlock(blockIndex: number, data: number[]): Promise\;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:writeSingleBlock(blockIndex: number, data: number[]): Promise\;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:writeSingleBlock(blockIndex: number, data: number[], callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:writeSingleBlock(blockIndex: number, data: number[], callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:incrementBlock(blockIndex: number, value: number): Promise\;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:incrementBlock(blockIndex: number, value: number): Promise\;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:incrementBlock(blockIndex: number, value: number, callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:incrementBlock(blockIndex: number, value: number, callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:decrementBlock(blockIndex: number, value: number): Promise\;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:decrementBlock(blockIndex: number, value: number): Promise\;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:decrementBlock(blockIndex: number, value: number, callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:decrementBlock(blockIndex: number, value: number, callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:transferToBlock(blockIndex: number): Promise\;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:transferToBlock(blockIndex: number): Promise\;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:transferToBlock(blockIndex: number, callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:transferToBlock(blockIndex: number, callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:restoreFromBlock(blockIndex: number): Promise\;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:restoreFromBlock(blockIndex: number): Promise\;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:restoreFromBlock(blockIndex: number, callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:restoreFromBlock(blockIndex: number, callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:getSectorCount(): number;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:getSectorCount(): number;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:getBlockCountInSector(sectorIndex: number): number;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:getBlockCountInSector(sectorIndex: number): number;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:getType(): tag.MifareClassicType;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:getType(): tag.MifareClassicType;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:getTagSize(): number;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:getTagSize(): number;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:isEmulatedTag(): boolean;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:isEmulatedTag(): boolean;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:getBlockIndex(sectorIndex: number): number;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:getBlockIndex(sectorIndex: number): number;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareClassicTag
方法 or 属性:getSectorIndex(blockIndex: number): number;|nfctech.d.ts| +|新增|NA|类名:MifareClassicTag
方法or属性:getSectorIndex(blockIndex: number): number;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareUltralightTag|nfctech.d.ts| +|新增|NA|类名:MifareUltralightTag
方法or属性:|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareUltralightTag
方法 or 属性:readMultiplePages(pageIndex: number): Promise\;|nfctech.d.ts| +|新增|NA|类名:MifareUltralightTag
方法or属性:readMultiplePages(pageIndex: number): Promise\;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareUltralightTag
方法 or 属性:readMultiplePages(pageIndex: number, callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|类名:MifareUltralightTag
方法or属性:readMultiplePages(pageIndex: number, callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareUltralightTag
方法 or 属性:writeSinglePage(pageIndex: number, data: number[]): Promise\;|nfctech.d.ts| +|新增|NA|类名:MifareUltralightTag
方法or属性:writeSinglePage(pageIndex: number, data: number[]): Promise\;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareUltralightTag
方法 or 属性:writeSinglePage(pageIndex: number, data: number[], callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|类名:MifareUltralightTag
方法or属性:writeSinglePage(pageIndex: number, data: number[], callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: MifareUltralightTag
方法 or 属性:getType(): tag.MifareUltralightType;|nfctech.d.ts| +|新增|NA|类名:MifareUltralightTag
方法or属性:getType(): tag.MifareUltralightType;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: NdefFormatableTag|nfctech.d.ts| +|新增|NA|类名:NdefFormatableTag
方法or属性:|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: NdefFormatableTag
方法 or 属性:format(message: NdefMessage): Promise\;|nfctech.d.ts| +|新增|NA|类名:NdefFormatableTag
方法or属性:format(message: NdefMessage): Promise\;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: NdefFormatableTag
方法 or 属性:format(message: NdefMessage, callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|类名:NdefFormatableTag
方法or属性:format(message: NdefMessage, callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: NdefFormatableTag
方法 or 属性:formatReadOnly(message: NdefMessage): Promise\;|nfctech.d.ts| +|新增|NA|类名:NdefFormatableTag
方法or属性:formatReadOnly(message: NdefMessage): Promise\;|nfctech.d.ts| +|新增|NA|模块名: nfctech
类名: NdefFormatableTag
方法 or 属性:formatReadOnly(message: NdefMessage, callback: AsyncCallback\): void;|nfctech.d.ts| +|新增|NA|类名:NdefFormatableTag
方法or属性:formatReadOnly(message: NdefMessage, callback: AsyncCallback\): void;|nfctech.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.rpc
类名:IRemoteObject|NA|@ohos.rpc.d.ts| +|废弃版本有变化|类名:bluetooth
废弃版本:N/A|类名:bluetooth
废弃版本:9
代替接口:ohos.bluetoothManager |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function getState(): BluetoothState;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function getState(): BluetoothState;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.getState |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function getBtConnectionState(): ProfileConnectionState;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function getBtConnectionState(): ProfileConnectionState;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.getBtConnectionState |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function pairDevice(deviceId: string): boolean;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function pairDevice(deviceId: string): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.pairDevice |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function cancelPairedDevice(deviceId: string): boolean;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function cancelPairedDevice(deviceId: string): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.cancelPairedDevice |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function getRemoteDeviceName(deviceId: string): string;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function getRemoteDeviceName(deviceId: string): string;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.getRemoteDeviceName |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function getRemoteDeviceClass(deviceId: string): DeviceClass;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function getRemoteDeviceClass(deviceId: string): DeviceClass;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.getRemoteDeviceClass |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function enableBluetooth(): boolean;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function enableBluetooth(): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.enableBluetooth |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function disableBluetooth(): boolean;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function disableBluetooth(): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.disableBluetooth |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function getLocalName(): string;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function getLocalName(): string;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.getLocalName |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function getPairedDevices(): Array\;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function getPairedDevices(): Array\;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.getPairedDevices |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function getProfileConnState(profileId: ProfileId): ProfileConnectionState;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function getProfileConnState(profileId: ProfileId): ProfileConnectionState;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.getProfileConnectionState |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function setDevicePairingConfirmation(device: string, accept: boolean): boolean;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function setDevicePairingConfirmation(device: string, accept: boolean): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.setDevicePairingConfirmation |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function setLocalName(name: string): boolean;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function setLocalName(name: string): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.setLocalName |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function setBluetoothScanMode(mode: ScanMode, duration: number): boolean;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function setBluetoothScanMode(mode: ScanMode, duration: number): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.setBluetoothScanMode |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function getBluetoothScanMode(): ScanMode;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function getBluetoothScanMode(): ScanMode;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.getBluetoothScanMode |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function startBluetoothDiscovery(): boolean;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function startBluetoothDiscovery(): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.startBluetoothDiscovery |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function stopBluetoothDiscovery(): boolean;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function stopBluetoothDiscovery(): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.stopBluetoothDiscovery |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function on(type: "bluetoothDeviceFind", callback: Callback\>): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function on(type: "bluetoothDeviceFind", callback: Callback\>): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.on|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function off(type: "bluetoothDeviceFind", callback?: Callback\>): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function off(type: "bluetoothDeviceFind", callback?: Callback\>): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.off|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function on(type: "bondStateChange", callback: Callback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function on(type: "bondStateChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.on|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function off(type: "bondStateChange", callback?: Callback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function off(type: "bondStateChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.off|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function on(type: "pinRequired", callback: Callback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function on(type: "pinRequired", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.on|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function off(type: "pinRequired", callback?: Callback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function off(type: "pinRequired", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.off|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function on(type: "stateChange", callback: Callback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function on(type: "stateChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.on|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function off(type: "stateChange", callback?: Callback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function off(type: "stateChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.off|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function sppListen(name: string, option: SppOption, callback: AsyncCallback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function sppListen(name: string, option: SppOption, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.sppListen |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function sppAccept(serverSocket: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function sppAccept(serverSocket: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.sppAccept |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function sppConnect(device: string, option: SppOption, callback: AsyncCallback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function sppConnect(device: string, option: SppOption, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.sppConnect |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function sppCloseServerSocket(socket: number): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function sppCloseServerSocket(socket: number): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.sppCloseServerSocket |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function sppCloseClientSocket(socket: number): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function sppCloseClientSocket(socket: number): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.sppCloseClientSocket |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function sppWrite(clientSocket: number, data: ArrayBuffer): boolean;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function sppWrite(clientSocket: number, data: ArrayBuffer): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.sppWrite |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function on(type: "sppRead", clientSocket: number, callback: Callback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function on(type: "sppRead", clientSocket: number, callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.on|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function off(type: "sppRead", clientSocket: number, callback?: Callback\): void;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function off(type: "sppRead", clientSocket: number, callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.off|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:bluetooth
方法 or 属性:function getProfile(profileId: ProfileId): A2dpSourceProfile \| HandsFreeAudioGatewayProfile;
废弃版本:N/A|类名:bluetooth
方法 or 属性:function getProfile(profileId: ProfileId): A2dpSourceProfile \| HandsFreeAudioGatewayProfile;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.getProfileInstance |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BaseProfile
废弃版本:N/A|类名:BaseProfile
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BaseProfile |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BaseProfile
方法 or 属性:getConnectionDevices(): Array\;
废弃版本:N/A|类名:BaseProfile
方法 or 属性:getConnectionDevices(): Array\;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BaseProfile|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BaseProfile
方法 or 属性:getDeviceState(device: string): ProfileConnectionState;
废弃版本:N/A|类名:BaseProfile
方法 or 属性:getDeviceState(device: string): ProfileConnectionState;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BaseProfile|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:A2dpSourceProfile
废弃版本:N/A|类名:A2dpSourceProfile
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.A2dpSourceProfile |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:A2dpSourceProfile
方法 or 属性:connect(device: string): boolean;
废弃版本:N/A|类名:A2dpSourceProfile
方法 or 属性:connect(device: string): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.A2dpSourceProfile|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:A2dpSourceProfile
方法 or 属性:disconnect(device: string): boolean;
废弃版本:N/A|类名:A2dpSourceProfile
方法 or 属性:disconnect(device: string): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.A2dpSourceProfile|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:A2dpSourceProfile
方法 or 属性:on(type: "connectionStateChange", callback: Callback\): void;
废弃版本:N/A|类名:A2dpSourceProfile
方法 or 属性:on(type: "connectionStateChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.A2dpSourceProfile.on|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:A2dpSourceProfile
方法 or 属性:off(type: "connectionStateChange", callback?: Callback\): void;
废弃版本:N/A|类名:A2dpSourceProfile
方法 or 属性:off(type: "connectionStateChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.A2dpSourceProfile.off|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:A2dpSourceProfile
方法 or 属性:getPlayingState(device: string): PlayingState;
废弃版本:N/A|类名:A2dpSourceProfile
方法 or 属性:getPlayingState(device: string): PlayingState;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.A2dpSourceProfile|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:HandsFreeAudioGatewayProfile
废弃版本:N/A|类名:HandsFreeAudioGatewayProfile
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.HandsFreeAudioGatewayProfile |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:HandsFreeAudioGatewayProfile
方法 or 属性:connect(device: string): boolean;
废弃版本:N/A|类名:HandsFreeAudioGatewayProfile
方法 or 属性:connect(device: string): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.HandsFreeAudioGatewayProfile|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:HandsFreeAudioGatewayProfile
方法 or 属性:disconnect(device: string): boolean;
废弃版本:N/A|类名:HandsFreeAudioGatewayProfile
方法 or 属性:disconnect(device: string): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.HandsFreeAudioGatewayProfile|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:HandsFreeAudioGatewayProfile
方法 or 属性:on(type: "connectionStateChange", callback: Callback\): void;
废弃版本:N/A|类名:HandsFreeAudioGatewayProfile
方法 or 属性:on(type: "connectionStateChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.HandsFreeAudioGatewayProfile.on|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:HandsFreeAudioGatewayProfile
方法 or 属性:off(type: "connectionStateChange", callback?: Callback\): void;
废弃版本:N/A|类名:HandsFreeAudioGatewayProfile
方法 or 属性:off(type: "connectionStateChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.HandsFreeAudioGatewayProfile.off|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BLE
方法 or 属性:function createGattServer(): GattServer;
废弃版本:N/A|类名:BLE
方法 or 属性:function createGattServer(): GattServer;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BLE.createGattServer |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BLE
方法 or 属性:function createGattClientDevice(deviceId: string): GattClientDevice;
废弃版本:N/A|类名:BLE
方法 or 属性:function createGattClientDevice(deviceId: string): GattClientDevice;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BLE.createGattClientDevice |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BLE
方法 or 属性:function getConnectedBLEDevices(): Array\;
废弃版本:N/A|类名:BLE
方法 or 属性:function getConnectedBLEDevices(): Array\;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BLE.getConnectedBLEDevices |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BLE
方法 or 属性:function startBLEScan(filters: Array\, options?: ScanOptions): void;
废弃版本:N/A|类名:BLE
方法 or 属性:function startBLEScan(filters: Array\, options?: ScanOptions): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BLE.startBLEScan |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BLE
方法 or 属性:function stopBLEScan(): void;
废弃版本:N/A|类名:BLE
方法 or 属性:function stopBLEScan(): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BLE.stopBLEScan |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BLE
方法 or 属性:function on(type: "BLEDeviceFind", callback: Callback\>): void;
废弃版本:N/A|类名:BLE
方法 or 属性:function on(type: "BLEDeviceFind", callback: Callback\>): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BLE.on|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BLE
方法 or 属性:function off(type: "BLEDeviceFind", callback?: Callback\>): void;
废弃版本:N/A|类名:BLE
方法 or 属性:function off(type: "BLEDeviceFind", callback?: Callback\>): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BLE.off|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
废弃版本:N/A|类名:GattServer
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:startAdvertising(setting: AdvertiseSetting, advData: AdvertiseData, advResponse?: AdvertiseData): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:startAdvertising(setting: AdvertiseSetting, advData: AdvertiseData, advResponse?: AdvertiseData): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:stopAdvertising(): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:stopAdvertising(): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:addService(service: GattService): boolean;
废弃版本:N/A|类名:GattServer
方法 or 属性:addService(service: GattService): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:removeService(serviceUuid: string): boolean;
废弃版本:N/A|类名:GattServer
方法 or 属性:removeService(serviceUuid: string): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:close(): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:close(): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:notifyCharacteristicChanged(deviceId: string, notifyCharacteristic: NotifyCharacteristic): boolean;
废弃版本:N/A|类名:GattServer
方法 or 属性:notifyCharacteristicChanged(deviceId: string, notifyCharacteristic: NotifyCharacteristic): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:sendResponse(serverResponse: ServerResponse): boolean;
废弃版本:N/A|类名:GattServer
方法 or 属性:sendResponse(serverResponse: ServerResponse): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:on(type: "characteristicRead", callback: Callback\): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:on(type: "characteristicRead", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:off(type: "characteristicRead", callback?: Callback\): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:off(type: "characteristicRead", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:on(type: "characteristicWrite", callback: Callback\): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:on(type: "characteristicWrite", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:off(type: "characteristicWrite", callback?: Callback\): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:off(type: "characteristicWrite", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:on(type: "descriptorRead", callback: Callback\): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:on(type: "descriptorRead", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:off(type: "descriptorRead", callback?: Callback\): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:off(type: "descriptorRead", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:on(type: "descriptorWrite", callback: Callback\): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:on(type: "descriptorWrite", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:off(type: "descriptorWrite", callback?: Callback\): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:off(type: "descriptorWrite", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:on(type: "connectStateChange", callback: Callback\): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:on(type: "connectStateChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattServer
方法 or 属性:off(type: "connectStateChange", callback?: Callback\): void;
废弃版本:N/A|类名:GattServer
方法 or 属性:off(type: "connectStateChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattServer|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
废弃版本:N/A|类名:GattClientDevice
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:connect(): boolean;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:connect(): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:disconnect(): boolean;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:disconnect(): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:close(): boolean;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:close(): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:getDeviceName(callback: AsyncCallback\): void;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:getDeviceName(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:getDeviceName(): Promise\;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:getDeviceName(): Promise\;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:getServices(callback: AsyncCallback\>): void;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:getServices(callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:getServices(): Promise\>;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:getServices(): Promise\>;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:readCharacteristicValue(characteristic: BLECharacteristic, callback: AsyncCallback\): void;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:readCharacteristicValue(characteristic: BLECharacteristic, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:readCharacteristicValue(characteristic: BLECharacteristic): Promise\;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:readCharacteristicValue(characteristic: BLECharacteristic): Promise\;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:readDescriptorValue(descriptor: BLEDescriptor, callback: AsyncCallback\): void;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:readDescriptorValue(descriptor: BLEDescriptor, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:readDescriptorValue(descriptor: BLEDescriptor): Promise\;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:readDescriptorValue(descriptor: BLEDescriptor): Promise\;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:writeCharacteristicValue(characteristic: BLECharacteristic): boolean;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:writeCharacteristicValue(characteristic: BLECharacteristic): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:writeDescriptorValue(descriptor: BLEDescriptor): boolean;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:writeDescriptorValue(descriptor: BLEDescriptor): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:getRssiValue(callback: AsyncCallback\): void;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:getRssiValue(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:getRssiValue(): Promise\;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:getRssiValue(): Promise\;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:setBLEMtuSize(mtu: number): boolean;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:setBLEMtuSize(mtu: number): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:setNotifyCharacteristicChanged(characteristic: BLECharacteristic, enable: boolean): boolean;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:setNotifyCharacteristicChanged(characteristic: BLECharacteristic, enable: boolean): boolean;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:on(type: "BLECharacteristicChange", callback: Callback\): void;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:on(type: "BLECharacteristicChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:off(type: "BLECharacteristicChange", callback?: Callback\): void;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:off(type: "BLECharacteristicChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:on(type: "BLEConnectionStateChange", callback: Callback\): void;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:on(type: "BLEConnectionStateChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattClientDevice
方法 or 属性:off(type: "BLEConnectionStateChange", callback?: Callback\): void;
废弃版本:N/A|类名:GattClientDevice
方法 or 属性:off(type: "BLEConnectionStateChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattClientDevice|@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:GattService
废弃版本:N/A|类名:GattService
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.GattService |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BLECharacteristic
废弃版本:N/A|类名:BLECharacteristic
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BLECharacteristic |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BLEDescriptor
废弃版本:N/A|类名:BLEDescriptor
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BLEDescriptor |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:NotifyCharacteristic
废弃版本:N/A|类名:NotifyCharacteristic
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.NotifyCharacteristic |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:CharacteristicReadReq
废弃版本:N/A|类名:CharacteristicReadReq
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.CharacteristicReadRequest |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:CharacteristicWriteReq
废弃版本:N/A|类名:CharacteristicWriteReq
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.CharacteristicWriteRequest |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:DescriptorReadReq
废弃版本:N/A|类名:DescriptorReadReq
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.DescriptorReadRequest |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:DescriptorWriteReq
废弃版本:N/A|类名:DescriptorWriteReq
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.DescriptorWriteRequest |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:ServerResponse
废弃版本:N/A|类名:ServerResponse
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.ServerResponse |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BLEConnectChangedState
废弃版本:N/A|类名:BLEConnectChangedState
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BLEConnectChangedState |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:ScanResult
废弃版本:N/A|类名:ScanResult
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.ScanResult |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:AdvertiseSetting
废弃版本:N/A|类名:AdvertiseSetting
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.AdvertiseSetting |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:AdvertiseData
废弃版本:N/A|类名:AdvertiseData
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.AdvertiseData |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:ManufactureData
废弃版本:N/A|类名:ManufactureData
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.ManufactureData |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:ServiceData
废弃版本:N/A|类名:ServiceData
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.ServiceData |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:ScanFilter
废弃版本:N/A|类名:ScanFilter
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.ScanFilter |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:ScanOptions
废弃版本:N/A|类名:ScanOptions
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.ScanOptions |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:SppOption
废弃版本:N/A|类名:SppOption
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.SppOption |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:PinRequiredParam
废弃版本:N/A|类名:PinRequiredParam
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.PinRequiredParam |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:DeviceClass
废弃版本:N/A|类名:DeviceClass
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.DeviceClass |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BondStateParam
废弃版本:N/A|类名:BondStateParam
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BondStateParam |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:ScanDuty
废弃版本:N/A|类名:ScanDuty
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.ScanDuty |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:MatchMode
废弃版本:N/A|类名:MatchMode
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.MatchMode |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:ProfileConnectionState
废弃版本:N/A|类名:ProfileConnectionState
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.ProfileConnectionState |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BluetoothState
废弃版本:N/A|类名:BluetoothState
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BluetoothState |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:SppType
废弃版本:N/A|类名:SppType
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.SppType |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:ScanMode
废弃版本:N/A|类名:ScanMode
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.ScanMode |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:BondState
废弃版本:N/A|类名:BondState
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.BondState |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:MajorClass
废弃版本:N/A|类名:MajorClass
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.MajorClass |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:MajorMinorClass
废弃版本:N/A|类名:MajorMinorClass
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.MajorMinorClass |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:StateChangeParam
废弃版本:N/A|类名:StateChangeParam
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.StateChangeParam |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:PlayingState
废弃版本:N/A|类名:PlayingState
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.PlayingState |@ohos.bluetooth.d.ts| +|废弃版本有变化|类名:ProfileId
废弃版本:N/A|类名:ProfileId
废弃版本:9
代替接口:ohos.bluetoothManager/bluetoothManager.ProfileId |@ohos.bluetooth.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/connectedTag|@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/connectedTag|@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| +|废弃版本有变化|类名:TagInfo
方法 or 属性:supportedProfiles: number[];
废弃版本:N/A|类名:TagInfo
方法 or 属性:supportedProfiles: number[];
废弃版本:9
代替接口:ohos.nfc.tag/tag.TagInfo|@ohos.nfc.tag.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| +|废弃版本有变化|类名:IRemoteObject
方法 or 属性:queryLocalInterface(descriptor: string): IRemoteBroker;
废弃版本:N/A|类名:IRemoteObject
方法 or 属性:queryLocalInterface(descriptor: string): IRemoteBroker;
废弃版本:9
代替接口:ohos.rpc.IRemoteObject|@ohos.rpc.d.ts| +|废弃版本有变化|类名:IRemoteObject
方法 or 属性:sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): boolean;
废弃版本:8|类名:IRemoteObject
方法 or 属性:sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): boolean;
废弃版本:9
代替接口:N/A|@ohos.rpc.d.ts| +|废弃版本有变化|类名:IRemoteObject
方法 or 属性:sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise\;
废弃版本:N/A|类名:IRemoteObject
方法 or 属性:sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise\;
废弃版本:9
代替接口:ohos.rpc.IRemoteObject|@ohos.rpc.d.ts| +|废弃版本有变化|类名:IRemoteObject
方法 or 属性:sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback\): void;
废弃版本:N/A|类名:IRemoteObject
方法 or 属性:sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.rpc.IRemoteObject|@ohos.rpc.d.ts| +|废弃版本有变化|类名:IRemoteObject
方法 or 属性:addDeathRecipient(recipient: DeathRecipient, flags: number): boolean;
废弃版本:N/A|类名:IRemoteObject
方法 or 属性:addDeathRecipient(recipient: DeathRecipient, flags: number): boolean;
废弃版本:9
代替接口:ohos.rpc.IRemoteObject|@ohos.rpc.d.ts| +|废弃版本有变化|类名:IRemoteObject
方法 or 属性:removeDeathRecipient(recipient: DeathRecipient, flags: number): boolean;
废弃版本:N/A|类名:IRemoteObject
方法 or 属性:removeDeathRecipient(recipient: DeathRecipient, flags: number): boolean;
废弃版本:9
代替接口:ohos.rpc.IRemoteObject|@ohos.rpc.d.ts| +|废弃版本有变化|类名:IRemoteObject
方法 or 属性:getInterfaceDescriptor(): string;
废弃版本:N/A|类名:IRemoteObject
方法 or 属性:getInterfaceDescriptor(): string;
废弃版本:9
代替接口:ohos.rpc.IRemoteObject|@ohos.rpc.d.ts| +|废弃版本有变化|类名:RemoteObject
方法 or 属性:queryLocalInterface(descriptor: string): IRemoteBroker;
废弃版本:N/A|类名:RemoteObject
方法 or 属性:queryLocalInterface(descriptor: string): IRemoteBroker;
废弃版本:9
代替接口:ohos.rpc.RemoteObject|@ohos.rpc.d.ts| +|废弃版本有变化|类名:RemoteObject
方法 or 属性:getInterfaceDescriptor(): string;
废弃版本:N/A|类名:RemoteObject
方法 or 属性:getInterfaceDescriptor(): string;
废弃版本:9
代替接口:ohos.rpc.RemoteObject|@ohos.rpc.d.ts| +|废弃版本有变化|类名:RemoteObject
方法 or 属性:onRemoteRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): boolean;
废弃版本:N/A|类名:RemoteObject
方法 or 属性:onRemoteRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): boolean;
废弃版本:9
代替接口:ohos.rpc.RemoteObject|@ohos.rpc.d.ts| +|废弃版本有变化|类名:RemoteObject
方法 or 属性:sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise\;
废弃版本:N/A|类名:RemoteObject
方法 or 属性:sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise\;
废弃版本:9
代替接口:ohos.rpc.RemoteObject|@ohos.rpc.d.ts| +|废弃版本有变化|类名:RemoteObject
方法 or 属性:sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback\): void;
废弃版本:N/A|类名:RemoteObject
方法 or 属性:sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.rpc.RemoteObject|@ohos.rpc.d.ts| +|废弃版本有变化|类名:RemoteObject
方法 or 属性:attachLocalInterface(localInterface: IRemoteBroker, descriptor: string): void;
废弃版本:N/A|类名:RemoteObject
方法 or 属性:attachLocalInterface(localInterface: IRemoteBroker, descriptor: string): void;
废弃版本:9
代替接口:ohos.rpc.RemoteObject|@ohos.rpc.d.ts| +|废弃版本有变化|类名:RemoteProxy
方法 or 属性:queryLocalInterface(interface: string): IRemoteBroker;
废弃版本:N/A|类名:RemoteProxy
方法 or 属性:queryLocalInterface(interface: string): IRemoteBroker;
废弃版本:9
代替接口:ohos.rpc.RemoteProxy|@ohos.rpc.d.ts| +|废弃版本有变化|类名:RemoteProxy
方法 or 属性:addDeathRecipient(recipient: DeathRecipient, flags: number): boolean;
废弃版本:N/A|类名:RemoteProxy
方法 or 属性:addDeathRecipient(recipient: DeathRecipient, flags: number): boolean;
废弃版本:9
代替接口:ohos.rpc.RemoteProxy|@ohos.rpc.d.ts| +|废弃版本有变化|类名:RemoteProxy
方法 or 属性:removeDeathRecipient(recipient: DeathRecipient, flags: number): boolean;
废弃版本:N/A|类名:RemoteProxy
方法 or 属性:removeDeathRecipient(recipient: DeathRecipient, flags: number): boolean;
废弃版本:9
代替接口:ohos.rpc.RemoteProxy|@ohos.rpc.d.ts| +|废弃版本有变化|类名:RemoteProxy
方法 or 属性:getInterfaceDescriptor(): string;
废弃版本:N/A|类名:RemoteProxy
方法 or 属性:getInterfaceDescriptor(): string;
废弃版本:9
代替接口:ohos.rpc.RemoteProxy|@ohos.rpc.d.ts| +|废弃版本有变化|类名:RemoteProxy
方法 or 属性:sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise\;
废弃版本:N/A|类名:RemoteProxy
方法 or 属性:sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise\;
废弃版本:9
代替接口:ohos.rpc.RemoteProxy|@ohos.rpc.d.ts| +|废弃版本有变化|类名:RemoteProxy
方法 or 属性:sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback\): void;
废弃版本:N/A|类名:RemoteProxy
方法 or 属性:sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.rpc.RemoteProxy|@ohos.rpc.d.ts| +|废弃版本有变化|类名:IPCSkeleton
方法 or 属性:static flushCommands(object: IRemoteObject): number;
废弃版本:N/A|类名:IPCSkeleton
方法 or 属性:static flushCommands(object: IRemoteObject): number;
废弃版本:9
代替接口:ohos.rpc.IPCSkeleton|@ohos.rpc.d.ts| +|废弃版本有变化|类名:IPCSkeleton
方法 or 属性:static setCallingIdentity(identity: string): boolean;
废弃版本:N/A|类名:IPCSkeleton
方法 or 属性:static setCallingIdentity(identity: string): boolean;
废弃版本:9
代替接口:ohos.rpc.IPCSkeleton|@ohos.rpc.d.ts| +|废弃版本有变化|类名:Ashmem
方法 or 属性:static createAshmem(name: string, size: number): Ashmem;
废弃版本:N/A|类名:Ashmem
方法 or 属性:static createAshmem(name: string, size: number): Ashmem;
废弃版本:9
代替接口:ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|废弃版本有变化|类名:Ashmem
方法 or 属性:static createAshmemFromExisting(ashmem: Ashmem): Ashmem;
废弃版本:N/A|类名:Ashmem
方法 or 属性:static createAshmemFromExisting(ashmem: Ashmem): Ashmem;
废弃版本:9
代替接口:ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|废弃版本有变化|类名:Ashmem
方法 or 属性:mapAshmem(mapType: number): boolean;
废弃版本:N/A|类名:Ashmem
方法 or 属性:mapAshmem(mapType: number): boolean;
废弃版本:9
代替接口:ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|废弃版本有变化|类名:Ashmem
方法 or 属性:mapReadAndWriteAshmem(): boolean;
废弃版本:N/A|类名:Ashmem
方法 or 属性:mapReadAndWriteAshmem(): boolean;
废弃版本:9
代替接口:ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|废弃版本有变化|类名:Ashmem
方法 or 属性:mapReadOnlyAshmem(): boolean;
废弃版本:N/A|类名:Ashmem
方法 or 属性:mapReadOnlyAshmem(): boolean;
废弃版本:9
代替接口:ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|废弃版本有变化|类名:Ashmem
方法 or 属性:setProtection(protectionType: number): boolean;
废弃版本:N/A|类名:Ashmem
方法 or 属性:setProtection(protectionType: number): boolean;
废弃版本:9
代替接口:ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|废弃版本有变化|类名:Ashmem
方法 or 属性:writeToAshmem(buf: number[], size: number, offset: number): boolean;
废弃版本:N/A|类名:Ashmem
方法 or 属性:writeToAshmem(buf: number[], size: number, offset: number): boolean;
废弃版本:9
代替接口:ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|废弃版本有变化|类名:Ashmem
方法 or 属性:readFromAshmem(size: number, offset: number): number[];
废弃版本:N/A|类名:Ashmem
方法 or 属性:readFromAshmem(size: number, offset: number): number[];
废弃版本:9
代替接口:ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function enableWifi(): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function enableWifi(): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.enableWifi |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function disableWifi(): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function disableWifi(): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.disableWifi |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function isWifiActive(): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function isWifiActive(): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.isWifiActive |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function scan(): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function scan(): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.scan |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function getScanInfos(): Promise\>;
废弃版本:N/A|类名:wifi
方法 or 属性:function getScanInfos(): Promise\>;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.getScanResults |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function getScanInfos(callback: AsyncCallback\>): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function getScanInfos(callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.getScanResults |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function addDeviceConfig(config: WifiDeviceConfig): Promise\;
废弃版本:N/A|类名:wifi
方法 or 属性:function addDeviceConfig(config: WifiDeviceConfig): Promise\;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.addDeviceConfig |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function addDeviceConfig(config: WifiDeviceConfig, callback: AsyncCallback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function addDeviceConfig(config: WifiDeviceConfig, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.addDeviceConfig |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function addUntrustedConfig(config: WifiDeviceConfig): Promise\;
废弃版本:N/A|类名:wifi
方法 or 属性:function addUntrustedConfig(config: WifiDeviceConfig): Promise\;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.addCandidateConfig |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function addUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function addUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.addCandidateConfig |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function removeUntrustedConfig(config: WifiDeviceConfig): Promise\;
废弃版本:N/A|类名:wifi
方法 or 属性:function removeUntrustedConfig(config: WifiDeviceConfig): Promise\;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.removeCandidateConfig |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function removeUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function removeUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.removeCandidateConfig |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function connectToNetwork(networkId: number): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function connectToNetwork(networkId: number): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.connectToNetwork |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function connectToDevice(config: WifiDeviceConfig): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function connectToDevice(config: WifiDeviceConfig): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.connectToDevice |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function disconnect(): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function disconnect(): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.disconnect |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function getSignalLevel(rssi: number, band: number): number;
废弃版本:N/A|类名:wifi
方法 or 属性:function getSignalLevel(rssi: number, band: number): number;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.getSignalLevel |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function getLinkedInfo(): Promise\;
废弃版本:N/A|类名:wifi
方法 or 属性:function getLinkedInfo(): Promise\;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.getLinkedInfo |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function getLinkedInfo(callback: AsyncCallback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function getLinkedInfo(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.getLinkedInfo |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function isConnected(): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function isConnected(): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.isConnected |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function getSupportedFeatures(): number;
废弃版本:N/A|类名:wifi
方法 or 属性:function getSupportedFeatures(): number;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.getSupportedFeatures |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function isFeatureSupported(featureId: number): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function isFeatureSupported(featureId: number): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.isFeatureSupported |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function getDeviceMacAddress(): string[];
废弃版本:N/A|类名:wifi
方法 or 属性:function getDeviceMacAddress(): string[];
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.getDeviceMacAddress |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function getIpInfo(): IpInfo;
废弃版本:N/A|类名:wifi
方法 or 属性:function getIpInfo(): IpInfo;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.getIpInfo |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function getCountryCode(): string;
废弃版本:N/A|类名:wifi
方法 or 属性:function getCountryCode(): string;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.getCountryCode |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function reassociate(): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function reassociate(): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.reassociate |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function reconnect(): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function reconnect(): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.reconnect |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function getDeviceConfigs(): Array\;
废弃版本:N/A|类名:wifi
方法 or 属性:function getDeviceConfigs(): Array\;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.getDeviceConfigs |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function updateNetwork(config: WifiDeviceConfig): number;
废弃版本:N/A|类名:wifi
方法 or 属性:function updateNetwork(config: WifiDeviceConfig): number;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.updateNetwork |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function disableNetwork(netId: number): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function disableNetwork(netId: number): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.disableNetwork |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function removeAllNetwork(): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function removeAllNetwork(): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.removeAllNetwork |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function removeDevice(id: number): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function removeDevice(id: number): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.removeDevice |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function enableHotspot(): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function enableHotspot(): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.enableHotspot |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function disableHotspot(): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function disableHotspot(): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.disableHotspot |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function isHotspotDualBandSupported(): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function isHotspotDualBandSupported(): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.isHotspotDualBandSupported |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function isHotspotActive(): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function isHotspotActive(): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.isHotspotActive |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function setHotspotConfig(config: HotspotConfig): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function setHotspotConfig(config: HotspotConfig): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.setHotspotConfig |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function getHotspotConfig(): HotspotConfig;
废弃版本:N/A|类名:wifi
方法 or 属性:function getHotspotConfig(): HotspotConfig;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.getHotspotConfig |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function getStations(): Array\;
废弃版本:N/A|类名:wifi
方法 or 属性:function getStations(): Array\;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.getStations |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function getP2pLinkedInfo(): Promise\;
废弃版本:N/A|类名:wifi
方法 or 属性:function getP2pLinkedInfo(): Promise\;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.getP2pLinkedInfo |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function getP2pLinkedInfo(callback: AsyncCallback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function getP2pLinkedInfo(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.getP2pLinkedInfo |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function getCurrentGroup(): Promise\;
废弃版本:N/A|类名:wifi
方法 or 属性:function getCurrentGroup(): Promise\;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.getCurrentGroup |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function getCurrentGroup(callback: AsyncCallback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function getCurrentGroup(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.getCurrentGroup |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function getP2pPeerDevices(): Promise\;
废弃版本:N/A|类名:wifi
方法 or 属性:function getP2pPeerDevices(): Promise\;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.getP2pPeerDevices |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function getP2pPeerDevices(callback: AsyncCallback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function getP2pPeerDevices(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.getP2pPeerDevices |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function createGroup(config: WifiP2PConfig): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function createGroup(config: WifiP2PConfig): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.createGroup |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function removeGroup(): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function removeGroup(): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.removeGroup |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function p2pConnect(config: WifiP2PConfig): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function p2pConnect(config: WifiP2PConfig): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.p2pConnect |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function p2pCancelConnect(): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function p2pCancelConnect(): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.p2pCancelConnect |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function startDiscoverDevices(): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function startDiscoverDevices(): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.startDiscoverDevices |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function stopDiscoverDevices(): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function stopDiscoverDevices(): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.stopDiscoverDevices |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function deletePersistentGroup(netId: number): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function deletePersistentGroup(netId: number): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.deletePersistentGroup |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function setDeviceName(devName: string): boolean;
废弃版本:N/A|类名:wifi
方法 or 属性:function setDeviceName(devName: string): boolean;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.setDeviceName |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function on(type: "wifiStateChange", callback: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function on(type: "wifiStateChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function off(type: "wifiStateChange", callback?: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function off(type: "wifiStateChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function on(type: "wifiConnectionChange", callback: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function on(type: "wifiConnectionChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function off(type: "wifiConnectionChange", callback?: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function off(type: "wifiConnectionChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function on(type: "wifiScanStateChange", callback: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function on(type: "wifiScanStateChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function off(type: "wifiScanStateChange", callback?: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function off(type: "wifiScanStateChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function on(type: "wifiRssiChange", callback: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function on(type: "wifiRssiChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function off(type: "wifiRssiChange", callback?: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function off(type: "wifiRssiChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function on(type: "streamChange", callback: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function on(type: "streamChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function off(type: "streamChange", callback?: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function off(type: "streamChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function on(type: "hotspotStateChange", callback: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function on(type: "hotspotStateChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function off(type: "hotspotStateChange", callback?: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function off(type: "hotspotStateChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function on(type: "hotspotStaJoin", callback: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function on(type: "hotspotStaJoin", callback: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function off(type: "hotspotStaJoin", callback?: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function off(type: "hotspotStaJoin", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function on(type: "hotspotStaLeave", callback: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function on(type: "hotspotStaLeave", callback: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function off(type: "hotspotStaLeave", callback?: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function off(type: "hotspotStaLeave", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function on(type: "p2pStateChange", callback: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function on(type: "p2pStateChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function off(type: "p2pStateChange", callback?: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function off(type: "p2pStateChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function on(type: "p2pConnectionChange", callback: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function on(type: "p2pConnectionChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function off(type: "p2pConnectionChange", callback?: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function off(type: "p2pConnectionChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function on(type: "p2pDeviceChange", callback: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function on(type: "p2pDeviceChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function off(type: "p2pDeviceChange", callback?: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function off(type: "p2pDeviceChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function on(type: "p2pPeerDeviceChange", callback: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function on(type: "p2pPeerDeviceChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function off(type: "p2pPeerDeviceChange", callback?: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function off(type: "p2pPeerDeviceChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function on(type: "p2pPersistentGroupChange", callback: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function on(type: "p2pPersistentGroupChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function off(type: "p2pPersistentGroupChange", callback?: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function off(type: "p2pPersistentGroupChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function on(type: "p2pDiscoveryChange", callback: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function on(type: "p2pDiscoveryChange", callback: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifi
方法 or 属性:function off(type: "p2pDiscoveryChange", callback?: Callback\): void;
废弃版本:N/A|类名:wifi
方法 or 属性:function off(type: "p2pDiscoveryChange", callback?: Callback\): void;
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|废弃版本有变化|类名:WifiDeviceConfig
废弃版本:N/A|类名:WifiDeviceConfig
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.WifiDeviceConfig |@ohos.wifi.d.ts| +|废弃版本有变化|类名:IpConfig
废弃版本:N/A|类名:IpConfig
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.IpConfig |@ohos.wifi.d.ts| +|废弃版本有变化|类名:WifiScanInfo
废弃版本:N/A|类名:WifiScanInfo
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.WifiScanInfo |@ohos.wifi.d.ts| +|废弃版本有变化|类名:WifiSecurityType
废弃版本:N/A|类名:WifiSecurityType
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.WifiSecurityType |@ohos.wifi.d.ts| +|废弃版本有变化|类名:WifiLinkedInfo
废弃版本:N/A|类名:WifiLinkedInfo
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.WifiLinkedInfo |@ohos.wifi.d.ts| +|废弃版本有变化|类名:IpInfo
废弃版本:N/A|类名:IpInfo
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.IpInfo |@ohos.wifi.d.ts| +|废弃版本有变化|类名:HotspotConfig
废弃版本:N/A|类名:HotspotConfig
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.HotspotConfig |@ohos.wifi.d.ts| +|废弃版本有变化|类名:StationInfo
废弃版本:N/A|类名:StationInfo
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.StationInfo |@ohos.wifi.d.ts| +|废弃版本有变化|类名:IpType
废弃版本:N/A|类名:IpType
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.IpType |@ohos.wifi.d.ts| +|废弃版本有变化|类名:SuppState
废弃版本:N/A|类名:SuppState
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.SuppState |@ohos.wifi.d.ts| +|废弃版本有变化|类名:ConnState
废弃版本:N/A|类名:ConnState
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.ConnState |@ohos.wifi.d.ts| +|废弃版本有变化|类名:WifiP2pDevice
废弃版本:N/A|类名:WifiP2pDevice
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.WifiP2pDevice |@ohos.wifi.d.ts| +|废弃版本有变化|类名:WifiP2PConfig
废弃版本:N/A|类名:WifiP2PConfig
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.WifiP2PConfig |@ohos.wifi.d.ts| +|废弃版本有变化|类名:WifiP2pGroupInfo
废弃版本:N/A|类名:WifiP2pGroupInfo
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.WifiP2pGroupInfo |@ohos.wifi.d.ts| +|废弃版本有变化|类名:P2pConnectState
废弃版本:N/A|类名:P2pConnectState
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.P2pConnectState |@ohos.wifi.d.ts| +|废弃版本有变化|类名:WifiP2pLinkedInfo
废弃版本:N/A|类名:WifiP2pLinkedInfo
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.WifiP2pLinkedInfo |@ohos.wifi.d.ts| +|废弃版本有变化|类名:P2pDeviceStatus
废弃版本:N/A|类名:P2pDeviceStatus
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.P2pDeviceStatus |@ohos.wifi.d.ts| +|废弃版本有变化|类名:GroupOwnerBand
废弃版本:N/A|类名:GroupOwnerBand
废弃版本:9
代替接口:ohos.wifiManager/wifiManager.GroupOwnerBand |@ohos.wifi.d.ts| +|废弃版本有变化|类名:wifiext
方法 or 属性:function enableHotspot(): boolean;
废弃版本:N/A|类名:wifiext
方法 or 属性:function enableHotspot(): boolean;
废弃版本:9
代替接口:ohos.wifiManagerExt/wifiManagerExt.enableHotspot |@ohos.wifiext.d.ts| +|废弃版本有变化|类名:wifiext
方法 or 属性:function disableHotspot(): boolean;
废弃版本:N/A|类名:wifiext
方法 or 属性:function disableHotspot(): boolean;
废弃版本:9
代替接口:ohos.wifiManagerExt/wifiManagerExt.disableHotspot |@ohos.wifiext.d.ts| +|废弃版本有变化|类名:wifiext
方法 or 属性:function getSupportedPowerModel(): Promise\>;
废弃版本:N/A|类名:wifiext
方法 or 属性:function getSupportedPowerModel(): Promise\>;
废弃版本:9
代替接口:ohos.wifiManagerExt/wifiManagerExt.getSupportedPowerMode |@ohos.wifiext.d.ts| +|废弃版本有变化|类名:wifiext
方法 or 属性:function getSupportedPowerModel(callback: AsyncCallback\>): void;
废弃版本:N/A|类名:wifiext
方法 or 属性:function getSupportedPowerModel(callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.wifiManagerExt/wifiManagerExt.getSupportedPowerMode |@ohos.wifiext.d.ts| +|废弃版本有变化|类名:wifiext
方法 or 属性:function getPowerModel (): Promise\;
废弃版本:N/A|类名:wifiext
方法 or 属性:function getPowerModel (): Promise\;
废弃版本:9
代替接口:ohos.wifiManagerExt/wifiManagerExt.getPowerMode |@ohos.wifiext.d.ts| +|废弃版本有变化|类名:wifiext
方法 or 属性:function getPowerModel (callback: AsyncCallback\): void;
废弃版本:N/A|类名:wifiext
方法 or 属性:function getPowerModel (callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.wifiManagerExt/wifiManagerExt.getPowerMode |@ohos.wifiext.d.ts| +|废弃版本有变化|类名:wifiext
方法 or 属性:function setPowerModel(model: PowerModel) : boolean
废弃版本:N/A|类名:wifiext
方法 or 属性:function setPowerModel(model: PowerModel) : boolean
废弃版本:9
代替接口:ohos.wifiManagerExt/wifiManagerExt.setPowerMode |@ohos.wifiext.d.ts| +|废弃版本有变化|类名:PowerModel
废弃版本:N/A|类名:PowerModel
废弃版本:9
代替接口:ohos.wifiManagerExt/wifiManagerExt.PowerMode |@ohos.wifiext.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.TagSession|tagSession.d.ts| +|废弃版本有变化|类名:TagSession
方法 or 属性:getMaxSendLength(): number;
废弃版本:N/A|类名:TagSession
方法 or 属性:getMaxSendLength(): number;
废弃版本:9
代替接口:tagSession.TagSession|tagSession.d.ts| +|起始版本有变化|类名:A2dpSourceProfile
方法 or 属性:getPlayingState(device: string): PlayingState;
起始版本:N/A|类名:A2dpSourceProfile
方法 or 属性:getPlayingState(device: string): PlayingState;
起始版本:8|@ohos.bluetooth.d.ts| +|起始版本有变化|类名:ScanFilter
起始版本:7|类名:ScanFilter
起始版本:N/A|@ohos.bluetooth.d.ts| +|起始版本有变化|类名:ScanFilter
方法 or 属性:deviceId?: string;
起始版本:N/A|类名:ScanFilter
方法 or 属性:deviceId?: string;
起始版本:7|@ohos.bluetooth.d.ts| +|起始版本有变化|类名:ScanFilter
方法 or 属性:name?: string;
起始版本:N/A|类名:ScanFilter
方法 or 属性:name?: string;
起始版本:7|@ohos.bluetooth.d.ts| +|起始版本有变化|类名:ScanFilter
方法 or 属性:serviceUuid?: string;
起始版本:N/A|类名:ScanFilter
方法 or 属性:serviceUuid?: string;
起始版本:7|@ohos.bluetooth.d.ts| +|起始版本有变化|类名:ProfileId
起始版本:8|类名:ProfileId
起始版本:N/A|@ohos.bluetooth.d.ts| +|起始版本有变化|类名:ProfileId
方法 or 属性:PROFILE_A2DP_SOURCE = 1
起始版本:N/A|类名:ProfileId
方法 or 属性:PROFILE_A2DP_SOURCE = 1
起始版本:8|@ohos.bluetooth.d.ts| +|起始版本有变化|类名:ProfileId
方法 or 属性:PROFILE_HANDS_FREE_AUDIO_GATEWAY = 4
起始版本:N/A|类名:ProfileId
方法 or 属性:PROFILE_HANDS_FREE_AUDIO_GATEWAY = 4
起始版本:8|@ohos.bluetooth.d.ts| +|起始版本有变化|类名:FeatureType
起始版本:N/A|类名:FeatureType
起始版本:6|@ohos.nfc.cardEmulation.d.ts| +|起始版本有变化|类名:TagInfo
方法 or 属性:supportedProfiles: number[];
起始版本:N/A|类名:TagInfo
方法 or 属性:supportedProfiles: number[];
起始版本:7|@ohos.nfc.tag.d.ts| +|权限有变化|类名:bluetooth
方法 or 属性:function startBluetoothDiscovery(): boolean;
权限:ohos.permission.LOCATION|类名:bluetooth
方法 or 属性:function startBluetoothDiscovery(): boolean;
权限:ohos.permission.DISCOVER_BLUETOOTH and ohos.permission.LOCATION|@ohos.bluetooth.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| +|权限有变化|类名:BLE
方法 or 属性:function startBLEScan(filters: Array\, options?: ScanOptions): void;
权限:ohos.permission.LOCATION|类名:BLE
方法 or 属性:function startBLEScan(filters: Array\, options?: ScanOptions): void;
权限:ohos.permission.DISCOVER_BLUETOOTH and ohos.permission.MANAGE_BLUETOOTH and ohos.permission.LOCATION|@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| +|权限有变化|类名:connection
方法 or 属性:function getAddressesByName(host: string, callback: AsyncCallback\>): void;
权限:ohos.permission.GET_NETWORK_INFO|类名:connection
方法 or 属性:function getAddressesByName(host: string, callback: AsyncCallback\>): void;
权限:ohos.permission.INTERNET|@ohos.net.connection.d.ts| +|权限有变化|类名:connection
方法 or 属性:function getAddressesByName(host: string): Promise\>;
权限:ohos.permission.GET_NETWORK_INFO|类名:connection
方法 or 属性:function getAddressesByName(host: string): Promise\>;
权限:ohos.permission.INTERNET|@ohos.net.connection.d.ts| +|权限有变化|类名:NetHandle
方法 or 属性:getAddressesByName(host: string, callback: AsyncCallback\>): void;
权限:ohos.permission.GET_NETWORK_INFO|类名:NetHandle
方法 or 属性:getAddressesByName(host: string, callback: AsyncCallback\>): void;
权限:ohos.permission.INTERNET|@ohos.net.connection.d.ts| +|权限有变化|类名:NetHandle
方法 or 属性:getAddressesByName(host: string): Promise\>;
权限:ohos.permission.GET_NETWORK_INFO|类名:NetHandle
方法 or 属性:getAddressesByName(host: string): Promise\>;
权限:ohos.permission.INTERNET|@ohos.net.connection.d.ts| +|权限有变化|类名:NetHandle
方法 or 属性:getAddressByName(host: string, callback: AsyncCallback\): void;
权限:ohos.permission.GET_NETWORK_INFO|类名:NetHandle
方法 or 属性:getAddressByName(host: string, callback: AsyncCallback\): void;
权限:ohos.permission.INTERNET|@ohos.net.connection.d.ts| +|权限有变化|类名:NetHandle
方法 or 属性:getAddressByName(host: string): Promise\;
权限:ohos.permission.GET_NETWORK_INFO|类名:NetHandle
方法 or 属性:getAddressByName(host: string): Promise\;
权限:ohos.permission.INTERNET|@ohos.net.connection.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| +|新增(错误码)|NA|类名:connection
方法 or 属性:function getDefaultNet(callback: AsyncCallback\): void;
错误码内容: 201, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function getDefaultNet(): Promise\;
错误码内容: 201, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function getAllNets(callback: AsyncCallback\>): void;
错误码内容: 201, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function getAllNets(): Promise\>;
错误码内容: 201, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function getConnectionProperties(netHandle: NetHandle, callback: AsyncCallback\): void;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function getConnectionProperties(netHandle: NetHandle): Promise\;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function getNetCapabilities(netHandle: NetHandle, callback: AsyncCallback\): void;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function getNetCapabilities(netHandle: NetHandle): Promise\;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function hasDefaultNet(callback: AsyncCallback\): void;
错误码内容: 201, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function hasDefaultNet(): Promise\;
错误码内容: 201, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function enableAirplaneMode(callback: AsyncCallback\): void;
错误码内容: 201, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function enableAirplaneMode(): Promise\;
错误码内容: 201, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function disableAirplaneMode(callback: AsyncCallback\): void;
错误码内容: 201, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function disableAirplaneMode(): Promise\;
错误码内容: 201, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function reportNetConnected(netHandle: NetHandle, callback: AsyncCallback\): void;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function reportNetConnected(netHandle: NetHandle): Promise\;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function reportNetDisconnected(netHandle: NetHandle, callback: AsyncCallback\): void;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function reportNetDisconnected(netHandle: NetHandle): Promise\;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function getAddressesByName(host: string, callback: AsyncCallback\>): void;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:connection
方法 or 属性:function getAddressesByName(host: string): Promise\>;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:NetConnection
方法 or 属性:register(callback: AsyncCallback\): void;
错误码内容: 201, 2100002, 2100003, 2101008, 2101022|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:NetConnection
方法 or 属性:unregister(callback: AsyncCallback\): void;
错误码内容: 2100002, 2100003, 2101007|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:NetHandle
方法 or 属性:getAddressesByName(host: string, callback: AsyncCallback\>): void;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:NetHandle
方法 or 属性:getAddressesByName(host: string): Promise\>;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:NetHandle
方法 or 属性:getAddressByName(host: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:NetHandle
方法 or 属性:getAddressByName(host: string): Promise\;
错误码内容: 201, 401, 2100001, 2100002, 2100003|@ohos.net.connection.d.ts| +|新增(错误码)|NA|类名:HttpRequest
方法 or 属性:request(url: string, callback: AsyncCallback\): void;
错误码内容: 401, 201, 2300001, 2300003, 2300005, 2300006, 2300007, 2300008, 2300009, 2300016, 2300018, 2300023, 2300025, 2300026, 2300027, 2300028, 2300047, 2300052, 2300055, 2300056, 2300058, 2300059, 2300060, 2300061, 2300063, 2300070, 2300073, 2300077, 2300078, 2300094, 2300999|@ohos.net.http.d.ts| +|新增(错误码)|NA|类名:HttpRequest
方法 or 属性:request(url: string, options: HttpRequestOptions, callback: AsyncCallback\): void;
错误码内容: 401, 201, 2300001, 2300003, 2300005, 2300006, 2300007, 2300008, 2300009, 2300016, 2300018, 2300023, 2300025, 2300026, 2300027, 2300028, 2300047, 2300052, 2300055, 2300056, 2300058, 2300059, 2300060, 2300061, 2300063, 2300070, 2300073, 2300077, 2300078, 2300094, 2300999|@ohos.net.http.d.ts| +|新增(错误码)|NA|类名:HttpRequest
方法 or 属性:request(url: string, options?: HttpRequestOptions): Promise\;
错误码内容: 401, 201, 2300001, 2300003, 2300005, 2300006, 2300007, 2300008, 2300009, 2300016, 2300018, 2300023, 2300025, 2300026, 2300027, 2300028, 2300047, 2300052, 2300055, 2300056, 2300058, 2300059, 2300060, 2300061, 2300063, 2300070, 2300073, 2300077, 2300078, 2300094, 2300999|@ohos.net.http.d.ts| +|新增(错误码)|NA|类名:UDPSocket
方法 or 属性:bind(address: NetAddress, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:UDPSocket
方法 or 属性:bind(address: NetAddress): Promise\;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:UDPSocket
方法 or 属性:send(options: UDPSendOptions, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:UDPSocket
方法 or 属性:send(options: UDPSendOptions): Promise\;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:UDPSocket
方法 or 属性:close(callback: AsyncCallback\): void;
错误码内容: 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:UDPSocket
方法 or 属性:close(): Promise\;
错误码内容: 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:UDPSocket
方法 or 属性:getState(callback: AsyncCallback\): void;
错误码内容: 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:UDPSocket
方法 or 属性:getState(): Promise\;
错误码内容: 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:UDPSocket
方法 or 属性:setExtraOptions(options: UDPExtraOptions, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:UDPSocket
方法 or 属性:setExtraOptions(options: UDPExtraOptions): Promise\;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:bind(address: NetAddress, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:bind(address: NetAddress): Promise\;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:connect(options: TCPConnectOptions, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:connect(options: TCPConnectOptions): Promise\;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:send(options: TCPSendOptions, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:send(options: TCPSendOptions): Promise\;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:close(callback: AsyncCallback\): void;
错误码内容: 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:close(): Promise\;
错误码内容: 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:getRemoteAddress(callback: AsyncCallback\): void;
错误码内容: 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:getRemoteAddress(): Promise\;
错误码内容: 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:getState(callback: AsyncCallback\): void;
错误码内容: 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:getState(): Promise\;
错误码内容: 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:setExtraOptions(options: TCPExtraOptions, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:TCPSocket
方法 or 属性:setExtraOptions(options: TCPExtraOptions): Promise\;
错误码内容: 401, 201|@ohos.net.socket.d.ts| +|新增(错误码)|NA|类名:WebSocket
方法 or 属性:connect(url: string, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.webSocket.d.ts| +|新增(错误码)|NA|类名:WebSocket
方法 or 属性:connect(url: string, options: WebSocketRequestOptions, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.webSocket.d.ts| +|新增(错误码)|NA|类名:WebSocket
方法 or 属性:connect(url: string, options?: WebSocketRequestOptions): Promise\;
错误码内容: 401, 201|@ohos.net.webSocket.d.ts| +|新增(错误码)|NA|类名:WebSocket
方法 or 属性:send(data: string \| ArrayBuffer, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.webSocket.d.ts| +|新增(错误码)|NA|类名:WebSocket
方法 or 属性:send(data: string \| ArrayBuffer): Promise\;
错误码内容: 401, 201|@ohos.net.webSocket.d.ts| +|新增(错误码)|NA|类名:WebSocket
方法 or 属性:close(callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.webSocket.d.ts| +|新增(错误码)|NA|类名:WebSocket
方法 or 属性:close(options: WebSocketCloseOptions, callback: AsyncCallback\): void;
错误码内容: 401, 201|@ohos.net.webSocket.d.ts| +|新增(错误码)|NA|类名:WebSocket
方法 or 属性:close(options?: WebSocketCloseOptions): Promise\;
错误码内容: 401, 201|@ohos.net.webSocket.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| +|新增(权限)|类名:connection
方法 or 属性:function enableAirplaneMode(callback: AsyncCallback\): void;
权限:N/A|类名:connection
方法 or 属性:function enableAirplaneMode(callback: AsyncCallback\): void;
权限:ohos.permission.CONNECTIVITY_INTERNAL|@ohos.net.connection.d.ts| +|新增(权限)|类名:connection
方法 or 属性:function enableAirplaneMode(): Promise\;
权限:N/A|类名:connection
方法 or 属性:function enableAirplaneMode(): Promise\;
权限:ohos.permission.CONNECTIVITY_INTERNAL|@ohos.net.connection.d.ts| +|新增(权限)|类名:connection
方法 or 属性:function disableAirplaneMode(callback: AsyncCallback\): void;
权限:N/A|类名:connection
方法 or 属性:function disableAirplaneMode(callback: AsyncCallback\): void;
权限:ohos.permission.CONNECTIVITY_INTERNAL|@ohos.net.connection.d.ts| +|新增(权限)|类名:connection
方法 or 属性:function disableAirplaneMode(): Promise\;
权限:N/A|类名:connection
方法 or 属性:function disableAirplaneMode(): Promise\;
权限:ohos.permission.CONNECTIVITY_INTERNAL|@ohos.net.connection.d.ts| +|SysCap有变化|类名:cardEmulation
SysCap:SystemCapability.Communication.NFC.Core|类名:cardEmulation
SysCap:SystemCapability.Communication.NFC.CardEmulation|@ohos.nfc.cardEmulation.d.ts| +|SysCap有变化|类名:FeatureType
SysCap:SystemCapability.Communication.NFC.Core|类名:FeatureType
SysCap:SystemCapability.Communication.NFC.CardEmulation|@ohos.nfc.cardEmulation.d.ts| +|SysCap有变化|类名:FeatureType
方法 or 属性:HCE = 0
SysCap:SystemCapability.Communication.NFC.Core|类名:FeatureType
方法 or 属性:HCE = 0
SysCap:SystemCapability.Communication.NFC.CardEmulation|@ohos.nfc.cardEmulation.d.ts| +|SysCap有变化|类名:FeatureType
方法 or 属性:UICC = 1
SysCap:SystemCapability.Communication.NFC.Core|类名:FeatureType
方法 or 属性:UICC = 1
SysCap:SystemCapability.Communication.NFC.CardEmulation|@ohos.nfc.cardEmulation.d.ts| +|SysCap有变化|类名:FeatureType
方法 or 属性:ESE = 2
SysCap:SystemCapability.Communication.NFC.Core|类名:FeatureType
方法 or 属性:ESE = 2
SysCap:SystemCapability.Communication.NFC.CardEmulation|@ohos.nfc.cardEmulation.d.ts| +|SysCap有变化|类名:cardEmulation
方法 or 属性:function isSupported(feature: number): boolean;
SysCap:SystemCapability.Communication.NFC.Core|类名:cardEmulation
方法 or 属性:function isSupported(feature: number): boolean;
SysCap:SystemCapability.Communication.NFC.CardEmulation|@ohos.nfc.cardEmulation.d.ts| +|SysCap有变化|类名:HceService
SysCap:SystemCapability.Communication.NFC.Core|类名:HceService
SysCap:SystemCapability.Communication.NFC.CardEmulation|@ohos.nfc.cardEmulation.d.ts| +|SysCap有变化|类名:HceService
方法 or 属性:startHCE(aidList: string[]): boolean;
SysCap:SystemCapability.Communication.NFC.Core|类名:HceService
方法 or 属性:startHCE(aidList: string[]): boolean;
SysCap:SystemCapability.Communication.NFC.CardEmulation|@ohos.nfc.cardEmulation.d.ts| +|SysCap有变化|类名:HceService
方法 or 属性:stopHCE(): boolean;
SysCap:SystemCapability.Communication.NFC.Core|类名:HceService
方法 or 属性:stopHCE(): boolean;
SysCap:SystemCapability.Communication.NFC.CardEmulation|@ohos.nfc.cardEmulation.d.ts| +|SysCap有变化|类名:HceService
方法 or 属性:on(type: "hceCmd", callback: AsyncCallback\): void;
SysCap:SystemCapability.Communication.NFC.Core|类名:HceService
方法 or 属性:on(type: "hceCmd", callback: AsyncCallback\): void;
SysCap:SystemCapability.Communication.NFC.CardEmulation|@ohos.nfc.cardEmulation.d.ts| +|SysCap有变化|类名:HceService
方法 or 属性:sendResponse(responseApdu: number[]): void;
SysCap:SystemCapability.Communication.NFC.Core|类名:HceService
方法 or 属性:sendResponse(responseApdu: number[]): void;
SysCap:SystemCapability.Communication.NFC.CardEmulation|@ohos.nfc.cardEmulation.d.ts| +|SysCap有变化|类名:tag
SysCap:SystemCapability.Communication.NFC.Core|类名:tag
SysCap:SystemCapability.Communication.NFC.Tag|@ohos.nfc.tag.d.ts| +|SysCap有变化|类名:tag
方法 or 属性:const NFC_A = 1;
SysCap:SystemCapability.Communication.NFC.Core|类名:tag
方法 or 属性:const NFC_A = 1;
SysCap:SystemCapability.Communication.NFC.Tag|@ohos.nfc.tag.d.ts| +|SysCap有变化|类名:tag
方法 or 属性:const NFC_B = 2;
SysCap:SystemCapability.Communication.NFC.Core|类名:tag
方法 or 属性:const NFC_B = 2;
SysCap:SystemCapability.Communication.NFC.Tag|@ohos.nfc.tag.d.ts| +|SysCap有变化|类名:tag
方法 or 属性:const ISO_DEP = 3;
SysCap:SystemCapability.Communication.NFC.Core|类名:tag
方法 or 属性:const ISO_DEP = 3;
SysCap:SystemCapability.Communication.NFC.Tag|@ohos.nfc.tag.d.ts| +|SysCap有变化|类名:tag
方法 or 属性:const NFC_F = 4;
SysCap:SystemCapability.Communication.NFC.Core|类名:tag
方法 or 属性:const NFC_F = 4;
SysCap:SystemCapability.Communication.NFC.Tag|@ohos.nfc.tag.d.ts| +|SysCap有变化|类名:tag
方法 or 属性:const NFC_V = 5;
SysCap:SystemCapability.Communication.NFC.Core|类名:tag
方法 or 属性:const NFC_V = 5;
SysCap:SystemCapability.Communication.NFC.Tag|@ohos.nfc.tag.d.ts| +|SysCap有变化|类名:tag
方法 or 属性:const NDEF = 6;
SysCap:SystemCapability.Communication.NFC.Core|类名:tag
方法 or 属性:const NDEF = 6;
SysCap:SystemCapability.Communication.NFC.Tag|@ohos.nfc.tag.d.ts| +|SysCap有变化|类名:tag
方法 or 属性:const MIFARE_CLASSIC = 8;
SysCap:SystemCapability.Communication.NFC.Core|类名:tag
方法 or 属性:const MIFARE_CLASSIC = 8;
SysCap:SystemCapability.Communication.NFC.Tag|@ohos.nfc.tag.d.ts| +|SysCap有变化|类名:tag
方法 or 属性:const MIFARE_ULTRALIGHT = 9;
SysCap:SystemCapability.Communication.NFC.Core|类名:tag
方法 or 属性:const MIFARE_ULTRALIGHT = 9;
SysCap:SystemCapability.Communication.NFC.Tag|@ohos.nfc.tag.d.ts| +|SysCap有变化|类名:tag
方法 or 属性:function getNfcATag(tagInfo: TagInfo): NfcATag
SysCap:SystemCapability.Communication.NFC.Core|类名:tag
方法 or 属性:function getNfcATag(tagInfo: TagInfo): NfcATag
SysCap:SystemCapability.Communication.NFC.Tag|@ohos.nfc.tag.d.ts| +|SysCap有变化|类名:tag
方法 or 属性:function getNfcBTag(tagInfo: TagInfo): NfcBTag
SysCap:SystemCapability.Communication.NFC.Core|类名:tag
方法 or 属性:function getNfcBTag(tagInfo: TagInfo): NfcBTag
SysCap:SystemCapability.Communication.NFC.Tag|@ohos.nfc.tag.d.ts| +|SysCap有变化|类名:tag
方法 or 属性:function getNfcFTag(tagInfo: TagInfo): NfcFTag
SysCap:SystemCapability.Communication.NFC.Core|类名:tag
方法 or 属性:function getNfcFTag(tagInfo: TagInfo): NfcFTag
SysCap:SystemCapability.Communication.NFC.Tag|@ohos.nfc.tag.d.ts| +|SysCap有变化|类名:tag
方法 or 属性:function getNfcVTag(tagInfo: TagInfo): NfcVTag
SysCap:SystemCapability.Communication.NFC.Core|类名:tag
方法 or 属性:function getNfcVTag(tagInfo: TagInfo): NfcVTag
SysCap:SystemCapability.Communication.NFC.Tag|@ohos.nfc.tag.d.ts| +|SysCap有变化|类名:TagInfo
SysCap:SystemCapability.Communication.NFC.Core|类名:TagInfo
SysCap:SystemCapability.Communication.NFC.Tag|@ohos.nfc.tag.d.ts| +|SysCap有变化|类名:TagInfo
方法 or 属性:supportedProfiles: number[];
SysCap:SystemCapability.Communication.NFC.Core|类名:TagInfo
方法 or 属性:supportedProfiles: number[];
SysCap:SystemCapability.Communication.NFC.Tag|@ohos.nfc.tag.d.ts| +|SysCap有变化|类名:NfcATag
SysCap:SystemCapability.Communication.NFC.Core|类名:NfcATag
SysCap:SystemCapability.Communication.NFC.Tag|nfctech.d.ts| +|SysCap有变化|类名:NfcATag
方法 or 属性:getSak(): number;
SysCap:SystemCapability.Communication.NFC.Core|类名:NfcATag
方法 or 属性:getSak(): number;
SysCap:SystemCapability.Communication.NFC.Tag|nfctech.d.ts| +|SysCap有变化|类名:NfcATag
方法 or 属性:getAtqa(): number[];
SysCap:SystemCapability.Communication.NFC.Core|类名:NfcATag
方法 or 属性:getAtqa(): number[];
SysCap:SystemCapability.Communication.NFC.Tag|nfctech.d.ts| +|SysCap有变化|类名:NfcBTag
SysCap:SystemCapability.Communication.NFC.Core|类名:NfcBTag
SysCap:SystemCapability.Communication.NFC.Tag|nfctech.d.ts| +|SysCap有变化|类名:NfcBTag
方法 or 属性:getRespAppData(): number[];
SysCap:SystemCapability.Communication.NFC.Core|类名:NfcBTag
方法 or 属性:getRespAppData(): number[];
SysCap:SystemCapability.Communication.NFC.Tag|nfctech.d.ts| +|SysCap有变化|类名:NfcBTag
方法 or 属性:getRespProtocol(): number[];
SysCap:SystemCapability.Communication.NFC.Core|类名:NfcBTag
方法 or 属性:getRespProtocol(): number[];
SysCap:SystemCapability.Communication.NFC.Tag|nfctech.d.ts| +|SysCap有变化|类名:NfcFTag
SysCap:SystemCapability.Communication.NFC.Core|类名:NfcFTag
SysCap:SystemCapability.Communication.NFC.Tag|nfctech.d.ts| +|SysCap有变化|类名:NfcFTag
方法 or 属性:getSystemCode(): number[];
SysCap:SystemCapability.Communication.NFC.Core|类名:NfcFTag
方法 or 属性:getSystemCode(): number[];
SysCap:SystemCapability.Communication.NFC.Tag|nfctech.d.ts| +|SysCap有变化|类名:NfcFTag
方法 or 属性:getPmm(): number[];
SysCap:SystemCapability.Communication.NFC.Core|类名:NfcFTag
方法 or 属性:getPmm(): number[];
SysCap:SystemCapability.Communication.NFC.Tag|nfctech.d.ts| +|SysCap有变化|类名:NfcVTag
SysCap:SystemCapability.Communication.NFC.Core|类名:NfcVTag
SysCap:SystemCapability.Communication.NFC.Tag|nfctech.d.ts| +|SysCap有变化|类名:NfcVTag
方法 or 属性:getResponseFlags(): number;
SysCap:SystemCapability.Communication.NFC.Core|类名:NfcVTag
方法 or 属性:getResponseFlags(): number;
SysCap:SystemCapability.Communication.NFC.Tag|nfctech.d.ts| +|SysCap有变化|类名:NfcVTag
方法 or 属性:getDsfId(): number;
SysCap:SystemCapability.Communication.NFC.Core|类名:NfcVTag
方法 or 属性:getDsfId(): number;
SysCap:SystemCapability.Communication.NFC.Tag|nfctech.d.ts| +|SysCap有变化|类名:TagSession
SysCap:SystemCapability.Communication.NFC.Core|类名:TagSession
SysCap:SystemCapability.Communication.NFC.Tag|tagSession.d.ts| +|SysCap有变化|类名:TagSession
方法 or 属性:getTagInfo(): tag.TagInfo;
SysCap:SystemCapability.Communication.NFC.Core|类名:TagSession
方法 or 属性:getTagInfo(): tag.TagInfo;
SysCap:SystemCapability.Communication.NFC.Tag|tagSession.d.ts| +|SysCap有变化|类名:TagSession
方法 or 属性:connectTag(): boolean;
SysCap:SystemCapability.Communication.NFC.Core|类名:TagSession
方法 or 属性:connectTag(): boolean;
SysCap:SystemCapability.Communication.NFC.Tag|tagSession.d.ts| +|SysCap有变化|类名:TagSession
方法 or 属性:reset(): void;
SysCap:SystemCapability.Communication.NFC.Core|类名:TagSession
方法 or 属性:reset(): void;
SysCap:SystemCapability.Communication.NFC.Tag|tagSession.d.ts| +|SysCap有变化|类名:TagSession
方法 or 属性:isTagConnected(): boolean;
SysCap:SystemCapability.Communication.NFC.Core|类名:TagSession
方法 or 属性:isTagConnected(): boolean;
SysCap:SystemCapability.Communication.NFC.Tag|tagSession.d.ts| +|SysCap有变化|类名:TagSession
方法 or 属性:setSendDataTimeout(timeout: number): boolean;
SysCap:SystemCapability.Communication.NFC.Core|类名:TagSession
方法 or 属性:setSendDataTimeout(timeout: number): boolean;
SysCap:SystemCapability.Communication.NFC.Tag|tagSession.d.ts| +|SysCap有变化|类名:TagSession
方法 or 属性:getSendDataTimeout(): number;
SysCap:SystemCapability.Communication.NFC.Core|类名:TagSession
方法 or 属性:getSendDataTimeout(): number;
SysCap:SystemCapability.Communication.NFC.Tag|tagSession.d.ts| +|SysCap有变化|类名:TagSession
方法 or 属性:sendData(data: number[]): Promise\;
SysCap:SystemCapability.Communication.NFC.Core|类名:TagSession
方法 or 属性:sendData(data: number[]): Promise\;
SysCap:SystemCapability.Communication.NFC.Tag|tagSession.d.ts| +|SysCap有变化|类名:TagSession
方法 or 属性:sendData(data: number[], callback: AsyncCallback\): void;
SysCap:SystemCapability.Communication.NFC.Core|类名:TagSession
方法 or 属性:sendData(data: number[], callback: AsyncCallback\): void;
SysCap:SystemCapability.Communication.NFC.Tag|tagSession.d.ts| +|SysCap有变化|类名:TagSession
方法 or 属性:getMaxSendLength(): number;
SysCap:SystemCapability.Communication.NFC.Core|类名:TagSession
方法 or 属性:getMaxSendLength(): number;
SysCap:SystemCapability.Communication.NFC.Tag|tagSession.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-compiler-and-runtime.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-compiler-and-runtime.md new file mode 100644 index 0000000000000000000000000000000000000000..ebd772be20e903af8a607064de118792c07b61c1 --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-compiler-and-runtime.md @@ -0,0 +1,687 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.buffer
类名: buffer|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: BufferEncoding
方法 or 属性: type BufferEncoding = 'ascii' \| 'utf8' \| 'utf-8' \| 'utf16le' \| 'ucs2' \| 'ucs-2' \| 'base64' \| 'base64url' \| 'latin1' \| 'binary' \| 'hex';|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: BufferEncoding
方法 or 属性: type BufferEncoding = 'ascii' \| 'utf8' \| 'utf-8' \| 'utf16le' \| 'ucs2' \| 'ucs-2' \| 'base64' \| 'base64url' \| 'latin1' \| 'binary' \| 'hex';|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: BufferEncoding
方法 or 属性: type BufferEncoding = 'ascii' \| 'utf8' \| 'utf-8' \| 'utf16le' \| 'ucs2' \| 'ucs-2' \| 'base64' \| 'base64url' \| 'latin1' \| 'binary' \| 'hex';|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: BufferEncoding
方法 or 属性: type BufferEncoding = 'ascii' \| 'utf8' \| 'utf-8' \| 'utf16le' \| 'ucs2' \| 'ucs-2' \| 'base64' \| 'base64url' \| 'latin1' \| 'binary' \| 'hex';|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: BufferEncoding
方法 or 属性: type BufferEncoding = 'ascii' \| 'utf8' \| 'utf-8' \| 'utf16le' \| 'ucs2' \| 'ucs-2' \| 'base64' \| 'base64url' \| 'latin1' \| 'binary' \| 'hex';|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: BufferEncoding
方法 or 属性: type BufferEncoding = 'ascii' \| 'utf8' \| 'utf-8' \| 'utf16le' \| 'ucs2' \| 'ucs-2' \| 'base64' \| 'base64url' \| 'latin1' \| 'binary' \| 'hex';|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: BufferEncoding
方法 or 属性: type BufferEncoding = 'ascii' \| 'utf8' \| 'utf-8' \| 'utf16le' \| 'ucs2' \| 'ucs-2' \| 'base64' \| 'base64url' \| 'latin1' \| 'binary' \| 'hex';|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: BufferEncoding
方法 or 属性: type BufferEncoding = 'ascii' \| 'utf8' \| 'utf-8' \| 'utf16le' \| 'ucs2' \| 'ucs-2' \| 'base64' \| 'base64url' \| 'latin1' \| 'binary' \| 'hex';|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: BufferEncoding
方法 or 属性: type BufferEncoding = 'ascii' \| 'utf8' \| 'utf-8' \| 'utf16le' \| 'ucs2' \| 'ucs-2' \| 'base64' \| 'base64url' \| 'latin1' \| 'binary' \| 'hex';|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: BufferEncoding
方法 or 属性: type BufferEncoding = 'ascii' \| 'utf8' \| 'utf-8' \| 'utf16le' \| 'ucs2' \| 'ucs-2' \| 'base64' \| 'base64url' \| 'latin1' \| 'binary' \| 'hex';|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: BufferEncoding
方法 or 属性: type BufferEncoding = 'ascii' \| 'utf8' \| 'utf-8' \| 'utf16le' \| 'ucs2' \| 'ucs-2' \| 'base64' \| 'base64url' \| 'latin1' \| 'binary' \| 'hex';|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: TypedArray|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: buffer
方法 or 属性: function alloc(size: number, fill?: string \| Buffer \| number, encoding?: BufferEncoding): Buffer;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: buffer
方法 or 属性: function allocUninitializedFromPool(size: number): Buffer;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: buffer
方法 or 属性: function allocUninitialized(size: number): Buffer;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: buffer
方法 or 属性: function byteLength(string: string \| Buffer \| TypedArray \| DataView \| ArrayBuffer \| SharedArrayBuffer, encoding?: BufferEncoding): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: buffer
方法 or 属性: function concat(list: Buffer[] \| Uint8Array[], totalLength?: number): Buffer;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: buffer
方法 or 属性: function from(array: number[]): Buffer;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: buffer
方法 or 属性: function from(arrayBuffer: ArrayBuffer \| SharedArrayBuffer, byteOffset?: number, length?: number): Buffer;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: buffer
方法 or 属性: function from(buffer: Buffer \| Uint8Array): Buffer;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: buffer
方法 or 属性: function from(object: Object, offsetOrEncoding: number \| string, length: number): Buffer;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: buffer
方法 or 属性: function from(string: String, encoding?: BufferEncoding): Buffer;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: buffer
方法 or 属性: function isBuffer(obj: Object): boolean;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: buffer
方法 or 属性: function isEncoding(encoding: string):boolean;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: buffer
方法 or 属性: function compare(buf1: Buffer \| Uint8Array, buf2: Buffer \| Uint8Array): -1 \| 0 \| 1;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: buffer
方法 or 属性: function transcode(source: Buffer \| Uint8Array, fromEnc: string, toEnc: string): Buffer;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: length: number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: buffer: ArrayBuffer;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: byteOffset: number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: fill(value: string \| Buffer \| Uint8Array \| number, offset?: number, end?: number, encoding?: BufferEncoding): Buffer;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: compare(target: Buffer \| Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): -1 \| 0 \| 1;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: copy(target: Buffer \| Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: equals(otherBuffer: Uint8Array \| Buffer): boolean;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: includes(value: string \| number \| Buffer \| Uint8Array, byteOffset?: number, encoding?: BufferEncoding): boolean;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: indexOf(value: string \| number \| Buffer \| Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: keys(): IterableIterator\;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: values(): IterableIterator\;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: entries(): IterableIterator\<[number, number]>;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: lastIndexOf(value: string \| number \| Buffer \| Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readBigInt64BE(offset?: number): bigint;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readBigInt64LE(offset?: number): bigint;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readBigUInt64BE(offset?: number): bigint;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readBigUInt64LE(offset?: number): bigint;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readDoubleBE(offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readDoubleLE(offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readFloatBE(offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readFloatLE(offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readInt8(offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readInt16BE(offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readInt16LE(offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readInt32BE(offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readInt32LE(offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readIntBE(offset: number, byteLength: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readIntLE(offset: number, byteLength: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readUInt8(offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readUInt16BE(offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readUInt16LE(offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readUInt32BE(offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readUInt32LE(offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readUIntBE(offset: number, byteLength: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: readUIntLE(offset: number, byteLength: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: subarray(start?: number, end?: number): Buffer;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: swap16(): Buffer;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: swap32(): Buffer;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: swap64(): Buffer;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: toJSON(): Object;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: toString(encoding?: string, start?: number, end?: number): string;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: write(str: string, offset?: number, length?: number, encoding?: string): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeBigInt64BE(value: bigint, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeBigInt64LE(value: bigint, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeBigUInt64BE(value: bigint, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeBigUInt64LE(value: bigint, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeDoubleBE(value: number, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeDoubleLE(value: number, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeFloatBE(value: number, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeFloatLE(value: number, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeInt8(value: number, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeInt16BE(value: number, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeInt16LE(value: number, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeInt32BE(value: number, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeInt32LE(value: number, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeIntBE(value: number, offset: number, byteLength: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeIntLE(value : number, offset: number, byteLength: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeUInt8(value: number, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeUInt16BE(value: number, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeUInt16LE(value: number, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeUInt32BE(value: number, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeUInt32LE(value: number, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeUIntBE(value: number, offset: number, byteLength: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Buffer
方法 or 属性: writeUIntLE(value: number, offset: number, byteLength: number): number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Blob|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Blob
方法 or 属性: constructor(sources: string[] \| ArrayBuffer[] \| TypedArray[] \| DataView[] \| Blob[] , options?: Object);|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Blob
方法 or 属性: size: number;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Blob
方法 or 属性: type: string;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Blob
方法 or 属性: arrayBuffer(): Promise\;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Blob
方法 or 属性: slice(start?: number, end?: number, type?: string): Blob;|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.buffer
类名: Blob
方法 or 属性: text(): Promise\;|@ohos.buffer.d.ts| +|新增|NA|类名:ConvertXML
方法or属性:convertToJSObject(xml: string, options?: ConvertOptions) : Object;|@ohos.convertxml.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager|@ohos.process.d.ts| +|新增|NA|类名:ProcessManager
方法or属性:|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法 or 属性:isAppUid(v: number): boolean;|@ohos.process.d.ts| +|新增|NA|类名:ProcessManager
方法or属性:isAppUid(v: number): boolean;|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法 or 属性:getUidForName(v: string): number;|@ohos.process.d.ts| +|新增|NA|类名:ProcessManager
方法or属性:getUidForName(v: string): number;|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法 or 属性:getThreadPriority(v: number): number;|@ohos.process.d.ts| +|新增|NA|类名:ProcessManager
方法or属性:getThreadPriority(v: number): number;|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法 or 属性:getSystemConfig(name: number): number;|@ohos.process.d.ts| +|新增|NA|类名:ProcessManager
方法or属性:getSystemConfig(name: number): number;|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法 or 属性:getEnvironmentVar(name: string): string;|@ohos.process.d.ts| +|新增|NA|类名:ProcessManager
方法or属性:getEnvironmentVar(name: string): string;|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法 or 属性:exit(code: number): void;|@ohos.process.d.ts| +|新增|NA|类名:ProcessManager
方法or属性:exit(code: number): void;|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法 or 属性:kill(signal: number, pid: number): boolean;|@ohos.process.d.ts| +|新增|NA|类名:ProcessManager
方法or属性:kill(signal: number, pid: number): boolean;|@ohos.process.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|类名:URI
方法or属性:equalsTo(other: URI): boolean;|@ohos.uri.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams|@ohos.url.d.ts| +|新增|NA|类名:URLParams
方法or属性:|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法 or 属性:constructor(init?: string[][] \| Record\ \| string \| URLParams);|@ohos.url.d.ts| +|新增|NA|类名:URLParams
方法or属性:constructor(init?: string[][] \| Record\ \| string \| URLParams);|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法 or 属性:append(name: string, value: string): void;|@ohos.url.d.ts| +|新增|NA|类名:URLParams
方法or属性:append(name: string, value: string): void;|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法 or 属性:delete(name: string): void;|@ohos.url.d.ts| +|新增|NA|类名:URLParams
方法or属性:delete(name: string): void;|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法 or 属性:getAll(name: string): string[];|@ohos.url.d.ts| +|新增|NA|类名:URLParams
方法or属性:getAll(name: string): string[];|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法 or 属性:entries(): IterableIterator\<[string, string]>;|@ohos.url.d.ts| +|新增|NA|类名:URLParams
方法or属性:entries(): IterableIterator\<[string, string]>;|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法 or 属性:forEach(callbackFn: (value: string, key: string, searchParams: this) => void, thisArg?: Object): void;|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法 or 属性:get(name: string): string \| null;|@ohos.url.d.ts| +|新增|NA|类名:URLParams
方法or属性:get(name: string): string \| null;|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法 or 属性:has(name: string): boolean;|@ohos.url.d.ts| +|新增|NA|类名:URLParams
方法or属性:has(name: string): boolean;|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法 or 属性:set(name: string, value: string): void;|@ohos.url.d.ts| +|新增|NA|类名:URLParams
方法or属性:set(name: string, value: string): void;|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法 or 属性:sort(): void;|@ohos.url.d.ts| +|新增|NA|类名:URLParams
方法or属性:sort(): void;|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法 or 属性:keys(): IterableIterator\;|@ohos.url.d.ts| +|新增|NA|类名:URLParams
方法or属性:keys(): IterableIterator\;|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法 or 属性:values(): IterableIterator\;|@ohos.url.d.ts| +|新增|NA|类名:URLParams
方法or属性:values(): IterableIterator\;|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法 or 属性:[Symbol.iterator](): IterableIterator\<[string, string]>;|@ohos.url.d.ts| +|新增|NA|类名:URLParams
方法or属性:[Symbol.iterator](): IterableIterator\<[string, string]>;|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法 or 属性:toString(): string;|@ohos.url.d.ts| +|新增|NA|类名:URL
方法or属性:constructor();|@ohos.url.d.ts| +|新增|NA|类名:URL
方法or属性:static parseURL(url: string, base?: string \| URL): URL;|@ohos.url.d.ts| +|新增|NA|类名:URL
方法or属性:readonly params: URLParams;|@ohos.url.d.ts| +|新增|NA|类名:util
方法or属性:function format(format: string, ...args: Object[]): string;|@ohos.util.d.ts| +|新增|NA|类名:util
方法or属性:function errnoToString(errno: number): string;|@ohos.util.d.ts| +|新增|NA|类名:util
方法or属性:function promisify(original: (err: Object, value: Object) => void): Function;|@ohos.util.d.ts| +|新增|NA|类名:util
方法or属性:function generateRandomUUID(entropyCache?: boolean): string;|@ohos.util.d.ts| +|新增|NA|类名:util
方法or属性:function generateRandomBinaryUUID(entropyCache?: boolean): Uint8Array;|@ohos.util.d.ts| +|新增|NA|类名:util
方法or属性:function parseUUID(uuid: string): Uint8Array;|@ohos.util.d.ts| +|新增|NA|类名:TextDecoder
方法or属性:constructor();|@ohos.util.d.ts| +|新增|NA|类名:TextDecoder
方法or属性:static create(

encoding?: string,

options?: { fatal?: boolean; ignoreBOM?: boolean }

): TextDecoder;|@ohos.util.d.ts| +|新增|NA|类名:TextDecoder
方法or属性:decodeWithStream(input: Uint8Array, options?: { stream?: boolean }): string;|@ohos.util.d.ts| +|新增|NA|类名:TextEncoder
方法or属性:constructor(encoding?: string);|@ohos.util.d.ts| +|新增|NA|类名:TextEncoder
方法or属性:encodeInto(input?: string): Uint8Array;|@ohos.util.d.ts| +|新增|NA|类名:TextEncoder
方法or属性:encodeIntoUint8Array(

input: string,

dest: Uint8Array,

): { read: number; written: number };|@ohos.util.d.ts| +|新增|NA|类名:RationalNumber
方法or属性:constructor();|@ohos.util.d.ts| +|新增|NA|类名:RationalNumber
方法or属性:static parseRationalNumber(numerator: number, denominator: number): RationalNumber;|@ohos.util.d.ts| +|新增|NA|类名:RationalNumber
方法or属性:compare(another :RationalNumber): number;|@ohos.util.d.ts| +|新增|NA|类名:RationalNumber
方法or属性:static getCommonFactor(number1: number, number2: number): number;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:constructor(capacity?: number);|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:updateCapacity(newCapacity: number):void|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:updateCapacity(newCapacity: number):void|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:toString(): string|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:length: number|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:length: number|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:getCapacity(): number;|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:getCapacity(): number;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:clear(): void;|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:clear(): void;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:getCreateCount(): number;|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:getCreateCount(): number;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:getMissCount(): number;|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:getMissCount(): number;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:getRemovalCount(): number;|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:getRemovalCount(): number;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:getMatchCount(): number;|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:getMatchCount(): number;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:getPutCount(): number;|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:getPutCount(): number;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:isEmpty(): boolean;|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:isEmpty(): boolean;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:get(key: K): V \| undefined;|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:get(key: K): V \| undefined;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:put(key: K, value: V): V;|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:put(key: K, value: V): V;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:values(): V[];|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:values(): V[];|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:keys(): K[];|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:keys(): K[];|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:remove(key: K): V \| undefined;|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:remove(key: K): V \| undefined;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:afterRemoval(isEvict: boolean, key: K, value: V, newValue: V): void;|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:afterRemoval(isEvict: boolean, key: K, value: V, newValue: V): void;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:contains(key: K): boolean;|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:contains(key: K): boolean;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:createDefault(key: K): V;|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:createDefault(key: K): V;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:entries(): IterableIterator\<[K, V]>;|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:entries(): IterableIterator\<[K, V]>;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法 or 属性:[Symbol.iterator](): IterableIterator\<[K, V]>;|@ohos.util.d.ts| +|新增|NA|类名:LRUCache
方法or属性:[Symbol.iterator](): IterableIterator\<[K, V]>;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper|@ohos.util.d.ts| +|新增|NA|类名:ScopeHelper
方法or属性:|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法 or 属性:constructor(lowerObj: ScopeType, upperObj: ScopeType);|@ohos.util.d.ts| +|新增|NA|类名:ScopeHelper
方法or属性:constructor(lowerObj: ScopeType, upperObj: ScopeType);|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法 or 属性:toString(): string;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法 or 属性:intersect(range: ScopeHelper): ScopeHelper;|@ohos.util.d.ts| +|新增|NA|类名:ScopeHelper
方法or属性:intersect(range: ScopeHelper): ScopeHelper;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法 or 属性:intersect(lowerObj: ScopeType, upperObj: ScopeType): ScopeHelper;|@ohos.util.d.ts| +|新增|NA|类名:ScopeHelper
方法or属性:intersect(lowerObj: ScopeType, upperObj: ScopeType): ScopeHelper;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法 or 属性:getUpper(): ScopeType;|@ohos.util.d.ts| +|新增|NA|类名:ScopeHelper
方法or属性:getUpper(): ScopeType;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法 or 属性:getLower(): ScopeType;|@ohos.util.d.ts| +|新增|NA|类名:ScopeHelper
方法or属性:getLower(): ScopeType;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法 or 属性:expand(lowerObj: ScopeType, upperObj: ScopeType): ScopeHelper;|@ohos.util.d.ts| +|新增|NA|类名:ScopeHelper
方法or属性:expand(lowerObj: ScopeType, upperObj: ScopeType): ScopeHelper;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法 or 属性:expand(range: ScopeHelper): ScopeHelper;|@ohos.util.d.ts| +|新增|NA|类名:ScopeHelper
方法or属性:expand(range: ScopeHelper): ScopeHelper;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法 or 属性:expand(value: ScopeType): ScopeHelper;|@ohos.util.d.ts| +|新增|NA|类名:ScopeHelper
方法or属性:expand(value: ScopeType): ScopeHelper;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法 or 属性:contains(value: ScopeType): boolean;|@ohos.util.d.ts| +|新增|NA|类名:ScopeHelper
方法or属性:contains(value: ScopeType): boolean;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法 or 属性:contains(range: ScopeHelper): boolean;|@ohos.util.d.ts| +|新增|NA|类名:ScopeHelper
方法or属性:contains(range: ScopeHelper): boolean;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法 or 属性:clamp(value: ScopeType): ScopeType;|@ohos.util.d.ts| +|新增|NA|类名:ScopeHelper
方法or属性:clamp(value: ScopeType): ScopeType;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper|@ohos.util.d.ts| +|新增|NA|类名:Base64Helper
方法or属性:|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper
方法 or 属性:constructor();|@ohos.util.d.ts| +|新增|NA|类名:Base64Helper
方法or属性:constructor();|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper
方法 or 属性:encodeSync(src: Uint8Array): Uint8Array;|@ohos.util.d.ts| +|新增|NA|类名:Base64Helper
方法or属性:encodeSync(src: Uint8Array): Uint8Array;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper
方法 or 属性:encodeToStringSync(src: Uint8Array): string;|@ohos.util.d.ts| +|新增|NA|类名:Base64Helper
方法or属性:encodeToStringSync(src: Uint8Array): string;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper
方法 or 属性:decodeSync(src: Uint8Array \| string): Uint8Array;|@ohos.util.d.ts| +|新增|NA|类名:Base64Helper
方法or属性:decodeSync(src: Uint8Array \| string): Uint8Array;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper
方法 or 属性:encode(src: Uint8Array): Promise\;|@ohos.util.d.ts| +|新增|NA|类名:Base64Helper
方法or属性:encode(src: Uint8Array): Promise\;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper
方法 or 属性:encodeToString(src: Uint8Array): Promise\;|@ohos.util.d.ts| +|新增|NA|类名:Base64Helper
方法or属性:encodeToString(src: Uint8Array): Promise\;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper
方法 or 属性:decode(src: Uint8Array \| string): Promise\;|@ohos.util.d.ts| +|新增|NA|类名:Base64Helper
方法or属性:decode(src: Uint8Array \| string): Promise\;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.worker
类名: MessageEvents|@ohos.worker.d.ts| +|新增|NA|类名:MessageEvents
方法or属性:|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: MessageEvents
方法 or 属性:readonly data;|@ohos.worker.d.ts| +|新增|NA|类名:MessageEvents
方法or属性:readonly data;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventListener|@ohos.worker.d.ts| +|新增|NA|类名:WorkerEventListener
方法or属性:|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventListener
方法 or 属性:(event: Event): void \| Promise\;|@ohos.worker.d.ts| +|新增|NA|类名:WorkerEventListener
方法or属性:(event: Event): void \| Promise\;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventTarget|@ohos.worker.d.ts| +|新增|NA|类名:WorkerEventTarget
方法or属性:|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventTarget
方法 or 属性:addEventListener(type: string, listener: WorkerEventListener): void;|@ohos.worker.d.ts| +|新增|NA|类名:WorkerEventTarget
方法or属性:addEventListener(type: string, listener: WorkerEventListener): void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventTarget
方法 or 属性:dispatchEvent(event: Event): boolean;|@ohos.worker.d.ts| +|新增|NA|类名:WorkerEventTarget
方法or属性:dispatchEvent(event: Event): boolean;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventTarget
方法 or 属性:removeEventListener(type: string, callback?: WorkerEventListener): void;|@ohos.worker.d.ts| +|新增|NA|类名:WorkerEventTarget
方法or属性:removeEventListener(type: string, callback?: WorkerEventListener): void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventTarget
方法 or 属性:removeAllListener(): void;|@ohos.worker.d.ts| +|新增|NA|类名:WorkerEventTarget
方法or属性:removeAllListener(): void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: GlobalScope|@ohos.worker.d.ts| +|新增|NA|类名:GlobalScope
方法or属性:|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: GlobalScope
方法 or 属性:readonly name: string;|@ohos.worker.d.ts| +|新增|NA|类名:GlobalScope
方法or属性:readonly name: string;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: GlobalScope
方法 or 属性:onerror?: (ev: ErrorEvent) => void;|@ohos.worker.d.ts| +|新增|NA|类名:GlobalScope
方法or属性:onerror?: (ev: ErrorEvent) => void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: GlobalScope
方法 or 属性:readonly self: GlobalScope & typeof globalThis;|@ohos.worker.d.ts| +|新增|NA|类名:GlobalScope
方法or属性:readonly self: GlobalScope & typeof globalThis;|@ohos.worker.d.ts| +|新增|NA|类名:DedicatedWorkerGlobalScope
方法or属性:postMessage(messageObject: Object, transfer: ArrayBuffer[]): void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorkerGlobalScope|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorkerGlobalScope
方法or属性:|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法 or 属性:onmessage?: (this: ThreadWorkerGlobalScope, ev: MessageEvents) => void;|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorkerGlobalScope
方法or属性:onmessage?: (this: ThreadWorkerGlobalScope, ev: MessageEvents) => void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法 or 属性:onmessageerror?: (this: ThreadWorkerGlobalScope, ev: MessageEvents) => void;|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorkerGlobalScope
方法or属性:onmessageerror?: (this: ThreadWorkerGlobalScope, ev: MessageEvents) => void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法 or 属性:close(): void;|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorkerGlobalScope
方法or属性:close(): void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法 or 属性:postMessage(messageObject: Object, transfer: ArrayBuffer[]): void;|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorkerGlobalScope
方法or属性:postMessage(messageObject: Object, transfer: ArrayBuffer[]): void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法 or 属性:postMessage(messageObject: Object, options?: PostMessageOptions): void;|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorkerGlobalScope
方法or属性:postMessage(messageObject: Object, options?: PostMessageOptions): void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorker
方法or属性:|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法 or 属性:constructor(scriptURL: string, options?: WorkerOptions);|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorker
方法or属性:constructor(scriptURL: string, options?: WorkerOptions);|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法 or 属性:onexit?: (code: number) => void;|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorker
方法or属性:onexit?: (code: number) => void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法 or 属性:onerror?: (err: ErrorEvent) => void;|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorker
方法or属性:onerror?: (err: ErrorEvent) => void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法 or 属性:onmessage?: (event: MessageEvents) => void;|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorker
方法or属性:onmessage?: (event: MessageEvents) => void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法 or 属性:onmessageerror?: (event: MessageEvents) => void;|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorker
方法or属性:onmessageerror?: (event: MessageEvents) => void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法 or 属性:postMessage(message: Object, transfer: ArrayBuffer[]): void;|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorker
方法or属性:postMessage(message: Object, transfer: ArrayBuffer[]): void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法 or 属性:postMessage(message: Object, options?: PostMessageOptions): void;|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorker
方法or属性:postMessage(message: Object, options?: PostMessageOptions): void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法 or 属性:on(type: string, listener: WorkerEventListener): void;|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorker
方法or属性:on(type: string, listener: WorkerEventListener): void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法 or 属性:once(type: string, listener: WorkerEventListener): void;|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorker
方法or属性:once(type: string, listener: WorkerEventListener): void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法 or 属性:off(type: string, listener?: WorkerEventListener): void;|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorker
方法or属性:off(type: string, listener?: WorkerEventListener): void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法 or 属性:terminate(): void;|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorker
方法or属性:terminate(): void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法 or 属性:addEventListener(type: string, listener: WorkerEventListener): void;|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorker
方法or属性:addEventListener(type: string, listener: WorkerEventListener): void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法 or 属性:dispatchEvent(event: Event): boolean;|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorker
方法or属性:dispatchEvent(event: Event): boolean;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法 or 属性:removeEventListener(type: string, callback?: WorkerEventListener): void;|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorker
方法or属性:removeEventListener(type: string, callback?: WorkerEventListener): void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法 or 属性:removeAllListener(): void;|@ohos.worker.d.ts| +|新增|NA|类名:ThreadWorker
方法or属性:removeAllListener(): void;|@ohos.worker.d.ts| +|新增|NA|类名:worker
方法or属性:const workerPort: ThreadWorkerGlobalScope;|@ohos.worker.d.ts| +|访问级别有变化|类名:ChildProcess
访问级别:公开API|类名:ChildProcess
访问级别:系统API|@ohos.process.d.ts| +|废弃版本有变化|类名:ConvertXML
方法 or 属性:convert(xml: string, options?: ConvertOptions) : Object;
废弃版本:N/A|类名:ConvertXML
方法 or 属性:convert(xml: string, options?: ConvertOptions) : Object;
废弃版本:9
代替接口:ohos.convertxml.ConvertXML.convertToJSObject |@ohos.convertxml.d.ts| +|废弃版本有变化|类名:process
方法 or 属性:function isAppUid(v: number): boolean;
废弃版本:N/A|类名:process
方法 or 属性:function isAppUid(v: number): boolean;
废弃版本:9
代替接口:ohos.process.ProcessManager.isAppUid |@ohos.process.d.ts| +|废弃版本有变化|类名:process
方法 or 属性:function getUidForName(v: string): number;
废弃版本:N/A|类名:process
方法 or 属性:function getUidForName(v: string): number;
废弃版本:9
代替接口:ohos.process.ProcessManager.getUidForName |@ohos.process.d.ts| +|废弃版本有变化|类名:process
方法 or 属性:function getThreadPriority(v: number): number;
废弃版本:N/A|类名:process
方法 or 属性:function getThreadPriority(v: number): number;
废弃版本:9
代替接口:ohos.process.ProcessManager.getThreadPriority |@ohos.process.d.ts| +|废弃版本有变化|类名:process
方法 or 属性:function getSystemConfig(name: number): number;
废弃版本:N/A|类名:process
方法 or 属性:function getSystemConfig(name: number): number;
废弃版本:9
代替接口:ohos.process.ProcessManager.getSystemConfig |@ohos.process.d.ts| +|废弃版本有变化|类名:process
方法 or 属性:function getEnvironmentVar(name: string): string;
废弃版本:N/A|类名:process
方法 or 属性:function getEnvironmentVar(name: string): string;
废弃版本:9
代替接口:ohos.process.ProcessManager.getEnvironmentVar |@ohos.process.d.ts| +|废弃版本有变化|类名:process
方法 or 属性:function exit(code: number): void;
废弃版本:N/A|类名:process
方法 or 属性:function exit(code: number): void;
废弃版本:9
代替接口:ohos.process.ProcessManager.exit |@ohos.process.d.ts| +|废弃版本有变化|类名:process
方法 or 属性:function kill(signal: number, pid: number): boolean;
废弃版本:N/A|类名:process
方法 or 属性:function kill(signal: number, pid: number): boolean;
废弃版本:9
代替接口:ohos.process.ProcessManager.kill |@ohos.process.d.ts| +|废弃版本有变化|类名:URI
方法 or 属性:equals(other: URI): boolean;
废弃版本:N/A|类名:URI
方法 or 属性:equals(other: URI): boolean;
废弃版本:9
代替接口:ohos.uri.URI.equalsTo |@ohos.uri.d.ts| +|废弃版本有变化|类名:URLSearchParams
废弃版本:N/A|类名:URLSearchParams
废弃版本:9
代替接口:ohos.url.URLParams |@ohos.url.d.ts| +|废弃版本有变化|类名:URLSearchParams
方法 or 属性:constructor(init?: string[][] \| Record\ \| string \| URLSearchParams);
废弃版本:N/A|类名:URLSearchParams
方法 or 属性:constructor(init?: string[][] \| Record\ \| string \| URLSearchParams);
废弃版本:9
代替接口:ohos.url.URLParams.constructor |@ohos.url.d.ts| +|废弃版本有变化|类名:URLSearchParams
方法 or 属性:append(name: string, value: string): void;
废弃版本:N/A|类名:URLSearchParams
方法 or 属性:append(name: string, value: string): void;
废弃版本:9
代替接口:ohos.url.URLParams.append |@ohos.url.d.ts| +|废弃版本有变化|类名:URLSearchParams
方法 or 属性:delete(name: string): void;
废弃版本:N/A|类名:URLSearchParams
方法 or 属性:delete(name: string): void;
废弃版本:9
代替接口:ohos.url.URLParams.delete |@ohos.url.d.ts| +|废弃版本有变化|类名:URLSearchParams
方法 or 属性:getAll(name: string): string[];
废弃版本:N/A|类名:URLSearchParams
方法 or 属性:getAll(name: string): string[];
废弃版本:9
代替接口:ohos.url.URLParams.getAll |@ohos.url.d.ts| +|废弃版本有变化|类名:URLSearchParams
方法 or 属性:entries(): IterableIterator\<[string, string]>;
废弃版本:N/A|类名:URLSearchParams
方法 or 属性:entries(): IterableIterator\<[string, string]>;
废弃版本:9
代替接口:ohos.url.URLParams.entries |@ohos.url.d.ts| +|废弃版本有变化|类名:URLSearchParams
方法 or 属性:get(name: string): string \| null;
废弃版本:N/A|类名:URLSearchParams
方法 or 属性:get(name: string): string \| null;
废弃版本:9
代替接口:ohos.url.URLParams.get |@ohos.url.d.ts| +|废弃版本有变化|类名:URLSearchParams
方法 or 属性:has(name: string): boolean;
废弃版本:N/A|类名:URLSearchParams
方法 or 属性:has(name: string): boolean;
废弃版本:9
代替接口:ohos.url.URLParams.has |@ohos.url.d.ts| +|废弃版本有变化|类名:URLSearchParams
方法 or 属性:set(name: string, value: string): void;
废弃版本:N/A|类名:URLSearchParams
方法 or 属性:set(name: string, value: string): void;
废弃版本:9
代替接口:ohos.url.URLParams.set |@ohos.url.d.ts| +|废弃版本有变化|类名:URLSearchParams
方法 or 属性:sort(): void;
废弃版本:N/A|类名:URLSearchParams
方法 or 属性:sort(): void;
废弃版本:9
代替接口:ohos.url.URLParams.sort |@ohos.url.d.ts| +|废弃版本有变化|类名:URLSearchParams
方法 or 属性:keys(): IterableIterator\;
废弃版本:N/A|类名:URLSearchParams
方法 or 属性:keys(): IterableIterator\;
废弃版本:9
代替接口:ohos.url.URLParams.keys |@ohos.url.d.ts| +|废弃版本有变化|类名:URLSearchParams
方法 or 属性:values(): IterableIterator\;
废弃版本:N/A|类名:URLSearchParams
方法 or 属性:values(): IterableIterator\;
废弃版本:9
代替接口:ohos.url.URLParams.values |@ohos.url.d.ts| +|废弃版本有变化|类名:URLSearchParams
方法 or 属性:[Symbol.iterator](): IterableIterator\<[string, string]>;
废弃版本:N/A|类名:URLSearchParams
方法 or 属性:[Symbol.iterator](): IterableIterator\<[string, string]>;
废弃版本:9
代替接口:ohos.url.URLParams.|@ohos.url.d.ts| +|废弃版本有变化|类名:URLSearchParams
方法 or 属性:toString(): string;
废弃版本:N/A|类名:URLSearchParams
方法 or 属性:toString(): string;
废弃版本:9
代替接口:ohos.url.URLParams.toString |@ohos.url.d.ts| +|废弃版本有变化|类名:URL
方法 or 属性:constructor(url: string, base?: string \| URL);
废弃版本:N/A|类名:URL
方法 or 属性:constructor(url: string, base?: string \| URL);
废弃版本:9
代替接口:ohos.url.URL.parseURL |@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| +|废弃版本有变化|类名:util
方法 or 属性:function printf(format: string, ...args: Object[]): string;
废弃版本:N/A|类名:util
方法 or 属性:function printf(format: string, ...args: Object[]): string;
废弃版本:9
代替接口:ohos.util.format |@ohos.util.d.ts| +|废弃版本有变化|类名:util
方法 or 属性:function getErrorString(errno: number): string;
废弃版本:N/A|类名:util
方法 or 属性:function getErrorString(errno: number): string;
废弃版本:9
代替接口:ohos.util.errnoToString |@ohos.util.d.ts| +|废弃版本有变化|类名:util
方法 or 属性:function promiseWrapper(original: (err: Object, value: Object) => void): Object;
废弃版本:N/A|类名:util
方法 or 属性:function promiseWrapper(original: (err: Object, value: Object) => void): Object;
废弃版本:9
代替接口:ohos.util.promisify |@ohos.util.d.ts| +|废弃版本有变化|类名:TextDecoder
方法 or 属性:constructor(

encoding?: string,

options?: { fatal?: boolean; ignoreBOM?: boolean },

);
废弃版本:N/A|类名:TextDecoder
方法 or 属性:constructor(

encoding?: string,

options?: { fatal?: boolean; ignoreBOM?: boolean },

);
废弃版本:9
代替接口:ohos.util.TextDecoder.create |@ohos.util.d.ts| +|废弃版本有变化|类名:TextDecoder
方法 or 属性:decode(input: Uint8Array, options?: { stream?: false }): string;
废弃版本:N/A|类名:TextDecoder
方法 or 属性:decode(input: Uint8Array, options?: { stream?: false }): string;
废弃版本:9
代替接口:ohos.util.decodeWithStream |@ohos.util.d.ts| +|废弃版本有变化|类名:TextEncoder
方法 or 属性:encode(input?: string): Uint8Array;
废弃版本:N/A|类名:TextEncoder
方法 or 属性:encode(input?: string): Uint8Array;
废弃版本:9
代替接口:ohos.util.encodeInto |@ohos.util.d.ts| +|废弃版本有变化|类名:TextEncoder
方法 or 属性:encodeInto(

input: string,

dest: Uint8Array,

): { read: number; written: number };
废弃版本:N/A|类名:TextEncoder
方法 or 属性:encodeInto(

input: string,

dest: Uint8Array,

): { read: number; written: number };
废弃版本:9
代替接口:ohos.util.encodeIntoUint8Array |@ohos.util.d.ts| +|废弃版本有变化|类名:RationalNumber
方法 or 属性:constructor(numerator: number, denominator: number);
废弃版本:N/A|类名:RationalNumber
方法 or 属性:constructor(numerator: number, denominator: number);
废弃版本:9
代替接口:ohos.util.RationalNumber.parseRationalNumber |@ohos.util.d.ts| +|废弃版本有变化|类名:RationalNumber
方法 or 属性:compareTo(another :RationalNumber): number;
废弃版本:N/A|类名:RationalNumber
方法 or 属性:compareTo(another :RationalNumber): number;
废弃版本:9
代替接口:ohos.util.compare |@ohos.util.d.ts| +|废弃版本有变化|类名:RationalNumber
方法 or 属性:static getCommonDivisor(number1: number, number2: number): number;
废弃版本:N/A|类名:RationalNumber
方法 or 属性:static getCommonDivisor(number1: number, number2: number): number;
废弃版本:9
代替接口:ohos.util.getCommonFactor |@ohos.util.d.ts| +|废弃版本有变化|类名:LruBuffer
废弃版本:N/A|类名:LruBuffer
废弃版本:9
代替接口:ohos.util.LRUCache |@ohos.util.d.ts| +|废弃版本有变化|类名:LruBuffer
方法 or 属性:updateCapacity(newCapacity: number):void
废弃版本:N/A|类名:LruBuffer
方法 or 属性:updateCapacity(newCapacity: number):void
废弃版本:9
代替接口:ohos.util.LRUCache.updateCapacity |@ohos.util.d.ts| +|废弃版本有变化|类名:LruBuffer
方法 or 属性:getCapacity(): number;
废弃版本:N/A|类名:LruBuffer
方法 or 属性:getCapacity(): number;
废弃版本:9
代替接口:ohos.util.LRUCache.getCapacity |@ohos.util.d.ts| +|废弃版本有变化|类名:LruBuffer
方法 or 属性:clear(): void;
废弃版本:N/A|类名:LruBuffer
方法 or 属性:clear(): void;
废弃版本:9
代替接口:ohos.util.LRUCache.clear |@ohos.util.d.ts| +|废弃版本有变化|类名:LruBuffer
方法 or 属性:getCreateCount(): number;
废弃版本:N/A|类名:LruBuffer
方法 or 属性:getCreateCount(): number;
废弃版本:9
代替接口:ohos.util.LRUCache.getCreateCount |@ohos.util.d.ts| +|废弃版本有变化|类名:LruBuffer
方法 or 属性:getMissCount(): number;
废弃版本:N/A|类名:LruBuffer
方法 or 属性:getMissCount(): number;
废弃版本:9
代替接口:ohos.util.LRUCache.getMissCount |@ohos.util.d.ts| +|废弃版本有变化|类名:LruBuffer
方法 or 属性:getRemovalCount(): number;
废弃版本:N/A|类名:LruBuffer
方法 or 属性:getRemovalCount(): number;
废弃版本:9
代替接口:ohos.util.LRUCache.getRemovalCount |@ohos.util.d.ts| +|废弃版本有变化|类名:LruBuffer
方法 or 属性:getMatchCount(): number;
废弃版本:N/A|类名:LruBuffer
方法 or 属性:getMatchCount(): number;
废弃版本:9
代替接口:ohos.util.LRUCache.getMatchCount |@ohos.util.d.ts| +|废弃版本有变化|类名:LruBuffer
方法 or 属性:getPutCount(): number;
废弃版本:N/A|类名:LruBuffer
方法 or 属性:getPutCount(): number;
废弃版本:9
代替接口:ohos.util.LRUCache.getPutCount |@ohos.util.d.ts| +|废弃版本有变化|类名:LruBuffer
方法 or 属性:isEmpty(): boolean;
废弃版本:N/A|类名:LruBuffer
方法 or 属性:isEmpty(): boolean;
废弃版本:9
代替接口:ohos.util.LRUCache.isEmpty |@ohos.util.d.ts| +|废弃版本有变化|类名:LruBuffer
方法 or 属性:get(key: K): V \| undefined;
废弃版本:N/A|类名:LruBuffer
方法 or 属性:get(key: K): V \| undefined;
废弃版本:9
代替接口:ohos.util.LRUCache.get |@ohos.util.d.ts| +|废弃版本有变化|类名:LruBuffer
方法 or 属性:put(key: K, value: V): V;
废弃版本:N/A|类名:LruBuffer
方法 or 属性:put(key: K, value: V): V;
废弃版本:9
代替接口:ohos.util.LRUCache.put |@ohos.util.d.ts| +|废弃版本有变化|类名:LruBuffer
方法 or 属性:values(): V[];
废弃版本:N/A|类名:LruBuffer
方法 or 属性:values(): V[];
废弃版本:9
代替接口:ohos.util.LRUCache.values |@ohos.util.d.ts| +|废弃版本有变化|类名:LruBuffer
方法 or 属性:keys(): K[];
废弃版本:N/A|类名:LruBuffer
方法 or 属性:keys(): K[];
废弃版本:9
代替接口:ohos.util.LRUCache.keys |@ohos.util.d.ts| +|废弃版本有变化|类名:LruBuffer
方法 or 属性:remove(key: K): V \| undefined;
废弃版本:N/A|类名:LruBuffer
方法 or 属性:remove(key: K): V \| undefined;
废弃版本:9
代替接口:ohos.util.LRUCache.remove |@ohos.util.d.ts| +|废弃版本有变化|类名:LruBuffer
方法 or 属性:afterRemoval(isEvict: boolean, key: K, value: V, newValue: V): void;
废弃版本:N/A|类名:LruBuffer
方法 or 属性:afterRemoval(isEvict: boolean, key: K, value: V, newValue: V): void;
废弃版本:9
代替接口:ohos.util.LRUCache.afterRemoval |@ohos.util.d.ts| +|废弃版本有变化|类名:LruBuffer
方法 or 属性:contains(key: K): boolean;
废弃版本:N/A|类名:LruBuffer
方法 or 属性:contains(key: K): boolean;
废弃版本:9
代替接口:ohos.util.LRUCache.contains |@ohos.util.d.ts| +|废弃版本有变化|类名:LruBuffer
方法 or 属性:createDefault(key: K): V;
废弃版本:N/A|类名:LruBuffer
方法 or 属性:createDefault(key: K): V;
废弃版本:9
代替接口:ohos.util.LRUCache.createDefault |@ohos.util.d.ts| +|废弃版本有变化|类名:LruBuffer
方法 or 属性:entries(): IterableIterator\<[K, V]>;
废弃版本:N/A|类名:LruBuffer
方法 or 属性:entries(): IterableIterator\<[K, V]>;
废弃版本:9
代替接口:ohos.util.LRUCache.entries |@ohos.util.d.ts| +|废弃版本有变化|类名:LruBuffer
方法 or 属性:[Symbol.iterator](): IterableIterator\<[K, V]>;
废弃版本:N/A|类名:LruBuffer
方法 or 属性:[Symbol.iterator](): IterableIterator\<[K, V]>;
废弃版本:9
代替接口:ohos.util.LRUCache.|@ohos.util.d.ts| +|废弃版本有变化|类名:Scope
废弃版本:N/A|类名:Scope
废弃版本:9
代替接口:ohos.util.ScopeHelper |@ohos.util.d.ts| +|废弃版本有变化|类名:Scope
方法 or 属性:constructor(lowerObj: ScopeType, upperObj: ScopeType);
废弃版本:N/A|类名:Scope
方法 or 属性:constructor(lowerObj: ScopeType, upperObj: ScopeType);
废弃版本:9
代替接口:ohos.util.ScopeHelper.constructor |@ohos.util.d.ts| +|废弃版本有变化|类名:Scope
方法 or 属性:toString(): string;
废弃版本:N/A|类名:Scope
方法 or 属性:toString(): string;
废弃版本:9
代替接口:ohos.util.ScopeHelper.toString |@ohos.util.d.ts| +|废弃版本有变化|类名:Scope
方法 or 属性:intersect(range: Scope): Scope;
废弃版本:N/A|类名:Scope
方法 or 属性:intersect(range: Scope): Scope;
废弃版本:9
代替接口:ohos.util.ScopeHelper.intersect |@ohos.util.d.ts| +|废弃版本有变化|类名:Scope
方法 or 属性:intersect(lowerObj: ScopeType, upperObj: ScopeType): Scope;
废弃版本:N/A|类名:Scope
方法 or 属性:intersect(lowerObj: ScopeType, upperObj: ScopeType): Scope;
废弃版本:9
代替接口:ohos.util.ScopeHelper.intersect |@ohos.util.d.ts| +|废弃版本有变化|类名:Scope
方法 or 属性:getUpper(): ScopeType;
废弃版本:N/A|类名:Scope
方法 or 属性:getUpper(): ScopeType;
废弃版本:9
代替接口:ohos.util.ScopeHelper.getUpper |@ohos.util.d.ts| +|废弃版本有变化|类名:Scope
方法 or 属性:getLower(): ScopeType;
废弃版本:N/A|类名:Scope
方法 or 属性:getLower(): ScopeType;
废弃版本:9
代替接口:ohos.util.ScopeHelper.getLower |@ohos.util.d.ts| +|废弃版本有变化|类名:Scope
方法 or 属性:expand(lowerObj: ScopeType, upperObj: ScopeType): Scope;
废弃版本:N/A|类名:Scope
方法 or 属性:expand(lowerObj: ScopeType, upperObj: ScopeType): Scope;
废弃版本:9
代替接口:ohos.util.ScopeHelper.expand |@ohos.util.d.ts| +|废弃版本有变化|类名:Scope
方法 or 属性:expand(range: Scope): Scope;
废弃版本:N/A|类名:Scope
方法 or 属性:expand(range: Scope): Scope;
废弃版本:9
代替接口:ohos.util.ScopeHelper.expand |@ohos.util.d.ts| +|废弃版本有变化|类名:Scope
方法 or 属性:expand(value: ScopeType): Scope;
废弃版本:N/A|类名:Scope
方法 or 属性:expand(value: ScopeType): Scope;
废弃版本:9
代替接口:ohos.util.ScopeHelper.expand |@ohos.util.d.ts| +|废弃版本有变化|类名:Scope
方法 or 属性:contains(value: ScopeType): boolean;
废弃版本:N/A|类名:Scope
方法 or 属性:contains(value: ScopeType): boolean;
废弃版本:9
代替接口:ohos.util.ScopeHelper.contains |@ohos.util.d.ts| +|废弃版本有变化|类名:Scope
方法 or 属性:contains(range: Scope): boolean;
废弃版本:N/A|类名:Scope
方法 or 属性:contains(range: Scope): boolean;
废弃版本:9
代替接口:ohos.util.ScopeHelper.contains |@ohos.util.d.ts| +|废弃版本有变化|类名:Scope
方法 or 属性:clamp(value: ScopeType): ScopeType;
废弃版本:N/A|类名:Scope
方法 or 属性:clamp(value: ScopeType): ScopeType;
废弃版本:9
代替接口:ohos.util.ScopeHelper.clamp |@ohos.util.d.ts| +|废弃版本有变化|类名:Base64
废弃版本:N/A|类名:Base64
废弃版本:9
代替接口:ohos.util.Base64Helper |@ohos.util.d.ts| +|废弃版本有变化|类名:Base64
方法 or 属性:constructor();
废弃版本:N/A|类名:Base64
方法 or 属性:constructor();
废弃版本:9
代替接口:ohos.util.Base64Helper.constructor |@ohos.util.d.ts| +|废弃版本有变化|类名:Base64
方法 or 属性:encodeSync(src: Uint8Array): Uint8Array;
废弃版本:N/A|类名:Base64
方法 or 属性:encodeSync(src: Uint8Array): Uint8Array;
废弃版本:9
代替接口:ohos.util.Base64Helper.encodeSync |@ohos.util.d.ts| +|废弃版本有变化|类名:Base64
方法 or 属性:encodeToStringSync(src: Uint8Array): string;
废弃版本:N/A|类名:Base64
方法 or 属性:encodeToStringSync(src: Uint8Array): string;
废弃版本:9
代替接口:ohos.util.Base64Helper.encodeToStringSync |@ohos.util.d.ts| +|废弃版本有变化|类名:Base64
方法 or 属性:decodeSync(src: Uint8Array \| string): Uint8Array;
废弃版本:N/A|类名:Base64
方法 or 属性:decodeSync(src: Uint8Array \| string): Uint8Array;
废弃版本:9
代替接口:ohos.util.Base64Helper.decodeSync |@ohos.util.d.ts| +|废弃版本有变化|类名:Base64
方法 or 属性:encode(src: Uint8Array): Promise\;
废弃版本:N/A|类名:Base64
方法 or 属性:encode(src: Uint8Array): Promise\;
废弃版本:9
代替接口:ohos.util.Base64Helper.encode |@ohos.util.d.ts| +|废弃版本有变化|类名:Base64
方法 or 属性:encodeToString(src: Uint8Array): Promise\;
废弃版本:N/A|类名:Base64
方法 or 属性:encodeToString(src: Uint8Array): Promise\;
废弃版本:9
代替接口:ohos.util.Base64Helper.encodeToString |@ohos.util.d.ts| +|废弃版本有变化|类名:Base64
方法 or 属性:decode(src: Uint8Array \| string): Promise\;
废弃版本:N/A|类名:Base64
方法 or 属性:decode(src: Uint8Array \| string): Promise\;
废弃版本:9
代替接口:ohos.util.Base64Helper.decode |@ohos.util.d.ts| +|废弃版本有变化|类名:Vector
废弃版本:N/A|类名:Vector
废弃版本:9
代替接口:ohos.util.ArrayList |@ohos.util.Vector.d.ts| +|废弃版本有变化|类名:EventListener
废弃版本:N/A|类名:EventListener
废弃版本:9
代替接口:ohos.worker.WorkerEventListener |@ohos.worker.d.ts| +|废弃版本有变化|类名:EventListener
方法 or 属性:(evt: Event): void \| Promise\;
废弃版本:N/A|类名:EventListener
方法 or 属性:(evt: Event): void \| Promise\;
废弃版本:9
代替接口:ohos.worker.WorkerEventListener.|@ohos.worker.d.ts| +|废弃版本有变化|类名:EventTarget
废弃版本:N/A|类名:EventTarget
废弃版本:9
代替接口:ohos.worker.WorkerEventTarget |@ohos.worker.d.ts| +|废弃版本有变化|类名:EventTarget
方法 or 属性:addEventListener(

type: string,

listener: EventListener

): void;
废弃版本:N/A|类名:EventTarget
方法 or 属性:addEventListener(

type: string,

listener: EventListener

): void;
废弃版本:9
代替接口:ohos.worker.WorkerEventTarget.addEventListener |@ohos.worker.d.ts| +|废弃版本有变化|类名:EventTarget
方法 or 属性:dispatchEvent(event: Event): boolean;
废弃版本:N/A|类名:EventTarget
方法 or 属性:dispatchEvent(event: Event): boolean;
废弃版本:9
代替接口:ohos.worker.WorkerEventTarget.dispatchEvent |@ohos.worker.d.ts| +|废弃版本有变化|类名:EventTarget
方法 or 属性:removeEventListener(

type: string,

callback?: EventListener

): void;
废弃版本:N/A|类名:EventTarget
方法 or 属性:removeEventListener(

type: string,

callback?: EventListener

): void;
废弃版本:9
代替接口:ohos.worker.WorkerEventTarget.removeEventListener |@ohos.worker.d.ts| +|废弃版本有变化|类名:EventTarget
方法 or 属性:removeAllListener(): void;
废弃版本:N/A|类名:EventTarget
方法 or 属性:removeAllListener(): void;
废弃版本:9
代替接口:ohos.worker.WorkerEventTarget.removeAllListener |@ohos.worker.d.ts| +|废弃版本有变化|类名:WorkerGlobalScope
废弃版本:N/A|类名:WorkerGlobalScope
废弃版本:9
代替接口:ohos.worker.GlobalScope |@ohos.worker.d.ts| +|废弃版本有变化|类名:WorkerGlobalScope
方法 or 属性:readonly name: string;
废弃版本:N/A|类名:WorkerGlobalScope
方法 or 属性:readonly name: string;
废弃版本:9
代替接口:ohos.worker.GlobalScope.name |@ohos.worker.d.ts| +|废弃版本有变化|类名:WorkerGlobalScope
方法 or 属性:onerror?: (ev: ErrorEvent) => void;
废弃版本:N/A|类名:WorkerGlobalScope
方法 or 属性:onerror?: (ev: ErrorEvent) => void;
废弃版本:9
代替接口:ohos.worker.GlobalScope.onerror |@ohos.worker.d.ts| +|废弃版本有变化|类名:DedicatedWorkerGlobalScope
废弃版本:N/A|类名:DedicatedWorkerGlobalScope
废弃版本:9
代替接口:ohos.worker.ThreadWorkerGlobalScope |@ohos.worker.d.ts| +|废弃版本有变化|类名:DedicatedWorkerGlobalScope
方法 or 属性:onmessage?: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => void;
废弃版本:N/A|类名:DedicatedWorkerGlobalScope
方法 or 属性:onmessage?: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => void;
废弃版本:9
代替接口:ohos.worker.ThreadWorkerGlobalScope.onmessage |@ohos.worker.d.ts| +|废弃版本有变化|类名:DedicatedWorkerGlobalScope
方法 or 属性:onmessageerror?: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => void;
废弃版本:N/A|类名:DedicatedWorkerGlobalScope
方法 or 属性:onmessageerror?: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => void;
废弃版本:9
代替接口:ohos.worker.ThreadWorkerGlobalScope.onmessageerror |@ohos.worker.d.ts| +|废弃版本有变化|类名:DedicatedWorkerGlobalScope
方法 or 属性:close(): void;
废弃版本:N/A|类名:DedicatedWorkerGlobalScope
方法 or 属性:close(): void;
废弃版本:9
代替接口:ohos.worker.ThreadWorkerGlobalScope.close |@ohos.worker.d.ts| +|废弃版本有变化|类名:DedicatedWorkerGlobalScope
方法 or 属性:postMessage(messageObject: Object, transfer: Transferable[]): void;
废弃版本:N/A|类名:DedicatedWorkerGlobalScope
方法 or 属性:postMessage(messageObject: Object, transfer: Transferable[]): void;
废弃版本:9
代替接口:ohos.worker.ThreadWorkerGlobalScope.postMessage |@ohos.worker.d.ts| +|废弃版本有变化|类名:DedicatedWorkerGlobalScope
方法 or 属性:postMessage(messageObject: Object, options?: PostMessageOptions): void;
废弃版本:N/A|类名:DedicatedWorkerGlobalScope
方法 or 属性:postMessage(messageObject: Object, options?: PostMessageOptions): void;
废弃版本:9
代替接口:ohos.worker.ThreadWorkerGlobalScope.postMessage |@ohos.worker.d.ts| +|废弃版本有变化|类名:Worker
废弃版本:N/A|类名:Worker
废弃版本:9
代替接口:ohos.worker.ThreadWorker |@ohos.worker.d.ts| +|废弃版本有变化|类名:Worker
方法 or 属性:constructor(scriptURL: string, options?: WorkerOptions);
废弃版本:N/A|类名:Worker
方法 or 属性:constructor(scriptURL: string, options?: WorkerOptions);
废弃版本:9
代替接口:ohos.worker.ThreadWorker.constructor |@ohos.worker.d.ts| +|废弃版本有变化|类名:Worker
方法 or 属性:onexit?: (code: number) => void;
废弃版本:N/A|类名:Worker
方法 or 属性:onexit?: (code: number) => void;
废弃版本:9
代替接口:ohos.worker.ThreadWorker.onexit |@ohos.worker.d.ts| +|废弃版本有变化|类名:Worker
方法 or 属性:onerror?: (err: ErrorEvent) => void;
废弃版本:N/A|类名:Worker
方法 or 属性:onerror?: (err: ErrorEvent) => void;
废弃版本:9
代替接口:ohos.worker.ThreadWorker.onerror |@ohos.worker.d.ts| +|废弃版本有变化|类名:Worker
方法 or 属性:onmessage?: (event: MessageEvent) => void;
废弃版本:N/A|类名:Worker
方法 or 属性:onmessage?: (event: MessageEvent) => void;
废弃版本:9
代替接口:ohos.worker.ThreadWorker.onmessage |@ohos.worker.d.ts| +|废弃版本有变化|类名:Worker
方法 or 属性:onmessageerror?: (event: MessageEvent) => void;
废弃版本:N/A|类名:Worker
方法 or 属性:onmessageerror?: (event: MessageEvent) => void;
废弃版本:9
代替接口:ohos.worker.ThreadWorker.onmessageerror |@ohos.worker.d.ts| +|废弃版本有变化|类名:Worker
方法 or 属性:postMessage(message: Object, transfer: ArrayBuffer[]): void;
废弃版本:N/A|类名:Worker
方法 or 属性:postMessage(message: Object, transfer: ArrayBuffer[]): void;
废弃版本:9
代替接口:ohos.worker.ThreadWorker.postMessage |@ohos.worker.d.ts| +|废弃版本有变化|类名:Worker
方法 or 属性:postMessage(message: Object, options?: PostMessageOptions): void;
废弃版本:N/A|类名:Worker
方法 or 属性:postMessage(message: Object, options?: PostMessageOptions): void;
废弃版本:9
代替接口:ohos.worker.ThreadWorker.postMessage |@ohos.worker.d.ts| +|废弃版本有变化|类名:Worker
方法 or 属性:on(type: string, listener: EventListener): void;
废弃版本:N/A|类名:Worker
方法 or 属性:on(type: string, listener: EventListener): void;
废弃版本:9
代替接口:ohos.worker.ThreadWorker.on |@ohos.worker.d.ts| +|废弃版本有变化|类名:Worker
方法 or 属性:once(type: string, listener: EventListener): void;
废弃版本:N/A|类名:Worker
方法 or 属性:once(type: string, listener: EventListener): void;
废弃版本:9
代替接口:ohos.worker.ThreadWorker.once |@ohos.worker.d.ts| +|废弃版本有变化|类名:Worker
方法 or 属性:off(type: string, listener?: EventListener): void;
废弃版本:N/A|类名:Worker
方法 or 属性:off(type: string, listener?: EventListener): void;
废弃版本:9
代替接口:ohos.worker.ThreadWorker.off |@ohos.worker.d.ts| +|废弃版本有变化|类名:Worker
方法 or 属性:terminate(): void;
废弃版本:N/A|类名:Worker
方法 or 属性:terminate(): void;
废弃版本:9
代替接口:ohos.worker.ThreadWorker.terminate |@ohos.worker.d.ts| +|废弃版本有变化|类名:worker
方法 or 属性:const parentPort: DedicatedWorkerGlobalScope;
废弃版本:N/A|类名:worker
方法 or 属性:const parentPort: DedicatedWorkerGlobalScope;
废弃版本:9
代替接口:ohos.worker.workerPort |@ohos.worker.d.ts| +|起始版本有变化|类名:ConvertXML
起始版本:N/A|类名:ConvertXML
起始版本:8|@ohos.convertxml.d.ts| +|起始版本有变化|类名:ChildProcess
起始版本:N/A|类名:ChildProcess
起始版本:7|@ohos.process.d.ts| +|起始版本有变化|类名:URI
起始版本:N/A|类名:URI
起始版本:8|@ohos.uri.d.ts| +|起始版本有变化|类名:URLSearchParams
起始版本:N/A|类名:URLSearchParams
起始版本:7|@ohos.url.d.ts| +|起始版本有变化|类名:URL
起始版本:N/A|类名:URL
起始版本:7|@ohos.url.d.ts| +|起始版本有变化|类名:URL
方法 or 属性:constructor(url: string, base?: string \| URL);
起始版本:N/A|类名:URL
方法 or 属性:constructor(url: string, base?: string \| URL);
起始版本:7|@ohos.url.d.ts| +|起始版本有变化|类名:TextDecoder
起始版本:N/A|类名:TextDecoder
起始版本:7|@ohos.util.d.ts| +|起始版本有变化|类名:TextDecoder
方法 or 属性:constructor(

encoding?: string,

options?: { fatal?: boolean; ignoreBOM?: boolean },

);
起始版本:N/A|类名:TextDecoder
方法 or 属性:constructor(

encoding?: string,

options?: { fatal?: boolean; ignoreBOM?: boolean },

);
起始版本:7|@ohos.util.d.ts| +|起始版本有变化|类名:TextEncoder
起始版本:N/A|类名:TextEncoder
起始版本:7|@ohos.util.d.ts| +|起始版本有变化|类名:RationalNumber
起始版本:N/A|类名:RationalNumber
起始版本:8|@ohos.util.d.ts| +|起始版本有变化|类名:LruBuffer
起始版本:N/A|类名:LruBuffer
起始版本:8|@ohos.util.d.ts| +|起始版本有变化|类名:Scope
起始版本:N/A|类名:Scope
起始版本:8|@ohos.util.d.ts| +|起始版本有变化|类名:Base64
起始版本:N/A|类名:Base64
起始版本:8|@ohos.util.d.ts| +|起始版本有变化|类名:types
起始版本:N/A|类名:types
起始版本:8|@ohos.util.d.ts| +|起始版本有变化|类名:Vector
起始版本:N/A|类名:Vector
起始版本:8|@ohos.util.Vector.d.ts| +|起始版本有变化|类名:Worker
起始版本:N/A|类名:Worker
起始版本:7|@ohos.worker.d.ts| +|起始版本有变化|类名:worker
方法 or 属性:const parentPort: DedicatedWorkerGlobalScope;
起始版本:N/A|类名:worker
方法 or 属性:const parentPort: DedicatedWorkerGlobalScope;
起始版本:7|@ohos.worker.d.ts| +|起始版本有变化|类名:XmlSerializer
起始版本:N/A|类名:XmlSerializer
起始版本:8|@ohos.xml.d.ts| +|起始版本有变化|类名:XmlPullParser
起始版本:N/A|类名:XmlPullParser
起始版本:8|@ohos.xml.d.ts| +|新增(错误码)|NA|类名:URI
方法 or 属性:constructor(uri: string);
错误码内容: 401, 10200002|@ohos.uri.d.ts| +|新增(错误码)|NA|类名:ArrayList
方法 or 属性:constructor();
错误码内容: 10200012|@ohos.util.ArrayList.d.ts| +|新增(错误码)|NA|类名:ArrayList
方法 or 属性:add(element: T): boolean;
错误码内容: 10200011|@ohos.util.ArrayList.d.ts| +|新增(错误码)|NA|类名:ArrayList
方法 or 属性:insert(element: T, index: number): void;
错误码内容: 10200001, 10200011, 401|@ohos.util.ArrayList.d.ts| +|新增(错误码)|NA|类名:ArrayList
方法 or 属性:has(element: T): boolean;
错误码内容: 10200011|@ohos.util.ArrayList.d.ts| +|新增(错误码)|NA|类名:ArrayList
方法 or 属性:getIndexOf(element: T): number;
错误码内容: 10200011|@ohos.util.ArrayList.d.ts| +|新增(错误码)|NA|类名:ArrayList
方法 or 属性:removeByIndex(index: number): T;
错误码内容: 10200001, 10200011, 401|@ohos.util.ArrayList.d.ts| +|新增(错误码)|NA|类名:ArrayList
方法 or 属性:remove(element: T): boolean;
错误码内容: 10200011|@ohos.util.ArrayList.d.ts| +|新增(错误码)|NA|类名:ArrayList
方法 or 属性:getLastIndexOf(element: T): number;
错误码内容: 10200011|@ohos.util.ArrayList.d.ts| +|新增(错误码)|NA|类名:ArrayList
方法 or 属性:removeByRange(fromIndex: number, toIndex: number): void;
错误码内容: 10200001, 10200011, 401|@ohos.util.ArrayList.d.ts| +|新增(错误码)|NA|类名:ArrayList
方法 or 属性:sort(comparator?: (firstValue: T, secondValue: T) => number): void;
错误码内容: 10200011, 401|@ohos.util.ArrayList.d.ts| +|新增(错误码)|NA|类名:ArrayList
方法 or 属性:subArrayList(fromIndex: number, toIndex: number): ArrayList\;
错误码内容: 10200001, 10200011, 401|@ohos.util.ArrayList.d.ts| +|新增(错误码)|NA|类名:ArrayList
方法 or 属性:clear(): void;
错误码内容: 10200011|@ohos.util.ArrayList.d.ts| +|新增(错误码)|NA|类名:ArrayList
方法 or 属性:clone(): ArrayList\;
错误码内容: 10200011|@ohos.util.ArrayList.d.ts| +|新增(错误码)|NA|类名:ArrayList
方法 or 属性:getCapacity(): number;
错误码内容: 10200011|@ohos.util.ArrayList.d.ts| +|新增(错误码)|NA|类名:ArrayList
方法 or 属性:convertToArray(): Array\;
错误码内容: 10200011|@ohos.util.ArrayList.d.ts| +|新增(错误码)|NA|类名:ArrayList
方法 or 属性:isEmpty(): boolean;
错误码内容: 10200011|@ohos.util.ArrayList.d.ts| +|新增(错误码)|NA|类名:ArrayList
方法 or 属性:increaseCapacityTo(newCapacity: number): void;
错误码内容: 10200011, 401|@ohos.util.ArrayList.d.ts| +|新增(错误码)|NA|类名:ArrayList
方法 or 属性:trimToCurrentLength(): void;
错误码内容: 10200011|@ohos.util.ArrayList.d.ts| +|新增(错误码)|NA|类名:ArrayList
方法 or 属性:[Symbol.iterator](): IterableIterator\;
错误码内容: 10200011|@ohos.util.ArrayList.d.ts| +|新增(错误码)|NA|类名:util
方法 or 属性:function callbackWrapper(original: Function): (err: Object, value: Object) => void;
错误码内容: 401|@ohos.util.d.ts| +|新增(错误码)|NA|类名:RationalNumber
方法 or 属性:static createRationalFromString(rationalString: string): RationalNumber​;
错误码内容: 401|@ohos.util.d.ts| +|新增(错误码)|NA|类名:Deque
方法 or 属性:constructor();
错误码内容: 10200012|@ohos.util.Deque.d.ts| +|新增(错误码)|NA|类名:Deque
方法 or 属性:insertFront(element: T): void;
错误码内容: 10200011|@ohos.util.Deque.d.ts| +|新增(错误码)|NA|类名:Deque
方法 or 属性:insertEnd(element: T): void;
错误码内容: 10200011|@ohos.util.Deque.d.ts| +|新增(错误码)|NA|类名:Deque
方法 or 属性:has(element: T): boolean;
错误码内容: 10200011|@ohos.util.Deque.d.ts| +|新增(错误码)|NA|类名:Deque
方法 or 属性:getFirst(): T;
错误码内容: 10200011|@ohos.util.Deque.d.ts| +|新增(错误码)|NA|类名:Deque
方法 or 属性:getLast(): T;
错误码内容: 10200011|@ohos.util.Deque.d.ts| +|新增(错误码)|NA|类名:Deque
方法 or 属性:popFirst(): T;
错误码内容: 10200011|@ohos.util.Deque.d.ts| +|新增(错误码)|NA|类名:Deque
方法 or 属性:popLast(): T;
错误码内容: 10200011|@ohos.util.Deque.d.ts| +|新增(错误码)|NA|类名:Deque
方法 or 属性:[Symbol.iterator](): IterableIterator\;
错误码内容: 10200011|@ohos.util.Deque.d.ts| +|新增(错误码)|NA|类名:HashMap
方法 or 属性:constructor();
错误码内容: 10200012|@ohos.util.HashMap.d.ts| +|新增(错误码)|NA|类名:HashMap
方法 or 属性:isEmpty(): boolean;
错误码内容: 10200011|@ohos.util.HashMap.d.ts| +|新增(错误码)|NA|类名:HashMap
方法 or 属性:hasKey(key: K): boolean;
错误码内容: 10200011|@ohos.util.HashMap.d.ts| +|新增(错误码)|NA|类名:HashMap
方法 or 属性:hasValue(value: V): boolean;
错误码内容: 10200011|@ohos.util.HashMap.d.ts| +|新增(错误码)|NA|类名:HashMap
方法 or 属性:get(key: K): V;
错误码内容: 10200011|@ohos.util.HashMap.d.ts| +|新增(错误码)|NA|类名:HashMap
方法 or 属性:setAll(map: HashMap\): void;
错误码内容: 10200011, 401|@ohos.util.HashMap.d.ts| +|新增(错误码)|NA|类名:HashMap
方法 or 属性:set(key: K, value: V): Object;
错误码内容: 10200011, 401|@ohos.util.HashMap.d.ts| +|新增(错误码)|NA|类名:HashMap
方法 or 属性:remove(key: K): V;
错误码内容: 10200011|@ohos.util.HashMap.d.ts| +|新增(错误码)|NA|类名:HashMap
方法 or 属性:clear(): void;
错误码内容: 10200011|@ohos.util.HashMap.d.ts| +|新增(错误码)|NA|类名:HashMap
方法 or 属性:keys(): IterableIterator\;
错误码内容: 10200011|@ohos.util.HashMap.d.ts| +|新增(错误码)|NA|类名:HashMap
方法 or 属性:values(): IterableIterator\;
错误码内容: 10200011|@ohos.util.HashMap.d.ts| +|新增(错误码)|NA|类名:HashMap
方法 or 属性:replace(key: K, newValue: V): boolean;
错误码内容: 10200011|@ohos.util.HashMap.d.ts| +|新增(错误码)|NA|类名:HashMap
方法 or 属性:entries(): IterableIterator\<[K, V]>;
错误码内容: 10200011|@ohos.util.HashMap.d.ts| +|新增(错误码)|NA|类名:HashMap
方法 or 属性:[Symbol.iterator](): IterableIterator\<[K, V]>;
错误码内容: 10200011|@ohos.util.HashMap.d.ts| +|新增(错误码)|NA|类名:HashSet
方法 or 属性:constructor();
错误码内容: 10200012|@ohos.util.HashSet.d.ts| +|新增(错误码)|NA|类名:HashSet
方法 or 属性:isEmpty(): boolean;
错误码内容: 10200011|@ohos.util.HashSet.d.ts| +|新增(错误码)|NA|类名:HashSet
方法 or 属性:has(value: T): boolean;
错误码内容: 10200011, 401|@ohos.util.HashSet.d.ts| +|新增(错误码)|NA|类名:HashSet
方法 or 属性:add(value: T): boolean;
错误码内容: 10200011, 401|@ohos.util.HashSet.d.ts| +|新增(错误码)|NA|类名:HashSet
方法 or 属性:remove(value: T): boolean;
错误码内容: 10200011, 401|@ohos.util.HashSet.d.ts| +|新增(错误码)|NA|类名:HashSet
方法 or 属性:clear(): void;
错误码内容: 10200011|@ohos.util.HashSet.d.ts| +|新增(错误码)|NA|类名:HashSet
方法 or 属性:values(): IterableIterator\;
错误码内容: 10200011|@ohos.util.HashSet.d.ts| +|新增(错误码)|NA|类名:HashSet
方法 or 属性:entries(): IterableIterator\<[T, T]>;
错误码内容: 10200011|@ohos.util.HashSet.d.ts| +|新增(错误码)|NA|类名:HashSet
方法 or 属性:[Symbol.iterator](): IterableIterator\;
错误码内容: 10200011|@ohos.util.HashSet.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:constructor();
错误码内容: 10200012|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:hasAll(map: LightWeightMap\): boolean;
错误码内容: 401, 10200011|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:hasKey(key: K): boolean;
错误码内容: 10200011|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:hasValue(value: V): boolean;
错误码内容: 10200011|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:increaseCapacityTo(minimumCapacity: number): void;
错误码内容: 10200011, 401|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:entries(): IterableIterator\<[K, V]>;
错误码内容: 10200011|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:get(key: K): V;
错误码内容: 10200011|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:getIndexOfKey(key: K): number;
错误码内容: 10200011|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:getIndexOfValue(value: V): number;
错误码内容: 10200011|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:isEmpty(): boolean;
错误码内容: 10200011|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:getKeyAt(index: number): K;
错误码内容: 10200011, 10200001, 401|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:keys(): IterableIterator\;
错误码内容: 10200011|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:setAll(map: LightWeightMap\): void;
错误码内容: 10200011, 401|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:set(key: K, value: V): Object;
错误码内容: 10200011|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:remove(key: K): V;
错误码内容: 10200011|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:removeAt(index: number): boolean;
错误码内容: 10200011, 401|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:clear(): void;
错误码内容: 10200011|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:setValueAt(index: number, newValue: V): boolean;
错误码内容: 10200011, 10200001, 401|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:[Symbol.iterator](): IterableIterator\<[K, V]>;
错误码内容: 10200011|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:toString(): String;
错误码内容: 10200011|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:getValueAt(index: number): V;
错误码内容: 10200011, 10200001, 401|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightMap
方法 or 属性:values(): IterableIterator\;
错误码内容: 10200011|@ohos.util.LightWeightMap.d.ts| +|新增(错误码)|NA|类名:LightWeightSet
方法 or 属性:constructor();
错误码内容: 10200012|@ohos.util.LightWeightSet.d.ts| +|新增(错误码)|NA|类名:LightWeightSet
方法 or 属性:add(obj: T): boolean;
错误码内容: 10200011|@ohos.util.LightWeightSet.d.ts| +|新增(错误码)|NA|类名:LightWeightSet
方法 or 属性:addAll(set: LightWeightSet\): boolean;
错误码内容: 10200011, 401|@ohos.util.LightWeightSet.d.ts| +|新增(错误码)|NA|类名:LightWeightSet
方法 or 属性:hasAll(set: LightWeightSet\): boolean;
错误码内容: 10200011, 401|@ohos.util.LightWeightSet.d.ts| +|新增(错误码)|NA|类名:LightWeightSet
方法 or 属性:has(key: T): boolean;
错误码内容: 10200011|@ohos.util.LightWeightSet.d.ts| +|新增(错误码)|NA|类名:LightWeightSet
方法 or 属性:equal(obj: Object): boolean;
错误码内容: 10200011|@ohos.util.LightWeightSet.d.ts| +|新增(错误码)|NA|类名:LightWeightSet
方法 or 属性:increaseCapacityTo(minimumCapacity: number): void;
错误码内容: 10200011, 401, 10200001|@ohos.util.LightWeightSet.d.ts| +|新增(错误码)|NA|类名:LightWeightSet
方法 or 属性:getIndexOf(key: T): number;
错误码内容: 10200011|@ohos.util.LightWeightSet.d.ts| +|新增(错误码)|NA|类名:LightWeightSet
方法 or 属性:remove(key: T): T;
错误码内容: 10200011|@ohos.util.LightWeightSet.d.ts| +|新增(错误码)|NA|类名:LightWeightSet
方法 or 属性:removeAt(index: number): boolean;
错误码内容: 10200011, 401|@ohos.util.LightWeightSet.d.ts| +|新增(错误码)|NA|类名:LightWeightSet
方法 or 属性:clear(): void;
错误码内容: 10200011|@ohos.util.LightWeightSet.d.ts| +|新增(错误码)|NA|类名:LightWeightSet
方法 or 属性:[Symbol.iterator](): IterableIterator\;
错误码内容: 10200011|@ohos.util.LightWeightSet.d.ts| +|新增(错误码)|NA|类名:LightWeightSet
方法 or 属性:toArray(): Array\;
错误码内容: 10200011|@ohos.util.LightWeightSet.d.ts| +|新增(错误码)|NA|类名:LightWeightSet
方法 or 属性:getValueAt(index: number): T;
错误码内容: 10200011, 401|@ohos.util.LightWeightSet.d.ts| +|新增(错误码)|NA|类名:LightWeightSet
方法 or 属性:values(): IterableIterator\;
错误码内容: 10200011|@ohos.util.LightWeightSet.d.ts| +|新增(错误码)|NA|类名:LightWeightSet
方法 or 属性:entries(): IterableIterator\<[T, T]>;
错误码内容: 10200011|@ohos.util.LightWeightSet.d.ts| +|新增(错误码)|NA|类名:LightWeightSet
方法 or 属性:isEmpty(): boolean;
错误码内容: 10200011|@ohos.util.LightWeightSet.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:constructor();
错误码内容: 10200012|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:add(element: T): boolean;
错误码内容: 10200011|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:insert(index: number, element: T): void;
错误码内容: 10200011, 401, 10200001|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:get(index: number): T;
错误码内容: 10200011, 401|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:addFirst(element: T): void;
错误码内容: 10200011|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:removeFirst(): T;
错误码内容: 10200011, 10200010|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:removeLast(): T;
错误码内容: 10200011, 10200010|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:has(element: T): boolean;
错误码内容: 10200011|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:getIndexOf(element: T): number;
错误码内容: 10200011|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:removeByIndex(index: number): T;
错误码内容: 10200011, 401, 10200001|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:remove(element: T): boolean;
错误码内容: 10200011|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:removeFirstFound(element: T): boolean;
错误码内容: 10200011, 10200010, 10200017|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:removeLastFound(element: T): boolean;
错误码内容: 10200011, 10200010, 10200017|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:getLastIndexOf(element: T): number;
错误码内容: 10200011|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:getFirst(): T;
错误码内容: 10200011|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:getLast(): T;
错误码内容: 10200011|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:set(index: number, element: T): T;
错误码内容: 10200011, 10200001, 401|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:clear(): void;
错误码内容: 10200011|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:clone(): LinkedList\;
错误码内容: 10200011|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:convertToArray(): Array\;
错误码内容: 10200011|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:LinkedList
方法 or 属性:[Symbol.iterator](): IterableIterator\;
错误码内容: 10200011|@ohos.util.LinkedList.d.ts| +|新增(错误码)|NA|类名:List
方法 or 属性:constructor();
错误码内容: 10200012|@ohos.util.List.d.ts| +|新增(错误码)|NA|类名:List
方法 or 属性:add(element: T): boolean;
错误码内容: 10200011|@ohos.util.List.d.ts| +|新增(错误码)|NA|类名:List
方法 or 属性:insert(element: T, index: number): void;
错误码内容: 10200011, 10200001, 401|@ohos.util.List.d.ts| +|新增(错误码)|NA|类名:List
方法 or 属性:get(index: number): T;
错误码内容: 10200011, 401|@ohos.util.List.d.ts| +|新增(错误码)|NA|类名:List
方法 or 属性:has(element: T): boolean;
错误码内容: 10200011|@ohos.util.List.d.ts| +|新增(错误码)|NA|类名:List
方法 or 属性:getIndexOf(element: T): number;
错误码内容: 10200011|@ohos.util.List.d.ts| +|新增(错误码)|NA|类名:List
方法 or 属性:removeByIndex(index: number): T;
错误码内容: 10200011, 10200001, 401|@ohos.util.List.d.ts| +|新增(错误码)|NA|类名:List
方法 or 属性:remove(element: T): boolean;
错误码内容: 10200011|@ohos.util.List.d.ts| +|新增(错误码)|NA|类名:List
方法 or 属性:getLastIndexOf(element: T): number;
错误码内容: 10200011|@ohos.util.List.d.ts| +|新增(错误码)|NA|类名:List
方法 or 属性:getFirst(): T;
错误码内容: 10200011|@ohos.util.List.d.ts| +|新增(错误码)|NA|类名:List
方法 or 属性:getLast(): T;
错误码内容: 10200011|@ohos.util.List.d.ts| +|新增(错误码)|NA|类名:List
方法 or 属性:set(index: number, element: T): T;
错误码内容: 10200011, 10200001, 401|@ohos.util.List.d.ts| +|新增(错误码)|NA|类名:List
方法 or 属性:equal(obj: Object): boolean;
错误码内容: 10200011|@ohos.util.List.d.ts| +|新增(错误码)|NA|类名:List
方法 or 属性:sort(comparator: (firstValue: T, secondValue: T) => number): void;
错误码内容: 401, 10200011|@ohos.util.List.d.ts| +|新增(错误码)|NA|类名:List
方法 or 属性:clear(): void;
错误码内容: 10200011|@ohos.util.List.d.ts| +|新增(错误码)|NA|类名:List
方法 or 属性:getSubList(fromIndex: number, toIndex: number): List\;
错误码内容: 10200011, 10200001, 401|@ohos.util.List.d.ts| +|新增(错误码)|NA|类名:List
方法 or 属性:convertToArray(): Array\;
错误码内容: 10200011|@ohos.util.List.d.ts| +|新增(错误码)|NA|类名:List
方法 or 属性:isEmpty(): boolean;
错误码内容: 10200011|@ohos.util.List.d.ts| +|新增(错误码)|NA|类名:List
方法 or 属性:[Symbol.iterator](): IterableIterator\;
错误码内容: 10200011|@ohos.util.List.d.ts| +|新增(错误码)|NA|类名:PlainArray
方法 or 属性:constructor();
错误码内容: 10200012|@ohos.util.PlainArray.d.ts| +|新增(错误码)|NA|类名:PlainArray
方法 or 属性:add(key: number, value: T): void;
错误码内容: 10200011, 401|@ohos.util.PlainArray.d.ts| +|新增(错误码)|NA|类名:PlainArray
方法 or 属性:clear(): void;
错误码内容: 10200011|@ohos.util.PlainArray.d.ts| +|新增(错误码)|NA|类名:PlainArray
方法 or 属性:clone(): PlainArray\;
错误码内容: 10200011|@ohos.util.PlainArray.d.ts| +|新增(错误码)|NA|类名:PlainArray
方法 or 属性:has(key: number): boolean;
错误码内容: 10200011, 401|@ohos.util.PlainArray.d.ts| +|新增(错误码)|NA|类名:PlainArray
方法 or 属性:get(key: number): T;
错误码内容: 10200011, 401|@ohos.util.PlainArray.d.ts| +|新增(错误码)|NA|类名:PlainArray
方法 or 属性:getIndexOfKey(key: number): number;
错误码内容: 10200011, 401|@ohos.util.PlainArray.d.ts| +|新增(错误码)|NA|类名:PlainArray
方法 or 属性:getIndexOfValue(value: T): number;
错误码内容: 10200011|@ohos.util.PlainArray.d.ts| +|新增(错误码)|NA|类名:PlainArray
方法 or 属性:isEmpty(): boolean;
错误码内容: 10200011|@ohos.util.PlainArray.d.ts| +|新增(错误码)|NA|类名:PlainArray
方法 or 属性:getKeyAt(index: number): number;
错误码内容: 10200011, 401|@ohos.util.PlainArray.d.ts| +|新增(错误码)|NA|类名:PlainArray
方法 or 属性:remove(key: number): T;
错误码内容: 10200011, 401|@ohos.util.PlainArray.d.ts| +|新增(错误码)|NA|类名:PlainArray
方法 or 属性:removeAt(index: number): T;
错误码内容: 10200011, 401|@ohos.util.PlainArray.d.ts| +|新增(错误码)|NA|类名:PlainArray
方法 or 属性:removeRangeFrom(index: number, size: number): number;
错误码内容: 10200011, 10200001, 401|@ohos.util.PlainArray.d.ts| +|新增(错误码)|NA|类名:PlainArray
方法 or 属性:setValueAt(index: number, value: T): void;
错误码内容: 10200011, 10200001, 401|@ohos.util.PlainArray.d.ts| +|新增(错误码)|NA|类名:PlainArray
方法 or 属性:toString(): String;
错误码内容: 10200011|@ohos.util.PlainArray.d.ts| +|新增(错误码)|NA|类名:PlainArray
方法 or 属性:getValueAt(index: number): T;
错误码内容: 10200011, 10200001, 401|@ohos.util.PlainArray.d.ts| +|新增(错误码)|NA|类名:PlainArray
方法 or 属性:[Symbol.iterator](): IterableIterator\<[number, T]>;
错误码内容: 10200011|@ohos.util.PlainArray.d.ts| +|新增(错误码)|NA|类名:Queue
方法 or 属性:constructor();
错误码内容: 10200012|@ohos.util.Queue.d.ts| +|新增(错误码)|NA|类名:Queue
方法 or 属性:add(element: T): boolean;
错误码内容: 10200011|@ohos.util.Queue.d.ts| +|新增(错误码)|NA|类名:Queue
方法 or 属性:getFirst(): T;
错误码内容: 10200011|@ohos.util.Queue.d.ts| +|新增(错误码)|NA|类名:Queue
方法 or 属性:pop(): T;
错误码内容: 10200011|@ohos.util.Queue.d.ts| +|新增(错误码)|NA|类名:Queue
方法 or 属性:[Symbol.iterator](): IterableIterator\;
错误码内容: 10200011|@ohos.util.Queue.d.ts| +|新增(错误码)|NA|类名:Stack
方法 or 属性:constructor();
错误码内容: 10200012|@ohos.util.Stack.d.ts| +|新增(错误码)|NA|类名:Stack
方法 or 属性:isEmpty(): boolean;
错误码内容: 10200011|@ohos.util.Stack.d.ts| +|新增(错误码)|NA|类名:Stack
方法 or 属性:peek(): T;
错误码内容: 10200011|@ohos.util.Stack.d.ts| +|新增(错误码)|NA|类名:Stack
方法 or 属性:pop(): T;
错误码内容: 10200011|@ohos.util.Stack.d.ts| +|新增(错误码)|NA|类名:Stack
方法 or 属性:push(item: T): T;
错误码内容: 10200011|@ohos.util.Stack.d.ts| +|新增(错误码)|NA|类名:Stack
方法 or 属性:locate(element: T): number;
错误码内容: 10200011|@ohos.util.Stack.d.ts| +|新增(错误码)|NA|类名:Stack
方法 or 属性:[Symbol.iterator](): IterableIterator\;
错误码内容: 10200011|@ohos.util.Stack.d.ts| +|新增(错误码)|NA|类名:TreeMap
方法 or 属性:constructor(comparator?: (firstValue: K, secondValue: K) => boolean);
错误码内容: 10200012, 401|@ohos.util.TreeMap.d.ts| +|新增(错误码)|NA|类名:TreeMap
方法 or 属性:isEmpty(): boolean;
错误码内容: 10200011|@ohos.util.TreeMap.d.ts| +|新增(错误码)|NA|类名:TreeMap
方法 or 属性:hasKey(key: K): boolean;
错误码内容: 10200011|@ohos.util.TreeMap.d.ts| +|新增(错误码)|NA|类名:TreeMap
方法 or 属性:hasValue(value: V): boolean;
错误码内容: 10200011|@ohos.util.TreeMap.d.ts| +|新增(错误码)|NA|类名:TreeMap
方法 or 属性:get(key: K): V;
错误码内容: 10200011|@ohos.util.TreeMap.d.ts| +|新增(错误码)|NA|类名:TreeMap
方法 or 属性:getFirstKey(): K;
错误码内容: 10200011|@ohos.util.TreeMap.d.ts| +|新增(错误码)|NA|类名:TreeMap
方法 or 属性:getLastKey(): K;
错误码内容: 10200011|@ohos.util.TreeMap.d.ts| +|新增(错误码)|NA|类名:TreeMap
方法 or 属性:setAll(map: TreeMap\): void;
错误码内容: 10200011, 401|@ohos.util.TreeMap.d.ts| +|新增(错误码)|NA|类名:TreeMap
方法 or 属性:set(key: K, value: V): Object;
错误码内容: 10200011, 401|@ohos.util.TreeMap.d.ts| +|新增(错误码)|NA|类名:TreeMap
方法 or 属性:remove(key: K): V;
错误码内容: 10200011|@ohos.util.TreeMap.d.ts| +|新增(错误码)|NA|类名:TreeMap
方法 or 属性:clear(): void;
错误码内容: 10200011|@ohos.util.TreeMap.d.ts| +|新增(错误码)|NA|类名:TreeMap
方法 or 属性:getLowerKey(key: K): K;
错误码内容: 10200011|@ohos.util.TreeMap.d.ts| +|新增(错误码)|NA|类名:TreeMap
方法 or 属性:getHigherKey(key: K): K;
错误码内容: 10200011|@ohos.util.TreeMap.d.ts| +|新增(错误码)|NA|类名:TreeMap
方法 or 属性:keys(): IterableIterator\;
错误码内容: 10200011|@ohos.util.TreeMap.d.ts| +|新增(错误码)|NA|类名:TreeMap
方法 or 属性:values(): IterableIterator\;
错误码内容: 10200011|@ohos.util.TreeMap.d.ts| +|新增(错误码)|NA|类名:TreeMap
方法 or 属性:replace(key: K, newValue: V): boolean;
错误码内容: 10200011|@ohos.util.TreeMap.d.ts| +|新增(错误码)|NA|类名:TreeMap
方法 or 属性:entries(): IterableIterator\<[K, V]>;
错误码内容: 10200011|@ohos.util.TreeMap.d.ts| +|新增(错误码)|NA|类名:TreeMap
方法 or 属性:[Symbol.iterator](): IterableIterator\<[K, V]>;
错误码内容: 10200011|@ohos.util.TreeMap.d.ts| +|新增(错误码)|NA|类名:TreeSet
方法 or 属性:constructor(comparator?: (firstValue: T, secondValue: T) => boolean)
错误码内容: 10200012, 401|@ohos.util.TreeSet.d.ts| +|新增(错误码)|NA|类名:TreeSet
方法 or 属性:isEmpty(): boolean;
错误码内容: 10200011|@ohos.util.TreeSet.d.ts| +|新增(错误码)|NA|类名:TreeSet
方法 or 属性:has(value: T): boolean;
错误码内容: 10200011|@ohos.util.TreeSet.d.ts| +|新增(错误码)|NA|类名:TreeSet
方法 or 属性:add(value: T): boolean;
错误码内容: 401, 10200011|@ohos.util.TreeSet.d.ts| +|新增(错误码)|NA|类名:TreeSet
方法 or 属性:remove(value: T): boolean;
错误码内容: 10200011|@ohos.util.TreeSet.d.ts| +|新增(错误码)|NA|类名:TreeSet
方法 or 属性:clear(): void;
错误码内容: 10200011|@ohos.util.TreeSet.d.ts| +|新增(错误码)|NA|类名:TreeSet
方法 or 属性:getFirstValue(): T;
错误码内容: 10200011|@ohos.util.TreeSet.d.ts| +|新增(错误码)|NA|类名:TreeSet
方法 or 属性:getLastValue(): T;
错误码内容: 10200011|@ohos.util.TreeSet.d.ts| +|新增(错误码)|NA|类名:TreeSet
方法 or 属性:getLowerValue(key: T): T;
错误码内容: 10200011, 401|@ohos.util.TreeSet.d.ts| +|新增(错误码)|NA|类名:TreeSet
方法 or 属性:getHigherValue(key: T): T;
错误码内容: 10200011, 401|@ohos.util.TreeSet.d.ts| +|新增(错误码)|NA|类名:TreeSet
方法 or 属性:popFirst(): T;
错误码内容: 10200011|@ohos.util.TreeSet.d.ts| +|新增(错误码)|NA|类名:TreeSet
方法 or 属性:popLast(): T;
错误码内容: 10200011|@ohos.util.TreeSet.d.ts| +|新增(错误码)|NA|类名:TreeSet
方法 or 属性:values(): IterableIterator\;
错误码内容: 10200011|@ohos.util.TreeSet.d.ts| +|新增(错误码)|NA|类名:TreeSet
方法 or 属性:entries(): IterableIterator\<[T, T]>;
错误码内容: 10200011|@ohos.util.TreeSet.d.ts| +|新增(错误码)|NA|类名:TreeSet
方法 or 属性:[Symbol.iterator](): IterableIterator\;
错误码内容: 10200011|@ohos.util.TreeSet.d.ts| +|新增(错误码)|NA|类名:XmlSerializer
方法 or 属性:constructor(buffer: ArrayBuffer \| DataView, encoding?: string);
错误码内容: 401|@ohos.xml.d.ts| +|新增(错误码)|NA|类名:XmlSerializer
方法 or 属性:setAttributes(name: string, value: string): void;
错误码内容: 401|@ohos.xml.d.ts| +|新增(错误码)|NA|类名:XmlSerializer
方法 or 属性:addEmptyElement(name: string): void;
错误码内容: 401|@ohos.xml.d.ts| +|新增(错误码)|NA|类名:XmlSerializer
方法 or 属性:startElement(name: string): void;
错误码内容: 401|@ohos.xml.d.ts| +|新增(错误码)|NA|类名:XmlSerializer
方法 or 属性:setNamespace(prefix: string, namespace: string): void;
错误码内容: 401|@ohos.xml.d.ts| +|新增(错误码)|NA|类名:XmlSerializer
方法 or 属性:setComment(text: string): void;
错误码内容: 401|@ohos.xml.d.ts| +|新增(错误码)|NA|类名:XmlSerializer
方法 or 属性:setCDATA(text: string): void;
错误码内容: 401|@ohos.xml.d.ts| +|新增(错误码)|NA|类名:XmlSerializer
方法 or 属性:setText(text: string): void;
错误码内容: 401|@ohos.xml.d.ts| +|新增(错误码)|NA|类名:XmlSerializer
方法 or 属性:setDocType(text: string): void;
错误码内容: 401|@ohos.xml.d.ts| +|新增(错误码)|NA|类名:XmlPullParser
方法 or 属性:constructor(buffer: ArrayBuffer \| DataView, encoding?: string);
错误码内容: 401|@ohos.xml.d.ts| +|新增(错误码)|NA|类名:XmlPullParser
方法 or 属性:parse(option: ParseOptions): void;
错误码内容: 401|@ohos.xml.d.ts| +|SysCap有变化|类名:Vector
SysCap:N/A|类名:Vector
SysCap:SystemCapability.Utils.Lang|@ohos.util.Vector.d.ts| +|函数有变化|类名:process
方法 or 属性:function runCmd(command: string,

options?: { timeout : number, killSignal : number \| string, maxBuffer : number }): ChildProcess;
|类名:process
方法 or 属性:function runCmd(command: string,

options?: { timeout?: number, killSignal?: number \| string, maxBuffer?: number }): ChildProcess;
|@ohos.process.d.ts| +|函数有变化|类名:URLSearchParams
方法 or 属性:forEach(callbackfn: (value: string, key: string, searchParams: this) => void, thisArg?: Object): void;
|类名:URLSearchParams
方法 or 属性:forEach(callbackFn: (value: string, key: string, searchParams: this) => void, thisArg?: Object): void;
|@ohos.url.d.ts| +|函数有变化|类名:ArrayList
方法 or 属性:replaceAllElements(callbackfn: (value: T, index?: number, arrlist?: ArrayList\) => T,

thisArg?: Object): void;
|类名:ArrayList
方法 or 属性:replaceAllElements(callbackFn: (value: T, index?: number, arrlist?: ArrayList\) => T,

thisArg?: Object): void;
|@ohos.util.ArrayList.d.ts| +|函数有变化|类名:ArrayList
方法 or 属性:forEach(callbackfn: (value: T, index?: number, arrlist?: ArrayList\) => void,

thisArg?: Object): void;
|类名:ArrayList
方法 or 属性:forEach(callbackFn: (value: T, index?: number, arrlist?: ArrayList\) => void,

thisArg?: Object): void;
|@ohos.util.ArrayList.d.ts| +|函数有变化|类名:Deque
方法 or 属性:forEach(callbackfn: (value: T, index?: number, deque?: Deque\) => void,

thisArg?: Object): void;
|类名:Deque
方法 or 属性:forEach(callbackFn: (value: T, index?: number, deque?: Deque\) => void,

thisArg?: Object): void;
|@ohos.util.Deque.d.ts| +|函数有变化|类名:HashMap
方法 or 属性:forEach(callbackfn: (value?: V, key?: K, map?: HashMap\) => void,

thisArg?: Object): void;
|类名:HashMap
方法 or 属性:forEach(callbackFn: (value?: V, key?: K, map?: HashMap\) => void,

thisArg?: Object): void;
|@ohos.util.HashMap.d.ts| +|函数有变化|类名:HashSet
方法 or 属性:forEach(callbackfn: (value?: T, key?: T, set?: HashSet\) => void,

thisArg?: Object): void;
|类名:HashSet
方法 or 属性:forEach(callbackFn: (value?: T, key?: T, set?: HashSet\) => void,

thisArg?: Object): void;
|@ohos.util.HashSet.d.ts| +|函数有变化|类名:LightWeightMap
方法 or 属性:forEach(callbackfn: (value?: V, key?: K, map?: LightWeightMap\) => void,

thisArg?: Object): void;
|类名:LightWeightMap
方法 or 属性:forEach(callbackFn: (value?: V, key?: K, map?: LightWeightMap\) => void,

thisArg?: Object): void;
|@ohos.util.LightWeightMap.d.ts| +|函数有变化|类名:LightWeightSet
方法 or 属性:forEach(callbackfn: (value?: T, key?: T, set?: LightWeightSet\) => void,

thisArg?: Object): void;
|类名:LightWeightSet
方法 or 属性:forEach(callbackFn: (value?: T, key?: T, set?: LightWeightSet\) => void,

thisArg?: Object): void;
|@ohos.util.LightWeightSet.d.ts| +|函数有变化|类名:LinkedList
方法 or 属性:forEach(callbackfn: (value: T, index?: number, LinkedList?: LinkedList\) => void,

thisArg?: Object): void;
|类名:LinkedList
方法 or 属性:forEach(callbackFn: (value: T, index?: number, LinkedList?: LinkedList\) => void,

thisArg?: Object): void;
|@ohos.util.LinkedList.d.ts| +|函数有变化|类名:List
方法 or 属性:forEach(callbackfn: (value: T, index?: number, List?: List\) => void,

thisArg?: Object): void;
|类名:List
方法 or 属性:forEach(callbackFn: (value: T, index?: number, List?: List\) => void,

thisArg?: Object): void;
|@ohos.util.List.d.ts| +|函数有变化|类名:List
方法 or 属性:replaceAllElements(callbackfn: (value: T, index?: number, list?: List\) => T,

thisArg?: Object): void;
|类名:List
方法 or 属性:replaceAllElements(callbackFn: (value: T, index?: number, list?: List\) => T,

thisArg?: Object): void;
|@ohos.util.List.d.ts| +|函数有变化|类名:PlainArray
方法 or 属性:forEach(callbackfn: (value: T, index?: number, PlainArray?: PlainArray\) => void,

thisArg?: Object): void;
|类名:PlainArray
方法 or 属性:forEach(callbackFn: (value: T, index?: number, PlainArray?: PlainArray\) => void,

thisArg?: Object): void;
|@ohos.util.PlainArray.d.ts| +|函数有变化|类名:Queue
方法 or 属性:forEach(callbackfn: (value: T, index?: number, Queue?: Queue\) => void,

thisArg?: Object): void;
|类名:Queue
方法 or 属性:forEach(callbackFn: (value: T, index?: number, Queue?: Queue\) => void,

thisArg?: Object): void;
|@ohos.util.Queue.d.ts| +|函数有变化|类名:Stack
方法 or 属性:forEach(callbackfn: (value: T, index?: number, stack?: Stack\) => void,

thisArg?: Object): void;
|类名:Stack
方法 or 属性:forEach(callbackFn: (value: T, index?: number, stack?: Stack\) => void,

thisArg?: Object): void;
|@ohos.util.Stack.d.ts| +|函数有变化|类名:TreeMap
方法 or 属性:forEach(callbackfn: (value?: V, key?: K, map?: TreeMap\) => void,

thisArg?: Object): void;
|类名:TreeMap
方法 or 属性:forEach(callbackFn: (value?: V, key?: K, map?: TreeMap\) => void,

thisArg?: Object): void;
|@ohos.util.TreeMap.d.ts| +|函数有变化|类名:TreeSet
方法 or 属性:forEach(callbackfn: (value?: T, key?: T, set?: TreeSet\) => void,

thisArg?: Object): void;
|类名:TreeSet
方法 or 属性:forEach(callbackFn: (value?: T, key?: T, set?: TreeSet\) => void,

thisArg?: Object): void;
|@ohos.util.TreeSet.d.ts| +|函数有变化|类名:Vector
方法 or 属性:replaceAllElements(callbackfn: (value: T, index?: number, vector?: Vector\) => T,

thisArg?: Object): void;
|类名:Vector
方法 or 属性:replaceAllElements(callbackFn: (value: T, index?: number, vector?: Vector\) => T,

thisArg?: Object): void;
|@ohos.util.Vector.d.ts| +|函数有变化|类名:Vector
方法 or 属性:forEach(callbackfn: (value: T, index?: number, vector?: Vector\) => void,

thisArg?: Object): void;
|类名:Vector
方法 or 属性:forEach(callbackFn: (value: T, index?: number, vector?: Vector\) => void,

thisArg?: Object): void;
|@ohos.util.Vector.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-customization.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-customization.md new file mode 100644 index 0000000000000000000000000000000000000000..20bcea9a0a54548c56e186753f9f7bb12a0c7731 --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-customization.md @@ -0,0 +1,48 @@ +| 操作 | 旧版本 | 新版本 | 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: string;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: EnterpriseInfo
方法 or 属性: description: string;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: AdminType|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: AdminType
方法 or 属性: ADMIN_TYPE_NORMAL = 0x00|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: AdminType
方法 or 属性: ADMIN_TYPE_SUPER = 0x01|@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 = 0|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: ManagedEvent
方法 or 属性: MANAGED_EVENT_BUNDLE_REMOVED = 1|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: AsyncCallback\): void;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId: number, callback: AsyncCallback\): void;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId?: number): Promise\;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function disableAdmin(admin: Want, callback: AsyncCallback\): void;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function disableAdmin(admin: Want, userId: number, callback: AsyncCallback\): void;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function disableAdmin(admin: Want, userId?: number): Promise\;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function disableSuperAdmin(bundleName: String, callback: AsyncCallback\): void;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function disableSuperAdmin(bundleName: String): Promise\;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function isAdminEnabled(admin: Want, callback: AsyncCallback\): void;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function isAdminEnabled(admin: Want, userId: number, callback: AsyncCallback\): void;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function isAdminEnabled(admin: Want, userId?: number): Promise\;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function getEnterpriseInfo(admin: Want, callback: AsyncCallback\): void;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function getEnterpriseInfo(admin: Want): Promise\;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function setEnterpriseInfo(admin: Want, enterpriseInfo: EnterpriseInfo, callback: AsyncCallback\): void;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function setEnterpriseInfo(admin: Want, enterpriseInfo: EnterpriseInfo): Promise\;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function isSuperAdmin(bundleName: String, callback: AsyncCallback\): void;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function isSuperAdmin(bundleName: String): Promise\;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function subscribeManagedEvent(admin: Want, managedEvents: Array\, callback: AsyncCallback\): void;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function subscribeManagedEvent(admin: Want, managedEvents: Array\): Promise\;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function unsubscribeManagedEvent(admin: Want, managedEvents: Array\, callback: AsyncCallback\): void;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法 or 属性: function unsubscribeManagedEvent(admin: Want, managedEvents: Array\): Promise\;|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.dateTimeManager
类名: dateTimeManager|@ohos.enterprise.dateTimeManager.d.ts| +|新增|NA|模块名: ohos.enterprise.dateTimeManager
类名: dateTimeManager
方法 or 属性: function setDateTime(admin: Want, time: number, callback: AsyncCallback\): void;|@ohos.enterprise.dateTimeManager.d.ts| +|新增|NA|模块名: ohos.enterprise.dateTimeManager
类名: dateTimeManager
方法 or 属性: function setDateTime(admin: Want, time: number): Promise\;|@ohos.enterprise.dateTimeManager.d.ts| +|新增|NA|模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|新增|NA|模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法 or 属性: onAdminEnabled(): void;|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|新增|NA|模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法 or 属性: onAdminDisabled(): void;|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|新增|NA|模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法 or 属性: onBundleAdded(bundleName: string): void;|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|新增|NA|模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法 or 属性: onBundleRemoved(bundleName: string): void;|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|访问级别有变化|类名:configPolicy
访问级别:公开API|类名:configPolicy
访问级别:系统API|@ohos.configPolicy.d.ts| +|新增(错误码)|NA|类名:configPolicy
方法 or 属性:function getOneCfgFile(relPath: string, callback: AsyncCallback\);
错误码内容: 401|@ohos.configPolicy.d.ts| +|新增(错误码)|NA|类名:configPolicy
方法 or 属性:function getOneCfgFile(relPath: string): Promise\;
错误码内容: 401|@ohos.configPolicy.d.ts| +|新增(错误码)|NA|类名:configPolicy
方法 or 属性:function getCfgFiles(relPath: string, callback: AsyncCallback\>);
错误码内容: 401|@ohos.configPolicy.d.ts| +|新增(错误码)|NA|类名:configPolicy
方法 or 属性:function getCfgFiles(relPath: string): Promise\>;
错误码内容: 401|@ohos.configPolicy.d.ts| +|新增(错误码)|NA|类名:configPolicy
方法 or 属性:function getCfgDirList(callback: AsyncCallback\>);
错误码内容: 401|@ohos.configPolicy.d.ts| +|新增(错误码)|NA|类名:configPolicy
方法 or 属性:function getCfgDirList(): Promise\>;
错误码内容: 401|@ohos.configPolicy.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-dfx.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-dfx.md new file mode 100644 index 0000000000000000000000000000000000000000..9e155464169d77a35e09280049cc58154c25a5ac --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-dfx.md @@ -0,0 +1,115 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:FaultLogger
方法or属性:function query(faultType: FaultType, callback: AsyncCallback\>) : void;|@ohos.faultLogger.d.ts| +|新增|NA|类名:FaultLogger
方法or属性:function query(faultType: FaultType) : Promise\>;|@ohos.faultLogger.d.ts| +|新增|NA|类名:hichecker
方法or属性:function addCheckRule(rule: bigint) : void;|@ohos.hichecker.d.ts| +|新增|NA|类名:hichecker
方法or属性:function removeCheckRule(rule: bigint) : void;|@ohos.hichecker.d.ts| +|新增|NA|类名:hichecker
方法or属性:function containsCheckRule(rule: bigint) : boolean;|@ohos.hichecker.d.ts| +|新增|NA|类名:hidebug
方法or属性:function getPrivateDirty() : bigint;|@ohos.hidebug.d.ts| +|新增|NA|类名:hidebug
方法or属性:function getCpuUsage() : number;|@ohos.hidebug.d.ts| +|新增|NA|类名:hidebug
方法or属性:function startJsCpuProfiling(filename : string) : void;|@ohos.hidebug.d.ts| +|新增|NA|类名:hidebug
方法or属性:function stopJsCpuProfiling() : void;|@ohos.hidebug.d.ts| +|新增|NA|类名:hidebug
方法or属性:function dumpJsHeapData(filename : string) : void;|@ohos.hidebug.d.ts| +|新增|NA|类名:hidebug
方法or属性:function getServiceDump(serviceid : number, fd : number, args : Array\) : void;|@ohos.hidebug.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: hiSysEvent|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: EventType|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: EventType
方法 or 属性: FAULT = 1|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: EventType
方法 or 属性: STATISTIC = 2|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: EventType
方法 or 属性: SECURITY = 3|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: EventType
方法 or 属性: BEHAVIOR = 4|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: SysEventInfo|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: SysEventInfo
方法 or 属性: domain: string;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: SysEventInfo
方法 or 属性: name: string;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: SysEventInfo
方法 or 属性: eventType: EventType;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: SysEventInfo
方法 or 属性: params: object;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: hiSysEvent
方法 or 属性: function write(info: SysEventInfo): Promise\;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: hiSysEvent
方法 or 属性: function write(info: SysEventInfo, callback: AsyncCallback\): void;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: RuleType|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: RuleType
方法 or 属性: WHOLE_WORD = 1|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: RuleType
方法 or 属性: PREFIX = 2|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: RuleType
方法 or 属性: REGULAR = 3|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: WatchRule|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: WatchRule
方法 or 属性: domain: string;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: WatchRule
方法 or 属性: name: string;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: WatchRule
方法 or 属性: tag: string;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: WatchRule
方法 or 属性: ruleType: RuleType;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: Watcher|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: Watcher
方法 or 属性: rules: WatchRule[];|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: Watcher
方法 or 属性: onEvent: (info: SysEventInfo) => void;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: Watcher
方法 or 属性: onServiceDied: () => void;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: QueryArg|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: QueryArg
方法 or 属性: beginTime: number;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: QueryArg
方法 or 属性: endTime: number;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: QueryArg
方法 or 属性: maxEvents: number;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: QueryRule|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: QueryRule
方法 or 属性: domain: string;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: QueryRule
方法 or 属性: names: string[];|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: Querier|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: Querier
方法 or 属性: onQuery: (infos: SysEventInfo[]) => void;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: Querier
方法 or 属性: onComplete: (reason: number, total: number) => void;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: hiSysEvent
方法 or 属性: function addWatcher(watcher: Watcher): void;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: hiSysEvent
方法 or 属性: function removeWatcher(watcher: Watcher): void;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiSysEvent
类名: hiSysEvent
方法 or 属性: 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 = 1|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType
方法 or 属性: STATISTIC = 2|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType
方法 or 属性: SECURITY = 3|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType
方法 or 属性: BEHAVIOR = 4|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: event|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: event
方法 or 属性: const USER_LOGIN: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: event
方法 or 属性: const USER_LOGOUT: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: event
方法 or 属性: const DISTRIBUTED_SERVICE_START: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: param|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: param
方法 or 属性: const USER_ID: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: param
方法 or 属性: const DISTRIBUTED_SERVICE_NAME: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: param
方法 or 属性: const DISTRIBUTED_SERVICE_INSTANCE_ID: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法 or 属性: function configure(config: ConfigOption): void;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: ConfigOption|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: ConfigOption
方法 or 属性: disable?: boolean;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: ConfigOption
方法 or 属性: maxStorage?: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo
方法 or 属性: domain: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo
方法 or 属性: name: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo
方法 or 属性: eventType: EventType;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo
方法 or 属性: params: object;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法 or 属性: function write(info: AppEventInfo): Promise\;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法 or 属性: function write(info: AppEventInfo, callback: AsyncCallback\): void;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage
方法 or 属性: packageId: number;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage
方法 or 属性: row: number;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage
方法 or 属性: size: number;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage
方法 or 属性: data: string[];|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackageHolder|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackageHolder
方法 or 属性: constructor(watcherName: string);|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackageHolder
方法 or 属性: setSize(size: number): void;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackageHolder
方法 or 属性: takeNext(): AppEventPackage;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: TriggerCondition|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: TriggerCondition
方法 or 属性: row?: number;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: TriggerCondition
方法 or 属性: size?: number;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: TriggerCondition
方法 or 属性: timeOut?: number;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventFilter|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventFilter
方法 or 属性: domain: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventFilter
方法 or 属性: eventTypes?: EventType[];|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher
方法 or 属性: name: string;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher
方法 or 属性: triggerCondition?: TriggerCondition;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher
方法 or 属性: appEventFilters?: AppEventFilter[];|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher
方法 or 属性: onTrigger?: (curRow: number, curSize: number, holder: AppEventPackageHolder) => void;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法 or 属性: function addWatcher(watcher: Watcher): AppEventPackageHolder;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法 or 属性: function removeWatcher(watcher: Watcher): void;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法 or 属性: function clearData(): void;|@ohos.hiviewdfx.hiAppEvent.d.ts| +|废弃版本有变化|类名:bytrace
废弃版本:N/A|类名:bytrace
废弃版本:8
代替接口:ohos.hiTraceMeter |@ohos.bytrace.d.ts| +|废弃版本有变化|类名:bytrace
方法 or 属性:function startTrace(name: string, taskId: number, expectedTime?: number): void;
废弃版本:N/A|类名:bytrace
方法 or 属性:function startTrace(name: string, taskId: number, expectedTime?: number): void;
废弃版本:8
代替接口:ohos.hiTraceMeter.startTrace |@ohos.bytrace.d.ts| +|废弃版本有变化|类名:bytrace
方法 or 属性:function finishTrace(name: string, taskId: number): void;
废弃版本:N/A|类名:bytrace
方法 or 属性:function finishTrace(name: string, taskId: number): void;
废弃版本:8
代替接口:ohos.hiTraceMeter.finishTrace |@ohos.bytrace.d.ts| +|废弃版本有变化|类名:bytrace
方法 or 属性:function traceByValue(name: string, count: number): void;
废弃版本:N/A|类名:bytrace
方法 or 属性:function traceByValue(name: string, count: number): void;
废弃版本:8
代替接口:ohos.hiTraceMeter.traceByValue |@ohos.bytrace.d.ts| +|废弃版本有变化|类名:FaultLogger
方法 or 属性:function querySelfFaultLog(faultType: FaultType, callback: AsyncCallback\>) : void;
废弃版本:N/A|类名:FaultLogger
方法 or 属性:function querySelfFaultLog(faultType: FaultType, callback: AsyncCallback\>) : void;
废弃版本:9
代替接口:ohos.faultlogger/FaultLogger|@ohos.faultLogger.d.ts| +|废弃版本有变化|类名:FaultLogger
方法 or 属性:function querySelfFaultLog(faultType: FaultType) : Promise\>;
废弃版本:N/A|类名:FaultLogger
方法 or 属性:function querySelfFaultLog(faultType: FaultType) : Promise\>;
废弃版本:9
代替接口:ohos.faultlogger/FaultLogger|@ohos.faultLogger.d.ts| +|废弃版本有变化|类名:hiAppEvent
废弃版本:N/A|类名:hiAppEvent
废弃版本:9
代替接口:ohos.hiviewdfx.hiAppEvent |@ohos.hiAppEvent.d.ts| +|废弃版本有变化|类名:hichecker
方法 or 属性:function addRule(rule: bigint) : void;
废弃版本:N/A|类名:hichecker
方法 or 属性:function addRule(rule: bigint) : void;
废弃版本:9
代替接口:ohos.hichecker/hichecker|@ohos.hichecker.d.ts| +|废弃版本有变化|类名:hichecker
方法 or 属性:function removeRule(rule: bigint) : void;
废弃版本:N/A|类名:hichecker
方法 or 属性:function removeRule(rule: bigint) : void;
废弃版本:9
代替接口:ohos.hichecker/hichecker|@ohos.hichecker.d.ts| +|废弃版本有变化|类名:hichecker
方法 or 属性:function contains(rule: bigint) : boolean;
废弃版本:N/A|类名:hichecker
方法 or 属性:function contains(rule: bigint) : boolean;
废弃版本:9
代替接口:ohos.hichecker/hichecker|@ohos.hichecker.d.ts| +|废弃版本有变化|类名:hidebug
方法 or 属性:function startProfiling(filename : string) : void;
废弃版本:N/A|类名:hidebug
方法 or 属性:function startProfiling(filename : string) : void;
废弃版本:9
代替接口:ohos.hidebug/hidebug.startJsCpuProfiling |@ohos.hidebug.d.ts| +|废弃版本有变化|类名:hidebug
方法 or 属性:function stopProfiling() : void;
废弃版本:N/A|类名:hidebug
方法 or 属性:function stopProfiling() : void;
废弃版本:9
代替接口:ohos.hidebug/hidebug.stopJsCpuProfiling |@ohos.hidebug.d.ts| +|废弃版本有变化|类名:hidebug
方法 or 属性:function dumpHeapData(filename : string) : void;
废弃版本:N/A|类名:hidebug
方法 or 属性:function dumpHeapData(filename : string) : void;
废弃版本:9
代替接口:ohos.hidebug/hidebug.dumpJsHeapData |@ohos.hidebug.d.ts| +|函数有变化|类名:hiTraceChain
方法 or 属性:function begin(name: string, flags: number = HiTraceFlag.DEFAULT): HiTraceId;
|类名:hiTraceChain
方法 or 属性:function begin(name: string, flags?: number): HiTraceId;
|@ohos.hiTraceChain.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-distributed-data.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-distributed-data.md new file mode 100644 index 0000000000000000000000000000000000000000..9f6b86c8b2e5cfcdc0d618994dbba570955de65a --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-distributed-data.md @@ -0,0 +1,826 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.application.DataShareExtensionAbility
类名: DataShareExtensionAbility|@ohos.application.DataShareExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.DataShareExtensionAbility
类名: DataShareExtensionAbility
方法 or 属性: context?: ExtensionContext;|@ohos.application.DataShareExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.DataShareExtensionAbility
类名: DataShareExtensionAbility
方法 or 属性: onCreate?(want: Want, callback: AsyncCallback\): void;|@ohos.application.DataShareExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.DataShareExtensionAbility
类名: DataShareExtensionAbility
方法 or 属性: insert?(uri: string, valueBucket: ValuesBucket, callback: AsyncCallback\): void;|@ohos.application.DataShareExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.DataShareExtensionAbility
类名: DataShareExtensionAbility
方法 or 属性: update?(uri: string, predicates: dataSharePredicates.DataSharePredicates, valueBucket: ValuesBucket,
callback: AsyncCallback\): void;|@ohos.application.DataShareExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.DataShareExtensionAbility
类名: DataShareExtensionAbility
方法 or 属性: delete?(uri: string, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback\): void;|@ohos.application.DataShareExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.DataShareExtensionAbility
类名: DataShareExtensionAbility
方法 or 属性: query?(uri: string, predicates: dataSharePredicates.DataSharePredicates, columns: Array\,
callback: AsyncCallback\): void;|@ohos.application.DataShareExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.DataShareExtensionAbility
类名: DataShareExtensionAbility
方法 or 属性: batchInsert?(uri: string, valueBuckets: Array\, callback: AsyncCallback\): void;|@ohos.application.DataShareExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.DataShareExtensionAbility
类名: DataShareExtensionAbility
方法 or 属性: normalizeUri?(uri: string, callback: AsyncCallback\): void;|@ohos.application.DataShareExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.DataShareExtensionAbility
类名: DataShareExtensionAbility
方法 or 属性: denormalizeUri?(uri: string, callback: AsyncCallback\): void;|@ohos.application.DataShareExtensionAbility.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: dataShare|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: dataShare
方法 or 属性: function createDataShareHelper(context: Context, uri: string, callback: AsyncCallback\): void;|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: dataShare
方法 or 属性: function createDataShareHelper(context: Context, uri: string): Promise\;|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: DataShareHelper|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: DataShareHelper
方法 or 属性: on(type: 'dataChange', uri: string, callback: AsyncCallback\): void;|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: DataShareHelper
方法 or 属性: off(type: 'dataChange', uri: string, callback?: AsyncCallback\): void;|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: DataShareHelper
方法 or 属性: insert(uri: string, value: ValuesBucket, callback: AsyncCallback\): void;|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: DataShareHelper
方法 or 属性: insert(uri: string, value: ValuesBucket): Promise\;|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: DataShareHelper
方法 or 属性: delete(uri: string, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback\): void;|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: DataShareHelper
方法 or 属性: delete(uri: string, predicates: dataSharePredicates.DataSharePredicates): Promise\;|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: DataShareHelper
方法 or 属性: query(uri: string, predicates: dataSharePredicates.DataSharePredicates, columns: Array\,
callback: AsyncCallback\): void;|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: DataShareHelper
方法 or 属性: query(uri: string, predicates: dataSharePredicates.DataSharePredicates,
columns: Array\): Promise\;|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: DataShareHelper
方法 or 属性: update(uri: string, predicates: dataSharePredicates.DataSharePredicates, value: ValuesBucket,
callback: AsyncCallback\): void;|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: DataShareHelper
方法 or 属性: update(uri: string, predicates: dataSharePredicates.DataSharePredicates, value: ValuesBucket): Promise\;|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: DataShareHelper
方法 or 属性: batchInsert(uri: string, values: Array\, callback: AsyncCallback\): void;|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: DataShareHelper
方法 or 属性: batchInsert(uri: string, values: Array\): Promise\;|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: DataShareHelper
方法 or 属性: normalizeUri(uri: string, callback: AsyncCallback\): void;|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: DataShareHelper
方法 or 属性: normalizeUri(uri: string): Promise\;|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: DataShareHelper
方法 or 属性: denormalizeUri(uri: string, callback: AsyncCallback\): void;|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: DataShareHelper
方法 or 属性: denormalizeUri(uri: string): Promise\;|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: DataShareHelper
方法 or 属性: notifyChange(uri: string, callback: AsyncCallback\): void;|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataShare
类名: DataShareHelper
方法 or 属性: notifyChange(uri: string): Promise\;|@ohos.data.dataShare.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: dataSharePredicates|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: equalTo(field: string, value: ValueType): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: notEqualTo(field: string, value: ValueType): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: beginWrap(): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: endWrap(): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: or(): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: and(): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: contains(field: string, value: string): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: beginsWith(field: string, value: string): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: endsWith(field: string, value: string): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: isNull(field: string): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: isNotNull(field: string): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: like(field: string, value: string): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: unlike(field: string, value: string): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: glob(field: string, value: string): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: between(field: string, low: ValueType, high: ValueType): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: notBetween(field: string, low: ValueType, high: ValueType): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: greaterThan(field: string, value: ValueType): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: lessThan(field: string, value: ValueType): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: greaterThanOrEqualTo(field: string, value: ValueType): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: lessThanOrEqualTo(field: string, value: ValueType): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: orderByAsc(field: string): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: orderByDesc(field: string): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: distinct(): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: limit(total: number, offset: number): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: groupBy(fields: Array\): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: indexedBy(field: string): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: in(field: string, value: Array\): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: notIn(field: string, value: Array\): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: prefixKey(prefix: string): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.dataSharePredicates
类名: DataSharePredicates
方法 or 属性: inKeys(keys: Array\): DataSharePredicates;|@ohos.data.dataSharePredicates.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataType|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataType
方法 or 属性: TYPE_NULL = 0|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataType
方法 or 属性: TYPE_LONG = 1|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataType
方法 or 属性: TYPE_DOUBLE = 2|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataType
方法 or 属性: TYPE_STRING = 3|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataType
方法 or 属性: TYPE_BLOB = 4|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataShareResultSet|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataShareResultSet
方法 or 属性: columnNames: Array\;|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataShareResultSet
方法 or 属性: columnCount: number;|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataShareResultSet
方法 or 属性: rowCount: number;|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataShareResultSet
方法 or 属性: isClosed: boolean;|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataShareResultSet
方法 or 属性: goToFirstRow(): boolean;|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataShareResultSet
方法 or 属性: goToLastRow(): boolean;|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataShareResultSet
方法 or 属性: goToNextRow(): boolean;|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataShareResultSet
方法 or 属性: goToPreviousRow(): boolean;|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataShareResultSet
方法 or 属性: goTo(offset: number): boolean;|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataShareResultSet
方法 or 属性: goToRow(position: number): boolean;|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataShareResultSet
方法 or 属性: getBlob(columnIndex: number): Uint8Array;|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataShareResultSet
方法 or 属性: getString(columnIndex: number): string;|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataShareResultSet
方法 or 属性: getLong(columnIndex: number): number;|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataShareResultSet
方法 or 属性: getDouble(columnIndex: number): number;|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataShareResultSet
方法 or 属性: close(): void;|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataShareResultSet
方法 or 属性: getColumnIndex(columnName: string): number;|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataShareResultSet
方法 or 属性: getColumnName(columnIndex: number): string;|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|模块名: ohos.data.DataShareResultSet
类名: DataShareResultSet
方法 or 属性: getDataType(columnIndex: number): DataType;|@ohos.data.DataShareResultSet.d.ts| +|新增|NA|类名:KVStore
方法or属性:off(event: 'syncComplete', syncCallback?: Callback\>): void;|@ohos.data.distributedData.d.ts| +|新增|NA|类名:distributedDataObject
方法or属性:function create(context: Context, source: object): DataObject;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: SaveSuccessResponse|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:SaveSuccessResponse
方法or属性:|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: SaveSuccessResponse
方法 or 属性:sessionId: string;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:SaveSuccessResponse
方法or属性:sessionId: string;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: SaveSuccessResponse
方法 or 属性:version: number;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:SaveSuccessResponse
方法or属性:version: number;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: SaveSuccessResponse
方法 or 属性:deviceId: string;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:SaveSuccessResponse
方法or属性:deviceId: string;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: RevokeSaveSuccessResponse|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:RevokeSaveSuccessResponse
方法or属性:|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: RevokeSaveSuccessResponse
方法 or 属性:sessionId: string;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:RevokeSaveSuccessResponse
方法or属性:sessionId: string;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:setSessionId(sessionId: string, callback: AsyncCallback\): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:setSessionId(sessionId: string, callback: AsyncCallback\): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:setSessionId(callback: AsyncCallback\): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:setSessionId(callback: AsyncCallback\): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:setSessionId(sessionId?: string): Promise\;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:setSessionId(sessionId?: string): Promise\;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:on(type: 'change', callback: Callback\<{ sessionId: string, fields: Array\ }>): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:on(type: 'change', callback: Callback\<{ sessionId: string, fields: Array\ }>): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:off(type: 'change', callback?: Callback\<{ sessionId: string, fields: Array\ }>): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:off(type: 'change', callback?: Callback\<{ sessionId: string, fields: Array\ }>): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:on(type: 'status',

callback: Callback\<{ sessionId: string, networkId: string, status: 'online' \| 'offline' }>): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:off(type: 'status',

callback?: Callback\<{ sessionId: string, deviceId: string, status: 'online' \| 'offline' }>): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:save(deviceId: string, callback: AsyncCallback\): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:save(deviceId: string, callback: AsyncCallback\): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:save(deviceId: string): Promise\;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:save(deviceId: string): Promise\;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:revokeSave(callback: AsyncCallback\): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:revokeSave(callback: AsyncCallback\): void;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DataObject
方法 or 属性:revokeSave(): Promise\;|@ohos.data.distributedDataObject.d.ts| +|新增|NA|类名:DataObject
方法or属性:revokeSave(): Promise\;|@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: string;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManagerConfig
方法 or 属性: context: Context;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants
方法 or 属性: readonly MAX_KEY_LENGTH: number;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants
方法 or 属性: readonly MAX_VALUE_LENGTH: number;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants
方法 or 属性: readonly MAX_KEY_LENGTH_DEVICE: number;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants
方法 or 属性: readonly MAX_STORE_ID_LENGTH: number;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants
方法 or 属性: readonly MAX_QUERY_LENGTH: number;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants
方法 or 属性: readonly MAX_BATCH_SIZE: number;|@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: ValueType;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Value
方法 or 属性: value: Uint8Array \| string \| number \| boolean;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Entry|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Entry
方法 or 属性: key: string;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Entry
方法 or 属性: value: Value;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ChangeNotification|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ChangeNotification
方法 or 属性: insertEntries: Entry[];|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ChangeNotification
方法 or 属性: updateEntries: Entry[];|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ChangeNotification
方法 or 属性: deleteEntries: Entry[];|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ChangeNotification
方法 or 属性: deviceId: string;|@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?: boolean;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options
方法 or 属性: encrypt?: boolean;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options
方法 or 属性: backup?: boolean;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options
方法 or 属性: autoSync?: boolean;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options
方法 or 属性: kvStoreType?: KVStoreType;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options
方法 or 属性: securityLevel: SecurityLevel;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options
方法 or 属性: schema?: Schema;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Schema|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Schema
方法 or 属性: constructor()|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Schema
方法 or 属性: root: FieldNode;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Schema
方法 or 属性: indexes: Array\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Schema
方法 or 属性: mode: number;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Schema
方法 or 属性: skip: number;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: FieldNode|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: FieldNode
方法 or 属性: constructor(name: string)|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: FieldNode
方法 or 属性: appendChild(child: FieldNode): boolean;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: FieldNode
方法 or 属性: default: string;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: FieldNode
方法 or 属性: nullable: boolean;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: FieldNode
方法 or 属性: type: number;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法 or 属性: getCount(): number;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法 or 属性: getPosition(): number;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法 or 属性: moveToFirst(): boolean;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法 or 属性: moveToLast(): boolean;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法 or 属性: moveToNext(): boolean;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法 or 属性: moveToPrevious(): boolean;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法 or 属性: move(offset: number): boolean;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法 or 属性: moveToPosition(position: number): boolean;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法 or 属性: isFirst(): boolean;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法 or 属性: isLast(): boolean;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法 or 属性: isBeforeFirst(): boolean;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法 or 属性: isAfterLast(): boolean;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法 or 属性: getEntry(): Entry;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: constructor()|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: reset(): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: equalTo(field: string, value: number \| string \| boolean): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: notEqualTo(field: string, value: number \| string \| boolean): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: greaterThan(field: string, value: number \| string \| boolean): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: lessThan(field: string, value: number \| string): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: greaterThanOrEqualTo(field: string, value: number \| string): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: lessThanOrEqualTo(field: string, value: number \| string): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: isNull(field: string): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: inNumber(field: string, valueList: number[]): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: inString(field: string, valueList: string[]): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: notInNumber(field: string, valueList: number[]): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: notInString(field: string, valueList: string[]): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: like(field: string, value: string): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: unlike(field: string, value: string): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: and(): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: or(): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: orderByAsc(field: string): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: orderByDesc(field: string): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: limit(total: number, offset: number): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: isNotNull(field: string): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: beginGroup(): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: endGroup(): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: prefixKey(prefix: string): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: setSuggestIndex(index: string): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: deviceId(deviceId: string): Query;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法 or 属性: getSqlLike(): string;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: put(key: string, value: Uint8Array \| string \| number \| boolean, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: put(key: string, value: Uint8Array \| string \| number \| boolean): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: putBatch(entries: Entry[], callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: putBatch(entries: Entry[]): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: putBatch(value: Array\, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: putBatch(value: Array\): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: delete(key: string, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: delete(key: string): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: delete(predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback\);|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: delete(predicates: dataSharePredicates.DataSharePredicates): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: deleteBatch(keys: string[], callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: deleteBatch(keys: string[]): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: removeDeviceData(deviceId: string, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: removeDeviceData(deviceId: string): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: get(key: string, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: get(key: string): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: getEntries(keyPrefix: string, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: getEntries(keyPrefix: string): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: getEntries(query: Query, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: getEntries(query: Query): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: getResultSet(keyPrefix: string, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: getResultSet(keyPrefix: string): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: getResultSet(query: Query, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: getResultSet(query: Query): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: getResultSet(predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: getResultSet(predicates: dataSharePredicates.DataSharePredicates): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: closeResultSet(resultSet: KVStoreResultSet, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: closeResultSet(resultSet: KVStoreResultSet): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: getResultSize(query: Query, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: getResultSize(query: Query): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: backup(file: string, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: backup(file: string): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: restore(file: string, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: restore(file: string): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: deleteBackup(files: Array\, callback: AsyncCallback\>): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: deleteBackup(files: Array\): Promise\>;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: startTransaction(callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: startTransaction(): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: commit(callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: commit(): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: rollback(callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: rollback(): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: enableSync(enabled: boolean, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: enableSync(enabled: boolean): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: setSyncRange(localLabels: string[], remoteSupportLabels: string[], callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: setSyncRange(localLabels: string[], remoteSupportLabels: string[]): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: setSyncParam(defaultAllowedDelayMs: number, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: setSyncParam(defaultAllowedDelayMs: number): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: sync(deviceIds: string[], mode: SyncMode, delayMs?: number): void|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: sync(deviceIds: string[], query: Query, mode: SyncMode, delayMs?: number): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: on(event: 'dataChange', type: SubscribeType, listener: Callback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: on(event: 'syncComplete', syncCallback: Callback\>): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: off(event: 'dataChange', listener?: Callback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: off(event: 'syncComplete', syncCallback?: Callback\>): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: getSecurityLevel(callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法 or 属性: getSecurityLevel(): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: get(key: string, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: get(key: string): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: get(deviceId: string, key: string, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: get(deviceId: string, key: string): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getEntries(keyPrefix: string, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getEntries(keyPrefix: string): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getEntries(deviceId: string, keyPrefix: string, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getEntries(deviceId: string, keyPrefix: string): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getEntries(query: Query, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getEntries(query: Query): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getEntries(deviceId: string, query: Query, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getEntries(deviceId: string, query: Query): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getResultSet(keyPrefix: string, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getResultSet(keyPrefix: string): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getResultSet(deviceId: string, keyPrefix: string, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getResultSet(deviceId: string, keyPrefix: string): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getResultSet(query: Query, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getResultSet(query: Query): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getResultSet(deviceId: string, query: Query, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getResultSet(deviceId: string, query: Query): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getResultSet(predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getResultSet(predicates: dataSharePredicates.DataSharePredicates): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getResultSet(deviceId: string, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getResultSet(deviceId: string, predicates: dataSharePredicates.DataSharePredicates): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getResultSize(query: Query, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getResultSize(query: Query): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getResultSize(deviceId: string, query: Query, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法 or 属性: getResultSize(deviceId: string, query: Query): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: distributedKVStore
方法 or 属性: function createKVManager(config: KVManagerConfig): KVManager;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法 or 属性: getKVStore\(storeId: string, options: Options, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法 or 属性: getKVStore\(storeId: string, options: Options): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法 or 属性: closeKVStore(appId: string, storeId: string, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法 or 属性: closeKVStore(appId: string, storeId: string): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法 or 属性: deleteKVStore(appId: string, storeId: string, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法 or 属性: deleteKVStore(appId: string, storeId: string): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法 or 属性: getAllKVStoreId(appId: string, callback: AsyncCallback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法 or 属性: getAllKVStoreId(appId: string): Promise\;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法 or 属性: on(event: 'distributedDataServiceDie', deathCallback: Callback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法 or 属性: off(event: 'distributedDataServiceDie', deathCallback?: Callback\): void;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: preferences|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: preferences
方法 or 属性: function getPreferences(context: Context, name: string, callback: AsyncCallback\): void;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: preferences
方法 or 属性: function getPreferences(context: Context, name: string): Promise\;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: preferences
方法 or 属性: function deletePreferences(context: Context, name: string, callback: AsyncCallback\): void;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: preferences
方法 or 属性: function deletePreferences(context: Context, name: string): Promise\;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: preferences
方法 or 属性: function removePreferencesFromCache(context: Context, name: string, callback: AsyncCallback\): void;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: preferences
方法 or 属性: function removePreferencesFromCache(context: Context, name: string): Promise\;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: Preferences|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: Preferences
方法 or 属性: get(key: string, defValue: ValueType, callback: AsyncCallback\): void;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: Preferences
方法 or 属性: get(key: string, defValue: ValueType): Promise\;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: Preferences
方法 or 属性: getAll(callback: AsyncCallback\): void;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: Preferences
方法 or 属性: getAll(): Promise\;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: Preferences
方法 or 属性: has(key: string, callback: AsyncCallback\): void;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: Preferences
方法 or 属性: has(key: string): Promise\;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: Preferences
方法 or 属性: put(key: string, value: ValueType, callback: AsyncCallback\): void;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: Preferences
方法 or 属性: put(key: string, value: ValueType): Promise\;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: Preferences
方法 or 属性: delete(key: string, callback: AsyncCallback\): void;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: Preferences
方法 or 属性: delete(key: string): Promise\;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: Preferences
方法 or 属性: clear(callback: AsyncCallback\): void;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: Preferences
方法 or 属性: clear(): Promise\;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: Preferences
方法 or 属性: flush(callback: AsyncCallback\): void;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: Preferences
方法 or 属性: flush(): Promise\;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: Preferences
方法 or 属性: on(type: 'change', callback: Callback\<{ key: string }>): void;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: Preferences
方法 or 属性: off(type: 'change', callback?: Callback\<{ key: string }>): void;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: preferences
方法 or 属性: const MAX_KEY_LENGTH: 80;|@ohos.data.preferences.d.ts| +|新增|NA|模块名: ohos.data.preferences
类名: preferences
方法 or 属性: const MAX_VALUE_LENGTH: 8192;|@ohos.data.preferences.d.ts| +|新增|NA|类名:RdbStore
方法or属性:batchInsert(table: string, values: Array\, callback: AsyncCallback\): void;|@ohos.data.rdb.d.ts| +|新增|NA|类名:RdbStore
方法or属性:batchInsert(table: string, values: Array\): Promise\;|@ohos.data.rdb.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
类名: 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
类名: 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
类名: 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
类名: 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 属性: 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 属性: 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 属性: 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
类名: 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有变化|类名:GetStorageOptions
model:N/A|类名:GetStorageOptions
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:GetStorageOptions
方法 or 属性:key: string;
model:N/A|类名:GetStorageOptions
方法 or 属性:key: string;
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:GetStorageOptions
方法 or 属性:default?: string;
model:N/A|类名:GetStorageOptions
方法 or 属性:default?: string;
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:GetStorageOptions
方法 or 属性:success?: (data: any) => void;
model:N/A|类名:GetStorageOptions
方法 or 属性:success?: (data: any) => void;
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:GetStorageOptions
方法 or 属性:fail?: (data: string, code: number) => void;
model:N/A|类名:GetStorageOptions
方法 or 属性:fail?: (data: string, code: number) => void;
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:GetStorageOptions
方法 or 属性:complete?: () => void;
model:N/A|类名:GetStorageOptions
方法 or 属性:complete?: () => void;
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:SetStorageOptions
model:N/A|类名:SetStorageOptions
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:SetStorageOptions
方法 or 属性:key: string;
model:N/A|类名:SetStorageOptions
方法 or 属性:key: string;
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:SetStorageOptions
方法 or 属性:value: string;
model:N/A|类名:SetStorageOptions
方法 or 属性:value: string;
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:SetStorageOptions
方法 or 属性:success?: () => void;
model:N/A|类名:SetStorageOptions
方法 or 属性:success?: () => void;
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:SetStorageOptions
方法 or 属性:fail?: (data: string, code: number) => void;
model:N/A|类名:SetStorageOptions
方法 or 属性:fail?: (data: string, code: number) => void;
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:SetStorageOptions
方法 or 属性:complete?: () => void;
model:N/A|类名:SetStorageOptions
方法 or 属性:complete?: () => void;
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:ClearStorageOptions
model:N/A|类名:ClearStorageOptions
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:ClearStorageOptions
方法 or 属性:success?: () => void;
model:N/A|类名:ClearStorageOptions
方法 or 属性:success?: () => void;
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:ClearStorageOptions
方法 or 属性:fail?: (data: string, code: number) => void;
model:N/A|类名:ClearStorageOptions
方法 or 属性:fail?: (data: string, code: number) => void;
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:ClearStorageOptions
方法 or 属性:complete?: () => void;
model:N/A|类名:ClearStorageOptions
方法 or 属性:complete?: () => void;
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:DeleteStorageOptions
model:N/A|类名:DeleteStorageOptions
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:DeleteStorageOptions
方法 or 属性:key: string;
model:N/A|类名:DeleteStorageOptions
方法 or 属性:key: string;
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:DeleteStorageOptions
方法 or 属性:success?: () => void;
model:N/A|类名:DeleteStorageOptions
方法 or 属性:success?: () => void;
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:DeleteStorageOptions
方法 or 属性:fail?: (data: string, code: number) => void;
model:N/A|类名:DeleteStorageOptions
方法 or 属性:fail?: (data: string, code: number) => void;
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:DeleteStorageOptions
方法 or 属性:complete?: () => void;
model:N/A|类名:DeleteStorageOptions
方法 or 属性:complete?: () => void;
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:Storage
model:N/A|类名:Storage
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:Storage
方法 or 属性:static get(options: GetStorageOptions): void;
model:N/A|类名:Storage
方法 or 属性:static get(options: GetStorageOptions): void;
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:Storage
方法 or 属性:static set(options: SetStorageOptions): void;
model:N/A|类名:Storage
方法 or 属性:static set(options: SetStorageOptions): void;
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:Storage
方法 or 属性:static clear(options?: ClearStorageOptions): void;
model:N/A|类名:Storage
方法 or 属性:static clear(options?: ClearStorageOptions): void;
model:@FAModelOnly|@system.storage.d.ts| +|model有变化|类名:Storage
方法 or 属性:static delete(options: DeleteStorageOptions): void;
model:N/A|类名:Storage
方法 or 属性:static delete(options: DeleteStorageOptions): void;
model:@FAModelOnly|@system.storage.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| +|废弃版本有变化|类名:KVManagerConfig
方法 or 属性:userInfo: UserInfo;
废弃版本:N/A|类名:KVManagerConfig
方法 or 属性:userInfo: UserInfo;
废弃版本:9
代替接口:N/A|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVManagerConfig
方法 or 属性:bundleName: string;
废弃版本:N/A|类名:KVManagerConfig
方法 or 属性:bundleName: string;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVManagerConfig|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:UserInfo
废弃版本:N/A|类名:UserInfo
废弃版本:9
代替接口:N/A|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:UserInfo
方法 or 属性:userId?: string;
废弃版本:N/A|类名:UserInfo
方法 or 属性:userId?: string;
废弃版本:9
代替接口:N/A|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:UserInfo
方法 or 属性:userType?: UserType;
废弃版本:N/A|类名:UserInfo
方法 or 属性:userType?: UserType;
废弃版本:9
代替接口:N/A|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:UserType
废弃版本:N/A|类名:UserType
废弃版本:9
代替接口:N/A|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:UserType
方法 or 属性:SAME_USER_ID = 0
废弃版本:N/A|类名:UserType
方法 or 属性:SAME_USER_ID = 0
废弃版本:9
代替接口:N/A|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Constants
废弃版本:N/A|类名:Constants
废弃版本:9
代替接口:ohos.data.distributedKVStore.Constants |@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Constants
方法 or 属性:const MAX_KEY_LENGTH = 1024;
废弃版本:N/A|类名:Constants
方法 or 属性:const MAX_KEY_LENGTH = 1024;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Constants|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Constants
方法 or 属性:const MAX_VALUE_LENGTH = 4194303;
废弃版本:N/A|类名:Constants
方法 or 属性:const MAX_VALUE_LENGTH = 4194303;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Constants|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Constants
方法 or 属性:const MAX_KEY_LENGTH_DEVICE = 896;
废弃版本:N/A|类名:Constants
方法 or 属性:const MAX_KEY_LENGTH_DEVICE = 896;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Constants|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Constants
方法 or 属性:const MAX_STORE_ID_LENGTH = 128;
废弃版本:N/A|类名:Constants
方法 or 属性:const MAX_STORE_ID_LENGTH = 128;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Constants|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Constants
方法 or 属性:const MAX_QUERY_LENGTH = 512000;
废弃版本:N/A|类名:Constants
方法 or 属性:const MAX_QUERY_LENGTH = 512000;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Constants|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Constants
方法 or 属性:const MAX_BATCH_SIZE = 128;
废弃版本:N/A|类名:Constants
方法 or 属性:const MAX_BATCH_SIZE = 128;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Constants|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:ValueType
废弃版本:N/A|类名:ValueType
废弃版本:9
代替接口:ohos.data.distributedKVStore.ValueType |@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:ValueType
方法 or 属性:STRING = 0
废弃版本:N/A|类名:ValueType
方法 or 属性:STRING = 0
废弃版本:9
代替接口:ohos.data.distributedKVStore.ValueType|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:ValueType
方法 or 属性:INTEGER = 1
废弃版本:N/A|类名:ValueType
方法 or 属性:INTEGER = 1
废弃版本:9
代替接口:ohos.data.distributedKVStore.ValueType|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:ValueType
方法 or 属性:FLOAT = 2
废弃版本:N/A|类名:ValueType
方法 or 属性:FLOAT = 2
废弃版本:9
代替接口:ohos.data.distributedKVStore.ValueType|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:ValueType
方法 or 属性:BYTE_ARRAY = 3
废弃版本:N/A|类名:ValueType
方法 or 属性:BYTE_ARRAY = 3
废弃版本:9
代替接口:ohos.data.distributedKVStore.ValueType|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:ValueType
方法 or 属性:BOOLEAN = 4
废弃版本:N/A|类名:ValueType
方法 or 属性:BOOLEAN = 4
废弃版本:9
代替接口:ohos.data.distributedKVStore.ValueType|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:ValueType
方法 or 属性:DOUBLE = 5
废弃版本:N/A|类名:ValueType
方法 or 属性:DOUBLE = 5
废弃版本:9
代替接口:ohos.data.distributedKVStore.ValueType|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Value
废弃版本:N/A|类名:Value
废弃版本:9
代替接口:ohos.data.distributedKVStore.Value |@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Value
方法 or 属性:type: ValueType;
废弃版本:N/A|类名:Value
方法 or 属性:type: ValueType;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Value|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Value
方法 or 属性:value: Uint8Array \| string \| number \| boolean;
废弃版本:N/A|类名:Value
方法 or 属性:value: Uint8Array \| string \| number \| boolean;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Value|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Entry
废弃版本:N/A|类名:Entry
废弃版本:9
代替接口:ohos.data.distributedKVStore.Entry |@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Entry
方法 or 属性:key: string;
废弃版本:N/A|类名:Entry
方法 or 属性:key: string;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Entry|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Entry
方法 or 属性:value: Value;
废弃版本:N/A|类名:Entry
方法 or 属性:value: Value;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Entry|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:ChangeNotification
废弃版本:N/A|类名:ChangeNotification
废弃版本:9
代替接口:ohos.data.distributedKVStore.ChangeNotification |@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:ChangeNotification
方法 or 属性:insertEntries: Entry[];
废弃版本:N/A|类名:ChangeNotification
方法 or 属性:insertEntries: Entry[];
废弃版本:9
代替接口:ohos.data.distributedKVStore.ChangeNotification|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:ChangeNotification
方法 or 属性:updateEntries: Entry[];
废弃版本:N/A|类名:ChangeNotification
方法 or 属性:updateEntries: Entry[];
废弃版本:9
代替接口:ohos.data.distributedKVStore.ChangeNotification|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:ChangeNotification
方法 or 属性:deleteEntries: Entry[];
废弃版本:N/A|类名:ChangeNotification
方法 or 属性:deleteEntries: Entry[];
废弃版本:9
代替接口:ohos.data.distributedKVStore.ChangeNotification|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:ChangeNotification
方法 or 属性:deviceId: string;
废弃版本:N/A|类名:ChangeNotification
方法 or 属性:deviceId: string;
废弃版本:9
代替接口:ohos.data.distributedKVStore.ChangeNotification|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SyncMode
废弃版本:N/A|类名:SyncMode
废弃版本:9
代替接口:ohos.data.distributedKVStore.SyncMode |@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SyncMode
方法 or 属性:PULL_ONLY = 0
废弃版本:N/A|类名:SyncMode
方法 or 属性:PULL_ONLY = 0
废弃版本:9
代替接口:ohos.data.distributedKVStore.SyncMode|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SyncMode
方法 or 属性:PUSH_ONLY = 1
废弃版本:N/A|类名:SyncMode
方法 or 属性:PUSH_ONLY = 1
废弃版本:9
代替接口:ohos.data.distributedKVStore.SyncMode|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SyncMode
方法 or 属性:PUSH_PULL = 2
废弃版本:N/A|类名:SyncMode
方法 or 属性:PUSH_PULL = 2
废弃版本:9
代替接口:ohos.data.distributedKVStore.SyncMode|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SubscribeType
废弃版本:N/A|类名:SubscribeType
废弃版本:9
代替接口:ohos.data.distributedKVStore.SubscribeType |@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SubscribeType
方法 or 属性:SUBSCRIBE_TYPE_LOCAL = 0
废弃版本:N/A|类名:SubscribeType
方法 or 属性:SUBSCRIBE_TYPE_LOCAL = 0
废弃版本:9
代替接口:ohos.data.distributedKVStore.SubscribeType|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SubscribeType
方法 or 属性:SUBSCRIBE_TYPE_REMOTE = 1
废弃版本:N/A|类名:SubscribeType
方法 or 属性:SUBSCRIBE_TYPE_REMOTE = 1
废弃版本:9
代替接口:ohos.data.distributedKVStore.SubscribeType|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SubscribeType
方法 or 属性:SUBSCRIBE_TYPE_ALL = 2
废弃版本:N/A|类名:SubscribeType
方法 or 属性:SUBSCRIBE_TYPE_ALL = 2
废弃版本:9
代替接口:ohos.data.distributedKVStore.SubscribeType|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStoreType
废弃版本:N/A|类名:KVStoreType
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVStoreType |@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStoreType
方法 or 属性:DEVICE_COLLABORATION = 0
废弃版本:N/A|类名:KVStoreType
方法 or 属性:DEVICE_COLLABORATION = 0
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVStoreType|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStoreType
方法 or 属性:SINGLE_VERSION = 1
废弃版本:N/A|类名:KVStoreType
方法 or 属性:SINGLE_VERSION = 1
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVStoreType|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStoreType
方法 or 属性:MULTI_VERSION = 2
废弃版本:N/A|类名:KVStoreType
方法 or 属性:MULTI_VERSION = 2
废弃版本:9
代替接口:N/A|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SecurityLevel
废弃版本:N/A|类名:SecurityLevel
废弃版本:9
代替接口:ohos.data.distributedKVStore.SecurityLevel |@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SecurityLevel
方法 or 属性:NO_LEVEL = 0
废弃版本:N/A|类名:SecurityLevel
方法 or 属性:NO_LEVEL = 0
废弃版本:9
代替接口:N/A|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SecurityLevel
方法 or 属性:S0 = 1
废弃版本:N/A|类名:SecurityLevel
方法 or 属性:S0 = 1
废弃版本:9
代替接口:N/A|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SecurityLevel
方法 or 属性:S1 = 2
废弃版本:N/A|类名:SecurityLevel
方法 or 属性:S1 = 2
废弃版本:9
代替接口:ohos.data.distributedKVStore.SecurityLevel|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SecurityLevel
方法 or 属性:S2 = 3
废弃版本:N/A|类名:SecurityLevel
方法 or 属性:S2 = 3
废弃版本:9
代替接口:ohos.data.distributedKVStore.SecurityLevel|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SecurityLevel
方法 or 属性:S3 = 5
废弃版本:N/A|类名:SecurityLevel
方法 or 属性:S3 = 5
废弃版本:9
代替接口:ohos.data.distributedKVStore.SecurityLevel|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SecurityLevel
方法 or 属性:S4 = 6
废弃版本:N/A|类名:SecurityLevel
方法 or 属性:S4 = 6
废弃版本:9
代替接口:ohos.data.distributedKVStore.SecurityLevel|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Options
废弃版本:N/A|类名:Options
废弃版本:9
代替接口:ohos.data.distributedKVStore.Options |@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Options
方法 or 属性:createIfMissing?: boolean;
废弃版本:N/A|类名:Options
方法 or 属性:createIfMissing?: boolean;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Options
方法 or 属性:encrypt?: boolean;
废弃版本:N/A|类名:Options
方法 or 属性:encrypt?: boolean;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Options
方法 or 属性:backup?: boolean;
废弃版本:N/A|类名:Options
方法 or 属性:backup?: boolean;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Options
方法 or 属性:autoSync?: boolean;
废弃版本:N/A|类名:Options
方法 or 属性:autoSync?: boolean;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Options
方法 or 属性:kvStoreType?: KVStoreType;
废弃版本:N/A|类名:Options
方法 or 属性:kvStoreType?: KVStoreType;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Options
方法 or 属性:securityLevel?: SecurityLevel;
废弃版本:N/A|类名:Options
方法 or 属性:securityLevel?: SecurityLevel;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Options
方法 or 属性:schema?: Schema;
废弃版本:N/A|类名:Options
方法 or 属性:schema?: Schema;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Schema
废弃版本:N/A|类名:Schema
废弃版本:9
代替接口:ohos.data.distributedKVStore.Schema |@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Schema
方法 or 属性:constructor()
废弃版本:N/A|类名:Schema
方法 or 属性:constructor()
废弃版本:9
代替接口:ohos.data.distributedKVStore.Schema|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Schema
方法 or 属性:root: FieldNode;
废弃版本:N/A|类名:Schema
方法 or 属性:root: FieldNode;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Schema|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Schema
方法 or 属性:indexes: Array\;
废弃版本:N/A|类名:Schema
方法 or 属性:indexes: Array\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Schema|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Schema
方法 or 属性:mode: number;
废弃版本:N/A|类名:Schema
方法 or 属性:mode: number;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Schema|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Schema
方法 or 属性:skip: number;
废弃版本:N/A|类名:Schema
方法 or 属性:skip: number;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Schema|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:FieldNode
废弃版本:N/A|类名:FieldNode
废弃版本:9
代替接口:ohos.data.distributedKVStore.FieldNode |@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:FieldNode
方法 or 属性:constructor(name: string)
废弃版本:N/A|类名:FieldNode
方法 or 属性:constructor(name: string)
废弃版本:9
代替接口:ohos.data.distributedKVStore.FieldNode|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:FieldNode
方法 or 属性:appendChild(child: FieldNode): boolean;
废弃版本:N/A|类名:FieldNode
方法 or 属性:appendChild(child: FieldNode): boolean;
废弃版本:9
代替接口:ohos.data.distributedKVStore.FieldNode|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:FieldNode
方法 or 属性:default: string;
废弃版本:N/A|类名:FieldNode
方法 or 属性:default: string;
废弃版本:9
代替接口:ohos.data.distributedKVStore.FieldNode|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:FieldNode
方法 or 属性:nullable: boolean;
废弃版本:N/A|类名:FieldNode
方法 or 属性:nullable: boolean;
废弃版本:9
代替接口:ohos.data.distributedKVStore.FieldNode|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:FieldNode
方法 or 属性:type: number;
废弃版本:N/A|类名:FieldNode
方法 or 属性:type: number;
废弃版本:9
代替接口:ohos.data.distributedKVStore.FieldNode|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KvStoreResultSet
废弃版本:N/A|类名:KvStoreResultSet
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVStoreResultSet |@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KvStoreResultSet
方法 or 属性:getCount(): number;
废弃版本:N/A|类名:KvStoreResultSet
方法 or 属性:getCount(): number;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KvStoreResultSet
方法 or 属性:getPosition(): number;
废弃版本:N/A|类名:KvStoreResultSet
方法 or 属性:getPosition(): number;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KvStoreResultSet
方法 or 属性:moveToFirst(): boolean;
废弃版本:N/A|类名:KvStoreResultSet
方法 or 属性:moveToFirst(): boolean;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KvStoreResultSet
方法 or 属性:moveToLast(): boolean;
废弃版本:N/A|类名:KvStoreResultSet
方法 or 属性:moveToLast(): boolean;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KvStoreResultSet
方法 or 属性:moveToNext(): boolean;
废弃版本:N/A|类名:KvStoreResultSet
方法 or 属性:moveToNext(): boolean;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KvStoreResultSet
方法 or 属性:moveToPrevious(): boolean;
废弃版本:N/A|类名:KvStoreResultSet
方法 or 属性:moveToPrevious(): boolean;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KvStoreResultSet
方法 or 属性:move(offset: number): boolean;
废弃版本:N/A|类名:KvStoreResultSet
方法 or 属性:move(offset: number): boolean;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KvStoreResultSet
方法 or 属性:moveToPosition(position: number): boolean;
废弃版本:N/A|类名:KvStoreResultSet
方法 or 属性:moveToPosition(position: number): boolean;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KvStoreResultSet
方法 or 属性:isFirst(): boolean;
废弃版本:N/A|类名:KvStoreResultSet
方法 or 属性:isFirst(): boolean;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KvStoreResultSet
方法 or 属性:isLast(): boolean;
废弃版本:N/A|类名:KvStoreResultSet
方法 or 属性:isLast(): boolean;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KvStoreResultSet
方法 or 属性:isBeforeFirst(): boolean;
废弃版本:N/A|类名:KvStoreResultSet
方法 or 属性:isBeforeFirst(): boolean;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KvStoreResultSet
方法 or 属性:isAfterLast(): boolean;
废弃版本:N/A|类名:KvStoreResultSet
方法 or 属性:isAfterLast(): boolean;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KvStoreResultSet
方法 or 属性:getEntry(): Entry;
废弃版本:N/A|类名:KvStoreResultSet
方法 or 属性:getEntry(): Entry;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Query
废弃版本:N/A|类名:Query
废弃版本:9
代替接口:ohos.data.distributedKVStore.Query |@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Query
方法 or 属性:constructor()
废弃版本:N/A|类名:Query
方法 or 属性:constructor()
废弃版本:9
代替接口:ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Query
方法 or 属性:reset(): Query;
废弃版本:N/A|类名:Query
方法 or 属性:reset(): Query;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Query
方法 or 属性:isNull(field: string): Query;
废弃版本:N/A|类名:Query
方法 or 属性:isNull(field: string): Query;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Query
方法 or 属性:inNumber(field: string, valueList: number[]): Query;
废弃版本:N/A|类名:Query
方法 or 属性:inNumber(field: string, valueList: number[]): Query;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Query
方法 or 属性:inString(field: string, valueList: string[]): Query;
废弃版本:N/A|类名:Query
方法 or 属性:inString(field: string, valueList: string[]): Query;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Query
方法 or 属性:notInNumber(field: string, valueList: number[]): Query;
废弃版本:N/A|类名:Query
方法 or 属性:notInNumber(field: string, valueList: number[]): Query;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Query
方法 or 属性:notInString(field: string, valueList: string[]): Query;
废弃版本:N/A|类名:Query
方法 or 属性:notInString(field: string, valueList: string[]): Query;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Query
方法 or 属性:like(field: string, value: string): Query;
废弃版本:N/A|类名:Query
方法 or 属性:like(field: string, value: string): Query;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Query
方法 or 属性:unlike(field: string, value: string): Query;
废弃版本:N/A|类名:Query
方法 or 属性:unlike(field: string, value: string): Query;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Query
方法 or 属性:and(): Query;
废弃版本:N/A|类名:Query
方法 or 属性:and(): Query;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Query
方法 or 属性:or(): Query;
废弃版本:N/A|类名:Query
方法 or 属性:or(): Query;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Query
方法 or 属性:orderByAsc(field: string): Query;
废弃版本:N/A|类名:Query
方法 or 属性:orderByAsc(field: string): Query;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Query
方法 or 属性:orderByDesc(field: string): Query;
废弃版本:N/A|类名:Query
方法 or 属性:orderByDesc(field: string): Query;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Query
方法 or 属性:limit(total: number, offset: number): Query;
废弃版本:N/A|类名:Query
方法 or 属性:limit(total: number, offset: number): Query;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Query
方法 or 属性:isNotNull(field: string): Query;
废弃版本:N/A|类名:Query
方法 or 属性:isNotNull(field: string): Query;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Query
方法 or 属性:beginGroup(): Query;
废弃版本:N/A|类名:Query
方法 or 属性:beginGroup(): Query;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Query
方法 or 属性:endGroup(): Query;
废弃版本:N/A|类名:Query
方法 or 属性:endGroup(): Query;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Query
方法 or 属性:prefixKey(prefix: string): Query;
废弃版本:N/A|类名:Query
方法 or 属性:prefixKey(prefix: string): Query;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:Query
方法 or 属性:setSuggestIndex(index: string): Query;
废弃版本:N/A|类名:Query
方法 or 属性:setSuggestIndex(index: string): Query;
废弃版本:9
代替接口:ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStore
废弃版本:N/A|类名:KVStore
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore |@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStore
方法 or 属性:put(key: string, value: Uint8Array \| string \| number \| boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:KVStore
方法 or 属性:put(key: string, value: Uint8Array \| string \| number \| boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStore
方法 or 属性:put(key: string, value: Uint8Array \| string \| number \| boolean): Promise\;
废弃版本:N/A|类名:KVStore
方法 or 属性:put(key: string, value: Uint8Array \| string \| number \| boolean): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStore
方法 or 属性:delete(key: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:KVStore
方法 or 属性:delete(key: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStore
方法 or 属性:delete(key: string): Promise\;
废弃版本:N/A|类名:KVStore
方法 or 属性:delete(key: string): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStore
方法 or 属性:on(event: 'syncComplete', syncCallback: Callback\>): void;
废弃版本:N/A|类名:KVStore
方法 or 属性:on(event: 'syncComplete', syncCallback: Callback\>): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStore
方法 or 属性:putBatch(entries: Entry[], callback: AsyncCallback\): void;
废弃版本:N/A|类名:KVStore
方法 or 属性:putBatch(entries: Entry[], callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStore
方法 or 属性:putBatch(entries: Entry[]): Promise\;
废弃版本:N/A|类名:KVStore
方法 or 属性:putBatch(entries: Entry[]): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStore
方法 or 属性:deleteBatch(keys: string[], callback: AsyncCallback\): void;
废弃版本:N/A|类名:KVStore
方法 or 属性:deleteBatch(keys: string[], callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStore
方法 or 属性:deleteBatch(keys: string[]): Promise\;
废弃版本:N/A|类名:KVStore
方法 or 属性:deleteBatch(keys: string[]): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStore
方法 or 属性:startTransaction(callback: AsyncCallback\): void;
废弃版本:N/A|类名:KVStore
方法 or 属性:startTransaction(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStore
方法 or 属性:startTransaction(): Promise\;
废弃版本:N/A|类名:KVStore
方法 or 属性:startTransaction(): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStore
方法 or 属性:commit(callback: AsyncCallback\): void;
废弃版本:N/A|类名:KVStore
方法 or 属性:commit(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStore
方法 or 属性:commit(): Promise\;
废弃版本:N/A|类名:KVStore
方法 or 属性:commit(): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStore
方法 or 属性:rollback(callback: AsyncCallback\): void;
废弃版本:N/A|类名:KVStore
方法 or 属性:rollback(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStore
方法 or 属性:rollback(): Promise\;
废弃版本:N/A|类名:KVStore
方法 or 属性:rollback(): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStore
方法 or 属性:enableSync(enabled: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:KVStore
方法 or 属性:enableSync(enabled: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStore
方法 or 属性:enableSync(enabled: boolean): Promise\;
废弃版本:N/A|类名:KVStore
方法 or 属性:enableSync(enabled: boolean): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStore
方法 or 属性:setSyncRange(localLabels: string[], remoteSupportLabels: string[], callback: AsyncCallback\): void;
废弃版本:N/A|类名:KVStore
方法 or 属性:setSyncRange(localLabels: string[], remoteSupportLabels: string[], callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVStore
方法 or 属性:setSyncRange(localLabels: string[], remoteSupportLabels: string[]): Promise\;
废弃版本:N/A|类名:KVStore
方法 or 属性:setSyncRange(localLabels: string[], remoteSupportLabels: string[]): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
废弃版本:N/A|类名:SingleKVStore
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore |@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:get(key: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:get(key: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:get(key: string): Promise\;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:get(key: string): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:getEntries(keyPrefix: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:getEntries(keyPrefix: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:getEntries(keyPrefix: string): Promise\;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:getEntries(keyPrefix: string): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:getEntries(query: Query, callback: AsyncCallback\): void;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:getEntries(query: Query, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:getEntries(query: Query): Promise\;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:getEntries(query: Query): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:getResultSet(keyPrefix: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:getResultSet(keyPrefix: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:getResultSet(keyPrefix: string): Promise\;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:getResultSet(keyPrefix: string): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:getResultSet(query: Query, callback: AsyncCallback\): void;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:getResultSet(query: Query, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:getResultSet(query: Query): Promise\;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:getResultSet(query: Query): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback\): void;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:closeResultSet(resultSet: KvStoreResultSet): Promise\;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:closeResultSet(resultSet: KvStoreResultSet): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:getResultSize(query: Query, callback: AsyncCallback\): void;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:getResultSize(query: Query, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:getResultSize(query: Query): Promise\;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:getResultSize(query: Query): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:removeDeviceData(deviceId: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:removeDeviceData(deviceId: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:removeDeviceData(deviceId: string): Promise\;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:removeDeviceData(deviceId: string): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:on(event: 'syncComplete', syncCallback: Callback\>): void;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:on(event: 'syncComplete', syncCallback: Callback\>): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:off(event: 'syncComplete', syncCallback?: Callback\>): void;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:off(event: 'syncComplete', syncCallback?: Callback\>): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:setSyncParam(defaultAllowedDelayMs: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:setSyncParam(defaultAllowedDelayMs: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:setSyncParam(defaultAllowedDelayMs: number): Promise\;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:setSyncParam(defaultAllowedDelayMs: number): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:getSecurityLevel(callback: AsyncCallback\): void;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:getSecurityLevel(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:SingleKVStore
方法 or 属性:getSecurityLevel(): Promise\;
废弃版本:N/A|类名:SingleKVStore
方法 or 属性:getSecurityLevel(): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
废弃版本:N/A|类名:DeviceKVStore
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore |@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:getEntries(deviceId: string, keyPrefix: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:getEntries(deviceId: string, keyPrefix: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:getEntries(deviceId: string, keyPrefix: string): Promise\;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:getEntries(deviceId: string, keyPrefix: string): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:getEntries(query: Query, callback: AsyncCallback\): void;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:getEntries(query: Query, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:getEntries(query: Query): Promise\;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:getEntries(query: Query): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:getEntries(deviceId: string, query: Query, callback: AsyncCallback\): void;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:getEntries(deviceId: string, query: Query, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:getEntries(deviceId: string, query: Query): Promise\;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:getEntries(deviceId: string, query: Query): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:getResultSet(deviceId: string, keyPrefix: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:getResultSet(deviceId: string, keyPrefix: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:getResultSet(deviceId: string, keyPrefix: string): Promise\;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:getResultSet(deviceId: string, keyPrefix: string): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:getResultSet(query: Query, callback: AsyncCallback\): void;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:getResultSet(query: Query, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:getResultSet(query: Query): Promise\;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:getResultSet(query: Query): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:getResultSet(deviceId: string, query: Query, callback: AsyncCallback\): void;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:getResultSet(deviceId: string, query: Query, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:getResultSet(deviceId: string, query: Query): Promise\;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:getResultSet(deviceId: string, query: Query): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback\): void;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:closeResultSet(resultSet: KvStoreResultSet): Promise\;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:closeResultSet(resultSet: KvStoreResultSet): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:getResultSize(query: Query, callback: AsyncCallback\): void;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:getResultSize(query: Query, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:getResultSize(query: Query): Promise\;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:getResultSize(query: Query): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:getResultSize(deviceId: string, query: Query, callback: AsyncCallback\): void;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:getResultSize(deviceId: string, query: Query, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:getResultSize(deviceId: string, query: Query): Promise\;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:getResultSize(deviceId: string, query: Query): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:removeDeviceData(deviceId: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:removeDeviceData(deviceId: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:removeDeviceData(deviceId: string): Promise\;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:removeDeviceData(deviceId: string): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:on(event: 'syncComplete', syncCallback: Callback\>): void;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:on(event: 'syncComplete', syncCallback: Callback\>): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:DeviceKVStore
方法 or 属性:off(event: 'syncComplete', syncCallback?: Callback\>): void;
废弃版本:N/A|类名:DeviceKVStore
方法 or 属性:off(event: 'syncComplete', syncCallback?: Callback\>): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:distributedData
方法 or 属性:function createKVManager(config: KVManagerConfig, callback: AsyncCallback\): void;
废弃版本:N/A|类名:distributedData
方法 or 属性:function createKVManager(config: KVManagerConfig, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:distributedData
方法 or 属性:function createKVManager(config: KVManagerConfig): Promise\;
废弃版本:N/A|类名:distributedData
方法 or 属性:function createKVManager(config: KVManagerConfig): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVManager
废弃版本:N/A|类名:KVManager
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVManager |@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVManager
方法 or 属性:getKVStore\(storeId: string, options: Options): Promise\;
废弃版本:N/A|类名:KVManager
方法 or 属性:getKVStore\(storeId: string, options: Options): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVManager
方法 or 属性:getKVStore\(storeId: string, options: Options, callback: AsyncCallback\): void;
废弃版本:N/A|类名:KVManager
方法 or 属性:getKVStore\(storeId: string, options: Options, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVManager
方法 or 属性:closeKVStore(appId: string, storeId: string, kvStore: KVStore, callback: AsyncCallback\): void;
废弃版本:N/A|类名:KVManager
方法 or 属性:closeKVStore(appId: string, storeId: string, kvStore: KVStore, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVManager
方法 or 属性:closeKVStore(appId: string, storeId: string, kvStore: KVStore): Promise\;
废弃版本:N/A|类名:KVManager
方法 or 属性:closeKVStore(appId: string, storeId: string, kvStore: KVStore): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVManager
方法 or 属性:deleteKVStore(appId: string, storeId: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:KVManager
方法 or 属性:deleteKVStore(appId: string, storeId: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVManager
方法 or 属性:deleteKVStore(appId: string, storeId: string): Promise\;
废弃版本:N/A|类名:KVManager
方法 or 属性:deleteKVStore(appId: string, storeId: string): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVManager
方法 or 属性:getAllKVStoreId(appId: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:KVManager
方法 or 属性:getAllKVStoreId(appId: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVManager
方法 or 属性:getAllKVStoreId(appId: string): Promise\;
废弃版本:N/A|类名:KVManager
方法 or 属性:getAllKVStoreId(appId: string): Promise\;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVManager
方法 or 属性:on(event: 'distributedDataServiceDie', deathCallback: Callback\): void;
废弃版本:N/A|类名:KVManager
方法 or 属性:on(event: 'distributedDataServiceDie', deathCallback: Callback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:KVManager
方法 or 属性:off(event: 'distributedDataServiceDie', deathCallback?: Callback\): void;
废弃版本:N/A|类名:KVManager
方法 or 属性:off(event: 'distributedDataServiceDie', deathCallback?: Callback\): void;
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|废弃版本有变化|类名:distributedDataObject
方法 or 属性:function createDistributedObject(source: object): DistributedObject;
废弃版本:N/A|类名:distributedDataObject
方法 or 属性:function createDistributedObject(source: object): DistributedObject;
废弃版本:9
代替接口:ohos.distributedDataObject.create |@ohos.data.distributedDataObject.d.ts| +|废弃版本有变化|类名:DistributedObject
废弃版本:N/A|类名:DistributedObject
废弃版本:9
代替接口:ohos.distributedDataObject.DataObject |@ohos.data.distributedDataObject.d.ts| +|废弃版本有变化|类名:DistributedObject
方法 or 属性:setSessionId(sessionId?: string): boolean;
废弃版本:N/A|类名:DistributedObject
方法 or 属性:setSessionId(sessionId?: string): boolean;
废弃版本:9
代替接口:ohos.distributedDataObject.DataObject.setSessionId |@ohos.data.distributedDataObject.d.ts| +|废弃版本有变化|类名:DistributedObject
方法 or 属性:on(type: 'change', callback: Callback\<{ sessionId: string, fields: Array\ }>): void;
废弃版本:N/A|类名:DistributedObject
方法 or 属性:on(type: 'change', callback: Callback\<{ sessionId: string, fields: Array\ }>): void;
废弃版本:9
代替接口:ohos.distributedDataObject.DataObject.on |@ohos.data.distributedDataObject.d.ts| +|废弃版本有变化|类名:DistributedObject
方法 or 属性:off(type: 'change', callback?: Callback\<{ sessionId: string, fields: Array\ }>): void;
废弃版本:N/A|类名:DistributedObject
方法 or 属性:off(type: 'change', callback?: Callback\<{ sessionId: string, fields: Array\ }>): void;
废弃版本:9
代替接口:ohos.distributedDataObject.DataObject.off |@ohos.data.distributedDataObject.d.ts| +|废弃版本有变化|类名:rdb
废弃版本:N/A|类名:rdb
废弃版本:9
代替接口:ohos.data.relationalStore |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:rdb
方法 or 属性:function getRdbStore(context: Context, config: StoreConfig, version: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:rdb
方法 or 属性:function getRdbStore(context: Context, config: StoreConfig, version: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.relationalStore.getRdbStore |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:rdb
方法 or 属性:function getRdbStore(context: Context, config: StoreConfig, version: number): Promise\;
废弃版本:N/A|类名:rdb
方法 or 属性:function getRdbStore(context: Context, config: StoreConfig, version: number): Promise\;
废弃版本:9
代替接口:ohos.data.relationalStore.getRdbStore |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:rdb
方法 or 属性:function deleteRdbStore(context: Context, name: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:rdb
方法 or 属性:function deleteRdbStore(context: Context, name: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.relationalStore.deleteRdbStore |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:rdb
方法 or 属性:function deleteRdbStore(context: Context, name: string): Promise\;
废弃版本:N/A|类名:rdb
方法 or 属性:function deleteRdbStore(context: Context, name: string): Promise\;
废弃版本:9
代替接口:ohos.data.relationalStore.deleteRdbStore |@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| +|废弃版本有变化|类名:RdbStore
废弃版本:N/A|类名:RdbStore
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStore
方法 or 属性:querySql(sql: string, bindArgs: Array\, callback: AsyncCallback\): void;
废弃版本:N/A|类名:RdbStore
方法 or 属性:querySql(sql: string, bindArgs: Array\, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.querySql |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStore
方法 or 属性:executeSql(sql: string, bindArgs: Array\, callback: AsyncCallback\): void;
废弃版本:N/A|类名:RdbStore
方法 or 属性:executeSql(sql: string, bindArgs: Array\, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.executeSql |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStore
方法 or 属性:setDistributedTables(tables: Array\, callback: AsyncCallback\): void;
废弃版本:N/A|类名:RdbStore
方法 or 属性:setDistributedTables(tables: Array\, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.setDistributedTables |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStore
方法 or 属性:setDistributedTables(tables: Array\): Promise\;
废弃版本:N/A|类名:RdbStore
方法 or 属性:setDistributedTables(tables: Array\): Promise\;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.setDistributedTables |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStore
方法 or 属性:obtainDistributedTableName(device: string, table: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:RdbStore
方法 or 属性:obtainDistributedTableName(device: string, table: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.obtainDistributedTableName |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStore
方法 or 属性:obtainDistributedTableName(device: string, table: string): Promise\;
废弃版本:N/A|类名:RdbStore
方法 or 属性:obtainDistributedTableName(device: string, table: string): Promise\;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.obtainDistributedTableName |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStore
方法 or 属性:on(event: 'dataChange', type: SubscribeType, observer: Callback\>): void;
废弃版本:N/A|类名:RdbStore
方法 or 属性:on(event: 'dataChange', type: SubscribeType, observer: Callback\>): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.on |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:StoreConfig
废弃版本:N/A|类名:StoreConfig
废弃版本:9
代替接口:ohos.data.relationalStore.StoreConfig |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
废弃版本:N/A|类名:RdbPredicates
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:constructor(name: string)
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:constructor(name: string)
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.constructor |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:inDevices(devices: Array\): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:inDevices(devices: Array\): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.inDevices |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:inAllDevices(): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:inAllDevices(): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.inAllDevices |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:equalTo(field: string, value: ValueType): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:equalTo(field: string, value: ValueType): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.equalTo |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:notEqualTo(field: string, value: ValueType): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:notEqualTo(field: string, value: ValueType): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.notEqualTo |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:beginWrap(): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:beginWrap(): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.beginWrap |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:endWrap(): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:endWrap(): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.endWrap |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:or(): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:or(): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.or |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:and(): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:and(): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.and |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:contains(field: string, value: string): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:contains(field: string, value: string): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.contains |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:beginsWith(field: string, value: string): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:beginsWith(field: string, value: string): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.beginsWith |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:endsWith(field: string, value: string): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:endsWith(field: string, value: string): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.endsWith |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:isNull(field: string): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:isNull(field: string): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.isNull |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:isNotNull(field: string): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:isNotNull(field: string): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.isNotNull |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:like(field: string, value: string): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:like(field: string, value: string): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.like |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:glob(field: string, value: string): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:glob(field: string, value: string): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.glob |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:between(field: string, low: ValueType, high: ValueType): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:between(field: string, low: ValueType, high: ValueType): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.between |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:notBetween(field: string, low: ValueType, high: ValueType): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:notBetween(field: string, low: ValueType, high: ValueType): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.notBetween |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:greaterThan(field: string, value: ValueType): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:greaterThan(field: string, value: ValueType): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.greaterThan |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:lessThan(field: string, value: ValueType): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:lessThan(field: string, value: ValueType): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.lessThan |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:greaterThanOrEqualTo(field: string, value: ValueType): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:greaterThanOrEqualTo(field: string, value: ValueType): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.greaterThanOrEqualTo |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:lessThanOrEqualTo(field: string, value: ValueType): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:lessThanOrEqualTo(field: string, value: ValueType): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.lessThanOrEqualTo |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:orderByAsc(field: string): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:orderByAsc(field: string): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.orderByAsc |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:orderByDesc(field: string): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:orderByDesc(field: string): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.orderByDesc |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:distinct(): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:distinct(): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.distinct |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:limitAs(value: number): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:limitAs(value: number): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.limitAs |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:offsetAs(rowOffset: number): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:offsetAs(rowOffset: number): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.offsetAs |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:groupBy(fields: Array\): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:groupBy(fields: Array\): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.groupBy |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:indexedBy(field: string): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:indexedBy(field: string): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.indexedBy |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:in(field: string, value: Array\): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:in(field: string, value: Array\): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.in |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicates
方法 or 属性:notIn(field: string, value: Array\): RdbPredicates;
废弃版本:N/A|类名:RdbPredicates
方法 or 属性:notIn(field: string, value: Array\): RdbPredicates;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.notIn |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:storage
废弃版本:N/A|类名:storage
废弃版本:9
代替接口:ohos.preferences.preferences |@ohos.data.storage.d.ts| +|废弃版本有变化|类名:storage
方法 or 属性:function getStorageSync(path: string): Storage;
废弃版本:N/A|类名:storage
方法 or 属性:function getStorageSync(path: string): Storage;
废弃版本:9
代替接口:ohos.preferences.preferences.getPreferences |@ohos.data.storage.d.ts| +|废弃版本有变化|类名:storage
方法 or 属性:function deleteStorageSync(path: string): void;
废弃版本:N/A|类名:storage
方法 or 属性:function deleteStorageSync(path: string): void;
废弃版本:9
代替接口:ohos.preferences.preferences.deletePreferences |@ohos.data.storage.d.ts| +|废弃版本有变化|类名:storage
方法 or 属性:function removeStorageFromCacheSync(path: string): void;
废弃版本:N/A|类名:storage
方法 or 属性:function removeStorageFromCacheSync(path: string): void;
废弃版本:9
代替接口:ohos.preferences.preferences.removePreferencesFromCache |@ohos.data.storage.d.ts| +|废弃版本有变化|类名:Storage
废弃版本:N/A|类名:Storage
废弃版本:9
代替接口:ohos.preferences.preferences |@ohos.data.storage.d.ts| +|废弃版本有变化|类名:Storage
方法 or 属性:getSync(key: string, defValue: ValueType): ValueType;
废弃版本:N/A|类名:Storage
方法 or 属性:getSync(key: string, defValue: ValueType): ValueType;
废弃版本:9
代替接口:ohos.preferences.preferences.get |@ohos.data.storage.d.ts| +|废弃版本有变化|类名:Storage
方法 or 属性:hasSync(key: string): boolean;
废弃版本:N/A|类名:Storage
方法 or 属性:hasSync(key: string): boolean;
废弃版本:9
代替接口:ohos.preferences.preferences.has |@ohos.data.storage.d.ts| +|废弃版本有变化|类名:Storage
方法 or 属性:putSync(key: string, value: ValueType): void;
废弃版本:N/A|类名:Storage
方法 or 属性:putSync(key: string, value: ValueType): void;
废弃版本:9
代替接口:ohos.preferences.preferences.put |@ohos.data.storage.d.ts| +|废弃版本有变化|类名:Storage
方法 or 属性:deleteSync(key: string): void;
废弃版本:N/A|类名:Storage
方法 or 属性:deleteSync(key: string): void;
废弃版本:9
代替接口:ohos.preferences.preferences.delete |@ohos.data.storage.d.ts| +|废弃版本有变化|类名:Storage
方法 or 属性:clearSync(): void;
废弃版本:N/A|类名:Storage
方法 or 属性:clearSync(): void;
废弃版本:9
代替接口:ohos.preferences.preferences.clear |@ohos.data.storage.d.ts| +|废弃版本有变化|类名:Storage
方法 or 属性:flushSync(): void;
废弃版本:N/A|类名:Storage
方法 or 属性:flushSync(): void;
废弃版本:9
代替接口:ohos.preferences.preferences.flush |@ohos.data.storage.d.ts| +|废弃版本有变化|类名:Storage
方法 or 属性:on(type: 'change', callback: Callback\): void;
废弃版本:N/A|类名:Storage
方法 or 属性:on(type: 'change', callback: Callback\): void;
废弃版本:9
代替接口:ohos.preferences.preferences.on |@ohos.data.storage.d.ts| +|废弃版本有变化|类名:Storage
方法 or 属性:off(type: 'change', callback: Callback\): void;
废弃版本:N/A|类名:Storage
方法 or 属性:off(type: 'change', callback: Callback\): void;
废弃版本:9
代替接口:ohos.preferences.preferences.off |@ohos.data.storage.d.ts| +|废弃版本有变化|类名:StorageObserver
废弃版本:N/A|类名:StorageObserver
废弃版本:9
代替接口:N/A|@ohos.data.storage.d.ts| +|废弃版本有变化|类名:GetStorageOptions
废弃版本:N/A|类名:GetStorageOptions
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:GetStorageOptions
方法 or 属性:key: string;
废弃版本:N/A|类名:GetStorageOptions
方法 or 属性:key: string;
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:GetStorageOptions
方法 or 属性:default?: string;
废弃版本:N/A|类名:GetStorageOptions
方法 or 属性:default?: string;
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:GetStorageOptions
方法 or 属性:success?: (data: any) => void;
废弃版本:N/A|类名:GetStorageOptions
方法 or 属性:success?: (data: any) => void;
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:GetStorageOptions
方法 or 属性:fail?: (data: string, code: number) => void;
废弃版本:N/A|类名:GetStorageOptions
方法 or 属性:fail?: (data: string, code: number) => void;
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:GetStorageOptions
方法 or 属性:complete?: () => void;
废弃版本:N/A|类名:GetStorageOptions
方法 or 属性:complete?: () => void;
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:SetStorageOptions
废弃版本:N/A|类名:SetStorageOptions
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:SetStorageOptions
方法 or 属性:key: string;
废弃版本:N/A|类名:SetStorageOptions
方法 or 属性:key: string;
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:SetStorageOptions
方法 or 属性:value: string;
废弃版本:N/A|类名:SetStorageOptions
方法 or 属性:value: string;
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:SetStorageOptions
方法 or 属性:success?: () => void;
废弃版本:N/A|类名:SetStorageOptions
方法 or 属性:success?: () => void;
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:SetStorageOptions
方法 or 属性:fail?: (data: string, code: number) => void;
废弃版本:N/A|类名:SetStorageOptions
方法 or 属性:fail?: (data: string, code: number) => void;
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:SetStorageOptions
方法 or 属性:complete?: () => void;
废弃版本:N/A|类名:SetStorageOptions
方法 or 属性:complete?: () => void;
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:ClearStorageOptions
废弃版本:N/A|类名:ClearStorageOptions
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:ClearStorageOptions
方法 or 属性:success?: () => void;
废弃版本:N/A|类名:ClearStorageOptions
方法 or 属性:success?: () => void;
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:ClearStorageOptions
方法 or 属性:fail?: (data: string, code: number) => void;
废弃版本:N/A|类名:ClearStorageOptions
方法 or 属性:fail?: (data: string, code: number) => void;
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:ClearStorageOptions
方法 or 属性:complete?: () => void;
废弃版本:N/A|类名:ClearStorageOptions
方法 or 属性:complete?: () => void;
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:DeleteStorageOptions
废弃版本:N/A|类名:DeleteStorageOptions
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:DeleteStorageOptions
方法 or 属性:key: string;
废弃版本:N/A|类名:DeleteStorageOptions
方法 or 属性:key: string;
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:DeleteStorageOptions
方法 or 属性:success?: () => void;
废弃版本:N/A|类名:DeleteStorageOptions
方法 or 属性:success?: () => void;
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:DeleteStorageOptions
方法 or 属性:fail?: (data: string, code: number) => void;
废弃版本:N/A|类名:DeleteStorageOptions
方法 or 属性:fail?: (data: string, code: number) => void;
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:DeleteStorageOptions
方法 or 属性:complete?: () => void;
废弃版本:N/A|类名:DeleteStorageOptions
方法 or 属性:complete?: () => void;
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:Storage
废弃版本:N/A|类名:Storage
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:Storage
方法 or 属性:static get(options: GetStorageOptions): void;
废弃版本:N/A|类名:Storage
方法 or 属性:static get(options: GetStorageOptions): void;
废弃版本:6
代替接口:ohos.preferences.preferences.get |@system.storage.d.ts| +|废弃版本有变化|类名:Storage
方法 or 属性:static set(options: SetStorageOptions): void;
废弃版本:N/A|类名:Storage
方法 or 属性:static set(options: SetStorageOptions): void;
废弃版本:6
代替接口:N/A|@system.storage.d.ts| +|废弃版本有变化|类名:Storage
方法 or 属性:static clear(options?: ClearStorageOptions): void;
废弃版本:N/A|类名:Storage
方法 or 属性:static clear(options?: ClearStorageOptions): void;
废弃版本:6
代替接口:ohos.preferences.preferences.clear |@system.storage.d.ts| +|废弃版本有变化|类名:Storage
方法 or 属性:static delete(options: DeleteStorageOptions): void;
废弃版本:N/A|类名:Storage
方法 or 属性:static delete(options: DeleteStorageOptions): void;
废弃版本:6
代替接口:ohos.preferences.preferences.delete |@system.storage.d.ts| +|废弃版本有变化|类名:ResultSet
废弃版本:N/A|类名:ResultSet
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:columnNames: Array\;
废弃版本:N/A|类名:ResultSet
方法 or 属性:columnNames: Array\;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.columnNames |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:columnCount: number;
废弃版本:N/A|类名:ResultSet
方法 or 属性:columnCount: number;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.columnCount |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:rowCount: number;
废弃版本:N/A|类名:ResultSet
方法 or 属性:rowCount: number;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.rowCount |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:rowIndex: number;
废弃版本:N/A|类名:ResultSet
方法 or 属性:rowIndex: number;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.rowIndex |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:isAtFirstRow: boolean;
废弃版本:N/A|类名:ResultSet
方法 or 属性:isAtFirstRow: boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.isAtFirstRow |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:isAtLastRow: boolean;
废弃版本:N/A|类名:ResultSet
方法 or 属性:isAtLastRow: boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.isAtLastRow |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:isEnded: boolean;
废弃版本:N/A|类名:ResultSet
方法 or 属性:isEnded: boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.isEnded |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:isStarted: boolean;
废弃版本:N/A|类名:ResultSet
方法 or 属性:isStarted: boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.isStarted |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:isClosed: boolean;
废弃版本:N/A|类名:ResultSet
方法 or 属性:isClosed: boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.isClosed |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:getColumnIndex(columnName: string): number;
废弃版本:N/A|类名:ResultSet
方法 or 属性:getColumnIndex(columnName: string): number;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.getColumnIndex |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:getColumnName(columnIndex: number): string;
废弃版本:N/A|类名:ResultSet
方法 or 属性:getColumnName(columnIndex: number): string;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.getColumnName |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:goTo(offset: number): boolean;
废弃版本:N/A|类名:ResultSet
方法 or 属性:goTo(offset: number): boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.goTo |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:goToRow(position: number): boolean;
废弃版本:N/A|类名:ResultSet
方法 or 属性:goToRow(position: number): boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.goToRow |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:goToFirstRow(): boolean;
废弃版本:N/A|类名:ResultSet
方法 or 属性:goToFirstRow(): boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.goToFirstRow |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:goToLastRow(): boolean;
废弃版本:N/A|类名:ResultSet
方法 or 属性:goToLastRow(): boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.goToLastRow |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:goToNextRow(): boolean;
废弃版本:N/A|类名:ResultSet
方法 or 属性:goToNextRow(): boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.goToNextRow |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:goToPreviousRow(): boolean;
废弃版本:N/A|类名:ResultSet
方法 or 属性:goToPreviousRow(): boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.goToPreviousRow |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:getBlob(columnIndex: number): Uint8Array;
废弃版本:N/A|类名:ResultSet
方法 or 属性:getBlob(columnIndex: number): Uint8Array;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.getBlob |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:getString(columnIndex: number): string;
废弃版本:N/A|类名:ResultSet
方法 or 属性:getString(columnIndex: number): string;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.getString |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:getLong(columnIndex: number): number;
废弃版本:N/A|类名:ResultSet
方法 or 属性:getLong(columnIndex: number): number;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.getLong |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:getDouble(columnIndex: number): number;
废弃版本:N/A|类名:ResultSet
方法 or 属性:getDouble(columnIndex: number): number;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.getDouble |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:isColumnNull(columnIndex: number): boolean;
废弃版本:N/A|类名:ResultSet
方法 or 属性:isColumnNull(columnIndex: number): boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.isColumnNull |resultSet.d.ts| +|废弃版本有变化|类名:ResultSet
方法 or 属性:close(): void;
废弃版本:N/A|类名:ResultSet
方法 or 属性:close(): void;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.close |resultSet.d.ts| +|起始版本有变化|类名:RdbStore
方法 or 属性:executeSql(sql: string, bindArgs: Array\, callback: AsyncCallback\): void;
起始版本:7|类名:RdbStore
方法 or 属性:executeSql(sql: string, bindArgs: Array\, callback: AsyncCallback\): void;
起始版本:8|@ohos.data.rdb.d.ts| +|新增(错误码)|NA|类名:RdbPredicates
方法 or 属性:isNotNull(field: string): RdbPredicates;
错误码内容: 401|@ohos.data.rdb.d.ts| +|新增(权限)|类名:DistributedObject
方法 or 属性:setSessionId(sessionId?: string): boolean;
权限:N/A|类名:DistributedObject
方法 or 属性:setSessionId(sessionId?: string): boolean;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.data.distributedDataObject.d.ts| +|新增(权限)|类名:SubscribeType
权限:N/A|类名:SubscribeType
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.data.rdb.d.ts| +|新增(权限)|类名:RdbStore
方法 or 属性:setDistributedTables(tables: Array\, callback: AsyncCallback\): void;
权限:N/A|类名:RdbStore
方法 or 属性:setDistributedTables(tables: Array\, callback: AsyncCallback\): void;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.data.rdb.d.ts| +|新增(权限)|类名:RdbStore
方法 or 属性:setDistributedTables(tables: Array\): Promise\;
权限:N/A|类名:RdbStore
方法 or 属性:setDistributedTables(tables: Array\): Promise\;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.data.rdb.d.ts| +|新增(权限)|类名:RdbStore
方法 or 属性:obtainDistributedTableName(device: string, table: string, callback: AsyncCallback\): void;
权限:N/A|类名:RdbStore
方法 or 属性:obtainDistributedTableName(device: string, table: string, callback: AsyncCallback\): void;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.data.rdb.d.ts| +|新增(权限)|类名:RdbStore
方法 or 属性:obtainDistributedTableName(device: string, table: string): Promise\;
权限:N/A|类名:RdbStore
方法 or 属性:obtainDistributedTableName(device: string, table: string): Promise\;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.data.rdb.d.ts| +|函数有变化|类名:KVStore
方法 or 属性:on(event: 'dataChange', type: SubscribeType, observer: Callback\): void;
|类名:KVStore
方法 or 属性:on(event: 'dataChange', type: SubscribeType, listener: Callback\): void;
|@ohos.data.distributedData.d.ts| +|函数有变化|类名:KVStore
方法 or 属性:off(event:'dataChange', observer?: Callback\): void;
|类名:KVStore
方法 or 属性:off(event: 'dataChange', listener?: Callback\): void;
|@ohos.data.distributedData.d.ts| +|函数有变化|类名:SingleKVStore
方法 or 属性:sync(deviceIdList: string[], mode: SyncMode, allowedDelayMs?: number): void;
|类名:SingleKVStore
方法 or 属性:sync(deviceIds: string[], mode: SyncMode, delayMs?: number): void;
|@ohos.data.distributedData.d.ts| +|函数有变化|类名:DeviceKVStore
方法 or 属性:sync(deviceIdList: string[], mode: SyncMode, allowedDelayMs?: number): void;
|类名:DeviceKVStore
方法 or 属性:sync(deviceIds: string[], mode: SyncMode, delayMs?: number): void;
|@ohos.data.distributedData.d.ts| +|函数有变化|类名:RdbStore
方法 or 属性:insert(name: string, values: ValuesBucket, callback: AsyncCallback\): void;
|类名:RdbStore
方法 or 属性:insert(table: string, values: ValuesBucket, callback: AsyncCallback\): void;
|@ohos.data.rdb.d.ts| +|函数有变化|类名:RdbStore
方法 or 属性:insert(name: string, values: ValuesBucket): Promise\;
|类名:RdbStore
方法 or 属性:insert(table: string, values: ValuesBucket): Promise\;
|@ohos.data.rdb.d.ts| +|函数有变化|类名:RdbStore
方法 or 属性:update(values: ValuesBucket, rdbPredicates: RdbPredicates, callback: AsyncCallback\): void;
|类名:RdbStore
方法 or 属性:update(values: ValuesBucket, predicates: RdbPredicates, callback: AsyncCallback\): void;
|@ohos.data.rdb.d.ts| +|函数有变化|类名:RdbStore
方法 or 属性:update(values: ValuesBucket, rdbPredicates: RdbPredicates): Promise\;
|类名:RdbStore
方法 or 属性:update(values: ValuesBucket, predicates: RdbPredicates): Promise\;
|@ohos.data.rdb.d.ts| +|函数有变化|类名:RdbStore
方法 or 属性:delete(rdbPredicates: RdbPredicates, callback: AsyncCallback\): void;
|类名:RdbStore
方法 or 属性:delete(predicates: RdbPredicates, callback: AsyncCallback\): void;
|@ohos.data.rdb.d.ts| +|函数有变化|类名:RdbStore
方法 or 属性:delete(rdbPredicates: RdbPredicates): Promise\;
|类名:RdbStore
方法 or 属性:delete(predicates: RdbPredicates): Promise\;
|@ohos.data.rdb.d.ts| +|函数有变化|类名:RdbStore
方法 or 属性:query(rdbPredicates: RdbPredicates, columns: Array\, callback: AsyncCallback\): void;
|类名:RdbStore
方法 or 属性:query(predicates: RdbPredicates, columns: Array\, callback: AsyncCallback\): void;
|@ohos.data.rdb.d.ts| +|函数有变化|类名:RdbStore
方法 or 属性:query(rdbPredicates: RdbPredicates, columns?: Array\): Promise\;
|类名:RdbStore
方法 or 属性:query(predicates: RdbPredicates, columns ?: Array\): Promise\;
|@ohos.data.rdb.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-distributed-hardware.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-distributed-hardware.md new file mode 100644 index 0000000000000000000000000000000000000000..e56e7b0c8a589159dc450691fe49f6eb3ea91f8e --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-distributed-hardware.md @@ -0,0 +1,47 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.distributedHardware.deviceManager
类名: DeviceInfo
方法 or 属性:range: number;|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|类名:DeviceInfo
方法or属性:range: number;|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|模块名: ohos.distributedHardware.deviceManager
类名: PublishInfo|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|类名:PublishInfo
方法or属性:|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|模块名: ohos.distributedHardware.deviceManager
类名: PublishInfo
方法 or 属性:publishId: number;|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|类名:PublishInfo
方法or属性:publishId: number;|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|模块名: ohos.distributedHardware.deviceManager
类名: PublishInfo
方法 or 属性:mode: DiscoverMode;|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|类名:PublishInfo
方法or属性:mode: DiscoverMode;|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|模块名: ohos.distributedHardware.deviceManager
类名: PublishInfo
方法 or 属性:freq: ExchangeFreq;|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|类名:PublishInfo
方法or属性:freq: ExchangeFreq;|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|模块名: ohos.distributedHardware.deviceManager
类名: PublishInfo
方法 or 属性:ranging : boolean;|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|类名:PublishInfo
方法or属性:ranging : boolean;|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|类名:DeviceManager
方法or属性:startDeviceDiscovery(subscribeInfo: SubscribeInfo, filterOptions?: string): void;|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|类名:DeviceManager
方法or属性:publishDeviceDiscovery(publishInfo: PublishInfo): void;|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|类名:DeviceManager
方法or属性:unPublishDeviceDiscovery(publishId: number): void;|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|类名:DeviceManager
方法or属性:setUserOperation(operateAction: number, params: string): void;|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|类名:DeviceManager
方法or属性:on(type: 'uiStateChange', callback: Callback\<{ param: string}>): void;|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|类名:DeviceManager
方法or属性:off(type: 'uiStateChange', callback?: Callback\<{ param: string}>): void;|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|类名:DeviceManager
方法or属性:on(type: 'publishSuccess', callback: Callback\<{ publishId: number }>): void;|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|类名:DeviceManager
方法or属性:off(type: 'publishSuccess', callback?: Callback\<{ publishId: number }>): void;|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|类名:DeviceManager
方法or属性:on(type: 'publishFail', callback: Callback\<{ publishId: number, reason: number }>): void;|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|类名:DeviceManager
方法or属性:off(type: 'publishFail', callback?: Callback\<{ publishId: number, reason: number }>): void;|@ohos.distributedHardware.deviceManager.d.ts| +|访问级别有变化|类名:DeviceType
访问级别:公开API|类名:DeviceType
访问级别:系统API|@ohos.distributedHardware.deviceManager.d.ts| +|起始版本有变化|类名:DeviceManager
方法 or 属性:startDeviceDiscovery(subscribeInfo: SubscribeInfo): void;
起始版本:N/A|类名:DeviceManager
方法 or 属性:startDeviceDiscovery(subscribeInfo: SubscribeInfo): void;
起始版本:8|@ohos.distributedHardware.deviceManager.d.ts| +|新增(错误码)|NA|类名:deviceManager
方法 or 属性:function createDeviceManager(bundleName: string, callback: AsyncCallback\): void;
错误码内容: 401|@ohos.distributedHardware.deviceManager.d.ts| +|新增(错误码)|NA|类名:DeviceManager
方法 or 属性:release(): void;
错误码内容: 11600101|@ohos.distributedHardware.deviceManager.d.ts| +|新增(错误码)|NA|类名:DeviceManager
方法 or 属性:getTrustedDeviceListSync(): Array\;
错误码内容: 401, 11600101|@ohos.distributedHardware.deviceManager.d.ts| +|新增(错误码)|NA|类名:DeviceManager
方法 or 属性:getTrustedDeviceList(callback:AsyncCallback\>): void;
错误码内容: 401|@ohos.distributedHardware.deviceManager.d.ts| +|新增(错误码)|NA|类名:DeviceManager
方法 or 属性:getTrustedDeviceList(): Promise\>;
错误码内容: 401|@ohos.distributedHardware.deviceManager.d.ts| +|新增(错误码)|NA|类名:DeviceManager
方法 or 属性:getLocalDeviceInfoSync(): DeviceInfo;
错误码内容: 401, 11600101|@ohos.distributedHardware.deviceManager.d.ts| +|新增(错误码)|NA|类名:DeviceManager
方法 or 属性:getLocalDeviceInfo(callback:AsyncCallback\): void;
错误码内容: 401|@ohos.distributedHardware.deviceManager.d.ts| +|新增(错误码)|NA|类名:DeviceManager
方法 or 属性:getLocalDeviceInfo(): Promise\;
错误码内容: 401|@ohos.distributedHardware.deviceManager.d.ts| +|新增(错误码)|NA|类名:DeviceManager
方法 or 属性:startDeviceDiscovery(subscribeInfo: SubscribeInfo): void;
错误码内容: 401, 201, 11600104, 11600101|@ohos.distributedHardware.deviceManager.d.ts| +|新增(错误码)|NA|类名:DeviceManager
方法 or 属性:stopDeviceDiscovery(subscribeId: number): void;
错误码内容: 401, 201, 11600101|@ohos.distributedHardware.deviceManager.d.ts| +|新增(错误码)|NA|类名:DeviceManager
方法 or 属性:unAuthenticateDevice(deviceInfo: DeviceInfo): void
错误码内容: 401, 201, 11600101|@ohos.distributedHardware.deviceManager.d.ts| +|新增(错误码)|NA|类名:DeviceManager
方法 or 属性:verifyAuthInfo(authInfo: AuthInfo, callback: AsyncCallback\<{deviceId: string, level: number}>): void;
错误码内容: 401|@ohos.distributedHardware.deviceManager.d.ts| +|新增(错误码)|NA|类名:DeviceManager
方法 or 属性:on(type: 'deviceStateChange', callback: Callback\<{ action: DeviceStateChangeAction, device: DeviceInfo }>): void;
错误码内容: 401|@ohos.distributedHardware.deviceManager.d.ts| +|新增(错误码)|NA|类名:DeviceManager
方法 or 属性:off(type: 'deviceStateChange', callback?: Callback\<{ action: DeviceStateChangeAction, device: DeviceInfo }>): void;
错误码内容: 401|@ohos.distributedHardware.deviceManager.d.ts| +|新增(错误码)|NA|类名:DeviceManager
方法 or 属性:on(type: 'deviceFound', callback: Callback\<{ subscribeId: number, device: DeviceInfo }>): void;
错误码内容: 401|@ohos.distributedHardware.deviceManager.d.ts| +|新增(错误码)|NA|类名:DeviceManager
方法 or 属性:off(type: 'deviceFound', callback?: Callback\<{ subscribeId: number, device: DeviceInfo }>): void;
错误码内容: 401|@ohos.distributedHardware.deviceManager.d.ts| +|新增(错误码)|NA|类名:DeviceManager
方法 or 属性:on(type: 'discoverFail', callback: Callback\<{ subscribeId: number, reason: number }>): void;
错误码内容: 401|@ohos.distributedHardware.deviceManager.d.ts| +|新增(错误码)|NA|类名:DeviceManager
方法 or 属性:off(type: 'discoverFail', callback?: Callback\<{ subscribeId: number, reason: number }>): void;
错误码内容: 401|@ohos.distributedHardware.deviceManager.d.ts| +|新增(错误码)|NA|类名:DeviceManager
方法 or 属性:on(type: 'serviceDie', callback: () => void): void;
错误码内容: 401|@ohos.distributedHardware.deviceManager.d.ts| +|新增(错误码)|NA|类名:DeviceManager
方法 or 属性:off(type: 'serviceDie', callback?: () => void): void;
错误码内容: 401|@ohos.distributedHardware.deviceManager.d.ts| +|函数有变化|类名:DeviceManager
方法 or 属性:authenticateDevice(deviceInfo: DeviceInfo, authParam: AuthParam, callback: AsyncCallback\<{deviceId: string, pinTone ?: number}>): void;
|类名:DeviceManager
方法 or 属性:authenticateDevice(deviceInfo: DeviceInfo, authParam: AuthParam, callback: AsyncCallback\<{deviceId: string, pinToken ?: number}>): void;
|@ohos.distributedHardware.deviceManager.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-file-management.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-file-management.md new file mode 100644 index 0000000000000000000000000000000000000000..0818a0f93bf368f73b2cf23c0072425f8b9de551 --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-file-management.md @@ -0,0 +1,577 @@ +| 操作 | 旧版本 | 新版本 | 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|模块名: 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 属性: const READ_ONLY = 0o0;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法 or 属性: const WRITE_ONLY = 0o1;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法 or 属性: const READ_WRITE = 0o2;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法 or 属性: const CREATE = 0o100;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法 or 属性: const TRUNC = 0o1000;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法 or 属性: const APPEND = 0o2000;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法 or 属性: const NONBLOCK = 0o4000;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法 or 属性: const DIR = 0o200000;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法 or 属性: const NOFOLLOW = 0o400000;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法 or 属性: const SYNC = 0o4010000;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function access(path: string): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function access(path: string, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function accessSync(path: string): boolean;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function close(file: number \| File): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function close(file: number \| File, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function closeSync(fd: number \| File): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function copyFile(src: string \| number, dest: string \| number, mode?: number): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function copyFile(src: string \| number, dest: string \| number, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function copyFile(src: string \| number, dest: string \| number, mode: number, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function copyFileSync(src: string \| number, dest: string \| number, mode?: number): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function createStream(path: string, mode: string): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function createStream(path: string, mode: string, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function createStreamSync(path: string, mode: string): Stream;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function fdatasync(fd: number): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function fdatasync(fd: number, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function fdatasyncSync(fd: number): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function fdopenStream(fd: number, mode: string): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function fdopenStream(fd: number, mode: string, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function fdopenStreamSync(fd: number, mode: string): Stream;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function fsync(fd: number): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function fsync(fd: number, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function fsyncSync(fd: number): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function listFile(path: string, options?: {
recursion?: boolean;
listNum?: number;
filter?: Filter;
}): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function listFile(path: string, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function listFile(path: string, options: {
recursion?: boolean;
listNum?: number;
filter?: Filter;
}, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function listFileSync(path: string, options?: {
recursion?: boolean;
listNum?: number;
filter?: Filter;
}): string[];|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function lstat(path: string): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function lstat(path: string, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function lstatSync(path: string): Stat;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function mkdir(path: string): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function mkdir(path: string, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function mkdirSync(path: string): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function mkdtemp(prefix: string): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function mkdtemp(prefix: string, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function mkdtempSync(prefix: string): string;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function moveFile(src: string, dest: string, mode?: number): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function moveFile(src: string, dest: string, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function moveFile(src: string, dest: string, mode: number, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function moveFileSync(src: string, dest: string, mode?: number): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function open(path: string, mode?: number): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function open(path: string, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function open(path: string, mode: number, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function openSync(path: string, mode?: number): File;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function read(fd: number, buffer: ArrayBuffer, options?: {
offset?: number;
length?: number;
}): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function read(fd: number, buffer: ArrayBuffer, options: {
offset?: number;
length?: number;
}, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function readSync(fd: number, buffer: ArrayBuffer, options?: {
offset?: number;
length?: number;
}): number;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function readText(filePath: string, options?: {
offset?: number;
length?: number;
encoding?: string;
}): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function readText(filePath: string, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function readText(filePath: string, options: {
offset?: number;
length?: number;
encoding?: string;
}, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function readTextSync(filePath: string, options?: {
offset?: number;
length?: number;
encoding?: string;
}): string;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function rename(oldPath: string, newPath: string): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function rename(oldPath: string, newPath: string, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function renameSync(oldPath: string, newPath: string): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function rmdir(path: string): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function rmdir(path: string, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function rmdirSync(path: string): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function stat(file: string \| number): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function stat(file: string \| number, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function statSync(file: string \| number): Stat;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function symlink(target: string, srcPath: string): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function symlink(target: string, srcPath: string, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function symlinkSync(target: string, srcPath: string): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function truncate(file: string \| number, len?: number): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function truncate(file: string \| number, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function truncate(file: string \| number, len: number, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function truncateSync(file: string \| number, len?: number): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function unlink(path: string): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function unlink(path: string, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function unlinkSync(path: string): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function write(fd: number, buffer: ArrayBuffer \| string, options?: {
offset?: number;
length?: number;
encoding?: string;
}): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function write(fd: number, buffer: ArrayBuffer \| string, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function write(fd: number, buffer: ArrayBuffer \| string, options: {
offset?: number;
length?: number;
encoding?: string;
}, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法 or 属性: function writeSync(fd: number, buffer: ArrayBuffer \| string, options?: {
offset?: number;
length?: number;
encoding?: string;
}): number;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: File|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: File
方法 or 属性: readonly fd: number;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: File
方法 or 属性: lock(exclusive?: boolean): Promise\;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: File
方法 or 属性: lock(callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: File
方法 or 属性: lock(exclusive: boolean, callback: AsyncCallback\): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: File
方法 or 属性: tryLock(exclusive?: boolean): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: File
方法 or 属性: unlock(): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法 or 属性: readonly ino: bigint;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法 or 属性: readonly mode: number;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法 or 属性: readonly uid: number;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法 or 属性: readonly gid: number;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法 or 属性: readonly size: number;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法 or 属性: readonly atime: number;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法 or 属性: readonly mtime: number;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法 or 属性: readonly ctime: number;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法 or 属性: isBlockDevice(): boolean;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法 or 属性: isCharacterDevice(): boolean;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法 or 属性: isDirectory(): boolean;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法 or 属性: isFIFO(): boolean;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法 or 属性: isFile(): boolean;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法 or 属性: isSocket(): boolean;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法 or 属性: isSymbolicLink(): boolean;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stream|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: 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|模块名: ohos.file.fs
类名: Stream
方法 or 属性: closeSync(): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: 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|模块名: ohos.file.fs
类名: 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|模块名: ohos.file.fs
类名: 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|模块名: ohos.file.fs
类名: 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|模块名: ohos.file.fs
类名: 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|模块名: ohos.file.fs
类名: 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.picker
类名: picker|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewMIMETypes|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewMIMETypes
方法 or 属性: IMAGE_TYPE = "image/*"|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewMIMETypes
方法 or 属性: VIDEO_TYPE = "video/*"|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewMIMETypes
方法 or 属性: IMAGE_VIDEO_TYPE = "*/*"|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoSelectOptions|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoSelectOptions
方法 or 属性: MIMEType?: PhotoViewMIMETypes;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoSelectOptions
方法 or 属性: maxSelectNumber?: number;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoSelectResult|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoSelectResult
方法 or 属性: photoUris: Array\;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoSelectResult
方法 or 属性: isOriginalPhoto: boolean;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoSaveOptions|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoSaveOptions
方法 or 属性: newFileNames?: Array\;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewPicker|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewPicker
方法 or 属性: select(option?: PhotoSelectOptions) : Promise\;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewPicker
方法 or 属性: select(option: PhotoSelectOptions, callback: AsyncCallback\) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewPicker
方法 or 属性: select(callback: AsyncCallback\) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewPicker
方法 or 属性: save(option?: PhotoSaveOptions) : Promise\>;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewPicker
方法 or 属性: save(option: PhotoSaveOptions, callback: AsyncCallback\>) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: PhotoViewPicker
方法 or 属性: save(callback: AsyncCallback\>) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: DocumentSelectOptions|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: DocumentSaveOptions|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: DocumentSaveOptions
方法 or 属性: newFileNames?: Array\;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: DocumentViewPicker|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: DocumentViewPicker
方法 or 属性: select(option?: DocumentSelectOptions) : Promise\>;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: DocumentViewPicker
方法 or 属性: select(option: DocumentSelectOptions, callback: AsyncCallback\>) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: DocumentViewPicker
方法 or 属性: select(callback: AsyncCallback\>) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: DocumentViewPicker
方法 or 属性: save(option?: DocumentSaveOptions) : Promise\>;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: DocumentViewPicker
方法 or 属性: save(option: DocumentSaveOptions, callback: AsyncCallback\>) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: DocumentViewPicker
方法 or 属性: save(callback: AsyncCallback\>) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: AudioSelectOptions|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: AudioSaveOptions|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: AudioSaveOptions
方法 or 属性: newFileNames?: Array\;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: AudioViewPicker|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: AudioViewPicker
方法 or 属性: select(option?: AudioSelectOptions) : Promise\>;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: AudioViewPicker
方法 or 属性: select(option: AudioSelectOptions, callback: AsyncCallback\>) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: AudioViewPicker
方法 or 属性: select(callback: AsyncCallback\>) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: AudioViewPicker
方法 or 属性: save(option?: AudioSaveOptions) : Promise\>;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: AudioViewPicker
方法 or 属性: save(option: AudioSaveOptions, callback: AsyncCallback\>) : void;|@ohos.file.picker.d.ts| +|新增|NA|模块名: ohos.file.picker
类名: AudioViewPicker
方法 or 属性: save(callback: AsyncCallback\>) : void;|@ohos.file.picker.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.file.storageStatistics
类名: storageStatistics|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getTotalSizeOfVolume(volumeUuid: string, callback: AsyncCallback\): void;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getTotalSizeOfVolume(volumeUuid: string): Promise\;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getFreeSizeOfVolume(volumeUuid: string, callback: AsyncCallback\): void;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getFreeSizeOfVolume(volumeUuid: string): Promise\;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: BundleStats|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: BundleStats
方法 or 属性: appSize: number;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: BundleStats
方法 or 属性: cacheSize: number;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: BundleStats
方法 or 属性: dataSize: number;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getBundleStats(packageName: string, callback: AsyncCallback\): void;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getBundleStats(packageName: string): Promise\;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getCurrentBundleStats(callback: AsyncCallback\): void;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getCurrentBundleStats(): Promise\;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getSystemSize(callback: AsyncCallback\): void;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getSystemSize(): Promise\;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: StorageStats|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: StorageStats
方法 or 属性: total: number;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: StorageStats
方法 or 属性: audio: number;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: StorageStats
方法 or 属性: video: number;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: StorageStats
方法 or 属性: image: number;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: StorageStats
方法 or 属性: file: number;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: StorageStats
方法 or 属性: app: number;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getUserStorageStats(): Promise\;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getUserStorageStats(callback: AsyncCallback\): void;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getUserStorageStats(userId: number): Promise\;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getUserStorageStats(userId: number, callback: AsyncCallback\): void;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getTotalSize(callback: AsyncCallback\): void;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getTotalSize(): Promise\;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getFreeSize(callback: AsyncCallback\): void;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.storageStatistics
类名: storageStatistics
方法 or 属性: function getFreeSize(): Promise\;|@ohos.file.storageStatistics.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: Volume|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: Volume
方法 or 属性: id: string;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: Volume
方法 or 属性: uuid: string;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: Volume
方法 or 属性: diskId: string;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: Volume
方法 or 属性: description: string;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: Volume
方法 or 属性: removable: boolean;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: Volume
方法 or 属性: state: number;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: Volume
方法 or 属性: path: string;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function getAllVolumes(callback: AsyncCallback\>): void;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function getAllVolumes(): Promise\>;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function mount(volumeId: string, callback: AsyncCallback\): void;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function mount(volumeId: string): Promise\;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function unmount(volumeId: string, callback: AsyncCallback\): void;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function unmount(volumeId: string): Promise\;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function getVolumeByUuid(uuid: string, callback: AsyncCallback\): void;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function getVolumeByUuid(uuid: string): Promise\;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function getVolumeById(volumeId: string, callback: AsyncCallback\): void;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function getVolumeById(volumeId: string): Promise\;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function setVolumeDescription(uuid: string, description: string, callback: AsyncCallback\): void;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function setVolumeDescription(uuid: string, description: string): Promise\;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function format(volumeId: string, fsType: string, callback: AsyncCallback\): void;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function format(volumeId: string, fsType: string): Promise\;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function partition(diskId: string, type: number, callback: AsyncCallback\): void;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.file.volumeManager
类名: volumeManager
方法 or 属性: function partition(diskId: string, type: number): Promise\;|@ohos.file.volumeManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: userFileManager|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ChangeEvent
方法 or 属性: type ChangeEvent = 'deviceChange' \| 'albumChange' \| 'imageChange' \| 'audioChange' \| 'videoChange' \| 'remoteFileChange';|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ChangeEvent
方法 or 属性: type ChangeEvent = 'deviceChange' \| 'albumChange' \| 'imageChange' \| 'audioChange' \| 'videoChange' \| 'remoteFileChange';|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ChangeEvent
方法 or 属性: type ChangeEvent = 'deviceChange' \| 'albumChange' \| 'imageChange' \| 'audioChange' \| 'videoChange' \| 'remoteFileChange';|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ChangeEvent
方法 or 属性: type ChangeEvent = 'deviceChange' \| 'albumChange' \| 'imageChange' \| 'audioChange' \| 'videoChange' \| 'remoteFileChange';|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ChangeEvent
方法 or 属性: type ChangeEvent = 'deviceChange' \| 'albumChange' \| 'imageChange' \| 'audioChange' \| 'videoChange' \| 'remoteFileChange';|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ChangeEvent
方法 or 属性: type ChangeEvent = 'deviceChange' \| 'albumChange' \| 'imageChange' \| 'audioChange' \| 'videoChange' \| 'remoteFileChange';|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: userFileManager
方法 or 属性: function getUserFileMgr(context: Context): UserFileManager;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileType|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileType
方法 or 属性: IMAGE = 1|@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 属性: readonly uri: string;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法 or 属性: readonly fileType: FileType;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法 or 属性: displayName: string;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法 or 属性: get(member: string): MemberType;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法 or 属性: set(member: string, value: string): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法 or 属性: commitModify(callback: AsyncCallback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法 or 属性: commitModify(): Promise\;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法 or 属性: open(mode: string, callback: AsyncCallback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法 or 属性: open(mode: string): Promise\;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法 or 属性: close(fd: number, callback: AsyncCallback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法 or 属性: close(fd: number): Promise\;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法 or 属性: getThumbnail(callback: AsyncCallback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法 or 属性: getThumbnail(size: image.Size, callback: AsyncCallback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法 or 属性: getThumbnail(size?: image.Size): Promise\;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法 or 属性: favorite(isFavorite: boolean, callback: AsyncCallback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法 or 属性: favorite(isFavorite: boolean): Promise\;|@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: Array\;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchOptions
方法 or 属性: predicates: dataSharePredicates.DataSharePredicates;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AlbumFetchOptions|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AlbumFetchOptions
方法 or 属性: predicates: dataSharePredicates.DataSharePredicates;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法 or 属性: getCount(): number;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法 or 属性: isAfterLast(): boolean;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法 or 属性: close(): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法 or 属性: getFirstObject(callback: AsyncCallback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法 or 属性: getFirstObject(): Promise\;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法 or 属性: getNextObject(callback: AsyncCallback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法 or 属性: getNextObject(): Promise\;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法 or 属性: getLastObject(callback: AsyncCallback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法 or 属性: getLastObject(): Promise\;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法 or 属性: getPositionObject(index: number, callback: AsyncCallback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法 or 属性: getPositionObject(index: number): Promise\;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法 or 属性: albumName: string;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法 or 属性: readonly albumUri: string;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法 or 属性: readonly dateModified: number;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法 or 属性: readonly count: number;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法 or 属性: readonly coverUri: string;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法 or 属性: getPhotoAssets(options: FetchOptions, callback: AsyncCallback\>): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法 or 属性: getPhotoAssets(options: FetchOptions): Promise\>;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: Album|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: Album
方法 or 属性: commitModify(callback: AsyncCallback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: Album
方法 or 属性: commitModify(): Promise\;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: getPhotoAssets(options: FetchOptions, callback: AsyncCallback\>): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: getPhotoAssets(options: FetchOptions): Promise\>;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: createPhotoAsset(displayName: string, albumUri: string, callback: AsyncCallback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: createPhotoAsset(displayName: string, callback: AsyncCallback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: createPhotoAsset(displayName: string, albumUri?: string): Promise\;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: getPhotoAlbums(options: AlbumFetchOptions, callback: AsyncCallback\>): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: getPhotoAlbums(options: AlbumFetchOptions): Promise\>;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: getPrivateAlbum(type: PrivateAlbumType, callback: AsyncCallback\>): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: getPrivateAlbum(type: PrivateAlbumType): Promise\>;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: getAudioAssets(options: FetchOptions, callback: AsyncCallback\>): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: getAudioAssets(options: FetchOptions): Promise\>;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: delete(uri: string, callback: AsyncCallback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: delete(uri: string): Promise\;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: on(type: ChangeEvent, callback: Callback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: on(type: ChangeEvent, callback: Callback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: on(type: ChangeEvent, callback: Callback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: on(type: ChangeEvent, callback: Callback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: on(type: ChangeEvent, callback: Callback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: on(type: ChangeEvent, callback: Callback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: off(type: ChangeEvent, callback?: Callback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: off(type: ChangeEvent, callback?: Callback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: off(type: ChangeEvent, callback?: Callback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: off(type: ChangeEvent, callback?: Callback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: off(type: ChangeEvent, callback?: Callback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: off(type: ChangeEvent, callback?: Callback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: getActivePeers(callback: AsyncCallback\>): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: getActivePeers(): Promise\>;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: getAllPeers(callback: AsyncCallback\>): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: getAllPeers(): Promise\>;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: release(callback: AsyncCallback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法 or 属性: release(): Promise\;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PeerInfo|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PeerInfo
方法 or 属性: readonly deviceName: string;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PeerInfo
方法 or 属性: readonly networkId: string;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PeerInfo
方法 or 属性: readonly isOnline: boolean;|@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(uri: string, callback: AsyncCallback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum
方法 or 属性: delete(uri: string): Promise\;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum
方法 or 属性: recover(uri: string, callback: AsyncCallback\): void;|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum
方法 or 属性: recover(uri: string): Promise\;|@ohos.filemanagement.userFileManager.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.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.storageStatistics
类名: storageStatistics|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getTotalSizeOfVolume(volumeUuid: string, callback: AsyncCallback\): void;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getTotalSizeOfVolume(volumeUuid: string): Promise\;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getFreeSizeOfVolume(volumeUuid: string, callback: AsyncCallback\): void;|NA|@ohos.storageStatistics.d.ts| +|删除|模块名: ohos.storageStatistics
类名: storageStatistics
方法 or 属性:function getFreeSizeOfVolume(volumeUuid: string): Promise\;|NA|@ohos.storageStatistics.d.ts| +|废弃版本有变化|类名:document
方法 or 属性:function choose(types?: string[]): Promise\;
废弃版本:N/A|类名:document
方法 or 属性:function choose(types?: string[]): Promise\;
废弃版本:9
代替接口:N/A|@ohos.document.d.ts| +|废弃版本有变化|类名:document
方法 or 属性:function choose(callback: AsyncCallback\): void;
废弃版本:N/A|类名:document
方法 or 属性:function choose(callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.document.d.ts| +|废弃版本有变化|类名:document
方法 or 属性:function choose(types: string[], callback: AsyncCallback\): void;
废弃版本:N/A|类名:document
方法 or 属性:function choose(types: string[], callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.document.d.ts| +|废弃版本有变化|类名:document
方法 or 属性:function show(uri: string, type: string): Promise\;
废弃版本:N/A|类名:document
方法 or 属性:function show(uri: string, type: string): Promise\;
废弃版本:9
代替接口:N/A|@ohos.document.d.ts| +|废弃版本有变化|类名:document
方法 or 属性:function show(uri: string, type: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:document
方法 or 属性:function show(uri: string, type: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.document.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.file.fs.access |@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.file.fs.access |@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.file.fs.close |@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.file.fs.copyFile |@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.file.fs.copyFile |@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.file.fs.createStream |@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
代替接口:N/A|@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
代替接口:N/A|@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 ftruncate(fd: number, len?: number): Promise\;
废弃版本:N/A|类名:fileIO
方法 or 属性:function ftruncate(fd: number, len?: number): Promise\;
废弃版本:9
代替接口:ohos.file.fs.truncate |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function ftruncate(fd: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function ftruncate(fd: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.fs.truncate |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function ftruncate(fd: number, len: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function ftruncate(fd: number, len: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.fs.truncate |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function ftruncateSync(fd: number, len?: number): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function ftruncateSync(fd: number, len?: number): void;
废弃版本:9
代替接口:ohos.file.fs.truncateSync |@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.file.fs.fsync |@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 fstat(fd: number): Promise\;
废弃版本:N/A|类名:fileIO
方法 or 属性:function fstat(fd: number): Promise\;
废弃版本:9
代替接口:ohos.file.fs.stat |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function fstat(fd: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function fstat(fd: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.fs.stat |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function fstatSync(fd: number): Stat;
废弃版本:N/A|类名:fileIO
方法 or 属性:function fstatSync(fd: number): Stat;
废弃版本:9
代替接口:ohos.file.fs.statSync |@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.file.fs.fdatasync |@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
代替接口:N/A|@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
代替接口:N/A|@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.file.fs.fdopenStream |@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.file.hash.hash |@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
代替接口:N/A|@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.file.fs.lstat |@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.file.fs.mkdir |@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.file.fs.mkdir |@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.file.fs.mkdtemp |@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 open(path: string, flags?: number, mode?: number): Promise\;
废弃版本:N/A|类名:fileIO
方法 or 属性:function open(path: string, flags?: number, mode?: number): Promise\;
废弃版本:9
代替接口:ohos.file.fs.open |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function open(path: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function open(path: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.fs.open |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function open(path: string, flags: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function open(path: string, flags: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.fs.open |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function open(path: string, flags: number, mode: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function open(path: string, flags: number, mode: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.fs.open |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function openSync(path: string, flags?: number, mode?: number): number;
废弃版本:N/A|类名:fileIO
方法 or 属性:function openSync(path: string, flags?: number, mode?: number): number;
废弃版本:9
代替接口:ohos.file.fs.openSync |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function opendir(path: string): Promise\;
废弃版本:N/A|类名:fileIO
方法 or 属性:function opendir(path: string): Promise\;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function opendir(path: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function opendir(path: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function opendirSync(path: string): Dir;
废弃版本:N/A|类名:fileIO
方法 or 属性:function opendirSync(path: string): Dir;
废弃版本:9
代替接口:ohos.file.fs.listFile |@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.file.fs.readText |@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 read(fd: number, buffer: ArrayBuffer, options?: {
offset?: number;
length?: number;
position?: number;
}): Promise\
废弃版本:N/A|类名:fileIO
方法 or 属性:function read(fd: number, buffer: ArrayBuffer, options?: {
offset?: number;
length?: number;
position?: number;
}): Promise\
废弃版本:9
代替接口:ohos.file.fs.read |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback\): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.fs.read |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function read(fd: number, buffer: ArrayBuffer, options: {
offset?: number;
length?: number;
position?: number;
}, callback: AsyncCallback\): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function read(fd: number, buffer: ArrayBuffer, options: {
offset?: number;
length?: number;
position?: number;
}, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.fs.read |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function readSync(fd: number, buffer: ArrayBuffer, options?: {
offset?: number;
length?: number;
position?: number;
}): number;
废弃版本:N/A|类名:fileIO
方法 or 属性:function readSync(fd: number, buffer: ArrayBuffer, options?: {
offset?: number;
length?: number;
position?: number;
}): number;
废弃版本:9
代替接口:ohos.file.fs.readSync |@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.file.fs.rename |@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.file.fs.rmdir |@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 stat(path: string): Promise\;
废弃版本:N/A|类名:fileIO
方法 or 属性:function stat(path: string): Promise\;
废弃版本:9
代替接口:ohos.file.fs.stat |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function stat(path: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function stat(path: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.fs.stat |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function statSync(path: string): Stat;
废弃版本:N/A|类名:fileIO
方法 or 属性:function statSync(path: string): Stat;
废弃版本:9
代替接口:ohos.file.fs.statSync |@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.file.fs.symlink |@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 truncate(path: string, len?: number): Promise\;
废弃版本:N/A|类名:fileIO
方法 or 属性:function truncate(path: string, len?: number): Promise\;
废弃版本:9
代替接口:ohos.file.fs.truncate |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function truncate(path: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function truncate(path: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.fs.truncate |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function truncate(path: string, len: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function truncate(path: string, len: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.fs.truncate |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function truncateSync(path: string, len?: number): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function truncateSync(path: string, len?: number): void;
废弃版本:9
代替接口:ohos.file.fs.truncateSync |@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.file.fs.unlink |@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| +|废弃版本有变化|类名:fileIO
方法 or 属性:function write(fd: number, buffer: ArrayBuffer \| string, options?: {
offset?: number;
length?: number;
position?: number;
encoding?: string;
}): Promise\;
废弃版本:N/A|类名:fileIO
方法 or 属性:function write(fd: number, buffer: ArrayBuffer \| string, options?: {
offset?: number;
length?: number;
position?: number;
encoding?: string;
}): Promise\;
废弃版本:9
代替接口:ohos.file.fs.write |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function write(fd: number, buffer: ArrayBuffer \| string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function write(fd: number, buffer: ArrayBuffer \| string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.fs.write |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function write(fd: number, buffer: ArrayBuffer \| string, options: {
offset?: number;
length?: number;
position?: number;
encoding?: string;
}, callback: AsyncCallback\): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function write(fd: number, buffer: ArrayBuffer \| string, options: {
offset?: number;
length?: number;
position?: number;
encoding?: string;
}, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.fs.write |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function writeSync(fd: number, buffer: ArrayBuffer \| string, options?: {
offset?: number;
length?: number;
position?: number;
encoding?: string;
}): number;
废弃版本:N/A|类名:fileIO
方法 or 属性:function writeSync(fd: number, buffer: ArrayBuffer \| string, options?: {
offset?: number;
length?: number;
position?: number;
encoding?: string;
}): number;
废弃版本:9
代替接口:ohos.file.fs.writeSync |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dir
方法 or 属性:read(): Promise\;
废弃版本:N/A|类名:Dir
方法 or 属性:read(): Promise\;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dir
方法 or 属性:read(callback: AsyncCallback\): void;
废弃版本:N/A|类名:Dir
方法 or 属性:read(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dir
方法 or 属性:readSync(): Dirent;
废弃版本:N/A|类名:Dir
方法 or 属性:readSync(): Dirent;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dir
方法 or 属性:close(): Promise\;
废弃版本:N/A|类名:Dir
方法 or 属性:close(): Promise\;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dir
方法 or 属性:close(callback: AsyncCallback\): void;
废弃版本:N/A|类名:Dir
方法 or 属性:close(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dir
方法 or 属性:closeSync(): void;
废弃版本:N/A|类名:Dir
方法 or 属性:closeSync(): void;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dirent
废弃版本:N/A|类名:Dirent
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dirent
方法 or 属性:readonly name: string;
废弃版本:N/A|类名:Dirent
方法 or 属性:readonly name: string;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dirent
方法 or 属性:isBlockDevice(): boolean;
废弃版本:N/A|类名:Dirent
方法 or 属性:isBlockDevice(): boolean;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dirent
方法 or 属性:isCharacterDevice(): boolean;
废弃版本:N/A|类名:Dirent
方法 or 属性:isCharacterDevice(): boolean;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dirent
方法 or 属性:isDirectory(): boolean;
废弃版本:N/A|类名:Dirent
方法 or 属性:isDirectory(): boolean;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dirent
方法 or 属性:isFIFO(): boolean;
废弃版本:N/A|类名:Dirent
方法 or 属性:isFIFO(): boolean;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dirent
方法 or 属性:isFile(): boolean;
废弃版本:N/A|类名:Dirent
方法 or 属性:isFile(): boolean;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dirent
方法 or 属性:isSocket(): boolean;
废弃版本:N/A|类名:Dirent
方法 or 属性:isSocket(): boolean;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Dirent
方法 or 属性:isSymbolicLink(): boolean;
废弃版本:N/A|类名:Dirent
方法 or 属性:isSymbolicLink(): boolean;
废弃版本:9
代替接口:ohos.file.fs.listFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Stat
废弃版本:N/A|类名:Stat
废弃版本:9
代替接口:ohos.file.fs.Stat |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Stream
废弃版本:N/A|类名:Stream
废弃版本:9
代替接口:ohos.file.fs.Stream |@ohos.fileio.d.ts| +|废弃版本有变化|类名:ReadOut
废弃版本:N/A|类名:ReadOut
废弃版本:9
代替接口:N/A|@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.file.statvfs.getFreeSize |@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.file.statvfs.getTotalSize |@ohos.statfs.d.ts| +|起始版本有变化|类名:fileIO
方法 or 属性:function opendirSync(path: string): Dir;
起始版本:N/A|类名:fileIO
方法 or 属性:function opendirSync(path: string): Dir;
起始版本:6|@ohos.fileio.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-geolocation.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-geolocation.md new file mode 100644 index 0000000000000000000000000000000000000000..ea3497d974ea2b040e2251cc3b5b53a66555cdad --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-geolocation.md @@ -0,0 +1,223 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:GeoLocationErrorCode
方法or属性:INPUT_PARAMS_ERROR|@ohos.geolocation.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function on(type: 'locationChange', request: LocationRequest, callback: Callback\): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function off(type: 'locationChange', callback?: Callback\): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function on(type: 'locationEnabledChange', callback: Callback\): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function off(type: 'locationEnabledChange', callback?: Callback\): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function on(type: 'cachedGnssLocationsChange', request: CachedGnssLocationsRequest, callback: Callback\>): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function off(type: 'cachedGnssLocationsChange', callback?: Callback\>): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function on(type: 'satelliteStatusChange', callback: Callback\): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function off(type: 'satelliteStatusChange', callback?: Callback\): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function on(type: 'nmeaMessage', callback: Callback\): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function off(type: 'nmeaMessage', callback?: Callback\): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function on(type: 'gnssFenceStatusChange', request: GeofenceRequest, want: WantAgent): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function off(type: 'gnssFenceStatusChange', request: GeofenceRequest, want: WantAgent): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function on(type: 'countryCodeChange', callback: Callback\): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function off(type: 'countryCodeChange', callback?: Callback\): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function getCurrentLocation(request: CurrentLocationRequest, callback: AsyncCallback\): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function getCurrentLocation(callback: AsyncCallback\): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function getCurrentLocation(request?: CurrentLocationRequest): Promise\;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function getLastLocation(): Location;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function isLocationEnabled(): boolean;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function enableLocation(callback: AsyncCallback\): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function enableLocation(): Promise\;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function disableLocation(): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function getAddressesFromLocation(request: ReverseGeoCodeRequest, callback: AsyncCallback\>): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function getAddressesFromLocation(request: ReverseGeoCodeRequest): Promise\>;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function getAddressesFromLocationName(request: GeoCodeRequest, callback: AsyncCallback\>): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function getAddressesFromLocationName(request: GeoCodeRequest): Promise\>;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function isGeocoderAvailable(): boolean;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function getCachedGnssLocationsSize(callback: AsyncCallback\): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function getCachedGnssLocationsSize(): Promise\;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function flushCachedGnssLocations(callback: AsyncCallback\): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function flushCachedGnssLocations(): Promise\;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function sendCommand(command: LocationCommand, callback: AsyncCallback\): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function sendCommand(command: LocationCommand): Promise\;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function getCountryCode(callback: AsyncCallback\): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function getCountryCode(): Promise\;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function enableLocationMock(): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function disableLocationMock(): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function setMockedLocations(config: LocationMockConfig): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function enableReverseGeocodingMock(): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function disableReverseGeocodingMock(): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function setReverseGeocodingMockInfo(mockInfos: Array\): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function isLocationPrivacyConfirmed(type: LocationPrivacyType): boolean;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法 or 属性: function setLocationPrivacyConfirmStatus(type: LocationPrivacyType, isConfirmed: boolean): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeocodingMockInfo|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeocodingMockInfo
方法 or 属性: location: ReverseGeoCodeRequest;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeocodingMockInfo
方法 or 属性: geoAddress: GeoAddress;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationMockConfig|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationMockConfig
方法 or 属性: timeInterval: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationMockConfig
方法 or 属性: locations: Array\;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法 or 属性: satellitesNumber: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法 or 属性: satelliteIds: Array\;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法 or 属性: carrierToNoiseDensitys: Array\;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法 or 属性: altitudes: Array\;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法 or 属性: azimuths: Array\;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法 or 属性: carrierFrequencies: Array\;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CachedGnssLocationsRequest|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CachedGnssLocationsRequest
方法 or 属性: reportingPeriodSec: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CachedGnssLocationsRequest
方法 or 属性: wakeUpCacheQueueFull: boolean;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeofenceRequest|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeofenceRequest
方法 or 属性: scenario: LocationRequestScenario;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeofenceRequest
方法 or 属性: geofence: Geofence;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Geofence|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Geofence
方法 or 属性: latitude: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Geofence
方法 or 属性: longitude: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Geofence
方法 or 属性: radius: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Geofence
方法 or 属性: expiration: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest
方法 or 属性: locale?: string;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest
方法 or 属性: latitude: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest
方法 or 属性: longitude: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest
方法 or 属性: maxItems?: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法 or 属性: locale?: string;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法 or 属性: description: string;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法 or 属性: maxItems?: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法 or 属性: minLatitude?: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法 or 属性: minLongitude?: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法 or 属性: maxLatitude?: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法 or 属性: maxLongitude?: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法 or 属性: latitude?: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法 or 属性: longitude?: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法 or 属性: locale?: string;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法 or 属性: placeName?: string;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法 or 属性: countryCode?: string;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法 or 属性: countryName?: string;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法 or 属性: administrativeArea?: string;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法 or 属性: subAdministrativeArea?: string;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法 or 属性: locality?: string;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法 or 属性: subLocality?: string;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法 or 属性: roadName?: string;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法 or 属性: subRoadName?: string;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法 or 属性: premises?: string;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法 or 属性: postalCode?: string;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法 or 属性: phoneNumber?: string;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法 or 属性: addressUrl?: string;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法 or 属性: descriptions?: Array\;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法 or 属性: descriptionsSize?: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法 or 属性: isFromMock?: Boolean;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequest|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequest
方法 or 属性: priority?: LocationRequestPriority;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequest
方法 or 属性: scenario?: LocationRequestScenario;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequest
方法 or 属性: timeInterval?: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequest
方法 or 属性: distanceInterval?: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequest
方法 or 属性: maxAccuracy?: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CurrentLocationRequest|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CurrentLocationRequest
方法 or 属性: priority?: LocationRequestPriority;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CurrentLocationRequest
方法 or 属性: scenario?: LocationRequestScenario;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CurrentLocationRequest
方法 or 属性: maxAccuracy?: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CurrentLocationRequest
方法 or 属性: timeoutMs?: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法 or 属性: latitude: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法 or 属性: longitude: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法 or 属性: altitude: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法 or 属性: accuracy: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法 or 属性: speed: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法 or 属性: timeStamp: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法 or 属性: direction: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法 or 属性: timeSinceBoot: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法 or 属性: additions?: Array\;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法 or 属性: additionSize?: number;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法 or 属性: isFromMock?: Boolean;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestPriority|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestPriority
方法 or 属性: UNSET = 0x200|@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 = 0x300|@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 = 0|@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: LocationRequestScenario;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationCommand
方法 or 属性: command: string;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCode|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCode
方法 or 属性: country: string;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCode
方法 or 属性: type: CountryCodeType;|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCodeType|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCodeType
方法 or 属性: COUNTRY_CODE_FROM_LOCALE = 1|@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 属性: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.geolocation
类名:geolocation
方法 or 属性:function isLocationPrivacyConfirmed(type : LocationPrivacyType, callback: AsyncCallback\) : void;|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法 or 属性:function isLocationPrivacyConfirmed(type : LocationPrivacyType,) : Promise\;|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法 or 属性:function setLocationPrivacyConfirmStatus(type : LocationPrivacyType, isConfirmed : boolean, callback: AsyncCallback\) : void;|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法 or 属性:function setLocationPrivacyConfirmStatus(type : LocationPrivacyType, isConfirmed : boolean) : Promise\;|NA|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
废弃版本:N/A|类名:geolocation
废弃版本:9
代替接口:N/A|@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| +|起始版本有变化|类名:GeoAddress
方法 or 属性:latitude?: number;
起始版本:N/A|类名:GeoAddress
方法 or 属性:latitude?: number;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoAddress
方法 or 属性:longitude?: number;
起始版本:N/A|类名:GeoAddress
方法 or 属性:longitude?: number;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoAddress
方法 or 属性:locale?: string;
起始版本:N/A|类名:GeoAddress
方法 or 属性:locale?: string;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoAddress
方法 or 属性:placeName?: string;
起始版本:N/A|类名:GeoAddress
方法 or 属性:placeName?: string;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoAddress
方法 or 属性:countryCode?: string;
起始版本:N/A|类名:GeoAddress
方法 or 属性:countryCode?: string;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoAddress
方法 or 属性:countryName?: string;
起始版本:N/A|类名:GeoAddress
方法 or 属性:countryName?: string;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoAddress
方法 or 属性:administrativeArea?: string;
起始版本:N/A|类名:GeoAddress
方法 or 属性:administrativeArea?: string;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoAddress
方法 or 属性:subAdministrativeArea?: string;
起始版本:N/A|类名:GeoAddress
方法 or 属性:subAdministrativeArea?: string;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoAddress
方法 or 属性:locality?: string;
起始版本:N/A|类名:GeoAddress
方法 or 属性:locality?: string;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoAddress
方法 or 属性:subLocality?: string;
起始版本:N/A|类名:GeoAddress
方法 or 属性:subLocality?: string;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoAddress
方法 or 属性:roadName?: string;
起始版本:N/A|类名:GeoAddress
方法 or 属性:roadName?: string;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoAddress
方法 or 属性:subRoadName?: string;
起始版本:N/A|类名:GeoAddress
方法 or 属性:subRoadName?: string;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoAddress
方法 or 属性:premises?: string;
起始版本:N/A|类名:GeoAddress
方法 or 属性:premises?: string;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoAddress
方法 or 属性:postalCode?: string;
起始版本:N/A|类名:GeoAddress
方法 or 属性:postalCode?: string;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoAddress
方法 or 属性:phoneNumber?: string;
起始版本:N/A|类名:GeoAddress
方法 or 属性:phoneNumber?: string;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoAddress
方法 or 属性:addressUrl?: string;
起始版本:N/A|类名:GeoAddress
方法 or 属性:addressUrl?: string;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoAddress
方法 or 属性:descriptions?: Array\;
起始版本:N/A|类名:GeoAddress
方法 or 属性:descriptions?: Array\;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoAddress
方法 or 属性:descriptionsSize?: number;
起始版本:N/A|类名:GeoAddress
方法 or 属性:descriptionsSize?: number;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:Location
方法 or 属性:latitude: number;
起始版本:N/A|类名:Location
方法 or 属性:latitude: number;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:Location
方法 or 属性:longitude: number;
起始版本:N/A|类名:Location
方法 or 属性:longitude: number;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:Location
方法 or 属性:altitude: number;
起始版本:N/A|类名:Location
方法 or 属性:altitude: number;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:Location
方法 or 属性:accuracy: number;
起始版本:N/A|类名:Location
方法 or 属性:accuracy: number;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:Location
方法 or 属性:speed: number;
起始版本:N/A|类名:Location
方法 or 属性:speed: number;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:Location
方法 or 属性:timeStamp: number;
起始版本:N/A|类名:Location
方法 or 属性:timeStamp: number;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:Location
方法 or 属性:direction: number;
起始版本:N/A|类名:Location
方法 or 属性:direction: number;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:Location
方法 or 属性:timeSinceBoot: number;
起始版本:N/A|类名:Location
方法 or 属性:timeSinceBoot: number;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:Location
方法 or 属性:additions?: Array\;
起始版本:N/A|类名:Location
方法 or 属性:additions?: Array\;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:Location
方法 or 属性:additionSize?: number;
起始版本:N/A|类名:Location
方法 or 属性:additionSize?: number;
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoLocationErrorCode
方法 or 属性:REVERSE_GEOCODE_ERROR
起始版本:N/A|类名:GeoLocationErrorCode
方法 or 属性:REVERSE_GEOCODE_ERROR
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoLocationErrorCode
方法 or 属性:GEOCODE_ERROR
起始版本:N/A|类名:GeoLocationErrorCode
方法 or 属性:GEOCODE_ERROR
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoLocationErrorCode
方法 or 属性:LOCATOR_ERROR
起始版本:N/A|类名:GeoLocationErrorCode
方法 or 属性:LOCATOR_ERROR
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoLocationErrorCode
方法 or 属性:LOCATION_SWITCH_ERROR
起始版本:N/A|类名:GeoLocationErrorCode
方法 or 属性:LOCATION_SWITCH_ERROR
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoLocationErrorCode
方法 or 属性:LAST_KNOWN_LOCATION_ERROR
起始版本:N/A|类名:GeoLocationErrorCode
方法 or 属性:LAST_KNOWN_LOCATION_ERROR
起始版本:7|@ohos.geolocation.d.ts| +|起始版本有变化|类名:GeoLocationErrorCode
方法 or 属性:LOCATION_REQUEST_TIMEOUT_ERROR
起始版本:N/A|类名:GeoLocationErrorCode
方法 or 属性:LOCATION_REQUEST_TIMEOUT_ERROR
起始版本:7|@ohos.geolocation.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-global.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-global.md new file mode 100644 index 0000000000000000000000000000000000000000..09e4a9a1aa618d81a2592c1f3e23af5dabac0603 --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-global.md @@ -0,0 +1,256 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.i18n
类名: System|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法 or 属性:static getDisplayCountry(country: string, locale: string, sentenceCase?: boolean): string;|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:static getDisplayCountry(country: string, locale: string, sentenceCase?: boolean): string;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法 or 属性:static getDisplayLanguage(language: string, locale: string, sentenceCase?: boolean): string;|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:static getDisplayLanguage(language: string, locale: string, sentenceCase?: boolean): string;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法 or 属性:static getSystemLanguages(): Array\;|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:static getSystemLanguages(): Array\;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法 or 属性:static getSystemCountries(language: string): Array\;|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:static getSystemCountries(language: string): Array\;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法 or 属性:static isSuggested(language: string, region?: string): boolean;|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:static isSuggested(language: string, region?: string): boolean;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法 or 属性:static getSystemLanguage(): string;|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:static getSystemLanguage(): string;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法 or 属性:static setSystemLanguage(language: string): void;|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:static setSystemLanguage(language: string): void;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法 or 属性:static getSystemRegion(): string;|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:static getSystemRegion(): string;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法 or 属性:static setSystemRegion(region: string): void;|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:static setSystemRegion(region: string): void;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法 or 属性:static getSystemLocale(): string;|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:static getSystemLocale(): string;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法 or 属性:static setSystemLocale(locale: string): void;|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:static setSystemLocale(locale: string): void;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法 or 属性:static is24HourClock(): boolean;|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:static is24HourClock(): boolean;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法 or 属性:static set24HourClock(option: boolean): void;|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:static set24HourClock(option: boolean): void;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法 or 属性:static addPreferredLanguage(language: string, index?: number): void;|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:static addPreferredLanguage(language: string, index?: number): void;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法 or 属性:static removePreferredLanguage(index: number): void;|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:static removePreferredLanguage(index: number): void;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法 or 属性:static getPreferredLanguageList(): Array\;|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:static getPreferredLanguageList(): Array\;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法 or 属性:static getFirstPreferredLanguage(): string;|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:static getFirstPreferredLanguage(): string;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法 or 属性:static getAppPreferredLanguage(): string;|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:static getAppPreferredLanguage(): string;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法 or 属性:static setUsingLocalDigit(flag: boolean): void;|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:static setUsingLocalDigit(flag: boolean): void;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法 or 属性:static getUsingLocalDigit(): boolean;|@ohos.i18n.d.ts| +|新增|NA|类名:System
方法or属性:static getUsingLocalDigit(): boolean;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: I18NUtil|@ohos.i18n.d.ts| +|新增|NA|类名:I18NUtil
方法or属性:|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: I18NUtil
方法 or 属性:static unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: number, locale: string, style?: string): string;|@ohos.i18n.d.ts| +|新增|NA|类名:I18NUtil
方法or属性:static unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: number, locale: string, style?: string): string;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: I18NUtil
方法 or 属性:static getDateOrder(locale: string): string;|@ohos.i18n.d.ts| +|新增|NA|类名:I18NUtil
方法or属性:static getDateOrder(locale: string): string;|@ohos.i18n.d.ts| +|新增|NA|类名:PhoneNumberFormatOptions
方法or属性:type?: string;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: PhoneNumberFormat
方法 or 属性:getLocationName(number: string, locale: string): string;|@ohos.i18n.d.ts| +|新增|NA|类名:PhoneNumberFormat
方法or属性:getLocationName(number: string, locale: string): string;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Unicode|@ohos.i18n.d.ts| +|新增|NA|类名:Unicode
方法or属性:|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Unicode
方法 or 属性:static isDigit(char: string): boolean;|@ohos.i18n.d.ts| +|新增|NA|类名:Unicode
方法or属性:static isDigit(char: string): boolean;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Unicode
方法 or 属性:static isSpaceChar(char: string): boolean;|@ohos.i18n.d.ts| +|新增|NA|类名:Unicode
方法or属性:static isSpaceChar(char: string): boolean;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Unicode
方法 or 属性:static isWhitespace(char: string): boolean;|@ohos.i18n.d.ts| +|新增|NA|类名:Unicode
方法or属性:static isWhitespace(char: string): boolean;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Unicode
方法 or 属性:static isRTL(char: string): boolean;|@ohos.i18n.d.ts| +|新增|NA|类名:Unicode
方法or属性:static isRTL(char: string): boolean;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Unicode
方法 or 属性:static isIdeograph(char: string): boolean;|@ohos.i18n.d.ts| +|新增|NA|类名:Unicode
方法or属性:static isIdeograph(char: string): boolean;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Unicode
方法 or 属性:static isLetter(char: string): boolean;|@ohos.i18n.d.ts| +|新增|NA|类名:Unicode
方法or属性:static isLetter(char: string): boolean;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Unicode
方法 or 属性:static isLowerCase(char: string): boolean;|@ohos.i18n.d.ts| +|新增|NA|类名:Unicode
方法or属性:static isLowerCase(char: string): boolean;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Unicode
方法 or 属性:static isUpperCase(char: string): boolean;|@ohos.i18n.d.ts| +|新增|NA|类名:Unicode
方法or属性:static isUpperCase(char: string): boolean;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Unicode
方法 or 属性:static getType(char: string): string;|@ohos.i18n.d.ts| +|新增|NA|类名:Unicode
方法or属性:static getType(char: string): string;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: TimeZone
方法 or 属性:static getAvailableIDs(): Array\;|@ohos.i18n.d.ts| +|新增|NA|类名:TimeZone
方法or属性:static getAvailableIDs(): Array\;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: TimeZone
方法 or 属性:static getAvailableZoneCityIDs(): Array\;|@ohos.i18n.d.ts| +|新增|NA|类名:TimeZone
方法or属性:static getAvailableZoneCityIDs(): Array\;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: TimeZone
方法 or 属性:static getCityDisplayName(cityID: string, locale: string): string;|@ohos.i18n.d.ts| +|新增|NA|类名:TimeZone
方法or属性:static getCityDisplayName(cityID: string, locale: string): string;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: TimeZone
方法 or 属性:static getTimezoneFromCity(cityID: string): TimeZone;|@ohos.i18n.d.ts| +|新增|NA|类名:TimeZone
方法or属性:static getTimezoneFromCity(cityID: string): TimeZone;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Transliterator|@ohos.i18n.d.ts| +|新增|NA|类名:Transliterator
方法or属性:|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Transliterator
方法 or 属性:static getAvailableIDs(): string[];|@ohos.i18n.d.ts| +|新增|NA|类名:Transliterator
方法or属性:static getAvailableIDs(): string[];|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Transliterator
方法 or 属性:static getInstance(id: string): Transliterator;|@ohos.i18n.d.ts| +|新增|NA|类名:Transliterator
方法or属性:static getInstance(id: string): Transliterator;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Transliterator
方法 or 属性:transform(text: string): string;|@ohos.i18n.d.ts| +|新增|NA|类名:Transliterator
方法or属性:transform(text: string): string;|@ohos.i18n.d.ts| +|新增|NA|类名:LocaleOptions
方法or属性:calendar?: string;|@ohos.intl.d.ts| +|新增|NA|类名:LocaleOptions
方法or属性:collation?: string;|@ohos.intl.d.ts| +|新增|NA|类名:LocaleOptions
方法or属性:hourCycle?: string;|@ohos.intl.d.ts| +|新增|NA|类名:LocaleOptions
方法or属性:numberingSystem?: string;|@ohos.intl.d.ts| +|新增|NA|类名:LocaleOptions
方法or属性:numeric?: boolean;|@ohos.intl.d.ts| +|新增|NA|类名:LocaleOptions
方法or属性:caseFirst?: string;|@ohos.intl.d.ts| +|新增|NA|类名:DateTimeOptions
方法or属性:locale?: string|@ohos.intl.d.ts| +|新增|NA|类名:DateTimeOptions
方法or属性:dateStyle?: string|@ohos.intl.d.ts| +|新增|NA|类名:DateTimeOptions
方法or属性:timeStyle?: string|@ohos.intl.d.ts| +|新增|NA|类名:DateTimeOptions
方法or属性:hourCycle?: string|@ohos.intl.d.ts| +|新增|NA|类名:DateTimeOptions
方法or属性:timeZone?: string|@ohos.intl.d.ts| +|新增|NA|类名:DateTimeOptions
方法or属性:numberingSystem?: string|@ohos.intl.d.ts| +|新增|NA|类名:DateTimeOptions
方法or属性:hour12?: boolean|@ohos.intl.d.ts| +|新增|NA|类名:DateTimeOptions
方法or属性:weekday?: string|@ohos.intl.d.ts| +|新增|NA|类名:DateTimeOptions
方法or属性:era?: string|@ohos.intl.d.ts| +|新增|NA|类名:DateTimeOptions
方法or属性:year?: string|@ohos.intl.d.ts| +|新增|NA|类名:DateTimeOptions
方法or属性:month?: string|@ohos.intl.d.ts| +|新增|NA|类名:DateTimeOptions
方法or属性:day?: string|@ohos.intl.d.ts| +|新增|NA|类名:DateTimeOptions
方法or属性:hour?: string|@ohos.intl.d.ts| +|新增|NA|类名:DateTimeOptions
方法or属性:minute?: string|@ohos.intl.d.ts| +|新增|NA|类名:DateTimeOptions
方法or属性:second?: string|@ohos.intl.d.ts| +|新增|NA|类名:DateTimeOptions
方法or属性:timeZoneName?: string|@ohos.intl.d.ts| +|新增|NA|类名:DateTimeOptions
方法or属性:dayPeriod?: string|@ohos.intl.d.ts| +|新增|NA|类名:DateTimeOptions
方法or属性:localeMatcher?: string|@ohos.intl.d.ts| +|新增|NA|类名:DateTimeOptions
方法or属性:formatMatcher?: string|@ohos.intl.d.ts| +|新增|NA|类名:NumberOptions
方法or属性:locale?: string|@ohos.intl.d.ts| +|新增|NA|类名:NumberOptions
方法or属性:currency?: string|@ohos.intl.d.ts| +|新增|NA|类名:NumberOptions
方法or属性:currencySign?: string|@ohos.intl.d.ts| +|新增|NA|类名:NumberOptions
方法or属性:currencyDisplay?: string|@ohos.intl.d.ts| +|新增|NA|类名:NumberOptions
方法or属性:unit?: string|@ohos.intl.d.ts| +|新增|NA|类名:NumberOptions
方法or属性:unitDisplay?: string|@ohos.intl.d.ts| +|新增|NA|类名:NumberOptions
方法or属性:unitUsage?: string|@ohos.intl.d.ts| +|新增|NA|类名:NumberOptions
方法or属性:signDisplay?: string|@ohos.intl.d.ts| +|新增|NA|类名:NumberOptions
方法or属性:compactDisplay?: string|@ohos.intl.d.ts| +|新增|NA|类名:NumberOptions
方法or属性:notation?: string|@ohos.intl.d.ts| +|新增|NA|类名:NumberOptions
方法or属性:localeMatcher?: string|@ohos.intl.d.ts| +|新增|NA|类名:NumberOptions
方法or属性:style?: string|@ohos.intl.d.ts| +|新增|NA|类名:NumberOptions
方法or属性:numberingSystem?: string|@ohos.intl.d.ts| +|新增|NA|类名:NumberOptions
方法or属性:useGrouping?: boolean|@ohos.intl.d.ts| +|新增|NA|类名:NumberOptions
方法or属性:minimumIntegerDigits?: number|@ohos.intl.d.ts| +|新增|NA|类名:NumberOptions
方法or属性:minimumFractionDigits?: number|@ohos.intl.d.ts| +|新增|NA|类名:NumberOptions
方法or属性:maximumFractionDigits?: number|@ohos.intl.d.ts| +|新增|NA|类名:NumberOptions
方法or属性:minimumSignificantDigits?: number|@ohos.intl.d.ts| +|新增|NA|类名:NumberOptions
方法or属性:maximumSignificantDigits?: number|@ohos.intl.d.ts| +|新增|NA|类名:CollatorOptions
方法or属性:localeMatcher?: string;|@ohos.intl.d.ts| +|新增|NA|类名:CollatorOptions
方法or属性:usage?: string;|@ohos.intl.d.ts| +|新增|NA|类名:CollatorOptions
方法or属性:sensitivity?: string;|@ohos.intl.d.ts| +|新增|NA|类名:CollatorOptions
方法or属性:ignorePunctuation?: boolean;|@ohos.intl.d.ts| +|新增|NA|类名:CollatorOptions
方法or属性:collation?: string;|@ohos.intl.d.ts| +|新增|NA|类名:CollatorOptions
方法or属性:numeric?: boolean;|@ohos.intl.d.ts| +|新增|NA|类名:CollatorOptions
方法or属性:caseFirst?: string;|@ohos.intl.d.ts| +|新增|NA|类名:PluralRulesOptions
方法or属性:localeMatcher?: string;|@ohos.intl.d.ts| +|新增|NA|类名:PluralRulesOptions
方法or属性:type?: string;|@ohos.intl.d.ts| +|新增|NA|类名:PluralRulesOptions
方法or属性:minimumIntegerDigits?: number;|@ohos.intl.d.ts| +|新增|NA|类名:PluralRulesOptions
方法or属性:minimumFractionDigits?: number;|@ohos.intl.d.ts| +|新增|NA|类名:PluralRulesOptions
方法or属性:maximumFractionDigits?: number;|@ohos.intl.d.ts| +|新增|NA|类名:PluralRulesOptions
方法or属性:minimumSignificantDigits?: number;|@ohos.intl.d.ts| +|新增|NA|类名:PluralRulesOptions
方法or属性:maximumSignificantDigits?: number;|@ohos.intl.d.ts| +|新增|NA|类名:RelativeTimeFormatInputOptions
方法or属性:localeMatcher?: string;|@ohos.intl.d.ts| +|新增|NA|类名:RelativeTimeFormatInputOptions
方法or属性:numeric?: string;|@ohos.intl.d.ts| +|新增|NA|类名:RelativeTimeFormatInputOptions
方法or属性:style?: string;|@ohos.intl.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getStringValue(resource: Resource, callback: _AsyncCallback\): void;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getStringValue(resource: Resource): Promise\;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getStringArrayValue(resource: Resource, callback: _AsyncCallback\>): void;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getStringArrayValue(resource: Resource): Promise\>;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getMediaContent(resource: Resource, callback: _AsyncCallback\): void;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getMediaContent(resource: Resource): Promise\;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getMediaContentBase64(resource: Resource, callback: _AsyncCallback\): void;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getMediaContentBase64(resource: Resource): Promise\;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getPluralStringValue(resource: Resource, num: number, callback: _AsyncCallback\): void;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getPluralStringValue(resource: Resource, num: number): Promise\;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getStringByName(resName: string, callback: _AsyncCallback\): void;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getStringByName(resName: string): Promise\;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getStringArrayByName(resName: string, callback: _AsyncCallback\>): void;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getStringArrayByName(resName: string): Promise\>;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getMediaByName(resName: string, callback: _AsyncCallback\): void;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getMediaByName(resName: string): Promise\;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getMediaBase64ByName(resName: string, callback: _AsyncCallback\): void;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getMediaBase64ByName(resName: string): Promise\;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getPluralStringByName(resName: string, num: number, callback: _AsyncCallback\): void;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getPluralStringByName(resName: string, num: number): Promise\;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getStringSync(resId: number): string;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getStringSync(resource: Resource): string;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getStringByNameSync(resName: string): string;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getBoolean(resId: number): boolean;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getBoolean(resource: Resource): boolean;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getBooleanByName(resName: string): boolean;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getNumber(resId: number): number;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getNumber(resource: Resource): number;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getNumberByName(resName: string): number;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getStringValue(resId: number, callback: _AsyncCallback\): void;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getStringValue(resId: number): Promise\;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getStringArrayValue(resId: number, callback: _AsyncCallback\>): void;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getStringArrayValue(resId: number): Promise\>;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getPluralStringValue(resId: number, num: number, callback: _AsyncCallback\): void;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getPluralStringValue(resId: number, num: number): Promise\;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getMediaContent(resId: number, callback: _AsyncCallback\): void;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getMediaContent(resId: number): Promise\;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getMediaContentBase64(resId: number, callback: _AsyncCallback\): void;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getMediaContentBase64(resId: number): Promise\;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getRawFileContent(path: string, callback: _AsyncCallback\): void;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getRawFileContent(path: string): Promise\;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getRawFd(path: string, callback: _AsyncCallback\): void;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:getRawFd(path: string): Promise\;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:closeRawFd(path: string, callback: _AsyncCallback\): void;|@ohos.resourceManager.d.ts| +|新增|NA|类名:ResourceManager
方法or属性:closeRawFd(path: string): Promise\;|@ohos.resourceManager.d.ts| +|新增|NA|模块名: resource
类名: Resource|resource.d.ts| +|新增|NA|模块名: resource
类名: Resource
方法 or 属性: bundleName: string;|resource.d.ts| +|新增|NA|模块名: resource
类名: Resource
方法 or 属性: moduleName: string;|resource.d.ts| +|新增|NA|模块名: resource
类名: Resource
方法 or 属性: id: number;|resource.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法 or 属性:function getSystemLanguages(): Array\;|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法 or 属性:function getSystemCountries(language: string): Array\;|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法 or 属性:function isSuggested(language: string, region?: string): boolean;|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法 or 属性:function setSystemLanguage(language: string): boolean;|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法 or 属性:function setSystemRegion(region: string): boolean;|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法 or 属性:function setSystemLocale(locale: string): boolean;|NA|@ohos.i18n.d.ts| +|废弃版本有变化|类名:i18n
方法 or 属性:function getDisplayCountry(country: string, locale: string, sentenceCase?: boolean): string;
废弃版本:N/A|类名:i18n
方法 or 属性:function getDisplayCountry(country: string, locale: string, sentenceCase?: boolean): string;
废弃版本:9
代替接口:ohos.System.getDisplayCountry |@ohos.i18n.d.ts| +|废弃版本有变化|类名:i18n
方法 or 属性:function getDisplayLanguage(language: string, locale: string, sentenceCase?: boolean): string;
废弃版本:N/A|类名:i18n
方法 or 属性:function getDisplayLanguage(language: string, locale: string, sentenceCase?: boolean): string;
废弃版本:9
代替接口:ohos.System.getDisplayLanguage |@ohos.i18n.d.ts| +|废弃版本有变化|类名:i18n
方法 or 属性:function getSystemLanguage(): string;
废弃版本:N/A|类名:i18n
方法 or 属性:function getSystemLanguage(): string;
废弃版本:9
代替接口:ohos.System.getSystemLanguage |@ohos.i18n.d.ts| +|废弃版本有变化|类名:i18n
方法 or 属性:function getSystemRegion(): string;
废弃版本:N/A|类名:i18n
方法 or 属性:function getSystemRegion(): string;
废弃版本:9
代替接口:ohos.System.getSystemRegion |@ohos.i18n.d.ts| +|废弃版本有变化|类名:i18n
方法 or 属性:function getSystemLocale(): string;
废弃版本:N/A|类名:i18n
方法 or 属性:function getSystemLocale(): string;
废弃版本:9
代替接口:ohos.System.getSystemLocale |@ohos.i18n.d.ts| +|废弃版本有变化|类名:Util
废弃版本:N/A|类名:Util
废弃版本:9
代替接口:I18NUtil |@ohos.i18n.d.ts| +|废弃版本有变化|类名:Util
方法 or 属性:unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: number, locale: string, style?: string): string;
废弃版本:N/A|类名:Util
方法 or 属性:unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: number, locale: string, style?: string): string;
废弃版本:9
代替接口:I18NUtil.unitConvert |@ohos.i18n.d.ts| +|废弃版本有变化|类名:Character
废弃版本:N/A|类名:Character
废弃版本:9
代替接口:Unicode |@ohos.i18n.d.ts| +|废弃版本有变化|类名:Character
方法 or 属性:isDigit(char: string): boolean;
废弃版本:N/A|类名:Character
方法 or 属性:isDigit(char: string): boolean;
废弃版本:9
代替接口:Unicode.isDigit |@ohos.i18n.d.ts| +|废弃版本有变化|类名:Character
方法 or 属性:isSpaceChar(char: string): boolean;
废弃版本:N/A|类名:Character
方法 or 属性:isSpaceChar(char: string): boolean;
废弃版本:9
代替接口:Unicode.isSpaceChar |@ohos.i18n.d.ts| +|废弃版本有变化|类名:Character
方法 or 属性:isWhitespace(char: string): boolean;
废弃版本:N/A|类名:Character
方法 or 属性:isWhitespace(char: string): boolean;
废弃版本:9
代替接口:Unicode.isWhitespace |@ohos.i18n.d.ts| +|废弃版本有变化|类名:Character
方法 or 属性:isRTL(char: string): boolean;
废弃版本:N/A|类名:Character
方法 or 属性:isRTL(char: string): boolean;
废弃版本:9
代替接口:Unicode.isRTL |@ohos.i18n.d.ts| +|废弃版本有变化|类名:Character
方法 or 属性:isIdeograph(char: string): boolean;
废弃版本:N/A|类名:Character
方法 or 属性:isIdeograph(char: string): boolean;
废弃版本:9
代替接口:Unicode.isIdeograph |@ohos.i18n.d.ts| +|废弃版本有变化|类名:Character
方法 or 属性:isLetter(char: string): boolean;
废弃版本:N/A|类名:Character
方法 or 属性:isLetter(char: string): boolean;
废弃版本:9
代替接口:Unicode.isLetter |@ohos.i18n.d.ts| +|废弃版本有变化|类名:Character
方法 or 属性:isLowerCase(char: string): boolean;
废弃版本:N/A|类名:Character
方法 or 属性:isLowerCase(char: string): boolean;
废弃版本:9
代替接口:Unicode.isLowerCase |@ohos.i18n.d.ts| +|废弃版本有变化|类名:Character
方法 or 属性:isUpperCase(char: string): boolean;
废弃版本:N/A|类名:Character
方法 or 属性:isUpperCase(char: string): boolean;
废弃版本:9
代替接口:Unicode.isUpperCase |@ohos.i18n.d.ts| +|废弃版本有变化|类名:Character
方法 or 属性:getType(char: string): string;
废弃版本:N/A|类名:Character
方法 or 属性:getType(char: string): string;
废弃版本:9
代替接口:Unicode.getType |@ohos.i18n.d.ts| +|废弃版本有变化|类名:i18n
方法 or 属性:function is24HourClock(): boolean;
废弃版本:N/A|类名:i18n
方法 or 属性:function is24HourClock(): boolean;
废弃版本:9
代替接口:ohos.System.is24HourClock |@ohos.i18n.d.ts| +|废弃版本有变化|类名:i18n
方法 or 属性:function set24HourClock(option: boolean): boolean;
废弃版本:N/A|类名:i18n
方法 or 属性:function set24HourClock(option: boolean): boolean;
废弃版本:9
代替接口:ohos.System.set24HourClock |@ohos.i18n.d.ts| +|废弃版本有变化|类名:i18n
方法 or 属性:function addPreferredLanguage(language: string, index?: number): boolean;
废弃版本:N/A|类名:i18n
方法 or 属性:function addPreferredLanguage(language: string, index?: number): boolean;
废弃版本:9
代替接口:ohos.System.addPreferredLanguage |@ohos.i18n.d.ts| +|废弃版本有变化|类名:i18n
方法 or 属性:function removePreferredLanguage(index: number): boolean;
废弃版本:N/A|类名:i18n
方法 or 属性:function removePreferredLanguage(index: number): boolean;
废弃版本:9
代替接口:ohos.System.removePreferredLanguage |@ohos.i18n.d.ts| +|废弃版本有变化|类名:i18n
方法 or 属性:function getPreferredLanguageList(): Array\;
废弃版本:N/A|类名:i18n
方法 or 属性:function getPreferredLanguageList(): Array\;
废弃版本:9
代替接口:ohos.System.getPreferredLanguageList |@ohos.i18n.d.ts| +|废弃版本有变化|类名:i18n
方法 or 属性:function getFirstPreferredLanguage(): string;
废弃版本:N/A|类名:i18n
方法 or 属性:function getFirstPreferredLanguage(): string;
废弃版本:9
代替接口:ohos.System.getFirstPreferredLanguage |@ohos.i18n.d.ts| +|废弃版本有变化|类名:AsyncCallback
废弃版本:N/A|类名:AsyncCallback
废弃版本:9
代替接口:N/A|@ohos.resourceManager.d.ts| +|废弃版本有变化|类名:ResourceManager
方法 or 属性:getString(resId: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:ResourceManager
方法 or 属性:getString(resId: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.resourceManager.getStringValue |@ohos.resourceManager.d.ts| +|废弃版本有变化|类名:ResourceManager
方法 or 属性:getString(resId: number): Promise\;
废弃版本:N/A|类名:ResourceManager
方法 or 属性:getString(resId: number): Promise\;
废弃版本:9
代替接口:ohos.resourceManager.getStringValue |@ohos.resourceManager.d.ts| +|废弃版本有变化|类名:ResourceManager
方法 or 属性:getStringArray(resId: number, callback: AsyncCallback\>): void;
废弃版本:N/A|类名:ResourceManager
方法 or 属性:getStringArray(resId: number, callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.resourceManager.getStringArrayValue |@ohos.resourceManager.d.ts| +|废弃版本有变化|类名:ResourceManager
方法 or 属性:getStringArray(resId: number): Promise\>;
废弃版本:N/A|类名:ResourceManager
方法 or 属性:getStringArray(resId: number): Promise\>;
废弃版本:9
代替接口:ohos.resourceManager.getStringArrayValue |@ohos.resourceManager.d.ts| +|废弃版本有变化|类名:ResourceManager
方法 or 属性:getMedia(resId: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:ResourceManager
方法 or 属性:getMedia(resId: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.resourceManager.getMediaContent |@ohos.resourceManager.d.ts| +|废弃版本有变化|类名:ResourceManager
方法 or 属性:getMedia(resId: number): Promise\;
废弃版本:N/A|类名:ResourceManager
方法 or 属性:getMedia(resId: number): Promise\;
废弃版本:9
代替接口:ohos.resourceManager.getMediaContent |@ohos.resourceManager.d.ts| +|废弃版本有变化|类名:ResourceManager
方法 or 属性:getMediaBase64(resId: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:ResourceManager
方法 or 属性:getMediaBase64(resId: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.resourceManager.getMediaContentBase64 |@ohos.resourceManager.d.ts| +|废弃版本有变化|类名:ResourceManager
方法 or 属性:getMediaBase64(resId: number): Promise\;
废弃版本:N/A|类名:ResourceManager
方法 or 属性:getMediaBase64(resId: number): Promise\;
废弃版本:9
代替接口:ohos.resourceManager.getMediaContentBase64 |@ohos.resourceManager.d.ts| +|废弃版本有变化|类名:ResourceManager
方法 or 属性:getPluralString(resId: number, num: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:ResourceManager
方法 or 属性:getPluralString(resId: number, num: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.resourceManager.getPluralStringValue |@ohos.resourceManager.d.ts| +|废弃版本有变化|类名:ResourceManager
方法 or 属性:getPluralString(resId: number, num: number): Promise\;
废弃版本:N/A|类名:ResourceManager
方法 or 属性:getPluralString(resId: number, num: number): Promise\;
废弃版本:9
代替接口:ohos.resourceManager.getPluralStringValue |@ohos.resourceManager.d.ts| +|废弃版本有变化|类名:ResourceManager
方法 or 属性:getRawFile(path: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:ResourceManager
方法 or 属性:getRawFile(path: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.resourceManager.getRawFileContent |@ohos.resourceManager.d.ts| +|废弃版本有变化|类名:ResourceManager
方法 or 属性:getRawFile(path: string): Promise\;
废弃版本:N/A|类名:ResourceManager
方法 or 属性:getRawFile(path: string): Promise\;
废弃版本:9
代替接口:ohos.resourceManager.getRawFileContent |@ohos.resourceManager.d.ts| +|废弃版本有变化|类名:ResourceManager
方法 or 属性:getRawFileDescriptor(path: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:ResourceManager
方法 or 属性:getRawFileDescriptor(path: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.resourceManager.getRawFd |@ohos.resourceManager.d.ts| +|废弃版本有变化|类名:ResourceManager
方法 or 属性:getRawFileDescriptor(path: string): Promise\;
废弃版本:N/A|类名:ResourceManager
方法 or 属性:getRawFileDescriptor(path: string): Promise\;
废弃版本:9
代替接口:ohos.resourceManager.getRawFd |@ohos.resourceManager.d.ts| +|废弃版本有变化|类名:ResourceManager
方法 or 属性:closeRawFileDescriptor(path: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:ResourceManager
方法 or 属性:closeRawFileDescriptor(path: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.resourceManager.closeRawFd |@ohos.resourceManager.d.ts| +|废弃版本有变化|类名:ResourceManager
方法 or 属性:closeRawFileDescriptor(path: string): Promise\;
废弃版本:N/A|类名:ResourceManager
方法 or 属性:closeRawFileDescriptor(path: string): Promise\;
废弃版本:9
代替接口:ohos.resourceManager.closeRawFd |@ohos.resourceManager.d.ts| +|起始版本有变化|类名:Character
方法 or 属性:isDigit(char: string): boolean;
起始版本:N/A|类名:Character
方法 or 属性:isDigit(char: string): boolean;
起始版本:8|@ohos.i18n.d.ts| +|起始版本有变化|类名:Character
方法 or 属性:isSpaceChar(char: string): boolean;
起始版本:N/A|类名:Character
方法 or 属性:isSpaceChar(char: string): boolean;
起始版本:8|@ohos.i18n.d.ts| +|起始版本有变化|类名:Character
方法 or 属性:isWhitespace(char: string): boolean;
起始版本:N/A|类名:Character
方法 or 属性:isWhitespace(char: string): boolean;
起始版本:8|@ohos.i18n.d.ts| +|起始版本有变化|类名:Character
方法 or 属性:isRTL(char: string): boolean;
起始版本:N/A|类名:Character
方法 or 属性:isRTL(char: string): boolean;
起始版本:8|@ohos.i18n.d.ts| +|起始版本有变化|类名:Character
方法 or 属性:isIdeograph(char: string): boolean;
起始版本:N/A|类名:Character
方法 or 属性:isIdeograph(char: string): boolean;
起始版本:8|@ohos.i18n.d.ts| +|起始版本有变化|类名:Character
方法 or 属性:isLetter(char: string): boolean;
起始版本:N/A|类名:Character
方法 or 属性:isLetter(char: string): boolean;
起始版本:8|@ohos.i18n.d.ts| +|起始版本有变化|类名:Character
方法 or 属性:isLowerCase(char: string): boolean;
起始版本:N/A|类名:Character
方法 or 属性:isLowerCase(char: string): boolean;
起始版本:8|@ohos.i18n.d.ts| +|起始版本有变化|类名:Character
方法 or 属性:isUpperCase(char: string): boolean;
起始版本:N/A|类名:Character
方法 or 属性:isUpperCase(char: string): boolean;
起始版本:8|@ohos.i18n.d.ts| +|起始版本有变化|类名:Character
方法 or 属性:getType(char: string): string;
起始版本:N/A|类名:Character
方法 or 属性:getType(char: string): string;
起始版本:8|@ohos.i18n.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| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-graphic.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-graphic.md new file mode 100644 index 0000000000000000000000000000000000000000..f5c37b3baf8de599b41a131a45adbff4b01fd8cf --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-graphic.md @@ -0,0 +1,402 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: colorSpaceManager|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: ColorSpace|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: ColorSpace
方法 or 属性: UNKNOWN = 0|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: ColorSpace
方法 or 属性: ADOBE_RGB_1998 = 1|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: ColorSpace
方法 or 属性: DCI_P3 = 2|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: ColorSpace
方法 or 属性: DISPLAY_P3 = 3|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: ColorSpace
方法 or 属性: SRGB = 4|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: ColorSpace
方法 or 属性: CUSTOM = 5|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: ColorSpacePrimaries|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: ColorSpacePrimaries
方法 or 属性: redX: number;|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: ColorSpacePrimaries
方法 or 属性: redY: number;|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: ColorSpacePrimaries
方法 or 属性: greenX: number;|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: ColorSpacePrimaries
方法 or 属性: greenY: number;|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: ColorSpacePrimaries
方法 or 属性: blueX: number;|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: ColorSpacePrimaries
方法 or 属性: blueY: number;|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: ColorSpacePrimaries
方法 or 属性: whitePointX: number;|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: ColorSpacePrimaries
方法 or 属性: whitePointY: number;|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: ColorSpaceManager|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: ColorSpaceManager
方法 or 属性: getColorSpaceName(): ColorSpace;|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: ColorSpaceManager
方法 or 属性: getWhitePoint(): Array\;|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: ColorSpaceManager
方法 or 属性: getGamma(): number;|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: colorSpaceManager
方法 or 属性: function create(colorSpaceName: ColorSpace): ColorSpaceManager;|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|模块名: ohos.graphics.colorSpaceManager
类名: colorSpaceManager
方法 or 属性: function create(primaries: ColorSpacePrimaries, gamma: number): ColorSpaceManager;|@ohos.graphics.colorSpaceManager.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly READ_BUFFER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNPACK_ROW_LENGTH: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNPACK_SKIP_ROWS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNPACK_SKIP_PIXELS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly PACK_ROW_LENGTH: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly PACK_SKIP_ROWS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly PACK_SKIP_PIXELS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COLOR: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DEPTH: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly STENCIL: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGB8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGBA8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGB10_A2: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TEXTURE_BINDING_3D: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNPACK_SKIP_IMAGES: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNPACK_IMAGE_HEIGHT: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TEXTURE_3D: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TEXTURE_WRAP_R: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_3D_TEXTURE_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNSIGNED_INT_2_10_10_10_REV: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_ELEMENTS_VERTICES: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_ELEMENTS_INDICES: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TEXTURE_MIN_LOD: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TEXTURE_MAX_LOD: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TEXTURE_BASE_LEVEL: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TEXTURE_MAX_LEVEL: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MIN: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DEPTH_COMPONENT24: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_TEXTURE_LOD_BIAS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TEXTURE_COMPARE_MODE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TEXTURE_COMPARE_FUNC: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly CURRENT_QUERY: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly QUERY_RESULT: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly QUERY_RESULT_AVAILABLE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly STREAM_READ: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly STREAM_COPY: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly STATIC_READ: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly STATIC_COPY: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DYNAMIC_READ: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DYNAMIC_COPY: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_DRAW_BUFFERS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DRAW_BUFFER0: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DRAW_BUFFER1: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DRAW_BUFFER2: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DRAW_BUFFER3: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DRAW_BUFFER4: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DRAW_BUFFER5: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DRAW_BUFFER6: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DRAW_BUFFER7: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DRAW_BUFFER8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DRAW_BUFFER9: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DRAW_BUFFER10: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DRAW_BUFFER11: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DRAW_BUFFER12: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DRAW_BUFFER13: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DRAW_BUFFER14: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DRAW_BUFFER15: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_VERTEX_UNIFORM_COMPONENTS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly SAMPLER_3D: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly SAMPLER_2D_SHADOW: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly FRAGMENT_SHADER_DERIVATIVE_HINT: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly PIXEL_PACK_BUFFER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly PIXEL_UNPACK_BUFFER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly PIXEL_PACK_BUFFER_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly PIXEL_UNPACK_BUFFER_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly FLOAT_MAT2x3: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly FLOAT_MAT2x4: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly FLOAT_MAT3x2: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly FLOAT_MAT3x4: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly FLOAT_MAT4x2: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly FLOAT_MAT4x3: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly SRGB: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly SRGB8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly SRGB8_ALPHA8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COMPARE_REF_TO_TEXTURE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGBA32F: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGB32F: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGBA16F: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGB16F: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly VERTEX_ATTRIB_ARRAY_INTEGER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_ARRAY_TEXTURE_LAYERS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MIN_PROGRAM_TEXEL_OFFSET: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_PROGRAM_TEXEL_OFFSET: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_VARYING_COMPONENTS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TEXTURE_2D_ARRAY: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TEXTURE_BINDING_2D_ARRAY: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly R11F_G11F_B10F: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNSIGNED_INT_10F_11F_11F_REV: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGB9_E5: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNSIGNED_INT_5_9_9_9_REV: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TRANSFORM_FEEDBACK_BUFFER_MODE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TRANSFORM_FEEDBACK_VARYINGS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TRANSFORM_FEEDBACK_BUFFER_START: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RASTERIZER_DISCARD: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly INTERLEAVED_ATTRIBS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly SEPARATE_ATTRIBS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TRANSFORM_FEEDBACK_BUFFER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGBA32UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGB32UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGBA16UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGB16UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGBA8UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGB8UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGBA32I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGB32I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGBA16I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGB16I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGBA8I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGB8I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RED_INTEGER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGB_INTEGER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGBA_INTEGER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly SAMPLER_2D_ARRAY: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly SAMPLER_2D_ARRAY_SHADOW: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly SAMPLER_CUBE_SHADOW: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNSIGNED_INT_VEC2: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNSIGNED_INT_VEC3: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNSIGNED_INT_VEC4: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly INT_SAMPLER_2D: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly INT_SAMPLER_3D: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly INT_SAMPLER_CUBE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly INT_SAMPLER_2D_ARRAY: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNSIGNED_INT_SAMPLER_2D: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNSIGNED_INT_SAMPLER_3D: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNSIGNED_INT_SAMPLER_CUBE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DEPTH_COMPONENT32F: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DEPTH32F_STENCIL8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly FLOAT_32_UNSIGNED_INT_24_8_REV: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly FRAMEBUFFER_DEFAULT: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNSIGNED_INT_24_8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DEPTH24_STENCIL8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNSIGNED_NORMALIZED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DRAW_FRAMEBUFFER_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly READ_FRAMEBUFFER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly DRAW_FRAMEBUFFER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly READ_FRAMEBUFFER_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RENDERBUFFER_SAMPLES: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_COLOR_ATTACHMENTS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COLOR_ATTACHMENT1: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COLOR_ATTACHMENT2: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COLOR_ATTACHMENT3: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COLOR_ATTACHMENT4: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COLOR_ATTACHMENT5: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COLOR_ATTACHMENT6: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COLOR_ATTACHMENT7: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COLOR_ATTACHMENT8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COLOR_ATTACHMENT9: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COLOR_ATTACHMENT10: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COLOR_ATTACHMENT11: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COLOR_ATTACHMENT12: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COLOR_ATTACHMENT13: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COLOR_ATTACHMENT14: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COLOR_ATTACHMENT15: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_SAMPLES: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly HALF_FLOAT: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RG: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RG_INTEGER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly R8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RG8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly R16F: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly R32F: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RG16F: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RG32F: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly R8I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly R8UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly R16I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly R16UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly R32I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly R32UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RG8I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RG8UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RG16I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RG16UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RG32I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RG32UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly VERTEX_ARRAY_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly R8_SNORM: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RG8_SNORM: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGB8_SNORM: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGBA8_SNORM: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly SIGNED_NORMALIZED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COPY_READ_BUFFER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COPY_WRITE_BUFFER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COPY_READ_BUFFER_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly COPY_WRITE_BUFFER_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNIFORM_BUFFER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNIFORM_BUFFER_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNIFORM_BUFFER_START: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNIFORM_BUFFER_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_VERTEX_UNIFORM_BLOCKS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_FRAGMENT_UNIFORM_BLOCKS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_COMBINED_UNIFORM_BLOCKS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_UNIFORM_BUFFER_BINDINGS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_UNIFORM_BLOCK_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly ACTIVE_UNIFORM_BLOCKS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNIFORM_TYPE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNIFORM_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNIFORM_BLOCK_INDEX: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNIFORM_OFFSET: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNIFORM_ARRAY_STRIDE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNIFORM_MATRIX_STRIDE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNIFORM_IS_ROW_MAJOR: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNIFORM_BLOCK_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNIFORM_BLOCK_DATA_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly INVALID_INDEX: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_VERTEX_OUTPUT_COMPONENTS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_FRAGMENT_INPUT_COMPONENTS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_SERVER_WAIT_TIMEOUT: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly OBJECT_TYPE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly SYNC_CONDITION: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly SYNC_STATUS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly SYNC_FLAGS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly SYNC_FENCE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly SYNC_GPU_COMMANDS_COMPLETE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly UNSIGNALED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly SIGNALED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly ALREADY_SIGNALED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TIMEOUT_EXPIRED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly CONDITION_SATISFIED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly WAIT_FAILED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly SYNC_FLUSH_COMMANDS_BIT: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly VERTEX_ATTRIB_ARRAY_DIVISOR: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly ANY_SAMPLES_PASSED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly ANY_SAMPLES_PASSED_CONSERVATIVE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly SAMPLER_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly RGB10_A2UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly INT_2_10_10_10_REV: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TRANSFORM_FEEDBACK: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TRANSFORM_FEEDBACK_PAUSED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TRANSFORM_FEEDBACK_ACTIVE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TRANSFORM_FEEDBACK_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TEXTURE_IMMUTABLE_FORMAT: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_ELEMENT_INDEX: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly TEXTURE_IMMUTABLE_LEVELS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性:readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: webgl.GLenum;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextBase
方法or属性: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|类名:WebGL2RenderingContextBase
方法or属性: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|类名:WebGL2RenderingContextBase
方法or属性: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|类名:WebGL2RenderingContextBase
方法or属性: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|类名:WebGL2RenderingContextBase
方法or属性: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|类名:WebGL2RenderingContextBase
方法or属性: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|类名:WebGL2RenderingContextBase
方法or属性: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|类名:WebGL2RenderingContextBase
方法or属性: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|类名:WebGL2RenderingContextBase
方法or属性: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|类名:WebGL2RenderingContextBase
方法or属性: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|类名:WebGL2RenderingContextBase
方法or属性: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|类名:WebGL2RenderingContextOverloads
方法or属性:bufferData(target: webgl.GLenum, size: webgl.GLsizeiptr, usage: webgl.GLenum): void;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextOverloads
方法or属性:bufferData(target: webgl.GLenum, srcData: BufferSource \| null, usage: webgl.GLenum): void;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextOverloads
方法or属性:bufferSubData(target: webgl.GLenum, dstByteOffset: webgl.GLintptr, srcData: BufferSource): void;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextOverloads
方法or属性:bufferData(target: webgl.GLenum, srcData: ArrayBufferView, usage: webgl.GLenum, srcOffset: webgl.GLuint, length?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextOverloads
方法or属性:bufferSubData(target: webgl.GLenum, dstByteOffset: webgl.GLintptr, srcData: ArrayBufferView, srcOffset: webgl.GLuint, length?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextOverloads
方法or属性: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|类名:WebGL2RenderingContextOverloads
方法or属性:texImage2D(target: webgl.GLenum, level: webgl.GLint, internalformat: webgl.GLint, format: webgl.GLenum, type: webgl.GLenum, source: webgl.TexImageSource): void;|webgl2.d.ts| +|新增|NA|类名:WebGL2RenderingContextOverloads
方法or属性: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|类名:WebGL2RenderingContextOverloads
方法or属性: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|类名:WebGL2RenderingContextOverloads
方法or属性: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|类名:WebGL2RenderingContextOverloads
方法or属性: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|类名:WebGL2RenderingContextOverloads
方法or属性: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|类名:WebGL2RenderingContextOverloads
方法or属性: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|类名:WebGL2RenderingContextOverloads
方法or属性: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|类名:WebGL2RenderingContextOverloads
方法or属性: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|类名:WebGL2RenderingContextOverloads
方法or属性: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|类名:WebGL2RenderingContextOverloads
方法or属性: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|类名:WebGL2RenderingContextOverloads
方法or属性: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|类名:WebGL2RenderingContextOverloads
方法or属性: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|类名:WebGL2RenderingContextOverloads
方法or属性: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|类名:WebGL2RenderingContextOverloads
方法or属性: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|类名:WebGL2RenderingContextOverloads
方法or属性: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| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:copyBufferSubData(readTarget: webgl.GLenum, writeTarget: webgl.GLenum, readOffset: webgl.GLintptr, writeOffset: webgl.GLintptr, size: webgl.GLsizeiptr): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:getBufferSubData(target: webgl.GLenum, srcByteOffset: webgl.GLintptr, dstBuffer: ArrayBufferView, dstOffset?: webgl.GLuint, length?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
|类名:WebGL2RenderingContextBase
方法 or 属性: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| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture \| null, level: GLint, layer: GLint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:framebufferTextureLayer(target: webgl.GLenum, attachment: webgl.GLenum, texture: webgl.WebGLTexture \| null, level: webgl.GLint, layer: webgl.GLint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:invalidateFramebuffer(target: webgl.GLenum, attachments: webgl.GLenum[]): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:invalidateSubFramebuffer(target: webgl.GLenum, attachments: webgl.GLenum[], x: webgl.GLint, y: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:readBuffer(src: GLenum): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:readBuffer(src: webgl.GLenum): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
|类名:WebGL2RenderingContextBase
方法 or 属性:getInternalformatParameter(target: webgl.GLenum, internalformat: webgl.GLenum, pname: webgl.GLenum): any;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:renderbufferStorageMultisample(target: webgl.GLenum, samples: webgl.GLsizei, internalformat: webgl.GLenum, width: webgl.GLsizei, height: webgl.GLsizei): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:texStorage2D(target: webgl.GLenum, levels: webgl.GLsizei, internalformat: webgl.GLenum, width: webgl.GLsizei, height: webgl.GLsizei): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:texStorage3D(target: webgl.GLenum, levels: webgl.GLsizei, internalformat: webgl.GLenum, width: webgl.GLsizei, height: webgl.GLsizei, depth: webgl.GLsizei): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|类名:WebGL2RenderingContextBase
方法 or 属性: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| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:getFragDataLocation(program: WebGLProgram, name: string): GLint;
|类名:WebGL2RenderingContextBase
方法 or 属性:getFragDataLocation(program: webgl.WebGLProgram, name: string): webgl.GLint;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:uniform1ui(location: WebGLUniformLocation \| null, v0: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:uniform1ui(location: webgl.WebGLUniformLocation \| null, v0: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:uniform2ui(location: WebGLUniformLocation \| null, v0: GLuint, v1: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:uniform2ui(location: webgl.WebGLUniformLocation \| null, v0: webgl.GLuint, v1: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:uniform3ui(location: WebGLUniformLocation \| null, v0: GLuint, v1: GLuint, v2: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:uniform3ui(location: webgl.WebGLUniformLocation \| null, v0: webgl.GLuint, v1: webgl.GLuint, v2: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:uniform4ui(location: WebGLUniformLocation \| null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:uniform4ui(location: webgl.WebGLUniformLocation \| null, v0: webgl.GLuint, v1: webgl.GLuint, v2: webgl.GLuint, v3: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:uniform1uiv(location: WebGLUniformLocation \| null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:uniform1uiv(location: webgl.WebGLUniformLocation \| null, data: Uint32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:uniform2uiv(location: WebGLUniformLocation \| null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:uniform2uiv(location: webgl.WebGLUniformLocation \| null, data: Uint32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:uniform3uiv(location: WebGLUniformLocation \| null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:uniform3uiv(location: webgl.WebGLUniformLocation \| null, data: Uint32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:uniform4uiv(location: WebGLUniformLocation \| null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:uniform4uiv(location: webgl.WebGLUniformLocation \| null, data: Uint32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:uniformMatrix3x2fv(location: WebGLUniformLocation \| null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:uniformMatrix3x2fv(location: webgl.WebGLUniformLocation \| null, transpose: webgl.GLboolean, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:uniformMatrix4x2fv(location: WebGLUniformLocation \| null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:uniformMatrix4x2fv(location: webgl.WebGLUniformLocation \| null, transpose: webgl.GLboolean, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:uniformMatrix2x3fv(location: WebGLUniformLocation \| null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:uniformMatrix2x3fv(location: webgl.WebGLUniformLocation \| null, transpose: webgl.GLboolean, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:uniformMatrix4x3fv(location: WebGLUniformLocation \| null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:uniformMatrix4x3fv(location: webgl.WebGLUniformLocation \| null, transpose: webgl.GLboolean, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:uniformMatrix2x4fv(location: WebGLUniformLocation \| null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:uniformMatrix2x4fv(location: webgl.WebGLUniformLocation \| null, transpose: webgl.GLboolean, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:uniformMatrix3x4fv(location: WebGLUniformLocation \| null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:uniformMatrix3x4fv(location: webgl.WebGLUniformLocation \| null, transpose: webgl.GLboolean, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:vertexAttribI4i(index: webgl.GLuint, x: webgl.GLint, y: webgl.GLint, z: webgl.GLint, w: webgl.GLint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:vertexAttribI4iv(index: GLuint, values: Int32List): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:vertexAttribI4iv(index: webgl.GLuint, values: webgl.Int32List): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:vertexAttribI4ui(index: webgl.GLuint, x: webgl.GLuint, y: webgl.GLuint, z: webgl.GLuint, w: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:vertexAttribI4uiv(index: webgl.GLuint, values: Uint32List): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:vertexAttribIPointer(index: webgl.GLuint, size: webgl.GLint, type: webgl.GLenum, stride: webgl.GLsizei, offset: webgl.GLintptr): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:vertexAttribDivisor(index: webgl.GLuint, divisor: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:drawArraysInstanced(mode: webgl.GLenum, first: webgl.GLint, count: webgl.GLsizei, instanceCount: webgl.GLsizei): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:drawElementsInstanced(mode: webgl.GLenum, count: webgl.GLsizei, type: webgl.GLenum, offset: webgl.GLintptr, instanceCount: webgl.GLsizei): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:drawRangeElements(mode: webgl.GLenum, start: webgl.GLuint, end: webgl.GLuint, count: webgl.GLsizei, type: webgl.GLenum, offset: webgl.GLintptr): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:drawBuffers(buffers: GLenum[]): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:drawBuffers(buffers: webgl.GLenum[]): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:clearBufferfv(buffer: webgl.GLenum, drawbuffer: webgl.GLint, values: webgl.Float32List, srcOffset?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:clearBufferiv(buffer: webgl.GLenum, drawbuffer: webgl.GLint, values: webgl.Int32List, srcOffset?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:clearBufferuiv(buffer: webgl.GLenum, drawbuffer: webgl.GLint, values: Uint32List, srcOffset?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:clearBufferfi(buffer: webgl.GLenum, drawbuffer: webgl.GLint, depth: webgl.GLfloat, stencil: webgl.GLint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:isQuery(query: WebGLQuery \| null): GLboolean;
|类名:WebGL2RenderingContextBase
方法 or 属性:isQuery(query: WebGLQuery \| null): webgl.GLboolean;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:beginQuery(target: GLenum, query: WebGLQuery): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:beginQuery(target: webgl.GLenum, query: WebGLQuery): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:endQuery(target: GLenum): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:endQuery(target: webgl.GLenum): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:getQuery(target: GLenum, pname: GLenum): WebGLQuery \| null;
|类名:WebGL2RenderingContextBase
方法 or 属性:getQuery(target: webgl.GLenum, pname: webgl.GLenum): WebGLQuery \| null;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:getQueryParameter(query: WebGLQuery, pname: GLenum): any;
|类名:WebGL2RenderingContextBase
方法 or 属性:getQueryParameter(query: WebGLQuery, pname: webgl.GLenum): any;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:isSampler(sampler: WebGLSampler \| null): GLboolean;
|类名:WebGL2RenderingContextBase
方法 or 属性:isSampler(sampler: WebGLSampler \| null): webgl.GLboolean;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:bindSampler(unit: GLuint, sampler: WebGLSampler \| null): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:bindSampler(unit: webgl.GLuint, sampler: WebGLSampler \| null): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:samplerParameteri(sampler: WebGLSampler, pname: webgl.GLenum, param: webgl.GLint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:samplerParameterf(sampler: WebGLSampler, pname: webgl.GLenum, param: webgl.GLfloat): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
|类名:WebGL2RenderingContextBase
方法 or 属性:getSamplerParameter(sampler: WebGLSampler, pname: webgl.GLenum): any;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync \| null;
|类名:WebGL2RenderingContextBase
方法 or 属性:fenceSync(condition: webgl.GLenum, flags: webgl.GLbitfield): WebGLSync \| null;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:isSync(sync: WebGLSync \| null): GLboolean;
|类名:WebGL2RenderingContextBase
方法 or 属性:isSync(sync: WebGLSync \| null): webgl.GLboolean;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
|类名:WebGL2RenderingContextBase
方法 or 属性:clientWaitSync(sync: WebGLSync, flags: webgl.GLbitfield, timeout: GLuint64 ): webgl.GLenum;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:waitSync(sync: WebGLSync, flags: webgl.GLbitfield, timeout: GLint64): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:getSyncParameter(sync: WebGLSync, pname: GLenum): any;
|类名:WebGL2RenderingContextBase
方法 or 属性:getSyncParameter(sync: WebGLSync, pname: webgl.GLenum): any;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:isTransformFeedback(tf: WebGLTransformFeedback \| null): GLboolean;
|类名:WebGL2RenderingContextBase
方法 or 属性:isTransformFeedback(tf: WebGLTransformFeedback \| null): webgl.GLboolean;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback \| null): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:bindTransformFeedback(target: webgl.GLenum, tf: WebGLTransformFeedback \| null): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:beginTransformFeedback(primitiveMode: GLenum): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:beginTransformFeedback(primitiveMode: webgl.GLenum): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:transformFeedbackVaryings(program: webgl.WebGLProgram, varyings: string[], bufferMode: webgl.GLenum): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo \| null;
|类名:WebGL2RenderingContextBase
方法 or 属性:getTransformFeedbackVarying(program: webgl.WebGLProgram, index: webgl.GLuint): webgl.WebGLActiveInfo \| null;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer \| null): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:bindBufferBase(target: webgl.GLenum, index: webgl.GLuint, buffer: webgl.WebGLBuffer \| null): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer \| null, offset: GLintptr, size: GLsizeiptr): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:bindBufferRange(target: webgl.GLenum, index: webgl.GLuint, buffer: webgl.WebGLBuffer \| null, offset: webgl.GLintptr, size: webgl.GLsizeiptr): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:getIndexedParameter(target: GLenum, index: GLuint): any;
|类名:WebGL2RenderingContextBase
方法 or 属性:getIndexedParameter(target: webgl.GLenum, index: webgl.GLuint): any;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] \| null;
|类名:WebGL2RenderingContextBase
方法 or 属性:getUniformIndices(program: webgl.WebGLProgram, uniformNames: string[]): webgl.GLuint[] \| null;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
|类名:WebGL2RenderingContextBase
方法 or 属性:getActiveUniforms(program: webgl.WebGLProgram, uniformIndices: webgl.GLuint[], pname: webgl.GLenum): any;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
|类名:WebGL2RenderingContextBase
方法 or 属性:getUniformBlockIndex(program: webgl.WebGLProgram, uniformBlockName: string): webgl.GLuint;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
|类名:WebGL2RenderingContextBase
方法 or 属性:getActiveUniformBlockParameter(program: webgl.WebGLProgram, uniformBlockIndex: webgl.GLuint, pname: webgl.GLenum): any;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string \| null;
|类名:WebGL2RenderingContextBase
方法 or 属性:getActiveUniformBlockName(program: webgl.WebGLProgram, uniformBlockIndex: webgl.GLuint): string \| null;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
|类名:WebGL2RenderingContextBase
方法 or 属性:uniformBlockBinding(program: webgl.WebGLProgram, uniformBlockIndex: webgl.GLuint, uniformBlockBinding: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextBase
方法 or 属性:isVertexArray(vertexArray: WebGLVertexArrayObject \| null): GLboolean;
|类名:WebGL2RenderingContextBase
方法 or 属性:isVertexArray(vertexArray: WebGLVertexArrayObject \| null): webgl.GLboolean;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniform1fv(location: WebGLUniformLocation \| null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniform1fv(location: webgl.WebGLUniformLocation \| null, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniform2fv(location: WebGLUniformLocation \| null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniform2fv(location: webgl.WebGLUniformLocation \| null, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniform3fv(location: WebGLUniformLocation \| null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniform3fv(location: webgl.WebGLUniformLocation \| null, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniform4fv(location: WebGLUniformLocation \| null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniform4fv(location: webgl.WebGLUniformLocation \| null, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniform1iv(location: WebGLUniformLocation \| null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniform1iv(location: webgl.WebGLUniformLocation \| null, data: webgl.Int32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniform2iv(location: WebGLUniformLocation \| null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniform2iv(location: webgl.WebGLUniformLocation \| null, data: webgl.Int32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniform3iv(location: WebGLUniformLocation \| null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniform3iv(location: webgl.WebGLUniformLocation \| null, data: webgl.Int32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniform4iv(location: WebGLUniformLocation \| null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniform4iv(location: webgl.WebGLUniformLocation \| null, data: webgl.Int32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniformMatrix2fv(location: WebGLUniformLocation \| null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniformMatrix2fv(location: webgl.WebGLUniformLocation \| null, transpose: webgl.GLboolean, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniformMatrix3fv(location: WebGLUniformLocation \| null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniformMatrix3fv(location: webgl.WebGLUniformLocation \| null, transpose: webgl.GLboolean, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| +|函数有变化|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniformMatrix4fv(location: WebGLUniformLocation \| null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|类名:WebGL2RenderingContextOverloads
方法 or 属性:uniformMatrix4fv(location: webgl.WebGLUniformLocation \| null, transpose: webgl.GLboolean, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;
|webgl2.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-misc.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-misc.md new file mode 100644 index 0000000000000000000000000000000000000000..8fe5ac12d6d69f227f9ce9387b2a91c1f56ff291 --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-misc.md @@ -0,0 +1,622 @@ +| 操作 | 旧版本 | 新版本 | 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|类名:pasteboard
方法or属性:const MIMETYPE_PIXELMAP: string;|@ohos.pasteboard.d.ts| +|新增|NA|类名:pasteboard
方法or属性:function createData(mimeType: string, value: ValueType): PasteData;|@ohos.pasteboard.d.ts| +|新增|NA|类名:pasteboard
方法or属性:function createRecord(mimeType: string, value: ValueType): PasteDataRecord;|@ohos.pasteboard.d.ts| +|新增|NA|模块名: ohos.pasteboard
类名: ShareOption|@ohos.pasteboard.d.ts| +|新增|NA|类名:ShareOption
方法or属性:|@ohos.pasteboard.d.ts| +|新增|NA|模块名: ohos.pasteboard
类名: ShareOption
方法 or 属性:INAPP|@ohos.pasteboard.d.ts| +|新增|NA|类名:ShareOption
方法or属性:INAPP|@ohos.pasteboard.d.ts| +|新增|NA|模块名: ohos.pasteboard
类名: ShareOption
方法 or 属性:LOCALDEVICE|@ohos.pasteboard.d.ts| +|新增|NA|类名:ShareOption
方法or属性:LOCALDEVICE|@ohos.pasteboard.d.ts| +|新增|NA|模块名: ohos.pasteboard
类名: ShareOption
方法 or 属性:CROSSDEVICE|@ohos.pasteboard.d.ts| +|新增|NA|类名:ShareOption
方法or属性:CROSSDEVICE|@ohos.pasteboard.d.ts| +|新增|NA|模块名: ohos.pasteboard
类名: PasteDataProperty
方法 or 属性:shareOption: ShareOption;|@ohos.pasteboard.d.ts| +|新增|NA|类名:PasteDataProperty
方法or属性:shareOption: ShareOption;|@ohos.pasteboard.d.ts| +|新增|NA|类名:PasteDataRecord
方法or属性:pixelMap: image.PixelMap;|@ohos.pasteboard.d.ts| +|新增|NA|类名:PasteDataRecord
方法or属性:data: {

[mimeType: string]: ArrayBuffer

}|@ohos.pasteboard.d.ts| +|新增|NA|类名:PasteDataRecord
方法or属性:toPlainText(): string;|@ohos.pasteboard.d.ts| +|新增|NA|类名:PasteData
方法or属性:addRecord(mimeType: string, value: ValueType): void;|@ohos.pasteboard.d.ts| +|新增|NA|类名:PasteData
方法or属性:getPrimaryPixelMap(): image.PixelMap;|@ohos.pasteboard.d.ts| +|新增|NA|类名:PasteData
方法or属性:setProperty(property: PasteDataProperty): void;|@ohos.pasteboard.d.ts| +|新增|NA|类名:PasteData
方法or属性:getRecord(index: number): PasteDataRecord;|@ohos.pasteboard.d.ts| +|新增|NA|类名:PasteData
方法or属性:hasType(mimeType: string): boolean;|@ohos.pasteboard.d.ts| +|新增|NA|类名:PasteData
方法or属性:removeRecord(index: number): void;|@ohos.pasteboard.d.ts| +|新增|NA|类名:PasteData
方法or属性:replaceRecord(index: number, record: PasteDataRecord): void;|@ohos.pasteboard.d.ts| +|新增|NA|类名:SystemPasteboard
方法or属性:clearData(callback: AsyncCallback\): void;|@ohos.pasteboard.d.ts| +|新增|NA|类名:SystemPasteboard
方法or属性:clearData(): Promise\;|@ohos.pasteboard.d.ts| +|新增|NA|类名:SystemPasteboard
方法or属性:getData(callback: AsyncCallback\): void;|@ohos.pasteboard.d.ts| +|新增|NA|类名:SystemPasteboard
方法or属性:getData(): Promise\;|@ohos.pasteboard.d.ts| +|新增|NA|类名:SystemPasteboard
方法or属性:hasData(callback: AsyncCallback\): void;|@ohos.pasteboard.d.ts| +|新增|NA|类名:SystemPasteboard
方法or属性:hasData(): Promise\;|@ohos.pasteboard.d.ts| +|新增|NA|类名:SystemPasteboard
方法or属性:setData(data: PasteData, callback: AsyncCallback\): void;|@ohos.pasteboard.d.ts| +|新增|NA|类名:SystemPasteboard
方法or属性:setData(data: PasteData): Promise\;|@ohos.pasteboard.d.ts| +|新增|NA|类名:request
方法or属性:const EXCEPTION_PERMISSION: number;|@ohos.request.d.ts| +|新增|NA|类名:request
方法or属性:const EXCEPTION_PARAMCHECK: number;|@ohos.request.d.ts| +|新增|NA|类名:request
方法or属性:const EXCEPTION_UNSUPPORTED: number;|@ohos.request.d.ts| +|新增|NA|类名:request
方法or属性:const EXCEPTION_FILEIO: number;|@ohos.request.d.ts| +|新增|NA|类名:request
方法or属性:const EXCEPTION_FILEPATH: number;|@ohos.request.d.ts| +|新增|NA|类名:request
方法or属性:const EXCEPTION_SERVICE: number;|@ohos.request.d.ts| +|新增|NA|类名:request
方法or属性:const EXCEPTION_OTHERS: number;|@ohos.request.d.ts| +|新增|NA|类名:request
方法or属性:const ERROR_OFFLINE: number;|@ohos.request.d.ts| +|新增|NA|类名:request
方法or属性:const ERROR_UNSUPPORTED_NETWORK_TYPE: number;|@ohos.request.d.ts| +|新增|NA|类名:request
方法or属性:const PAUSED_BY_USER: number;|@ohos.request.d.ts| +|新增|NA|类名:request
方法or属性:function downloadFile(context: BaseContext, config: DownloadConfig, callback: AsyncCallback\): void;|@ohos.request.d.ts| +|新增|NA|类名:request
方法or属性:function downloadFile(context: BaseContext, config: DownloadConfig): Promise\;|@ohos.request.d.ts| +|新增|NA|类名:request
方法or属性:function uploadFile(context: BaseContext, config: UploadConfig, callback: AsyncCallback\): void;|@ohos.request.d.ts| +|新增|NA|类名:request
方法or属性:function uploadFile(context: BaseContext, config: UploadConfig): Promise\;|@ohos.request.d.ts| +|新增|NA|模块名: ohos.request
类名: DownloadConfig
方法 or 属性:background?: boolean;|@ohos.request.d.ts| +|新增|NA|类名:DownloadConfig
方法or属性:background?: boolean;|@ohos.request.d.ts| +|新增|NA|类名:DownloadTask
方法or属性:delete(callback: AsyncCallback\): void;|@ohos.request.d.ts| +|新增|NA|类名:DownloadTask
方法or属性:delete(): Promise\;|@ohos.request.d.ts| +|新增|NA|类名:DownloadTask
方法or属性:suspend(callback: AsyncCallback\): void;|@ohos.request.d.ts| +|新增|NA|类名:DownloadTask
方法or属性:suspend(): Promise\;|@ohos.request.d.ts| +|新增|NA|类名:DownloadTask
方法or属性:restore(callback: AsyncCallback\): void;|@ohos.request.d.ts| +|新增|NA|类名:DownloadTask
方法or属性:restore(): Promise\;|@ohos.request.d.ts| +|新增|NA|类名:DownloadTask
方法or属性:getTaskInfo(callback: AsyncCallback\): void;|@ohos.request.d.ts| +|新增|NA|类名:DownloadTask
方法or属性:getTaskInfo(): Promise\;|@ohos.request.d.ts| +|新增|NA|类名:DownloadTask
方法or属性:getTaskMimeType(callback: AsyncCallback\): void;|@ohos.request.d.ts| +|新增|NA|类名:DownloadTask
方法or属性:getTaskMimeType(): Promise\;|@ohos.request.d.ts| +|新增|NA|模块名: ohos.request
类名: TaskState|@ohos.request.d.ts| +|新增|NA|类名:TaskState
方法or属性:|@ohos.request.d.ts| +|新增|NA|模块名: ohos.request
类名: TaskState
方法 or 属性:path: string;|@ohos.request.d.ts| +|新增|NA|类名:TaskState
方法or属性:path: string;|@ohos.request.d.ts| +|新增|NA|模块名: ohos.request
类名: TaskState
方法 or 属性:responseCode: number;|@ohos.request.d.ts| +|新增|NA|类名:TaskState
方法or属性:responseCode: number;|@ohos.request.d.ts| +|新增|NA|模块名: ohos.request
类名: TaskState
方法 or 属性:message: string;|@ohos.request.d.ts| +|新增|NA|类名:TaskState
方法or属性:message: string;|@ohos.request.d.ts| +|新增|NA|类名:UploadTask
方法or属性:on(type:'complete' \| 'fail', callback: Callback\>): void;|@ohos.request.d.ts| +|新增|NA|类名:UploadTask
方法or属性:on(type:'complete' \| 'fail', callback: Callback\>): void;|@ohos.request.d.ts| +|新增|NA|类名:UploadTask
方法or属性:off(type:'complete' \| 'fail', callback?: Callback\>): void;|@ohos.request.d.ts| +|新增|NA|类名:UploadTask
方法or属性:off(type:'complete' \| 'fail', callback?: Callback\>): void;|@ohos.request.d.ts| +|新增|NA|类名:UploadTask
方法or属性:delete(callback: AsyncCallback\): void;|@ohos.request.d.ts| +|新增|NA|类名:UploadTask
方法or属性:delete(): Promise\;|@ohos.request.d.ts| +|新增|NA|模块名: ohos.screenLock
类名: EventType
方法 or 属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|类名:EventType
方法or属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|模块名: ohos.screenLock
类名: EventType
方法 or 属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|类名:EventType
方法or属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|模块名: ohos.screenLock
类名: EventType
方法 or 属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|类名:EventType
方法or属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|模块名: ohos.screenLock
类名: EventType
方法 or 属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|类名:EventType
方法or属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|模块名: ohos.screenLock
类名: EventType
方法 or 属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|类名:EventType
方法or属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|模块名: ohos.screenLock
类名: EventType
方法 or 属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|类名:EventType
方法or属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|模块名: ohos.screenLock
类名: EventType
方法 or 属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|类名:EventType
方法or属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|模块名: ohos.screenLock
类名: EventType
方法 or 属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|类名:EventType
方法or属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|模块名: ohos.screenLock
类名: EventType
方法 or 属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|类名:EventType
方法or属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|模块名: ohos.screenLock
类名: EventType
方法 or 属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|类名:EventType
方法or属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|模块名: ohos.screenLock
类名: EventType
方法 or 属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|类名:EventType
方法or属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|模块名: ohos.screenLock
类名: EventType
方法 or 属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|类名:EventType
方法or属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|模块名: ohos.screenLock
类名: EventType
方法 or 属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|类名:EventType
方法or属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|模块名: ohos.screenLock
类名: EventType
方法 or 属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|类名:EventType
方法or属性:type EventType =

'beginWakeUp'

\| 'endWakeUp'

\| 'beginScreenOn'

\| 'endScreenOn'

\| 'beginScreenOff'

\| 'endScreenOff'

\| 'unlockScreen'

\| 'lockScreen'

\| 'beginExitAnimation'

\| 'beginSleep'

\| 'endSleep'

\| 'changeUser'

\| 'screenlockEnabled'

\| 'serviceRestart'|@ohos.screenLock.d.ts| +|新增|NA|类名:screenLock
方法or属性:function isLocked(): boolean;|@ohos.screenLock.d.ts| +|新增|NA|类名:screenLock
方法or属性:function unlock(callback: AsyncCallback\): void;|@ohos.screenLock.d.ts| +|新增|NA|类名:screenLock
方法or属性:function unlock():Promise\;|@ohos.screenLock.d.ts| +|新增|NA|类名:screenLock
方法or属性:function lock(callback: AsyncCallback\): void;|@ohos.screenLock.d.ts| +|新增|NA|类名:screenLock
方法or属性:function lock():Promise\;|@ohos.screenLock.d.ts| +|新增|NA|模块名: ohos.screenLock
类名: SystemEvent|@ohos.screenLock.d.ts| +|新增|NA|类名:SystemEvent
方法or属性:|@ohos.screenLock.d.ts| +|新增|NA|模块名: ohos.screenLock
类名: SystemEvent
方法 or 属性:eventType: EventType,|@ohos.screenLock.d.ts| +|新增|NA|类名:SystemEvent
方法or属性:eventType: EventType,|@ohos.screenLock.d.ts| +|新增|NA|模块名: ohos.screenLock
类名: SystemEvent
方法 or 属性:params: string|@ohos.screenLock.d.ts| +|新增|NA|类名:SystemEvent
方法or属性:params: string|@ohos.screenLock.d.ts| +|新增|NA|类名:screenLock
方法or属性:function onSystemEvent(callback: Callback\): boolean;|@ohos.screenLock.d.ts| +|新增|NA|类名:screenLock
方法or属性:function sendScreenLockEvent(event: String, parameter: number, callback: AsyncCallback\): void;|@ohos.screenLock.d.ts| +|新增|NA|类名:screenLock
方法or属性:function sendScreenLockEvent(event: String, parameter: number): Promise\;|@ohos.screenLock.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| +|新增|NA|类名:wallpaper
方法or属性:function getColorsSync(wallpaperType: WallpaperType): Array\;|@ohos.wallpaper.d.ts| +|新增|NA|类名:wallpaper
方法or属性:function getMinHeightSync(): number;|@ohos.wallpaper.d.ts| +|新增|NA|类名:wallpaper
方法or属性:function getMinWidthSync(): number;|@ohos.wallpaper.d.ts| +|新增|NA|类名:wallpaper
方法or属性:function restore(wallpaperType: WallpaperType, callback: AsyncCallback\): void;|@ohos.wallpaper.d.ts| +|新增|NA|类名:wallpaper
方法or属性:function restore(wallpaperType: WallpaperType): Promise\;|@ohos.wallpaper.d.ts| +|新增|NA|类名:wallpaper
方法or属性:function setImage(source: string \| image.PixelMap, wallpaperType: WallpaperType, callback: AsyncCallback\): void;|@ohos.wallpaper.d.ts| +|新增|NA|类名:wallpaper
方法or属性:function setImage(source: string \| image.PixelMap, wallpaperType: WallpaperType): Promise\;|@ohos.wallpaper.d.ts| +|新增|NA|类名:wallpaper
方法or属性:function getImage(wallpaperType: WallpaperType, callback: AsyncCallback\): void;|@ohos.wallpaper.d.ts| +|新增|NA|类名:wallpaper
方法or属性:function getImage(wallpaperType: WallpaperType): Promise\;|@ohos.wallpaper.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
类名: InputMethodSetting|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 属性: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 属性:stopInput(callback: AsyncCallback\): void;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodController
方法 or 属性:stopInput(): 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.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 属性:function getInputMethodEngine(): InputMethodEngine;|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 属性: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
类名: 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
类名: 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.wallpaper
类名:wallpaper
方法 or 属性:function screenshotLiveWallpaper(scale: number, pixelFormat: image.PixelMapFormat, callback: AsyncCallback\): void;|NA|@ohos.wallpaper.d.ts| +|删除|模块名:ohos.wallpaper
类名:wallpaper
方法 or 属性:function screenshotLiveWallpaper(scale: number, pixelFormat: image.PixelMapFormat): Promise\;|NA|@ohos.wallpaper.d.ts| +|model有变化|类名:request
方法 or 属性:function download(config: DownloadConfig, callback: AsyncCallback\): void;
model:N/A|类名:request
方法 or 属性:function download(config: DownloadConfig, callback: AsyncCallback\): void;
model:@FAModelOnly|@ohos.request.d.ts| +|model有变化|类名:request
方法 or 属性:function download(config: DownloadConfig): Promise\;
model:N/A|类名:request
方法 or 属性:function download(config: DownloadConfig): Promise\;
model:@FAModelOnly|@ohos.request.d.ts| +|model有变化|类名:request
方法 or 属性:function upload(config: UploadConfig, callback: AsyncCallback\): void;
model:N/A|类名:request
方法 or 属性:function upload(config: UploadConfig, callback: AsyncCallback\): void;
model:@FAModelOnly|@ohos.request.d.ts| +|model有变化|类名:request
方法 or 属性:function upload(config: UploadConfig): Promise\;
model:N/A|类名:request
方法 or 属性:function upload(config: UploadConfig): Promise\;
model:@FAModelOnly|@ohos.request.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| +|废弃版本有变化|类名:pasteboard
方法 or 属性:function createHtmlData(htmlText: string): PasteData;
废弃版本:N/A|类名:pasteboard
方法 or 属性:function createHtmlData(htmlText: string): PasteData;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:pasteboard
方法 or 属性:function createWantData(want: Want): PasteData;
废弃版本:N/A|类名:pasteboard
方法 or 属性:function createWantData(want: Want): PasteData;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:pasteboard
方法 or 属性:function createPlainTextData(text: string): PasteData;
废弃版本:N/A|类名:pasteboard
方法 or 属性:function createPlainTextData(text: string): PasteData;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:pasteboard
方法 or 属性:function createUriData(uri: string): PasteData;
废弃版本:N/A|类名:pasteboard
方法 or 属性:function createUriData(uri: string): PasteData;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:pasteboard
方法 or 属性:function createHtmlTextRecord(htmlText: string): PasteDataRecord;
废弃版本:N/A|类名:pasteboard
方法 or 属性:function createHtmlTextRecord(htmlText: string): PasteDataRecord;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:pasteboard
方法 or 属性:function createWantRecord(want: Want): PasteDataRecord;
废弃版本:N/A|类名:pasteboard
方法 or 属性:function createWantRecord(want: Want): PasteDataRecord;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:pasteboard
方法 or 属性:function createPlainTextRecord(text: string): PasteDataRecord;
废弃版本:N/A|类名:pasteboard
方法 or 属性:function createPlainTextRecord(text: string): PasteDataRecord;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:pasteboard
方法 or 属性:function createUriRecord(uri: string): PasteDataRecord;
废弃版本:N/A|类名:pasteboard
方法 or 属性:function createUriRecord(uri: string): PasteDataRecord;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:PasteDataRecord
方法 or 属性:convertToText(callback: AsyncCallback\): void;
废弃版本:N/A|类名:PasteDataRecord
方法 or 属性:convertToText(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:PasteDataRecord
方法 or 属性:convertToText(): Promise\;
废弃版本:N/A|类名:PasteDataRecord
方法 or 属性:convertToText(): Promise\;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:PasteData
方法 or 属性:addHtmlRecord(htmlText: string): void;
废弃版本:N/A|类名:PasteData
方法 or 属性:addHtmlRecord(htmlText: string): void;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:PasteData
方法 or 属性:addWantRecord(want: Want): void;
废弃版本:N/A|类名:PasteData
方法 or 属性:addWantRecord(want: Want): void;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:PasteData
方法 or 属性:addTextRecord(text: string): void;
废弃版本:N/A|类名:PasteData
方法 or 属性:addTextRecord(text: string): void;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:PasteData
方法 or 属性:addUriRecord(uri: string): void;
废弃版本:N/A|类名:PasteData
方法 or 属性:addUriRecord(uri: string): void;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:PasteData
方法 or 属性:getRecordAt(index: number): PasteDataRecord;
废弃版本:N/A|类名:PasteData
方法 or 属性:getRecordAt(index: number): PasteDataRecord;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:PasteData
方法 or 属性:hasMimeType(mimeType: string): boolean;
废弃版本:N/A|类名:PasteData
方法 or 属性:hasMimeType(mimeType: string): boolean;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:PasteData
方法 or 属性:removeRecordAt(index: number): boolean;
废弃版本:N/A|类名:PasteData
方法 or 属性:removeRecordAt(index: number): boolean;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:PasteData
方法 or 属性:replaceRecordAt(index: number, record: PasteDataRecord): boolean;
废弃版本:N/A|类名:PasteData
方法 or 属性:replaceRecordAt(index: number, record: PasteDataRecord): boolean;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:SystemPasteboard
方法 or 属性:clear(callback: AsyncCallback\): void;
废弃版本:N/A|类名:SystemPasteboard
方法 or 属性:clear(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:SystemPasteboard
方法 or 属性:clear(): Promise\;
废弃版本:N/A|类名:SystemPasteboard
方法 or 属性:clear(): Promise\;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:SystemPasteboard
方法 or 属性:getPasteData(callback: AsyncCallback\): void;
废弃版本:N/A|类名:SystemPasteboard
方法 or 属性:getPasteData(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:SystemPasteboard
方法 or 属性:getPasteData(): Promise\;
废弃版本:N/A|类名:SystemPasteboard
方法 or 属性:getPasteData(): Promise\;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:SystemPasteboard
方法 or 属性:hasPasteData(callback: AsyncCallback\): void;
废弃版本:N/A|类名:SystemPasteboard
方法 or 属性:hasPasteData(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:SystemPasteboard
方法 or 属性:hasPasteData(): Promise\;
废弃版本:N/A|类名:SystemPasteboard
方法 or 属性:hasPasteData(): Promise\;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:SystemPasteboard
方法 or 属性:setPasteData(data: PasteData, callback: AsyncCallback\): void;
废弃版本:N/A|类名:SystemPasteboard
方法 or 属性:setPasteData(data: PasteData, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:SystemPasteboard
方法 or 属性:setPasteData(data: PasteData): Promise\;
废弃版本:N/A|类名:SystemPasteboard
方法 or 属性:setPasteData(data: PasteData): Promise\;
废弃版本:9
代替接口:ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|废弃版本有变化|类名:request
方法 or 属性:function download(config: DownloadConfig, callback: AsyncCallback\): void;
废弃版本:N/A|类名:request
方法 or 属性:function download(config: DownloadConfig, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.request.downloadFile |@ohos.request.d.ts| +|废弃版本有变化|类名:request
方法 or 属性:function download(config: DownloadConfig): Promise\;
废弃版本:N/A|类名:request
方法 or 属性:function download(config: DownloadConfig): Promise\;
废弃版本:9
代替接口:ohos.request.downloadFile |@ohos.request.d.ts| +|废弃版本有变化|类名:request
方法 or 属性:function upload(config: UploadConfig, callback: AsyncCallback\): void;
废弃版本:N/A|类名:request
方法 or 属性:function upload(config: UploadConfig, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.request.uploadFile |@ohos.request.d.ts| +|废弃版本有变化|类名:request
方法 or 属性:function upload(config: UploadConfig): Promise\;
废弃版本:N/A|类名:request
方法 or 属性:function upload(config: UploadConfig): Promise\;
废弃版本:9
代替接口:ohos.request.uploadFile |@ohos.request.d.ts| +|废弃版本有变化|类名:DownloadTask
方法 or 属性:remove(callback: AsyncCallback\): void;
废弃版本:N/A|类名:DownloadTask
方法 or 属性:remove(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.request.delete |@ohos.request.d.ts| +|废弃版本有变化|类名:DownloadTask
方法 or 属性:remove(): Promise\;
废弃版本:N/A|类名:DownloadTask
方法 or 属性:remove(): Promise\;
废弃版本:9
代替接口:ohos.request.delete |@ohos.request.d.ts| +|废弃版本有变化|类名:DownloadTask
方法 or 属性:pause(callback: AsyncCallback\): void;
废弃版本:N/A|类名:DownloadTask
方法 or 属性:pause(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.request.suspend |@ohos.request.d.ts| +|废弃版本有变化|类名:DownloadTask
方法 or 属性:pause(): Promise\;
废弃版本:N/A|类名:DownloadTask
方法 or 属性:pause(): Promise\;
废弃版本:9
代替接口:ohos.request.suspend |@ohos.request.d.ts| +|废弃版本有变化|类名:DownloadTask
方法 or 属性:resume(callback: AsyncCallback\): void;
废弃版本:N/A|类名:DownloadTask
方法 or 属性:resume(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.request.restore |@ohos.request.d.ts| +|废弃版本有变化|类名:DownloadTask
方法 or 属性:resume(): Promise\;
废弃版本:N/A|类名:DownloadTask
方法 or 属性:resume(): Promise\;
废弃版本:9
代替接口:ohos.request.restore |@ohos.request.d.ts| +|废弃版本有变化|类名:DownloadTask
方法 or 属性:query(callback: AsyncCallback\): void;
废弃版本:N/A|类名:DownloadTask
方法 or 属性:query(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.request.getTaskInfo |@ohos.request.d.ts| +|废弃版本有变化|类名:DownloadTask
方法 or 属性:query(): Promise\;
废弃版本:N/A|类名:DownloadTask
方法 or 属性:query(): Promise\;
废弃版本:9
代替接口:ohos.request.getTaskInfo |@ohos.request.d.ts| +|废弃版本有变化|类名:DownloadTask
方法 or 属性:queryMimeType(callback: AsyncCallback\): void;
废弃版本:N/A|类名:DownloadTask
方法 or 属性:queryMimeType(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.request.getTaskMimeType |@ohos.request.d.ts| +|废弃版本有变化|类名:DownloadTask
方法 or 属性:queryMimeType(): Promise\;
废弃版本:N/A|类名:DownloadTask
方法 or 属性:queryMimeType(): Promise\;
废弃版本:9
代替接口:ohos.request.getTaskMimeType |@ohos.request.d.ts| +|废弃版本有变化|类名:UploadTask
方法 or 属性:remove(callback: AsyncCallback\): void;
废弃版本:N/A|类名:UploadTask
方法 or 属性:remove(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.request.delete |@ohos.request.d.ts| +|废弃版本有变化|类名:UploadTask
方法 or 属性:remove(): Promise\;
废弃版本:N/A|类名:UploadTask
方法 or 属性:remove(): Promise\;
废弃版本:9
代替接口:ohos.request.delete |@ohos.request.d.ts| +|废弃版本有变化|类名:screenLock
方法 or 属性:function isScreenLocked(callback: AsyncCallback\): void;
废弃版本:N/A|类名:screenLock
方法 or 属性:function isScreenLocked(callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.screenLock.d.ts| +|废弃版本有变化|类名:screenLock
方法 or 属性:function isScreenLocked(): Promise\;
废弃版本:N/A|类名:screenLock
方法 or 属性:function isScreenLocked(): Promise\;
废弃版本:9
代替接口:N/A|@ohos.screenLock.d.ts| +|废弃版本有变化|类名:screenLock
方法 or 属性:function isSecureMode(callback: AsyncCallback\): void;
废弃版本:N/A|类名:screenLock
方法 or 属性:function isSecureMode(callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.screenLock.d.ts| +|废弃版本有变化|类名:screenLock
方法 or 属性:function isSecureMode(): Promise\;
废弃版本:N/A|类名:screenLock
方法 or 属性:function isSecureMode(): Promise\;
废弃版本:9
代替接口:N/A|@ohos.screenLock.d.ts| +|废弃版本有变化|类名:screenLock
方法 or 属性:function unlockScreen(callback: AsyncCallback\): void;
废弃版本:N/A|类名:screenLock
方法 or 属性:function unlockScreen(callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.screenLock.d.ts| +|废弃版本有变化|类名:screenLock
方法 or 属性:function unlockScreen():Promise\;
废弃版本:N/A|类名:screenLock
方法 or 属性:function unlockScreen():Promise\;
废弃版本:9
代替接口:N/A|@ohos.screenLock.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
代替接口:N/A|@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function getCurrentTime(isNano?: boolean): Promise\;
废弃版本:N/A|类名:systemTime
方法 or 属性:function getCurrentTime(isNano?: boolean): Promise\;
废弃版本:9
代替接口:ohos.systemDateTime/systemDateTime.getCurrentTime |@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function getRealActiveTime(isNano?: boolean): Promise\;
废弃版本:N/A|类名:systemTime
方法 or 属性:function getRealActiveTime(isNano?: boolean): Promise\;
废弃版本:9
代替接口:ohos.systemDateTime/systemDateTime.getRealActiveTime |@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function getRealTime(isNano?: boolean): Promise\;
废弃版本:N/A|类名:systemTime
方法 or 属性:function getRealTime(isNano?: boolean): Promise\;
废弃版本:9
代替接口:ohos.systemDateTime/systemDateTime.getRealTime |@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
代替接口:N/A|@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.systemDateTime/systemDateTime.getDate |@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
代替接口:N/A|@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.systemDateTime/systemDateTime.getTimezone |@ohos.systemTime.d.ts| +|废弃版本有变化|类名:RgbaColor
废弃版本:N/A|类名:RgbaColor
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function getColors(wallpaperType: WallpaperType, callback: AsyncCallback\>): void;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function getColors(wallpaperType: WallpaperType, callback: AsyncCallback\>): void;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function getColors(wallpaperType: WallpaperType): Promise\>;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function getColors(wallpaperType: WallpaperType): Promise\>;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function getId(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function getId(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function getId(wallpaperType: WallpaperType): Promise\;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function getId(wallpaperType: WallpaperType): Promise\;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function getFile(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function getFile(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function getFile(wallpaperType: WallpaperType): Promise\;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function getFile(wallpaperType: WallpaperType): Promise\;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function getMinHeight(callback: AsyncCallback\): void;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function getMinHeight(callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function getMinHeight(): Promise\;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function getMinHeight(): Promise\;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function getMinWidth(callback: AsyncCallback\): void;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function getMinWidth(callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function getMinWidth(): Promise\;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function getMinWidth(): Promise\;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function isChangePermitted(callback: AsyncCallback\): void;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function isChangePermitted(callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function isChangePermitted(): Promise\;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function isChangePermitted(): Promise\;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function isOperationAllowed(callback: AsyncCallback\): void;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function isOperationAllowed(callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function isOperationAllowed(): Promise\;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function isOperationAllowed(): Promise\;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function reset(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function reset(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function reset(wallpaperType: WallpaperType): Promise\;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function reset(wallpaperType: WallpaperType): Promise\;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function setWallpaper(source: string \| image.PixelMap, wallpaperType: WallpaperType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function setWallpaper(source: string \| image.PixelMap, wallpaperType: WallpaperType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function setWallpaper(source: string \| image.PixelMap, wallpaperType: WallpaperType): Promise\;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function setWallpaper(source: string \| image.PixelMap, wallpaperType: WallpaperType): Promise\;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function getPixelMap(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function getPixelMap(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function getPixelMap(wallpaperType: WallpaperType): Promise\;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function getPixelMap(wallpaperType: WallpaperType): Promise\;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function on(type: 'colorChange', callback: (colors: Array\, wallpaperType: WallpaperType) => void): void;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function on(type: 'colorChange', callback: (colors: Array\, wallpaperType: WallpaperType) => void): void;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:wallpaper
方法 or 属性:function off(type: 'colorChange', callback?: (colors: Array\, wallpaperType: WallpaperType) => void): void;
废弃版本:N/A|类名:wallpaper
方法 or 属性:function off(type: 'colorChange', callback?: (colors: Array\, wallpaperType: WallpaperType) => void): void;
废弃版本:9
代替接口:N/A|@ohos.wallpaper.d.ts| +|废弃版本有变化|类名:UploadResponse
废弃版本:N/A|类名:UploadResponse
废弃版本:9
代替接口:ohos.request |@system.request.d.ts| +|废弃版本有变化|类名:UploadResponse
方法 or 属性:code: number;
废弃版本:N/A|类名:UploadResponse
方法 or 属性:code: number;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:UploadResponse
方法 or 属性:data: string;
废弃版本:N/A|类名:UploadResponse
方法 or 属性:data: string;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:UploadResponse
方法 or 属性:headers: Object;
废弃版本:N/A|类名:UploadResponse
方法 or 属性:headers: Object;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:DownloadResponse
废弃版本:N/A|类名:DownloadResponse
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:DownloadResponse
方法 or 属性:token: string;
废弃版本:N/A|类名:DownloadResponse
方法 or 属性:token: string;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:OnDownloadCompleteResponse
废弃版本:N/A|类名:OnDownloadCompleteResponse
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:OnDownloadCompleteResponse
方法 or 属性:uri: string;
废弃版本:N/A|类名:OnDownloadCompleteResponse
方法 or 属性:uri: string;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:RequestFile
废弃版本:N/A|类名:RequestFile
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:RequestFile
方法 or 属性:filename?: string;
废弃版本:N/A|类名:RequestFile
方法 or 属性:filename?: string;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:RequestFile
方法 or 属性:name?: string;
废弃版本:N/A|类名:RequestFile
方法 or 属性:name?: string;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:RequestFile
方法 or 属性:uri: string;
废弃版本:N/A|类名:RequestFile
方法 or 属性:uri: string;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:RequestFile
方法 or 属性:type?: string;
废弃版本:N/A|类名:RequestFile
方法 or 属性:type?: string;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:RequestData
废弃版本:N/A|类名:RequestData
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:RequestData
方法 or 属性:name: string;
废弃版本:N/A|类名:RequestData
方法 or 属性:name: string;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:RequestData
方法 or 属性:value: string;
废弃版本:N/A|类名:RequestData
方法 or 属性:value: string;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:UploadRequestOptions
废弃版本:N/A|类名:UploadRequestOptions
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:UploadRequestOptions
方法 or 属性:url: string;
废弃版本:N/A|类名:UploadRequestOptions
方法 or 属性:url: string;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:UploadRequestOptions
方法 or 属性:data?: Array\;
废弃版本:N/A|类名:UploadRequestOptions
方法 or 属性:data?: Array\;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:UploadRequestOptions
方法 or 属性:files: Array\;
废弃版本:N/A|类名:UploadRequestOptions
方法 or 属性:files: Array\;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:UploadRequestOptions
方法 or 属性:header?: Object;
废弃版本:N/A|类名:UploadRequestOptions
方法 or 属性:header?: Object;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:UploadRequestOptions
方法 or 属性:method?: string;
废弃版本:N/A|类名:UploadRequestOptions
方法 or 属性:method?: string;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:UploadRequestOptions
方法 or 属性:success?: (data: UploadResponse) => void;
废弃版本:N/A|类名:UploadRequestOptions
方法 or 属性:success?: (data: UploadResponse) => void;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:UploadRequestOptions
方法 or 属性:fail?: (data: any, code: number) => void;
废弃版本:N/A|类名:UploadRequestOptions
方法 or 属性:fail?: (data: any, code: number) => void;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:UploadRequestOptions
方法 or 属性:complete?: () => void;
废弃版本:N/A|类名:UploadRequestOptions
方法 or 属性:complete?: () => void;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:DownloadRequestOptions
废弃版本:N/A|类名:DownloadRequestOptions
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:DownloadRequestOptions
方法 or 属性:url: string;
废弃版本:N/A|类名:DownloadRequestOptions
方法 or 属性:url: string;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:DownloadRequestOptions
方法 or 属性:filename?: string;
废弃版本:N/A|类名:DownloadRequestOptions
方法 or 属性:filename?: string;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:DownloadRequestOptions
方法 or 属性:header?: string;
废弃版本:N/A|类名:DownloadRequestOptions
方法 or 属性:header?: string;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:DownloadRequestOptions
方法 or 属性:description?: string;
废弃版本:N/A|类名:DownloadRequestOptions
方法 or 属性:description?: string;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:DownloadRequestOptions
方法 or 属性:success?: (data: DownloadResponse) => void;
废弃版本:N/A|类名:DownloadRequestOptions
方法 or 属性:success?: (data: DownloadResponse) => void;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:DownloadRequestOptions
方法 or 属性:fail?: (data: any, code: number) => void;
废弃版本:N/A|类名:DownloadRequestOptions
方法 or 属性:fail?: (data: any, code: number) => void;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:DownloadRequestOptions
方法 or 属性:complete?: () => void;
废弃版本:N/A|类名:DownloadRequestOptions
方法 or 属性:complete?: () => void;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:OnDownloadCompleteOptions
废弃版本:N/A|类名:OnDownloadCompleteOptions
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:OnDownloadCompleteOptions
方法 or 属性:token: string;
废弃版本:N/A|类名:OnDownloadCompleteOptions
方法 or 属性:token: string;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:OnDownloadCompleteOptions
方法 or 属性:success?: (data: OnDownloadCompleteResponse) => void;
废弃版本:N/A|类名:OnDownloadCompleteOptions
方法 or 属性:success?: (data: OnDownloadCompleteResponse) => void;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:OnDownloadCompleteOptions
方法 or 属性:fail?: (data: any, code: number) => void;
废弃版本:N/A|类名:OnDownloadCompleteOptions
方法 or 属性:fail?: (data: any, code: number) => void;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:OnDownloadCompleteOptions
方法 or 属性:complete?: () => void;
废弃版本:N/A|类名:OnDownloadCompleteOptions
方法 or 属性:complete?: () => void;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:Request
废弃版本:N/A|类名:Request
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:Request
方法 or 属性:static upload(options: UploadRequestOptions): void;
废弃版本:N/A|类名:Request
方法 or 属性:static upload(options: UploadRequestOptions): void;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:Request
方法 or 属性:static download(options: DownloadRequestOptions): void;
废弃版本:N/A|类名:Request
方法 or 属性:static download(options: DownloadRequestOptions): void;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|废弃版本有变化|类名:Request
方法 or 属性:static onDownloadComplete(options: OnDownloadCompleteOptions): void;
废弃版本:N/A|类名:Request
方法 or 属性:static onDownloadComplete(options: OnDownloadCompleteOptions): void;
废弃版本:9
代替接口:N/A|@system.request.d.ts| +|起始版本有变化|类名:DownloadTask
起始版本:N/A|类名:DownloadTask
起始版本:6|@ohos.request.d.ts| +|起始版本有变化|类名:UploadTask
起始版本:N/A|类名:UploadTask
起始版本:6|@ohos.request.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| +|起始版本有变化|类名:RgbaColor
起始版本:N/A|类名:RgbaColor
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:WallpaperType
起始版本:N/A|类名:WallpaperType
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function getColors(wallpaperType: WallpaperType, callback: AsyncCallback\>): void;
起始版本:N/A|类名:wallpaper
方法 or 属性:function getColors(wallpaperType: WallpaperType, callback: AsyncCallback\>): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function getColors(wallpaperType: WallpaperType): Promise\>;
起始版本:N/A|类名:wallpaper
方法 or 属性:function getColors(wallpaperType: WallpaperType): Promise\>;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function getId(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
起始版本:N/A|类名:wallpaper
方法 or 属性:function getId(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function getId(wallpaperType: WallpaperType): Promise\;
起始版本:N/A|类名:wallpaper
方法 or 属性:function getId(wallpaperType: WallpaperType): Promise\;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function getMinHeight(callback: AsyncCallback\): void;
起始版本:N/A|类名:wallpaper
方法 or 属性:function getMinHeight(callback: AsyncCallback\): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function getMinHeight(): Promise\;
起始版本:N/A|类名:wallpaper
方法 or 属性:function getMinHeight(): Promise\;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function getMinWidth(callback: AsyncCallback\): void;
起始版本:N/A|类名:wallpaper
方法 or 属性:function getMinWidth(callback: AsyncCallback\): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function getMinWidth(): Promise\;
起始版本:N/A|类名:wallpaper
方法 or 属性:function getMinWidth(): Promise\;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function isChangePermitted(callback: AsyncCallback\): void;
起始版本:N/A|类名:wallpaper
方法 or 属性:function isChangePermitted(callback: AsyncCallback\): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function isChangePermitted(): Promise\;
起始版本:N/A|类名:wallpaper
方法 or 属性:function isChangePermitted(): Promise\;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function isOperationAllowed(callback: AsyncCallback\): void;
起始版本:N/A|类名:wallpaper
方法 or 属性:function isOperationAllowed(callback: AsyncCallback\): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function isOperationAllowed(): Promise\;
起始版本:N/A|类名:wallpaper
方法 or 属性:function isOperationAllowed(): Promise\;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function reset(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
起始版本:N/A|类名:wallpaper
方法 or 属性:function reset(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function reset(wallpaperType: WallpaperType): Promise\;
起始版本:N/A|类名:wallpaper
方法 or 属性:function reset(wallpaperType: WallpaperType): Promise\;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function setWallpaper(source: string \| image.PixelMap, wallpaperType: WallpaperType, callback: AsyncCallback\): void;
起始版本:N/A|类名:wallpaper
方法 or 属性:function setWallpaper(source: string \| image.PixelMap, wallpaperType: WallpaperType, callback: AsyncCallback\): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function setWallpaper(source: string \| image.PixelMap, wallpaperType: WallpaperType): Promise\;
起始版本:N/A|类名:wallpaper
方法 or 属性:function setWallpaper(source: string \| image.PixelMap, wallpaperType: WallpaperType): Promise\;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function getPixelMap(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
起始版本:N/A|类名:wallpaper
方法 or 属性:function getPixelMap(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function getPixelMap(wallpaperType: WallpaperType): Promise\;
起始版本:N/A|类名:wallpaper
方法 or 属性:function getPixelMap(wallpaperType: WallpaperType): Promise\;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function on(type: 'colorChange', callback: (colors: Array\, wallpaperType: WallpaperType) => void): void;
起始版本:N/A|类名:wallpaper
方法 or 属性:function on(type: 'colorChange', callback: (colors: Array\, wallpaperType: WallpaperType) => void): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:wallpaper
方法 or 属性:function off(type: 'colorChange', callback?: (colors: Array\, wallpaperType: WallpaperType) => void): void;
起始版本:N/A|类名:wallpaper
方法 or 属性:function off(type: 'colorChange', callback?: (colors: Array\, wallpaperType: WallpaperType) => void): void;
起始版本:7|@ohos.wallpaper.d.ts| +|起始版本有变化|类名:Request
方法 or 属性:static upload(options: UploadRequestOptions): void;
起始版本:N/A|类名:Request
方法 or 属性:static upload(options: UploadRequestOptions): void;
起始版本:3|@system.request.d.ts| +|起始版本有变化|类名:Request
方法 or 属性:static download(options: DownloadRequestOptions): void;
起始版本:N/A|类名:Request
方法 or 属性:static download(options: DownloadRequestOptions): void;
起始版本:3|@system.request.d.ts| +|起始版本有变化|类名:Request
方法 or 属性:static onDownloadComplete(options: OnDownloadCompleteOptions): void;
起始版本:N/A|类名:Request
方法 or 属性:static onDownloadComplete(options: OnDownloadCompleteOptions): void;
起始版本:3|@system.request.d.ts| +|权限有变化|类名:wallpaper
方法 or 属性:function getPixelMap(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
权限:ohos.permission.READ_USER_STORAGE|类名:wallpaper
方法 or 属性:function getPixelMap(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
权限:ohos.permission.GET_WALLPAPER|@ohos.wallpaper.d.ts| +|权限有变化|类名:wallpaper
方法 or 属性:function getPixelMap(wallpaperType: WallpaperType): Promise\;
权限:ohos.permission.READ_USER_STORAGE|类名:wallpaper
方法 or 属性:function getPixelMap(wallpaperType: WallpaperType): Promise\;
权限:ohos.permission.GET_WALLPAPER|@ohos.wallpaper.d.ts| +|新增(错误码)|NA|类名:SystemPasteboard
方法 or 属性:on(type: 'update', callback: () => void): void;
错误码内容: 401|@ohos.pasteboard.d.ts| +|新增(错误码)|NA|类名:SystemPasteboard
方法 or 属性:off(type: 'update', callback?: () => void): void;
错误码内容: 401|@ohos.pasteboard.d.ts| +|新增(错误码)|NA|类名:systemTimer
方法 or 属性:function createTimer(options: TimerOptions, callback: AsyncCallback\): void;
错误码内容: 202, 401|@ohos.systemTimer.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, callback: AsyncCallback\): void;
错误码内容: 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, callback: AsyncCallback\): void;
错误码内容: 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, callback: AsyncCallback\): void;
错误码内容: 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| +|SysCap有变化|类名:DownloadTask
SysCap:N/A|类名:DownloadTask
SysCap:SystemCapability.MiscServices.Download|@ohos.request.d.ts| +|SysCap有变化|类名:UploadTask
SysCap:N/A|类名:UploadTask
SysCap:SystemCapability.MiscServices.Download|@ohos.request.d.ts| +|函数有变化|类名:systemTime
方法 or 属性:function getCurrentTime(isNano?: boolean, callback: AsyncCallback\): void;
|类名:systemTime
方法 or 属性:function getCurrentTime(isNano: boolean, callback: AsyncCallback\): void;
|@ohos.systemTime.d.ts| +|函数有变化|类名:systemTime
方法 or 属性:function getCurrentTime(isNano?: boolean, callback: AsyncCallback\): void;
|类名:systemTime
方法 or 属性:function getCurrentTime(callback: AsyncCallback\): void;
|@ohos.systemTime.d.ts| +|函数有变化|类名:systemTime
方法 or 属性:function getRealActiveTime(isNano?: boolean, callback: AsyncCallback\): void;
|类名:systemTime
方法 or 属性:function getRealActiveTime(isNano: boolean, callback: AsyncCallback\): void;
|@ohos.systemTime.d.ts| +|函数有变化|类名:systemTime
方法 or 属性:function getRealActiveTime(isNano?: boolean, callback: AsyncCallback\): void;
|类名:systemTime
方法 or 属性:function getRealActiveTime(callback: AsyncCallback\): void;
|@ohos.systemTime.d.ts| +|函数有变化|类名:systemTime
方法 or 属性:function getRealTime(isNano?: boolean, callback: AsyncCallback\): void;
|类名:systemTime
方法 or 属性:function getRealTime(isNano: boolean, callback: AsyncCallback\): void;
|@ohos.systemTime.d.ts| +|函数有变化|类名:systemTime
方法 or 属性:function getRealTime(isNano?: boolean, callback: AsyncCallback\): void;
|类名:systemTime
方法 or 属性:function getRealTime(callback: AsyncCallback\): void;
|@ohos.systemTime.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-msdp.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-msdp.md new file mode 100644 index 0000000000000000000000000000000000000000..b3d4c74b87764202a15d060ff82550b8a0190f8c --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-msdp.md @@ -0,0 +1,17 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.stationary
类名: stationary|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityType
方法 or 属性: type ActivityType = 'still' \| 'relativeStill';|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityType
方法 or 属性: type ActivityType = 'still' \| 'relativeStill';|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityResponse|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityResponse
方法 or 属性: state: ActivityState;|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityEvent|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityEvent
方法 or 属性: ENTER = 1|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityEvent
方法 or 属性: EXIT = 2|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityEvent
方法 or 属性: ENTER_EXIT = 3|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityState|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityState
方法 or 属性: ENTER = 1|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityState
方法 or 属性: EXIT = 2|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: stationary
方法 or 属性: function on(activity: ActivityType, event: ActivityEvent, reportLatencyNs: number, callback: Callback\): void;|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: stationary
方法 or 属性: function once(activity: ActivityType, callback: Callback\): void;|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: stationary
方法 or 属性: function off(activity: ActivityType, event: ActivityEvent, callback?: Callback\): void;|@ohos.stationary.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-multi-modal-input.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-multi-modal-input.md new file mode 100644 index 0000000000000000000000000000000000000000..6fece4a2ece02cb53e2bc67ad079b74991979d3d --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-multi-modal-input.md @@ -0,0 +1,601 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: ChangedType
方法 or 属性:type ChangedType = 'add' \| 'remove';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:ChangedType
方法or属性:type ChangedType = 'add' \| 'remove';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: ChangedType
方法 or 属性:type ChangedType = 'add' \| 'remove';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:ChangedType
方法or属性:type ChangedType = 'add' \| 'remove';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: AxisType
方法 or 属性:type AxisType = 'touchMajor' \| 'touchMinor' \| 'orientation' \| 'x' \| 'y' \| 'pressure' \| 'toolMinor' \| 'toolMajor' \| 'NULL';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:AxisType
方法or属性:type AxisType = 'touchMajor' \| 'touchMinor' \| 'orientation' \| 'x' \| 'y' \| 'pressure' \| 'toolMinor' \| 'toolMajor' \| 'NULL';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: AxisType
方法 or 属性:type AxisType = 'touchMajor' \| 'touchMinor' \| 'orientation' \| 'x' \| 'y' \| 'pressure' \| 'toolMinor' \| 'toolMajor' \| 'NULL';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:AxisType
方法or属性:type AxisType = 'touchMajor' \| 'touchMinor' \| 'orientation' \| 'x' \| 'y' \| 'pressure' \| 'toolMinor' \| 'toolMajor' \| 'NULL';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: AxisType
方法 or 属性:type AxisType = 'touchMajor' \| 'touchMinor' \| 'orientation' \| 'x' \| 'y' \| 'pressure' \| 'toolMinor' \| 'toolMajor' \| 'NULL';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:AxisType
方法or属性:type AxisType = 'touchMajor' \| 'touchMinor' \| 'orientation' \| 'x' \| 'y' \| 'pressure' \| 'toolMinor' \| 'toolMajor' \| 'NULL';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: AxisType
方法 or 属性:type AxisType = 'touchMajor' \| 'touchMinor' \| 'orientation' \| 'x' \| 'y' \| 'pressure' \| 'toolMinor' \| 'toolMajor' \| 'NULL';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:AxisType
方法or属性:type AxisType = 'touchMajor' \| 'touchMinor' \| 'orientation' \| 'x' \| 'y' \| 'pressure' \| 'toolMinor' \| 'toolMajor' \| 'NULL';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: AxisType
方法 or 属性:type AxisType = 'touchMajor' \| 'touchMinor' \| 'orientation' \| 'x' \| 'y' \| 'pressure' \| 'toolMinor' \| 'toolMajor' \| 'NULL';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:AxisType
方法or属性:type AxisType = 'touchMajor' \| 'touchMinor' \| 'orientation' \| 'x' \| 'y' \| 'pressure' \| 'toolMinor' \| 'toolMajor' \| 'NULL';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: AxisType
方法 or 属性:type AxisType = 'touchMajor' \| 'touchMinor' \| 'orientation' \| 'x' \| 'y' \| 'pressure' \| 'toolMinor' \| 'toolMajor' \| 'NULL';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:AxisType
方法or属性:type AxisType = 'touchMajor' \| 'touchMinor' \| 'orientation' \| 'x' \| 'y' \| 'pressure' \| 'toolMinor' \| 'toolMajor' \| 'NULL';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: AxisType
方法 or 属性:type AxisType = 'touchMajor' \| 'touchMinor' \| 'orientation' \| 'x' \| 'y' \| 'pressure' \| 'toolMinor' \| 'toolMajor' \| 'NULL';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:AxisType
方法or属性:type AxisType = 'touchMajor' \| 'touchMinor' \| 'orientation' \| 'x' \| 'y' \| 'pressure' \| 'toolMinor' \| 'toolMajor' \| 'NULL';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: AxisType
方法 or 属性:type AxisType = 'touchMajor' \| 'touchMinor' \| 'orientation' \| 'x' \| 'y' \| 'pressure' \| 'toolMinor' \| 'toolMajor' \| 'NULL';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:AxisType
方法or属性:type AxisType = 'touchMajor' \| 'touchMinor' \| 'orientation' \| 'x' \| 'y' \| 'pressure' \| 'toolMinor' \| 'toolMajor' \| 'NULL';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: AxisType
方法 or 属性:type AxisType = 'touchMajor' \| 'touchMinor' \| 'orientation' \| 'x' \| 'y' \| 'pressure' \| 'toolMinor' \| 'toolMajor' \| 'NULL';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:AxisType
方法or属性:type AxisType = 'touchMajor' \| 'touchMinor' \| 'orientation' \| 'x' \| 'y' \| 'pressure' \| 'toolMinor' \| 'toolMajor' \| 'NULL';|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: KeyboardType|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:KeyboardType
方法or属性:|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: KeyboardType
方法 or 属性:NONE = 0|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:KeyboardType
方法or属性:NONE = 0|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: KeyboardType
方法 or 属性:UNKNOWN = 1|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:KeyboardType
方法or属性:UNKNOWN = 1|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: KeyboardType
方法 or 属性:ALPHABETIC_KEYBOARD = 2|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:KeyboardType
方法or属性:ALPHABETIC_KEYBOARD = 2|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: KeyboardType
方法 or 属性:DIGITAL_KEYBOARD = 3|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:KeyboardType
方法or属性:DIGITAL_KEYBOARD = 3|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: KeyboardType
方法 or 属性:HANDWRITING_PEN = 4|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:KeyboardType
方法or属性:HANDWRITING_PEN = 4|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: KeyboardType
方法 or 属性:REMOTE_CONTROL = 5|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:KeyboardType
方法or属性:REMOTE_CONTROL = 5|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: DeviceListener|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:DeviceListener
方法or属性:|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: DeviceListener
方法 or 属性:type: ChangedType;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:DeviceListener
方法or属性:type: ChangedType;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDevice
类名: DeviceListener
方法 or 属性:deviceId: number;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:DeviceListener
方法or属性:deviceId: number;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:inputDevice
方法or属性:function on(type: "change", listener: Callback\): void;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:inputDevice
方法or属性:function off(type: "change", listener?: Callback\): void;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:AxisRange
方法or属性:fuzz: number;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:AxisRange
方法or属性:flat: number;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:AxisRange
方法or属性:resolution: number;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:InputDeviceData
方法or属性:bus: number;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:InputDeviceData
方法or属性:product: number;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:InputDeviceData
方法or属性:vendor: number;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:InputDeviceData
方法or属性:version: number;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:InputDeviceData
方法or属性:phys: string;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:InputDeviceData
方法or属性:uniq: string;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:inputDevice
方法or属性:function getDeviceList(callback: AsyncCallback\>): void;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:inputDevice
方法or属性:function getDeviceList(): Promise\>;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:inputDevice
方法or属性:function getDeviceInfo(deviceId: number, callback: AsyncCallback\): void;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:inputDevice
方法or属性:function getDeviceInfo(deviceId: number): Promise\;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:inputDevice
方法or属性:function supportKeys(deviceId: number, keys: Array\, callback: AsyncCallback\>): void;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:inputDevice
方法or属性:function supportKeys(deviceId: number, keys: Array\): Promise\>;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:inputDevice
方法or属性:function getKeyboardType(deviceId: number, callback: AsyncCallback\): void;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|类名:inputDevice
方法or属性:function getKeyboardType(deviceId: number): Promise\;|@ohos.multimodalInput.inputDevice.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 = 200|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: EventMsg
方法 or 属性: MSG_COOPERATE_INFO_SUCCESS = 201|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: EventMsg
方法 or 属性: MSG_COOPERATE_INFO_FAIL = 202|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: EventMsg
方法 or 属性: MSG_COOPERATE_STATE_ON = 500|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: EventMsg
方法 or 属性: MSG_COOPERATE_STATE_OFF = 501|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate
方法 or 属性: function enable(enable: boolean, callback: AsyncCallback\): void;|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate
方法 or 属性: function enable(enable: boolean): Promise\;|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate
方法 or 属性: function start(sinkDeviceDescriptor: string, srcInputDeviceId: number, callback: AsyncCallback\): void;|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate
方法 or 属性: function start(sinkDeviceDescriptor: string, srcInputDeviceId: number): Promise\;|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate
方法 or 属性: function stop(callback: AsyncCallback\): void;|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate
方法 or 属性: function stop(): Promise\;|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate
方法 or 属性: function getState(deviceDescriptor: string, callback: AsyncCallback\<{ state: boolean }>): void;|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate
方法 or 属性: function getState(deviceDescriptor: string): Promise\<{ state: boolean }>;|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate
方法 or 属性: function on(type: 'cooperation', callback: AsyncCallback\<{ deviceDescriptor: string, eventMsg: EventMsg }>): void;|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate
方法 or 属性: function off(type: 'cooperation', callback?: AsyncCallback\): void;|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputEvent
类名: InputEvent|@ohos.multimodalInput.inputEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputEvent
类名: InputEvent
方法 or 属性: id: number;|@ohos.multimodalInput.inputEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputEvent
类名: InputEvent
方法 or 属性: deviceId: number;|@ohos.multimodalInput.inputEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputEvent
类名: InputEvent
方法 or 属性: actionTime: number;|@ohos.multimodalInput.inputEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputEvent
类名: InputEvent
方法 or 属性: screenId: number;|@ohos.multimodalInput.inputEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputEvent
类名: InputEvent
方法 or 属性: windowId: number;|@ohos.multimodalInput.inputEvent.d.ts| +|新增|NA|类名:inputMonitor
方法or属性:function on(type:"mouse", receiver:Callback\):void;|@ohos.multimodalInput.inputMonitor.d.ts| +|新增|NA|类名:inputMonitor
方法or属性:function off(type:"mouse", receiver?:Callback\):void;|@ohos.multimodalInput.inputMonitor.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_FN = 0|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_UNKNOWN = -1|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_HOME = 1|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BACK = 2|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MEDIA_PLAY_PAUSE = 10|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MEDIA_STOP = 11|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MEDIA_NEXT = 12|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MEDIA_PREVIOUS = 13|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MEDIA_REWIND = 14|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MEDIA_FAST_FORWARD = 15|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_VOLUME_UP = 16|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_VOLUME_DOWN = 17|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_POWER = 18|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_CAMERA = 19|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_VOLUME_MUTE = 22|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MUTE = 23|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BRIGHTNESS_UP = 40|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BRIGHTNESS_DOWN = 41|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_0 = 2000|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_1 = 2001|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_2 = 2002|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_3 = 2003|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_4 = 2004|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_5 = 2005|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_6 = 2006|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_7 = 2007|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_8 = 2008|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_9 = 2009|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_STAR = 2010|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_POUND = 2011|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_DPAD_UP = 2012|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_DPAD_DOWN = 2013|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_DPAD_LEFT = 2014|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_DPAD_RIGHT = 2015|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_DPAD_CENTER = 2016|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_A = 2017|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_B = 2018|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_C = 2019|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_D = 2020|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_E = 2021|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F = 2022|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_G = 2023|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_H = 2024|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_I = 2025|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_J = 2026|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_K = 2027|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_L = 2028|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_M = 2029|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_N = 2030|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_O = 2031|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_P = 2032|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_Q = 2033|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_R = 2034|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_S = 2035|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_T = 2036|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_U = 2037|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_V = 2038|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_W = 2039|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_X = 2040|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_Y = 2041|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_Z = 2042|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_COMMA = 2043|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_PERIOD = 2044|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_ALT_LEFT = 2045|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_ALT_RIGHT = 2046|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SHIFT_LEFT = 2047|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SHIFT_RIGHT = 2048|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_TAB = 2049|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SPACE = 2050|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SYM = 2051|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_EXPLORER = 2052|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_ENVELOPE = 2053|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_ENTER = 2054|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_DEL = 2055|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_GRAVE = 2056|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MINUS = 2057|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_EQUALS = 2058|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_LEFT_BRACKET = 2059|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_RIGHT_BRACKET = 2060|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BACKSLASH = 2061|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SEMICOLON = 2062|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_APOSTROPHE = 2063|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SLASH = 2064|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_AT = 2065|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_PLUS = 2066|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MENU = 2067|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_PAGE_UP = 2068|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_PAGE_DOWN = 2069|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_ESCAPE = 2070|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_FORWARD_DEL = 2071|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_CTRL_LEFT = 2072|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_CTRL_RIGHT = 2073|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_CAPS_LOCK = 2074|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SCROLL_LOCK = 2075|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_META_LEFT = 2076|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_META_RIGHT = 2077|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_FUNCTION = 2078|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SYSRQ = 2079|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BREAK = 2080|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MOVE_HOME = 2081|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MOVE_END = 2082|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_INSERT = 2083|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_FORWARD = 2084|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MEDIA_PLAY = 2085|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MEDIA_PAUSE = 2086|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MEDIA_CLOSE = 2087|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MEDIA_EJECT = 2088|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MEDIA_RECORD = 2089|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F1 = 2090|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F2 = 2091|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F3 = 2092|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F4 = 2093|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F5 = 2094|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F6 = 2095|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F7 = 2096|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F8 = 2097|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F9 = 2098|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F10 = 2099|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F11 = 2100|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F12 = 2101|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUM_LOCK = 2102|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_0 = 2103|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_1 = 2104|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_2 = 2105|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_3 = 2106|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_4 = 2107|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_5 = 2108|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_6 = 2109|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_7 = 2110|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_8 = 2111|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_9 = 2112|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_DIVIDE = 2113|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_MULTIPLY = 2114|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_SUBTRACT = 2115|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_ADD = 2116|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_DOT = 2117|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_COMMA = 2118|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_ENTER = 2119|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_EQUALS = 2120|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_LEFT_PAREN = 2121|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_RIGHT_PAREN = 2122|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_VIRTUAL_MULTITASK = 2210|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SLEEP = 2600|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_ZENKAKU_HANKAKU = 2601|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_102ND = 2602|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_RO = 2603|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_KATAKANA = 2604|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_HIRAGANA = 2605|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_HENKAN = 2606|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_KATAKANA_HIRAGANA = 2607|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MUHENKAN = 2608|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_LINEFEED = 2609|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MACRO = 2610|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NUMPAD_PLUSMINUS = 2611|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SCALE = 2612|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_HANGUEL = 2613|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_HANJA = 2614|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_YEN = 2615|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_STOP = 2616|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_AGAIN = 2617|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_PROPS = 2618|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_UNDO = 2619|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_COPY = 2620|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_OPEN = 2621|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_PASTE = 2622|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_FIND = 2623|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_CUT = 2624|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_HELP = 2625|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_CALC = 2626|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_FILE = 2627|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BOOKMARKS = 2628|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NEXT = 2629|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_PLAYPAUSE = 2630|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_PREVIOUS = 2631|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_STOPCD = 2632|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_CONFIG = 2634|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_REFRESH = 2635|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_EXIT = 2636|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_EDIT = 2637|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SCROLLUP = 2638|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SCROLLDOWN = 2639|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NEW = 2640|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_REDO = 2641|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_CLOSE = 2642|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_PLAY = 2643|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BASSBOOST = 2644|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_PRINT = 2645|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_CHAT = 2646|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_FINANCE = 2647|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_CANCEL = 2648|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_KBDILLUM_TOGGLE = 2649|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_KBDILLUM_DOWN = 2650|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_KBDILLUM_UP = 2651|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SEND = 2652|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_REPLY = 2653|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_FORWARDMAIL = 2654|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SAVE = 2655|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_DOCUMENTS = 2656|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_VIDEO_NEXT = 2657|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_VIDEO_PREV = 2658|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BRIGHTNESS_CYCLE = 2659|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BRIGHTNESS_ZERO = 2660|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_DISPLAY_OFF = 2661|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BTN_MISC = 2662|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_GOTO = 2663|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_INFO = 2664|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_PROGRAM = 2665|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_PVR = 2666|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SUBTITLE = 2667|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_FULL_SCREEN = 2668|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_KEYBOARD = 2669|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_ASPECT_RATIO = 2670|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_PC = 2671|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_TV = 2672|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_TV2 = 2673|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_VCR = 2674|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_VCR2 = 2675|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SAT = 2676|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_CD = 2677|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_TAPE = 2678|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_TUNER = 2679|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_PLAYER = 2680|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_DVD = 2681|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_AUDIO = 2682|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_VIDEO = 2683|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MEMO = 2684|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_CALENDAR = 2685|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_RED = 2686|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_GREEN = 2687|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_YELLOW = 2688|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BLUE = 2689|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_CHANNELUP = 2690|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_CHANNELDOWN = 2691|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_LAST = 2692|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_RESTART = 2693|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SLOW = 2694|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SHUFFLE = 2695|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_VIDEOPHONE = 2696|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_GAMES = 2697|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_ZOOMIN = 2698|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_ZOOMOUT = 2699|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_ZOOMRESET = 2700|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_WORDPROCESSOR = 2701|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_EDITOR = 2702|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SPREADSHEET = 2703|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_GRAPHICSEDITOR = 2704|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_PRESENTATION = 2705|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_DATABASE = 2706|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_NEWS = 2707|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_VOICEMAIL = 2708|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_ADDRESSBOOK = 2709|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MESSENGER = 2710|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BRIGHTNESS_TOGGLE = 2711|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SPELLCHECK = 2712|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_COFFEE = 2713|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MEDIA_REPEAT = 2714|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_IMAGES = 2715|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BUTTONCONFIG = 2716|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_TASKMANAGER = 2717|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_JOURNAL = 2718|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_CONTROLPANEL = 2719|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_APPSELECT = 2720|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SCREENSAVER = 2721|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_ASSISTANT = 2722|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_KBD_LAYOUT_NEXT = 2723|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BRIGHTNESS_MIN = 2724|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BRIGHTNESS_MAX = 2725|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_KBDINPUTASSIST_PREV = 2726|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_KBDINPUTASSIST_NEXT = 2727|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_KBDINPUTASSIST_PREVGROUP = 2728|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_KBDINPUTASSIST_NEXTGROUP = 2729|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_KBDINPUTASSIST_ACCEPT = 2730|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_KBDINPUTASSIST_CANCEL = 2731|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_FRONT = 2800|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SETUP = 2801|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_WAKEUP = 2802|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SENDFILE = 2803|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_DELETEFILE = 2804|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_XFER = 2805|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_PROG1 = 2806|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_PROG2 = 2807|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MSDOS = 2808|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SCREENLOCK = 2809|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_DIRECTION_ROTATE_DISPLAY = 2810|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_CYCLEWINDOWS = 2811|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_COMPUTER = 2812|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_EJECTCLOSECD = 2813|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_ISO = 2814|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_MOVE = 2815|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F13 = 2816|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F14 = 2817|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F15 = 2818|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F16 = 2819|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F17 = 2820|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F18 = 2821|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F19 = 2822|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F20 = 2823|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F21 = 2824|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F22 = 2825|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F23 = 2826|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_F24 = 2827|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_PROG3 = 2828|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_PROG4 = 2829|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_DASHBOARD = 2830|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SUSPEND = 2831|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_HP = 2832|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SOUND = 2833|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_QUESTION = 2834|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_CONNECT = 2836|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SPORT = 2837|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SHOP = 2838|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_ALTERASE = 2839|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_SWITCHVIDEOMODE = 2841|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BATTERY = 2842|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BLUETOOTH = 2843|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_WLAN = 2844|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_UWB = 2845|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_WWAN_WIMAX = 2846|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_RFKILL = 2847|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_CHANNEL = 3001|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BTN_0 = 3100|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BTN_1 = 3101|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BTN_2 = 3102|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BTN_3 = 3103|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BTN_4 = 3104|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BTN_5 = 3105|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BTN_6 = 3106|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BTN_7 = 3107|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BTN_8 = 3108|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyCode
类名: KeyCode
方法 or 属性: KEYCODE_BTN_9 = 3109|@ohos.multimodalInput.keyCode.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: Action|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: Action
方法 or 属性: CANCEL = 0|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: Action
方法 or 属性: DOWN = 1|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: Action
方法 or 属性: UP = 2|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: Key|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: Key
方法 or 属性: code: KeyCode;|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: Key
方法 or 属性: pressedTime: number;|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: Key
方法 or 属性: deviceId: number;|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: KeyEvent|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: KeyEvent
方法 or 属性: action: Action;|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: KeyEvent
方法 or 属性: key: Key;|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: KeyEvent
方法 or 属性: unicodeChar: number;|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: KeyEvent
方法 or 属性: keys: Key[];|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: KeyEvent
方法 or 属性: ctrlKey: boolean;|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: KeyEvent
方法 or 属性: altKey: boolean;|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: KeyEvent
方法 or 属性: shiftKey: boolean;|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: KeyEvent
方法 or 属性: logoKey: boolean;|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: KeyEvent
方法 or 属性: fnKey: boolean;|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: KeyEvent
方法 or 属性: capsLock: boolean;|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: KeyEvent
方法 or 属性: numLock: boolean;|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.keyEvent
类名: KeyEvent
方法 or 属性: scrollLock: boolean;|@ohos.multimodalInput.keyEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Action|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Action
方法 or 属性: CANCEL = 0|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Action
方法 or 属性: MOVE = 1|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Action
方法 or 属性: BUTTON_DOWN = 2|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Action
方法 or 属性: BUTTON_UP = 3|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Action
方法 or 属性: AXIS_BEGIN = 4|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Action
方法 or 属性: AXIS_UPDATE = 5|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Action
方法 or 属性: AXIS_END = 6|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Button|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Button
方法 or 属性: LEFT = 0|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Button
方法 or 属性: MIDDLE = 1|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Button
方法 or 属性: RIGHT = 2|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Button
方法 or 属性: SIDE = 3|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Button
方法 or 属性: EXTRA = 4|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Button
方法 or 属性: FORWARD = 5|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Button
方法 or 属性: BACK = 6|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Button
方法 or 属性: TASK = 7|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Axis|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Axis
方法 or 属性: SCROLL_VERTICAL = 0|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Axis
方法 or 属性: SCROLL_HORIZONTAL = 1|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: Axis
方法 or 属性: PINCH = 2|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: AxisValue|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: AxisValue
方法 or 属性: axis: Axis;|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: AxisValue
方法 or 属性: value: number|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: MouseEvent|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: MouseEvent
方法 or 属性: action: Action;|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: MouseEvent
方法 or 属性: screenX: number;|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: MouseEvent
方法 or 属性: screenY: number;|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: MouseEvent
方法 or 属性: windowX: number;|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: MouseEvent
方法 or 属性: windowY: number;|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: MouseEvent
方法 or 属性: rawDeltaX: number;|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: MouseEvent
方法 or 属性: rawDeltaY: number;|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: MouseEvent
方法 or 属性: button: Button;|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: MouseEvent
方法 or 属性: pressedButtons: Button[];|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: MouseEvent
方法 or 属性: axes: AxisValue[];|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: MouseEvent
方法 or 属性: pressedKeys: KeyCode[];|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: MouseEvent
方法 or 属性: ctrlKey: boolean;|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: MouseEvent
方法 or 属性: altKey: boolean;|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: MouseEvent
方法 or 属性: shiftKey: boolean;|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: MouseEvent
方法 or 属性: logoKey: boolean;|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: MouseEvent
方法 or 属性: fnKey:boolean|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: MouseEvent
方法 or 属性: capsLock:boolean|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: MouseEvent
方法 or 属性: numLock:boolean|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.mouseEvent
类名: MouseEvent
方法 or 属性: scrollLock:boolean|@ohos.multimodalInput.mouseEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: pointer|@ohos.multimodalInput.pointer.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| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: pointer
方法 or 属性: function setPointerSpeed(speed: number, callback: AsyncCallback\): void;|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: pointer
方法 or 属性: function setPointerSpeed(speed: number): Promise\;|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: pointer
方法 or 属性: function getPointerSpeed(callback: AsyncCallback\): void;|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: pointer
方法 or 属性: function getPointerSpeed(): Promise\;|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: pointer
方法 or 属性: function setPointerStyle(windowId: number, pointerStyle: PointerStyle, callback: AsyncCallback\): void;|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: pointer
方法 or 属性: function setPointerStyle(windowId: number, pointerStyle: PointerStyle): Promise\;|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: pointer
方法 or 属性: function getPointerStyle(windowId: number, callback: AsyncCallback\): void;|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: pointer
方法 or 属性: function getPointerStyle(windowId: number): Promise\;|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: pointer
方法 or 属性: function setPointerVisible(visible: boolean, callback: AsyncCallback\): void;|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: pointer
方法 or 属性: function setPointerVisible(visible: boolean): Promise\;|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: pointer
方法 or 属性: function isPointerVisible(callback: AsyncCallback\): void;|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: pointer
方法 or 属性: function isPointerVisible(): Promise\;|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Action|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Action
方法 or 属性: CANCEL = 0|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Action
方法 or 属性: DOWN = 1|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Action
方法 or 属性: MOVE = 2|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Action
方法 or 属性: UP = 3|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: ToolType|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: ToolType
方法 or 属性: FINGER = 0|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: ToolType
方法 or 属性: PEN = 1|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: ToolType
方法 or 属性: RUBBER = 2|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: ToolType
方法 or 属性: BRUSH = 3|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: ToolType
方法 or 属性: PENCIL = 4|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: ToolType
方法 or 属性: AIRBRUSH = 5|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: ToolType
方法 or 属性: MOUSE = 6|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: ToolType
方法 or 属性: LENS = 7|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: SourceType|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: SourceType
方法 or 属性: TOUCH_SCREEN = 0|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: SourceType
方法 or 属性: PEN = 1|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: SourceType
方法 or 属性: TOUCH_PAD = 2|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Touch|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Touch
方法 or 属性: id: number;|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Touch
方法 or 属性: pressedTime: number;|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Touch
方法 or 属性: screenX: number;|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Touch
方法 or 属性: screenY: number;|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Touch
方法 or 属性: windowX: number;|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Touch
方法 or 属性: windowY: number;|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Touch
方法 or 属性: pressure: number;|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Touch
方法 or 属性: width: number;|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Touch
方法 or 属性: height: number;|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Touch
方法 or 属性: tiltX: number;|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Touch
方法 or 属性: tiltY: number;|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Touch
方法 or 属性: toolX: number;|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Touch
方法 or 属性: toolY: number;|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Touch
方法 or 属性: toolWidth: number;|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Touch
方法 or 属性: toolHeight: number;|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Touch
方法 or 属性: rawX: number;|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Touch
方法 or 属性: rawY: number;|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: Touch
方法 or 属性: toolType: ToolType;|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: TouchEvent|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: TouchEvent
方法 or 属性: action: Action;|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: TouchEvent
方法 or 属性: touch: Touch;|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: TouchEvent
方法 or 属性: touches: Touch[];|@ohos.multimodalInput.touchEvent.d.ts| +|新增|NA|模块名: ohos.multimodalInput.touchEvent
类名: TouchEvent
方法 or 属性: sourceType: SourceType;|@ohos.multimodalInput.touchEvent.d.ts| +|废弃版本有变化|类名:inputDevice
方法 or 属性:function getDeviceIds(callback: AsyncCallback\>): void;
废弃版本:N/A|类名:inputDevice
方法 or 属性:function getDeviceIds(callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.multimodalInput.inputDevice|@ohos.multimodalInput.inputDevice.d.ts| +|废弃版本有变化|类名:inputDevice
方法 or 属性:function getDeviceIds(): Promise\>;
废弃版本:N/A|类名:inputDevice
方法 or 属性:function getDeviceIds(): Promise\>;
废弃版本:9
代替接口:ohos.multimodalInput.inputDevice|@ohos.multimodalInput.inputDevice.d.ts| +|废弃版本有变化|类名:inputDevice
方法 or 属性:function getDevice(deviceId: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:inputDevice
方法 or 属性:function getDevice(deviceId: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.multimodalInput.inputDevice|@ohos.multimodalInput.inputDevice.d.ts| +|废弃版本有变化|类名:inputDevice
方法 or 属性:function getDevice(deviceId: number): Promise\;
废弃版本:N/A|类名:inputDevice
方法 or 属性:function getDevice(deviceId: number): Promise\;
废弃版本:9
代替接口:ohos.multimodalInput.inputDevice|@ohos.multimodalInput.inputDevice.d.ts| +|起始版本有变化|类名:SourceType
方法 or 属性:type SourceType = 'keyboard' \| 'mouse' \| 'touchpad' \| 'touchscreen' \| 'joystick' \| 'trackball';
起始版本:N/A|类名:SourceType
方法 or 属性:type SourceType = 'keyboard' \| 'mouse' \| 'touchpad' \| 'touchscreen' \| 'joystick' \| 'trackball';
起始版本:9|@ohos.multimodalInput.inputDevice.d.ts| +|起始版本有变化|类名:SourceType
方法 or 属性:type SourceType = 'keyboard' \| 'mouse' \| 'touchpad' \| 'touchscreen' \| 'joystick' \| 'trackball';
起始版本:N/A|类名:SourceType
方法 or 属性:type SourceType = 'keyboard' \| 'mouse' \| 'touchpad' \| 'touchscreen' \| 'joystick' \| 'trackball';
起始版本:9|@ohos.multimodalInput.inputDevice.d.ts| +|起始版本有变化|类名:SourceType
方法 or 属性:type SourceType = 'keyboard' \| 'mouse' \| 'touchpad' \| 'touchscreen' \| 'joystick' \| 'trackball';
起始版本:N/A|类名:SourceType
方法 or 属性:type SourceType = 'keyboard' \| 'mouse' \| 'touchpad' \| 'touchscreen' \| 'joystick' \| 'trackball';
起始版本:9|@ohos.multimodalInput.inputDevice.d.ts| +|起始版本有变化|类名:SourceType
方法 or 属性:type SourceType = 'keyboard' \| 'mouse' \| 'touchpad' \| 'touchscreen' \| 'joystick' \| 'trackball';
起始版本:N/A|类名:SourceType
方法 or 属性:type SourceType = 'keyboard' \| 'mouse' \| 'touchpad' \| 'touchscreen' \| 'joystick' \| 'trackball';
起始版本:9|@ohos.multimodalInput.inputDevice.d.ts| +|起始版本有变化|类名:SourceType
方法 or 属性:type SourceType = 'keyboard' \| 'mouse' \| 'touchpad' \| 'touchscreen' \| 'joystick' \| 'trackball';
起始版本:N/A|类名:SourceType
方法 or 属性:type SourceType = 'keyboard' \| 'mouse' \| 'touchpad' \| 'touchscreen' \| 'joystick' \| 'trackball';
起始版本:9|@ohos.multimodalInput.inputDevice.d.ts| +|起始版本有变化|类名:SourceType
方法 or 属性:type SourceType = 'keyboard' \| 'mouse' \| 'touchpad' \| 'touchscreen' \| 'joystick' \| 'trackball';
起始版本:N/A|类名:SourceType
方法 or 属性:type SourceType = 'keyboard' \| 'mouse' \| 'touchpad' \| 'touchscreen' \| 'joystick' \| 'trackball';
起始版本:9|@ohos.multimodalInput.inputDevice.d.ts| +|起始版本有变化|类名:AxisRange
起始版本:N/A|类名:AxisRange
起始版本:8|@ohos.multimodalInput.inputDevice.d.ts| +|起始版本有变化|类名:AxisRange
方法 or 属性:source: SourceType;
起始版本:N/A|类名:AxisRange
方法 or 属性:source: SourceType;
起始版本:8|@ohos.multimodalInput.inputDevice.d.ts| +|起始版本有变化|类名:AxisRange
方法 or 属性:min: number;
起始版本:N/A|类名:AxisRange
方法 or 属性:min: number;
起始版本:8|@ohos.multimodalInput.inputDevice.d.ts| +|起始版本有变化|类名:InputDeviceData
起始版本:N/A|类名:InputDeviceData
起始版本:8|@ohos.multimodalInput.inputDevice.d.ts| +|起始版本有变化|类名:InputDeviceData
方法 or 属性:id: number;
起始版本:N/A|类名:InputDeviceData
方法 or 属性:id: number;
起始版本:8|@ohos.multimodalInput.inputDevice.d.ts| +|起始版本有变化|类名:InputDeviceData
方法 or 属性:name: string;
起始版本:N/A|类名:InputDeviceData
方法 or 属性:name: string;
起始版本:8|@ohos.multimodalInput.inputDevice.d.ts| +|起始版本有变化|类名:KeyEvent
起始版本:N/A|类名:KeyEvent
起始版本:8|@ohos.multimodalInput.inputEventClient.d.ts| +|新增(错误码)|NA|类名:inputConsumer
方法 or 属性:function on(type: "key", keyOptions: KeyOptions, callback: Callback\): void;
错误码内容: 401|@ohos.multimodalInput.inputConsumer.d.ts| +|新增(错误码)|NA|类名:inputConsumer
方法 or 属性:function off(type: "key", keyOptions: KeyOptions, callback?: Callback\): void;
错误码内容: 401|@ohos.multimodalInput.inputConsumer.d.ts| +|新增(错误码)|NA|类名:inputEventClient
方法 or 属性:function injectEvent({KeyEvent: KeyEvent}): void;
错误码内容: 401|@ohos.multimodalInput.inputEventClient.d.ts| +|新增(错误码)|NA|类名:inputMonitor
方法 or 属性:function on(type:"touch", receiver:TouchEventReceiver):void;
错误码内容: 401, 201|@ohos.multimodalInput.inputMonitor.d.ts| +|新增(错误码)|NA|类名:inputMonitor
方法 or 属性:function off(type:"touch", receiver?:TouchEventReceiver):void;
错误码内容: 401, 201|@ohos.multimodalInput.inputMonitor.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-multimedia.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-multimedia.md new file mode 100644 index 0000000000000000000000000000000000000000..66cd73a47249a4dc47fdf9083babb51306be474d --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-multimedia.md @@ -0,0 +1,1682 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.effectKit
类名: effectKit|@ohos.effectKit.d.ts| +|新增|NA|模块名: ohos.effectKit
类名: Filter|@ohos.effectKit.d.ts| +|新增|NA|模块名: ohos.effectKit
类名: Filter
方法 or 属性: blur(radius:number): Filter;|@ohos.effectKit.d.ts| +|新增|NA|模块名: ohos.effectKit
类名: Filter
方法 or 属性: brightness(bright:number): Filter;|@ohos.effectKit.d.ts| +|新增|NA|模块名: ohos.effectKit
类名: Filter
方法 or 属性: grayscale(): Filter;|@ohos.effectKit.d.ts| +|新增|NA|模块名: ohos.effectKit
类名: Filter
方法 or 属性: getPixelMap(): image.PixelMap;|@ohos.effectKit.d.ts| +|新增|NA|模块名: ohos.effectKit
类名: ColorPicker|@ohos.effectKit.d.ts| +|新增|NA|模块名: ohos.effectKit
类名: ColorPicker
方法 or 属性: getMainColor(): Promise\;|@ohos.effectKit.d.ts| +|新增|NA|模块名: ohos.effectKit
类名: ColorPicker
方法 or 属性: getMainColorSync(): Color;|@ohos.effectKit.d.ts| +|新增|NA|模块名: ohos.effectKit
类名: Color|@ohos.effectKit.d.ts| +|新增|NA|模块名: ohos.effectKit
类名: Color
方法 or 属性: red: number;|@ohos.effectKit.d.ts| +|新增|NA|模块名: ohos.effectKit
类名: Color
方法 or 属性: green: number;|@ohos.effectKit.d.ts| +|新增|NA|模块名: ohos.effectKit
类名: Color
方法 or 属性: blue: number;|@ohos.effectKit.d.ts| +|新增|NA|模块名: ohos.effectKit
类名: Color
方法 or 属性: alpha: number;|@ohos.effectKit.d.ts| +|新增|NA|模块名: ohos.effectKit
类名: effectKit
方法 or 属性: function createEffect(source: image.PixelMap): Filter;|@ohos.effectKit.d.ts| +|新增|NA|模块名: ohos.effectKit
类名: effectKit
方法 or 属性: function createColorPicker(source: image.PixelMap): Promise\;|@ohos.effectKit.d.ts| +|新增|NA|模块名: ohos.effectKit
类名: effectKit
方法 or 属性: function createColorPicker(source: image.PixelMap, callback: AsyncCallback\): void;|@ohos.effectKit.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioErrors
方法or属性:|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法 or 属性:ERROR_INVALID_PARAM = 6800101|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioErrors
方法or属性:ERROR_INVALID_PARAM = 6800101|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法 or 属性:ERROR_NO_MEMORY = 6800102|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioErrors
方法or属性:ERROR_NO_MEMORY = 6800102|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法 or 属性:ERROR_ILLEGAL_STATE = 6800103|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioErrors
方法or属性:ERROR_ILLEGAL_STATE = 6800103|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法 or 属性:ERROR_UNSUPPORTED = 6800104|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioErrors
方法or属性:ERROR_UNSUPPORTED = 6800104|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法 or 属性:ERROR_TIMEOUT = 6800105|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioErrors
方法or属性:ERROR_TIMEOUT = 6800105|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法 or 属性:ERROR_STREAM_LIMIT = 6800201|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioErrors
方法or属性:ERROR_STREAM_LIMIT = 6800201|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法 or 属性:ERROR_SYSTEM = 6800301|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioErrors
方法or属性:ERROR_SYSTEM = 6800301|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: audio
方法 or 属性:const LOCAL_NETWORK_ID: string;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:audio
方法or属性:const LOCAL_NETWORK_ID: string;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: audio
方法 or 属性:const DEFAULT_VOLUME_GROUP_ID: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:audio
方法or属性:const DEFAULT_VOLUME_GROUP_ID: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: audio
方法 or 属性:const DEFAULT_INTERRUPT_GROUP_ID: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:audio
方法or属性:const DEFAULT_INTERRUPT_GROUP_ID: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: audio
方法 or 属性:function createTonePlayer(options: AudioRendererInfo, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:audio
方法or属性:function createTonePlayer(options: AudioRendererInfo, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: audio
方法 or 属性:function createTonePlayer(options: AudioRendererInfo): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:audio
方法or属性:function createTonePlayer(options: AudioRendererInfo): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioState
方法or属性:STATE_NEW = 0|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioState
方法or属性:STATE_PREPARED = 1|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioState
方法or属性:STATE_RUNNING = 2|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioState
方法or属性:STATE_STOPPED = 3|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioState
方法or属性:STATE_RELEASED = 4|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioState
方法or属性:STATE_PAUSED = 5|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeType
方法 or 属性:ALL = 100|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeType
方法or属性:ALL = 100|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: DeviceFlag
方法 or 属性:NONE_DEVICES_FLAG = 0|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:DeviceFlag
方法or属性:NONE_DEVICES_FLAG = 0|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: DeviceFlag
方法 or 属性:DISTRIBUTED_OUTPUT_DEVICES_FLAG = 4|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:DeviceFlag
方法or属性:DISTRIBUTED_OUTPUT_DEVICES_FLAG = 4|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: DeviceFlag
方法 or 属性:DISTRIBUTED_INPUT_DEVICES_FLAG = 8|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:DeviceFlag
方法or属性:DISTRIBUTED_INPUT_DEVICES_FLAG = 8|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: DeviceFlag
方法 or 属性:ALL_DISTRIBUTED_DEVICES_FLAG = 12|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:DeviceFlag
方法or属性:ALL_DISTRIBUTED_DEVICES_FLAG = 12|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: DeviceType
方法 or 属性:DEFAULT = 1000|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:DeviceType
方法or属性:DEFAULT = 1000|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: CommunicationDeviceType|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:CommunicationDeviceType
方法or属性:|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: CommunicationDeviceType
方法 or 属性:SPEAKER = 2|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:CommunicationDeviceType
方法or属性:SPEAKER = 2|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioSampleFormat
方法 or 属性:SAMPLE_FORMAT_F32LE = 4|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioSampleFormat
方法or属性:SAMPLE_FORMAT_F32LE = 4|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: StreamUsage
方法 or 属性:STREAM_USAGE_VOICE_ASSISTANT = 3|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:StreamUsage
方法or属性:STREAM_USAGE_VOICE_ASSISTANT = 3|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptRequestType|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:InterruptRequestType
方法or属性:|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptRequestType
方法 or 属性:INTERRUPT_REQUEST_TYPE_DEFAULT = 0|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:InterruptRequestType
方法or属性:INTERRUPT_REQUEST_TYPE_DEFAULT = 0|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRendererFilter|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRendererFilter
方法or属性:|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRendererFilter
方法 or 属性:uid: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRendererFilter
方法or属性:uid: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRendererFilter
方法 or 属性:rendererInfo?: AudioRendererInfo;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRendererFilter
方法or属性:rendererInfo?: AudioRendererInfo;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRendererFilter
方法 or 属性:rendererId?: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRendererFilter
方法or属性:rendererId?: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptMode|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:InterruptMode
方法or属性:|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptMode
方法 or 属性:SHARE_MODE = 0|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:InterruptMode
方法or属性:SHARE_MODE = 0|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptMode
方法 or 属性:INDEPENDENT_MODE = 1|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:InterruptMode
方法or属性:INDEPENDENT_MODE = 1|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptForceType|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:InterruptForceType
方法or属性:|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptForceType
方法 or 属性:INTERRUPT_FORCE = 0|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:InterruptForceType
方法or属性:INTERRUPT_FORCE = 0|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptForceType
方法 or 属性:INTERRUPT_SHARE = 1|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:InterruptForceType
方法or属性:INTERRUPT_SHARE = 1|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptEvent|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:InterruptEvent
方法or属性:|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptEvent
方法 or 属性:eventType: InterruptType;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:InterruptEvent
方法or属性:eventType: InterruptType;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptEvent
方法 or 属性:forceType: InterruptForceType;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:InterruptEvent
方法or属性:forceType: InterruptForceType;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptEvent
方法 or 属性:hintType: InterruptHint;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:InterruptEvent
方法or属性:hintType: InterruptHint;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioScene
方法or属性:AUDIO_SCENE_RINGING = 1|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioScene
方法or属性:AUDIO_SCENE_PHONE_CALL = 2|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioScene
方法or属性:AUDIO_SCENE_VOICE_CHAT = 3|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioManager
方法or属性:getVolumeManager(): AudioVolumeManager;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioManager
方法or属性:getStreamManager(): AudioStreamManager;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioManager
方法or属性:getRoutingManager(): AudioRoutingManager;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptRequestResultType|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:InterruptRequestResultType
方法or属性:|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptRequestResultType
方法 or 属性:INTERRUPT_REQUEST_GRANT = 0|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:InterruptRequestResultType
方法or属性:INTERRUPT_REQUEST_GRANT = 0|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptRequestResultType
方法 or 属性:INTERRUPT_REQUEST_REJECT = 1|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:InterruptRequestResultType
方法or属性:INTERRUPT_REQUEST_REJECT = 1|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptResult|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:InterruptResult
方法or属性:|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptResult
方法 or 属性:requestResult: InterruptRequestResultType;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:InterruptResult
方法or属性:requestResult: InterruptRequestResultType;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptResult
方法 or 属性:interruptNode: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:InterruptResult
方法or属性:interruptNode: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRoutingManager
方法or属性:|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRoutingManager
方法 or 属性:getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRoutingManager
方法or属性:getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRoutingManager
方法 or 属性:getDevices(deviceFlag: DeviceFlag): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRoutingManager
方法or属性:getDevices(deviceFlag: DeviceFlag): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRoutingManager
方法 or 属性:on(type: 'deviceChange', deviceFlag: DeviceFlag, callback: Callback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRoutingManager
方法or属性:on(type: 'deviceChange', deviceFlag: DeviceFlag, callback: Callback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRoutingManager
方法 or 属性:off(type: 'deviceChange', callback?: Callback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRoutingManager
方法or属性:off(type: 'deviceChange', callback?: Callback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRoutingManager
方法 or 属性:setCommunicationDevice(deviceType: CommunicationDeviceType, active: boolean, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRoutingManager
方法or属性:setCommunicationDevice(deviceType: CommunicationDeviceType, active: boolean, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRoutingManager
方法 or 属性:setCommunicationDevice(deviceType: CommunicationDeviceType, active: boolean): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRoutingManager
方法or属性:setCommunicationDevice(deviceType: CommunicationDeviceType, active: boolean): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRoutingManager
方法 or 属性:isCommunicationDeviceActive(deviceType: CommunicationDeviceType, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRoutingManager
方法or属性:isCommunicationDeviceActive(deviceType: CommunicationDeviceType, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRoutingManager
方法 or 属性:isCommunicationDeviceActive(deviceType: CommunicationDeviceType): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRoutingManager
方法or属性:isCommunicationDeviceActive(deviceType: CommunicationDeviceType): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRoutingManager
方法 or 属性:selectOutputDevice(outputAudioDevices: AudioDeviceDescriptors, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRoutingManager
方法or属性:selectOutputDevice(outputAudioDevices: AudioDeviceDescriptors, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRoutingManager
方法 or 属性:selectOutputDevice(outputAudioDevices: AudioDeviceDescriptors): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRoutingManager
方法or属性:selectOutputDevice(outputAudioDevices: AudioDeviceDescriptors): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRoutingManager
方法 or 属性:selectOutputDeviceByFilter(filter: AudioRendererFilter, outputAudioDevices: AudioDeviceDescriptors, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRoutingManager
方法or属性:selectOutputDeviceByFilter(filter: AudioRendererFilter, outputAudioDevices: AudioDeviceDescriptors, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRoutingManager
方法 or 属性:selectOutputDeviceByFilter(filter: AudioRendererFilter, outputAudioDevices: AudioDeviceDescriptors): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRoutingManager
方法or属性:selectOutputDeviceByFilter(filter: AudioRendererFilter, outputAudioDevices: AudioDeviceDescriptors): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRoutingManager
方法 or 属性:selectInputDevice(inputAudioDevices: AudioDeviceDescriptors, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRoutingManager
方法or属性:selectInputDevice(inputAudioDevices: AudioDeviceDescriptors, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRoutingManager
方法 or 属性:selectInputDevice(inputAudioDevices: AudioDeviceDescriptors): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRoutingManager
方法or属性:selectInputDevice(inputAudioDevices: AudioDeviceDescriptors): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioStreamManager|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioStreamManager
方法or属性:|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioStreamManager
方法 or 属性:getCurrentAudioRendererInfoArray(callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioStreamManager
方法or属性:getCurrentAudioRendererInfoArray(callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioStreamManager
方法 or 属性:getCurrentAudioRendererInfoArray(): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioStreamManager
方法or属性:getCurrentAudioRendererInfoArray(): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioStreamManager
方法 or 属性:getCurrentAudioCapturerInfoArray(callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioStreamManager
方法or属性:getCurrentAudioCapturerInfoArray(callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioStreamManager
方法 or 属性:getCurrentAudioCapturerInfoArray(): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioStreamManager
方法or属性:getCurrentAudioCapturerInfoArray(): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioStreamManager
方法 or 属性:on(type: "audioRendererChange", callback: Callback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioStreamManager
方法or属性:on(type: "audioRendererChange", callback: Callback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioStreamManager
方法 or 属性:off(type: "audioRendererChange"): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioStreamManager
方法or属性:off(type: "audioRendererChange"): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioStreamManager
方法 or 属性:on(type: "audioCapturerChange", callback: Callback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioStreamManager
方法or属性:on(type: "audioCapturerChange", callback: Callback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioStreamManager
方法 or 属性:off(type: "audioCapturerChange"): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioStreamManager
方法or属性:off(type: "audioCapturerChange"): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioStreamManager
方法 or 属性:isActive(volumeType: AudioVolumeType, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioStreamManager
方法or属性:isActive(volumeType: AudioVolumeType, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioStreamManager
方法 or 属性:isActive(volumeType: AudioVolumeType): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioStreamManager
方法or属性:isActive(volumeType: AudioVolumeType): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeManager|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeManager
方法or属性:|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法 or 属性:getVolumeGroupInfos(networkId: string, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeManager
方法or属性:getVolumeGroupInfos(networkId: string, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法 or 属性:getVolumeGroupInfos(networkId: string): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeManager
方法or属性:getVolumeGroupInfos(networkId: string): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法 or 属性:getVolumeGroupManager(groupId: number, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeManager
方法or属性:getVolumeGroupManager(groupId: number, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法 or 属性:getVolumeGroupManager(groupId: number): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeManager
方法or属性:getVolumeGroupManager(groupId: number): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法 or 属性:on(type: 'volumeChange', callback: Callback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeManager
方法or属性:on(type: 'volumeChange', callback: Callback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:setVolume(volumeType: AudioVolumeType, volume: number, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:setVolume(volumeType: AudioVolumeType, volume: number, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:setVolume(volumeType: AudioVolumeType, volume: number): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:setVolume(volumeType: AudioVolumeType, volume: number): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:getVolume(volumeType: AudioVolumeType, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:getVolume(volumeType: AudioVolumeType, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:getVolume(volumeType: AudioVolumeType): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:getVolume(volumeType: AudioVolumeType): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:getMinVolume(volumeType: AudioVolumeType, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:getMinVolume(volumeType: AudioVolumeType, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:getMinVolume(volumeType: AudioVolumeType): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:getMinVolume(volumeType: AudioVolumeType): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:getMaxVolume(volumeType: AudioVolumeType, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:getMaxVolume(volumeType: AudioVolumeType, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:getMaxVolume(volumeType: AudioVolumeType): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:getMaxVolume(volumeType: AudioVolumeType): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:mute(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:mute(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:mute(volumeType: AudioVolumeType, mute: boolean): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:mute(volumeType: AudioVolumeType, mute: boolean): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:isMute(volumeType: AudioVolumeType, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:isMute(volumeType: AudioVolumeType, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:isMute(volumeType: AudioVolumeType): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:isMute(volumeType: AudioVolumeType): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:setRingerMode(mode: AudioRingMode, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:setRingerMode(mode: AudioRingMode, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:setRingerMode(mode: AudioRingMode): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:setRingerMode(mode: AudioRingMode): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:getRingerMode(callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:getRingerMode(callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:getRingerMode(): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:getRingerMode(): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:on(type: 'ringerModeChange', callback: Callback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:on(type: 'ringerModeChange', callback: Callback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:setMicrophoneMute(mute: boolean, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:setMicrophoneMute(mute: boolean, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:setMicrophoneMute(mute: boolean): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:setMicrophoneMute(mute: boolean): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:isMicrophoneMute(callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:isMicrophoneMute(callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:isMicrophoneMute(): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:isMicrophoneMute(): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法 or 属性:on(type: 'micStateChange', callback: Callback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioVolumeGroupManager
方法or属性:on(type: 'micStateChange', callback: Callback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ConnectType|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ConnectType
方法or属性:|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ConnectType
方法 or 属性:CONNECT_TYPE_LOCAL = 1|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ConnectType
方法or属性:CONNECT_TYPE_LOCAL = 1|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ConnectType
方法 or 属性:CONNECT_TYPE_DISTRIBUTED = 2|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ConnectType
方法or属性:CONNECT_TYPE_DISTRIBUTED = 2|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: VolumeGroupInfo|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:VolumeGroupInfo
方法or属性:|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: VolumeGroupInfo
方法 or 属性:readonly networkId: string;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:VolumeGroupInfo
方法or属性:readonly networkId: string;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: VolumeGroupInfo
方法 or 属性:readonly groupId: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:VolumeGroupInfo
方法or属性:readonly groupId: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: VolumeGroupInfo
方法 or 属性:readonly mappingId: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:VolumeGroupInfo
方法or属性:readonly mappingId: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: VolumeGroupInfo
方法 or 属性:readonly groupName: string;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:VolumeGroupInfo
方法or属性:readonly groupName: string;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: VolumeGroupInfo
方法 or 属性:readonly type: ConnectType;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:VolumeGroupInfo
方法or属性:readonly type: ConnectType;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRendererChangeInfo|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRendererChangeInfo
方法or属性:|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRendererChangeInfo
方法 or 属性:readonly streamId: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRendererChangeInfo
方法or属性:readonly streamId: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRendererChangeInfo
方法 or 属性:readonly clientUid: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRendererChangeInfo
方法or属性:readonly clientUid: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRendererChangeInfo
方法 or 属性:readonly rendererInfo: AudioRendererInfo;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRendererChangeInfo
方法or属性:readonly rendererInfo: AudioRendererInfo;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRendererChangeInfo
方法 or 属性:readonly rendererState: AudioState;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRendererChangeInfo
方法or属性:readonly rendererState: AudioState;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioRendererChangeInfo
方法 or 属性:readonly deviceDescriptors: AudioDeviceDescriptors;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRendererChangeInfo
方法or属性:readonly deviceDescriptors: AudioDeviceDescriptors;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioCapturerChangeInfo|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioCapturerChangeInfo
方法or属性:|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioCapturerChangeInfo
方法 or 属性:readonly streamId: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioCapturerChangeInfo
方法or属性:readonly streamId: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioCapturerChangeInfo
方法 or 属性:readonly clientUid: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioCapturerChangeInfo
方法or属性:readonly clientUid: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioCapturerChangeInfo
方法 or 属性:readonly capturerInfo: AudioCapturerInfo;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioCapturerChangeInfo
方法or属性:readonly capturerInfo: AudioCapturerInfo;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioCapturerChangeInfo
方法 or 属性:readonly capturerState: AudioState;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioCapturerChangeInfo
方法or属性:readonly capturerState: AudioState;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioCapturerChangeInfo
方法 or 属性:readonly deviceDescriptors: AudioDeviceDescriptors;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioCapturerChangeInfo
方法or属性:readonly deviceDescriptors: AudioDeviceDescriptors;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioDeviceDescriptor
方法 or 属性:readonly id: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioDeviceDescriptor
方法or属性:readonly id: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioDeviceDescriptor
方法 or 属性:readonly name: string;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioDeviceDescriptor
方法or属性:readonly name: string;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioDeviceDescriptor
方法 or 属性:readonly address: string;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioDeviceDescriptor
方法or属性:readonly address: string;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioDeviceDescriptor
方法 or 属性:readonly sampleRates: Array\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioDeviceDescriptor
方法or属性:readonly sampleRates: Array\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioDeviceDescriptor
方法 or 属性:readonly channelCounts: Array\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioDeviceDescriptor
方法or属性:readonly channelCounts: Array\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioDeviceDescriptor
方法 or 属性:readonly channelMasks: Array\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioDeviceDescriptor
方法or属性:readonly channelMasks: Array\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioDeviceDescriptor
方法 or 属性:readonly networkId: string;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioDeviceDescriptor
方法or属性:readonly networkId: string;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioDeviceDescriptor
方法 or 属性:readonly interruptGroupId: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioDeviceDescriptor
方法or属性:readonly interruptGroupId: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioDeviceDescriptor
方法 or 属性:readonly volumeGroupId: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioDeviceDescriptor
方法or属性:readonly volumeGroupId: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:VolumeEvent
方法or属性:volumeGroupId: number;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:VolumeEvent
方法or属性:networkId: string;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: MicStateChangeEvent|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:MicStateChangeEvent
方法or属性:|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: MicStateChangeEvent
方法 or 属性:mute: boolean;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:MicStateChangeEvent
方法or属性:mute: boolean;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRenderer
方法or属性:getAudioStreamId(callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRenderer
方法or属性:getAudioStreamId(): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRenderer
方法or属性:setInterruptMode(mode: InterruptMode, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRenderer
方法or属性:setInterruptMode(mode: InterruptMode): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRenderer
方法or属性:setVolume(volume: number, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRenderer
方法or属性:setVolume(volume: number): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioRenderer
方法or属性:on(type: 'audioInterrupt', callback: Callback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: SourceType
方法 or 属性:SOURCE_TYPE_VOICE_RECOGNITION = 1|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:SourceType
方法or属性:SOURCE_TYPE_VOICE_RECOGNITION = 1|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioCapturer
方法or属性:getAudioStreamId(callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:AudioCapturer
方法or属性:getAudioStreamId(): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_DIAL_0 = 0|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_DIAL_0 = 0|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_DIAL_1 = 1|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_DIAL_1 = 1|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_DIAL_2 = 2|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_DIAL_2 = 2|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_DIAL_3 = 3|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_DIAL_3 = 3|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_DIAL_4 = 4|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_DIAL_4 = 4|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_DIAL_5 = 5|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_DIAL_5 = 5|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_DIAL_6 = 6|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_DIAL_6 = 6|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_DIAL_7 = 7|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_DIAL_7 = 7|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_DIAL_8 = 8|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_DIAL_8 = 8|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_DIAL_9 = 9|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_DIAL_9 = 9|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_DIAL_S = 10|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_DIAL_S = 10|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_DIAL_P = 11|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_DIAL_P = 11|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_DIAL_A = 12|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_DIAL_A = 12|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_DIAL_B = 13|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_DIAL_B = 13|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_DIAL_C = 14|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_DIAL_C = 14|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_DIAL_D = 15|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_DIAL_D = 15|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_COMMON_SUPERVISORY_DIAL = 100|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_COMMON_SUPERVISORY_DIAL = 100|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_COMMON_SUPERVISORY_BUSY = 101|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_COMMON_SUPERVISORY_BUSY = 101|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_COMMON_SUPERVISORY_CONGESTION = 102|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_COMMON_SUPERVISORY_CONGESTION = 102|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_COMMON_SUPERVISORY_RADIO_ACK = 103|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_COMMON_SUPERVISORY_RADIO_ACK = 103|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_COMMON_SUPERVISORY_RADIO_NOT_AVAILABLE = 104|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_COMMON_SUPERVISORY_RADIO_NOT_AVAILABLE = 104|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_COMMON_SUPERVISORY_CALL_WAITING = 106|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_COMMON_SUPERVISORY_CALL_WAITING = 106|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_COMMON_SUPERVISORY_RINGTONE = 107|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_COMMON_SUPERVISORY_RINGTONE = 107|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_COMMON_PROPRIETARY_BEEP = 200|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_COMMON_PROPRIETARY_BEEP = 200|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_COMMON_PROPRIETARY_ACK = 201|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_COMMON_PROPRIETARY_ACK = 201|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_COMMON_PROPRIETARY_PROMPT = 203|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_COMMON_PROPRIETARY_PROMPT = 203|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法 or 属性:TONE_TYPE_COMMON_PROPRIETARY_DOUBLE_BEEP = 204|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:ToneType
方法or属性:TONE_TYPE_COMMON_PROPRIETARY_DOUBLE_BEEP = 204|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:TonePlayer
方法or属性:|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法 or 属性:load(type: ToneType, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:TonePlayer
方法or属性:load(type: ToneType, callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法 or 属性:load(type: ToneType): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:TonePlayer
方法or属性:load(type: ToneType): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法 or 属性:start(callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:TonePlayer
方法or属性:start(callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法 or 属性:start(): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:TonePlayer
方法or属性:start(): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法 or 属性:stop(callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:TonePlayer
方法or属性:stop(callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法 or 属性:stop(): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:TonePlayer
方法or属性:stop(): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法 or 属性:release(callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:TonePlayer
方法or属性:release(callback: AsyncCallback\): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法 or 属性:release(): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|类名:TonePlayer
方法or属性:release(): Promise\;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionType
方法 or 属性: type AVSessionType = 'audio' \| 'video';|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionType
方法 or 属性: type AVSessionType = 'audio' \| 'video';|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVControlCommandType
方法 or 属性: type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVControlCommandType
方法 or 属性: type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVControlCommandType
方法 or 属性: type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVControlCommandType
方法 or 属性: type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVControlCommandType
方法 or 属性: type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVControlCommandType
方法 or 属性: type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVControlCommandType
方法 or 属性: type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVControlCommandType
方法 or 属性: type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVControlCommandType
方法 or 属性: type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVControlCommandType
方法 or 属性: type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVControlCommandType
方法 or 属性: type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法 or 属性: function createAVSession(context: Context, tag: string, type: AVSessionType, callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法 or 属性: function createAVSession(context: Context, tag: string, type: AVSessionType): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法 or 属性: function getAllSessionDescriptors(callback: AsyncCallback\>>): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法 or 属性: function getAllSessionDescriptors(): Promise\>>;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法 or 属性: function createController(sessionId: string, callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法 or 属性: function createController(sessionId: string): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法 or 属性: function castAudio(session: SessionToken \| 'all', audioDevices: Array\, callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法 or 属性: function castAudio(session: SessionToken \| 'all', audioDevices: Array\): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: SessionToken|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: SessionToken
方法 or 属性: sessionId: string;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: SessionToken
方法 or 属性: pid: number;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: SessionToken
方法 or 属性: uid: number;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法 or 属性: function on(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback: (session: AVSessionDescriptor) => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法 or 属性: function on(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback: (session: AVSessionDescriptor) => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法 or 属性: function on(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback: (session: AVSessionDescriptor) => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法 or 属性: function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法 or 属性: function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法 or 属性: function off(type: 'sessionCreate' \| 'sessionDestroy' \| 'topSessionChange', callback?: (session: AVSessionDescriptor) => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法 or 属性: function on(type: 'sessionServiceDie', callback: () => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法 or 属性: function off(type: 'sessionServiceDie', callback?: () => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法 or 属性: function sendSystemAVKeyEvent(event: KeyEvent, callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法 or 属性: function sendSystemAVKeyEvent(event: KeyEvent): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法 or 属性: function sendSystemControlCommand(command: AVControlCommand, callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法 or 属性: function sendSystemControlCommand(command: AVControlCommand): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: readonly sessionId: string;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: setAVMetadata(data: AVMetadata, callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: setAVMetadata(data: AVMetadata): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: setAVPlaybackState(state: AVPlaybackState, callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: setAVPlaybackState(state: AVPlaybackState): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: setLaunchAbility(ability: WantAgent, callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: setLaunchAbility(ability: WantAgent): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: getController(callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: getController(): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: getOutputDevice(callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: getOutputDevice(): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: off(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback?: () => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: on(type: 'seek', callback: (time: number) => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: off(type: 'seek', callback?: (time: number) => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: on(type: 'setSpeed', callback: (speed: number) => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: off(type: 'setSpeed', callback?: (speed: number) => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: on(type: 'setLoopMode', callback: (mode: LoopMode) => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: off(type: 'setLoopMode', callback?: (mode: LoopMode) => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: on(type: 'toggleFavorite', callback: (assetId: string) => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: off(type: 'toggleFavorite', callback?: (assetId: string) => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: on(type: 'handleKeyEvent', callback: (event: KeyEvent) => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: off(type: 'handleKeyEvent', callback?: (event: KeyEvent) => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: on(type: 'outputDeviceChange', callback: (device: OutputDeviceInfo) => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: off(type: 'outputDeviceChange', callback?: (device: OutputDeviceInfo) => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: activate(callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: activate(): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: deactivate(callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: deactivate(): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: destroy(callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法 or 属性: destroy(): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法 or 属性: assetId: string;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法 or 属性: title?: string;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法 or 属性: artist?: string;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法 or 属性: author?: string;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法 or 属性: album?: string;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法 or 属性: writer?: string;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法 or 属性: composer?: string;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法 or 属性: duration?: number;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法 or 属性: mediaImage?: image.PixelMap \| string;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法 or 属性: publishDate?: Date;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法 or 属性: subtitle?: string;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法 or 属性: description?: string;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法 or 属性: lyric?: string;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法 or 属性: previousAssetId?: string;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法 or 属性: nextAssetId?: string;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法 or 属性: state?: PlaybackState;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法 or 属性: speed?: number;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法 or 属性: position?: PlaybackPosition;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法 or 属性: bufferedTime?: number;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法 or 属性: loopMode?: LoopMode;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法 or 属性: isFavorite?: boolean;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackPosition|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackPosition
方法 or 属性: elapsedTime: number;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackPosition
方法 or 属性: updateTime: number;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: OutputDeviceInfo|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: OutputDeviceInfo
方法 or 属性: isRemote: boolean;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: OutputDeviceInfo
方法 or 属性: audioDeviceId: Array\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: OutputDeviceInfo
方法 or 属性: deviceName: Array\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: LoopMode|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: LoopMode
方法 or 属性: LOOP_MODE_SEQUENCE = 0|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: LoopMode
方法 or 属性: LOOP_MODE_SINGLE = 1|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: LoopMode
方法 or 属性: LOOP_MODE_LIST = 2|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: LoopMode
方法 or 属性: LOOP_MODE_SHUFFLE = 3|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法 or 属性: PLAYBACK_STATE_INITIAL = 0|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法 or 属性: PLAYBACK_STATE_PREPARE = 1|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法 or 属性: PLAYBACK_STATE_PLAY = 2|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法 or 属性: PLAYBACK_STATE_PAUSE = 3|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法 or 属性: PLAYBACK_STATE_FAST_FORWARD = 4|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法 or 属性: PLAYBACK_STATE_REWIND = 5|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法 or 属性: PLAYBACK_STATE_STOP = 6|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法 or 属性: sessionId: string;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法 or 属性: type: AVSessionType;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法 or 属性: sessionTag: string;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法 or 属性: elementName: ElementName;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法 or 属性: isActive: boolean;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法 or 属性: isTopSession: boolean;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法 or 属性: outputDevice: OutputDeviceInfo;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: readonly sessionId: string;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: getAVPlaybackState(callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: getAVPlaybackState(): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: getAVMetadata(callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: getAVMetadata(): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: getOutputDevice(callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: getOutputDevice(): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: sendAVKeyEvent(event: KeyEvent, callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: sendAVKeyEvent(event: KeyEvent): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: getLaunchAbility(callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: getLaunchAbility(): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: getRealPlaybackPositionSync(): number;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: isActive(callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: isActive(): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: destroy(callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: destroy(): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: getValidCommands(callback: AsyncCallback\>): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: getValidCommands(): Promise\>;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: sendControlCommand(command: AVControlCommand, callback: AsyncCallback\): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: sendControlCommand(command: AVControlCommand): Promise\;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: on(type: 'metadataChange', filter: Array\ \| 'all', callback: (data: AVMetadata) => void);|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: off(type: 'metadataChange', callback?: (data: AVMetadata) => void);|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: on(type: 'playbackStateChange', filter: Array\ \| 'all', callback: (state: AVPlaybackState) => void);|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: off(type: 'playbackStateChange', callback?: (state: AVPlaybackState) => void);|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: on(type: 'sessionDestroy', callback: () => void);|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: off(type: 'sessionDestroy', callback?: () => void);|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: on(type: 'activeStateChange', callback: (isActive: boolean) => void);|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: off(type: 'activeStateChange', callback?: (isActive: boolean) => void);|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: on(type: 'validCommandChange', callback: (commands: Array\) => void);|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: off(type: 'validCommandChange', callback?: (commands: Array\) => void);|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: on(type: 'outputDeviceChange', callback: (device: OutputDeviceInfo) => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法 or 属性: off(type: 'outputDeviceChange', callback?: (device: OutputDeviceInfo) => void): void;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVControlCommand|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVControlCommand
方法 or 属性: command: AVControlCommandType;|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVControlCommand
方法 or 属性: parameter?: LoopMode \| string \| number;|@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 = 6600101|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法 or 属性: ERR_CODE_SESSION_NOT_EXIST = 6600102|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法 or 属性: ERR_CODE_CONTROLLER_NOT_EXIST = 6600103|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法 or 属性: ERR_CODE_REMOTE_CONNECTION_ERR = 6600104|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法 or 属性: ERR_CODE_COMMAND_INVALID = 6600105|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法 or 属性: ERR_CODE_SESSION_INACTIVE = 6600106|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法 or 属性: ERR_CODE_MESSAGE_OVERLOAD = 6600107|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: camera|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: camera
方法 or 属性: function getCameraManager(context: Context): CameraManager;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraStatus|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraStatus
方法 or 属性: CAMERA_STATUS_APPEAR = 0|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraStatus
方法 or 属性: CAMERA_STATUS_DISAPPEAR = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraStatus
方法 or 属性: CAMERA_STATUS_AVAILABLE = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraStatus
方法 or 属性: 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 属性: readonly format: CameraFormat;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Profile
方法 or 属性: readonly size: Size;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FrameRateRange|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FrameRateRange
方法 or 属性: readonly min: number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FrameRateRange
方法 or 属性: readonly max: number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoProfile|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoProfile
方法 or 属性: readonly frameRateRange: FrameRateRange;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutputCapability|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutputCapability
方法 or 属性: readonly previewProfiles: Array\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutputCapability
方法 or 属性: readonly photoProfiles: Array\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutputCapability
方法 or 属性: readonly videoProfiles: Array\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutputCapability
方法 or 属性: readonly supportedMetadataObjectTypes: Array\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraErrorCode|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: 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|模块名: ohos.multimedia.camera
类名: 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|模块名: ohos.multimedia.camera
类名: 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|模块名: ohos.multimedia.camera
类名: 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|模块名: ohos.multimedia.camera
类名: CameraErrorCode
方法 or 属性: SERVICE_FATAL_ERROR = 7400201|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraManager|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraManager
方法 or 属性: getSupportedCameras(): Array\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraManager
方法 or 属性: getSupportedOutputCapability(camera: CameraDevice): CameraOutputCapability;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraManager
方法 or 属性: isCameraMuted(): boolean;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraManager
方法 or 属性: isCameraMuteSupported(): boolean;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraManager
方法 or 属性: muteCamera(mute: boolean): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraManager
方法 or 属性: createCameraInput(camera: CameraDevice): CameraInput;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraManager
方法 or 属性: createCameraInput(position: CameraPosition, type: CameraType): CameraInput;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraManager
方法 or 属性: createPreviewOutput(profile: Profile, surfaceId: string): PreviewOutput;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraManager
方法 or 属性: createPhotoOutput(profile: Profile, surfaceId: string): PhotoOutput;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraManager
方法 or 属性: createVideoOutput(profile: VideoProfile, surfaceId: string): VideoOutput;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraManager
方法 or 属性: createMetadataOutput(metadataObjectTypes: Array\): MetadataOutput;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraManager
方法 or 属性: createCaptureSession(): CaptureSession;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraManager
方法 or 属性: on(type: 'cameraStatus', callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraManager
方法 or 属性: on(type: 'cameraMute', callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraStatusInfo|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraStatusInfo
方法 or 属性: camera: CameraDevice;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraStatusInfo
方法 or 属性: status: CameraStatus;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraPosition|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraPosition
方法 or 属性: CAMERA_POSITION_UNSPECIFIED = 0|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraPosition
方法 or 属性: CAMERA_POSITION_BACK = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraPosition
方法 or 属性: CAMERA_POSITION_FRONT = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraType|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraType
方法 or 属性: CAMERA_TYPE_DEFAULT = 0|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraType
方法 or 属性: CAMERA_TYPE_WIDE_ANGLE = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraType
方法 or 属性: CAMERA_TYPE_ULTRA_WIDE = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraType
方法 or 属性: CAMERA_TYPE_TELEPHOTO = 3|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraType
方法 or 属性: CAMERA_TYPE_TRUE_DEPTH = 4|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: ConnectionType|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: ConnectionType
方法 or 属性: CAMERA_CONNECTION_BUILT_IN = 0|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: ConnectionType
方法 or 属性: CAMERA_CONNECTION_USB_PLUGIN = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: ConnectionType
方法 or 属性: 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 属性: readonly cameraId: string;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraDevice
方法 or 属性: readonly cameraPosition: CameraPosition;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraDevice
方法 or 属性: readonly cameraType: CameraType;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraDevice
方法 or 属性: readonly connectionType: ConnectionType;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Size|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Size
方法 or 属性: height: number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Size
方法 or 属性: width: number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Point|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Point
方法 or 属性: x: number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Point
方法 or 属性: y: number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraInput|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraInput
方法 or 属性: open(callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraInput
方法 or 属性: open(): Promise\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraInput
方法 or 属性: close(callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraInput
方法 or 属性: close(): Promise\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraInput
方法 or 属性: on(type: 'error', camera: CameraDevice, callback: ErrorCallback\): void;|@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 = 3|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraFormat
方法 or 属性: CAMERA_FORMAT_YUV_420_SP = 1003|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraFormat
方法 or 属性: CAMERA_FORMAT_JPEG = 2000|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FlashMode|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FlashMode
方法 or 属性: FLASH_MODE_CLOSE = 0|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FlashMode
方法 or 属性: FLASH_MODE_OPEN = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FlashMode
方法 or 属性: FLASH_MODE_AUTO = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FlashMode
方法 or 属性: 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 = 0|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: ExposureMode
方法 or 属性: EXPOSURE_MODE_AUTO = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: ExposureMode
方法 or 属性: EXPOSURE_MODE_CONTINUOUS_AUTO = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FocusMode|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FocusMode
方法 or 属性: FOCUS_MODE_MANUAL = 0|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FocusMode
方法 or 属性: FOCUS_MODE_CONTINUOUS_AUTO = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FocusMode
方法 or 属性: FOCUS_MODE_AUTO = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FocusMode
方法 or 属性: FOCUS_MODE_LOCKED = 3|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FocusState|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FocusState
方法 or 属性: FOCUS_STATE_SCAN = 0|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FocusState
方法 or 属性: FOCUS_STATE_FOCUSED = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FocusState
方法 or 属性: 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 = 0|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法 or 属性: LOW = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法 or 属性: MIDDLE = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法 or 属性: HIGH = 3|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法 or 属性: AUTO = 4|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: beginConfig(): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: commitConfig(callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: commitConfig(): Promise\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: addInput(cameraInput: CameraInput): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: removeInput(cameraInput: CameraInput): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: addOutput(cameraOutput: CameraOutput): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: removeOutput(cameraOutput: CameraOutput): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: start(callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: start(): Promise\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: stop(callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: stop(): Promise\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: release(callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: release(): Promise\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: hasFlash(): boolean;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: isFlashModeSupported(flashMode: FlashMode): boolean;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: getFlashMode(): FlashMode;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: setFlashMode(flashMode: FlashMode): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: isExposureModeSupported(aeMode: ExposureMode): boolean;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: getExposureMode(): ExposureMode;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: setExposureMode(aeMode: ExposureMode): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: getMeteringPoint(): Point;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: setMeteringPoint(point: Point): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: getExposureBiasRange(): Array\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: setExposureBias(exposureBias: number): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: getExposureValue(): number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: isFocusModeSupported(afMode: FocusMode): boolean;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: getFocusMode(): FocusMode;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: setFocusMode(afMode: FocusMode): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: setFocusPoint(point: Point): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: getFocusPoint(): Point;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: getFocalLength(): number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: getZoomRatioRange(): Array\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: getZoomRatio(): number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: setZoomRatio(zoomRatio: number): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: isVideoStabilizationModeSupported(vsMode: VideoStabilizationMode): boolean;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: getActiveVideoStabilizationMode(): VideoStabilizationMode;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: setVideoStabilizationMode(mode: VideoStabilizationMode): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: on(type: 'focusStateChange', callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSession
方法 or 属性: on(type: 'error', callback: ErrorCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutput|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutput
方法 or 属性: release(callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutput
方法 or 属性: release(): Promise\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PreviewOutput|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PreviewOutput
方法 or 属性: start(callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PreviewOutput
方法 or 属性: start(): Promise\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PreviewOutput
方法 or 属性: stop(callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PreviewOutput
方法 or 属性: stop(): Promise\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PreviewOutput
方法 or 属性: on(type: 'frameStart', callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PreviewOutput
方法 or 属性: on(type: 'frameEnd', callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PreviewOutput
方法 or 属性: on(type: 'error', callback: ErrorCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: ImageRotation|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: ImageRotation
方法 or 属性: ROTATION_0 = 0|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: ImageRotation
方法 or 属性: ROTATION_90 = 90|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: ImageRotation
方法 or 属性: ROTATION_180 = 180|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: ImageRotation
方法 or 属性: ROTATION_270 = 270|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Location|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Location
方法 or 属性: latitude: number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Location
方法 or 属性: longitude: number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Location
方法 or 属性: altitude: number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: QualityLevel|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: QualityLevel
方法 or 属性: QUALITY_LEVEL_HIGH = 0|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: QualityLevel
方法 or 属性: QUALITY_LEVEL_MEDIUM = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: QualityLevel
方法 or 属性: QUALITY_LEVEL_LOW = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoCaptureSetting|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoCaptureSetting
方法 or 属性: quality?: QualityLevel;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoCaptureSetting
方法 or 属性: rotation?: ImageRotation;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoCaptureSetting
方法 or 属性: location?: Location;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoCaptureSetting
方法 or 属性: mirror?: boolean;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoOutput|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoOutput
方法 or 属性: capture(callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoOutput
方法 or 属性: capture(): Promise\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoOutput
方法 or 属性: capture(setting: PhotoCaptureSetting, callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoOutput
方法 or 属性: capture(setting?: PhotoCaptureSetting): Promise\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoOutput
方法 or 属性: isMirrorSupported(): boolean;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoOutput
方法 or 属性: on(type: 'captureStart', callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoOutput
方法 or 属性: on(type: 'frameShutter', callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoOutput
方法 or 属性: on(type: 'captureEnd', callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoOutput
方法 or 属性: on(type: 'error', callback: ErrorCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FrameShutterInfo|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FrameShutterInfo
方法 or 属性: captureId: number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FrameShutterInfo
方法 or 属性: timestamp: number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureEndInfo|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureEndInfo
方法 or 属性: captureId: number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureEndInfo
方法 or 属性: frameCount: number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoOutput|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoOutput
方法 or 属性: start(callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoOutput
方法 or 属性: start(): Promise\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoOutput
方法 or 属性: stop(callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoOutput
方法 or 属性: stop(): Promise\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoOutput
方法 or 属性: on(type: 'frameStart', callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoOutput
方法 or 属性: on(type: 'frameEnd', callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoOutput
方法 or 属性: on(type: 'error', callback: ErrorCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObjectType|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObjectType
方法 or 属性: FACE_DETECTION = 0|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Rect|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Rect
方法 or 属性: topLeftX: number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Rect
方法 or 属性: topLeftY: number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Rect
方法 or 属性: width: number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Rect
方法 or 属性: height: number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObject|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObject
方法 or 属性: readonly type: MetadataObjectType;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObject
方法 or 属性: readonly timestamp: number;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObject
方法 or 属性: readonly boundingBox: Rect;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput
方法 or 属性: start(callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput
方法 or 属性: start(): Promise\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput
方法 or 属性: stop(callback: AsyncCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput
方法 or 属性: stop(): Promise\;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput
方法 or 属性: on(type: 'metadataObjectsAvailable', callback: AsyncCallback\>): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput
方法 or 属性: on(type: 'error', callback: ErrorCallback\): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMapFormat
方法 or 属性:BGRA_8888 = 4|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMapFormat
方法or属性:BGRA_8888 = 4|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMapFormat
方法 or 属性:RGB_888 = 5|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMapFormat
方法or属性:RGB_888 = 5|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMapFormat
方法 or 属性:ALPHA_8 = 6|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMapFormat
方法or属性:ALPHA_8 = 6|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMapFormat
方法 or 属性:RGBA_F16 = 7|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMapFormat
方法or属性:RGBA_F16 = 7|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMapFormat
方法 or 属性:NV21 = 8|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMapFormat
方法or属性:NV21 = 8|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMapFormat
方法 or 属性:NV12 = 9|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMapFormat
方法or属性:NV12 = 9|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PropertyKey
方法 or 属性:DATE_TIME_ORIGINAL = "DateTimeOriginal"|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PropertyKey
方法or属性:DATE_TIME_ORIGINAL = "DateTimeOriginal"|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PropertyKey
方法 or 属性:EXPOSURE_TIME = "ExposureTime"|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PropertyKey
方法or属性:EXPOSURE_TIME = "ExposureTime"|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PropertyKey
方法 or 属性:SCENE_TYPE = "SceneType"|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PropertyKey
方法or属性:SCENE_TYPE = "SceneType"|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PropertyKey
方法 or 属性:ISO_SPEED_RATINGS = "ISOSpeedRatings"|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PropertyKey
方法or属性:ISO_SPEED_RATINGS = "ISOSpeedRatings"|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PropertyKey
方法 or 属性:F_NUMBER = "FNumber"|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PropertyKey
方法or属性:F_NUMBER = "FNumber"|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageFormat|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageFormat
方法or属性:|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageFormat
方法 or 属性:YCBCR_422_SP = 1000|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageFormat
方法or属性:YCBCR_422_SP = 1000|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageFormat
方法 or 属性:JPEG = 2000|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageFormat
方法or属性:JPEG = 2000|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: AlphaType|@ohos.multimedia.image.d.ts| +|新增|NA|类名:AlphaType
方法or属性:|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: AlphaType
方法 or 属性:UNKNOWN = 0|@ohos.multimedia.image.d.ts| +|新增|NA|类名:AlphaType
方法or属性:UNKNOWN = 0|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: AlphaType
方法 or 属性:OPAQUE = 1|@ohos.multimedia.image.d.ts| +|新增|NA|类名:AlphaType
方法or属性:OPAQUE = 1|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: AlphaType
方法 or 属性:PREMUL = 2|@ohos.multimedia.image.d.ts| +|新增|NA|类名:AlphaType
方法or属性:PREMUL = 2|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: AlphaType
方法 or 属性:UNPREMUL = 3|@ohos.multimedia.image.d.ts| +|新增|NA|类名:AlphaType
方法or属性:UNPREMUL = 3|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ScaleMode|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ScaleMode
方法or属性:|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ScaleMode
方法 or 属性:FIT_TARGET_SIZE = 0|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ScaleMode
方法or属性:FIT_TARGET_SIZE = 0|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ScaleMode
方法 or 属性:CENTER_CROP = 1|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ScaleMode
方法or属性:CENTER_CROP = 1|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ComponentType|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ComponentType
方法or属性:|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ComponentType
方法 or 属性:YUV_Y = 1|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ComponentType
方法or属性:YUV_Y = 1|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ComponentType
方法 or 属性:YUV_U = 2|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ComponentType
方法or属性:YUV_U = 2|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ComponentType
方法 or 属性:YUV_V = 3|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ComponentType
方法or属性:YUV_V = 3|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ComponentType
方法 or 属性:JPEG = 4|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ComponentType
方法or属性:JPEG = 4|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageInfo
方法 or 属性:density: number;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageInfo
方法or属性:density: number;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PackingOption
方法 or 属性:bufferSize?: number;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PackingOption
方法or属性:bufferSize?: number;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: DecodingOptions
方法 or 属性:fitDensity?: number;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:DecodingOptions
方法or属性:fitDensity?: number;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: Component|@ohos.multimedia.image.d.ts| +|新增|NA|类名:Component
方法or属性:|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: Component
方法 or 属性:readonly componentType: ComponentType;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:Component
方法or属性:readonly componentType: ComponentType;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: Component
方法 or 属性:readonly rowStride: number;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:Component
方法or属性:readonly rowStride: number;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: Component
方法 or 属性:readonly pixelStride: number;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:Component
方法or属性:readonly pixelStride: number;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: Component
方法 or 属性:readonly byteBuffer: ArrayBuffer;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:Component
方法or属性:readonly byteBuffer: ArrayBuffer;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: InitializationOptions
方法 or 属性:alphaType?: AlphaType;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:InitializationOptions
方法or属性:alphaType?: AlphaType;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: InitializationOptions
方法 or 属性:scaleMode?: ScaleMode;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:InitializationOptions
方法or属性:scaleMode?: ScaleMode;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: SourceOptions|@ohos.multimedia.image.d.ts| +|新增|NA|类名:SourceOptions
方法or属性:|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: SourceOptions
方法 or 属性:sourceDensity: number;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:SourceOptions
方法or属性:sourceDensity: number;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: SourceOptions
方法 or 属性:sourcePixelFormat?: PixelMapFormat;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:SourceOptions
方法or属性:sourcePixelFormat?: PixelMapFormat;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: SourceOptions
方法 or 属性:sourceSize?: Size;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:SourceOptions
方法or属性:sourceSize?: Size;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: image
方法 or 属性:function createImageSource(uri: string, options: SourceOptions): ImageSource;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:image
方法or属性:function createImageSource(uri: string, options: SourceOptions): ImageSource;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: image
方法 or 属性:function createImageSource(fd: number, options: SourceOptions): ImageSource;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:image
方法or属性:function createImageSource(fd: number, options: SourceOptions): ImageSource;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: image
方法 or 属性:function createImageSource(buf: ArrayBuffer): ImageSource;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:image
方法or属性:function createImageSource(buf: ArrayBuffer): ImageSource;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: image
方法 or 属性:function createImageSource(buf: ArrayBuffer, options: SourceOptions): ImageSource;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:image
方法or属性:function createImageSource(buf: ArrayBuffer, options: SourceOptions): ImageSource;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: image
方法 or 属性:function CreateIncrementalSource(buf: ArrayBuffer): ImageSource;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:image
方法or属性:function CreateIncrementalSource(buf: ArrayBuffer): ImageSource;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: image
方法 or 属性:function CreateIncrementalSource(buf: ArrayBuffer, options?: SourceOptions): ImageSource;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:image
方法or属性:function CreateIncrementalSource(buf: ArrayBuffer, options?: SourceOptions): ImageSource;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: image
方法 or 属性:function createImageReceiver(width: number, height: number, format: number, capacity: number): ImageReceiver;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:image
方法or属性:function createImageReceiver(width: number, height: number, format: number, capacity: number): ImageReceiver;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: image
方法 or 属性:function createImageCreator(width: number, height: number, format: number, capacity: number): ImageCreator;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:image
方法or属性:function createImageCreator(width: number, height: number, format: number, capacity: number): ImageCreator;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMap
方法 or 属性:getDensity():number;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMap
方法or属性:getDensity():number;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMap
方法 or 属性:opacity(rate: number, callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMap
方法or属性:opacity(rate: number, callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMap
方法 or 属性:opacity(rate: number): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMap
方法or属性:opacity(rate: number): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMap
方法 or 属性:createAlphaPixelmap(): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMap
方法or属性:createAlphaPixelmap(): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMap
方法 or 属性:createAlphaPixelmap(callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMap
方法or属性:createAlphaPixelmap(callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMap
方法 or 属性:scale(x: number, y: number, callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMap
方法or属性:scale(x: number, y: number, callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMap
方法 or 属性:scale(x: number, y: number): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMap
方法or属性:scale(x: number, y: number): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMap
方法 or 属性:translate(x: number, y: number, callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMap
方法or属性:translate(x: number, y: number, callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMap
方法 or 属性:translate(x: number, y: number): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMap
方法or属性:translate(x: number, y: number): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMap
方法 or 属性:rotate(angle: number, callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMap
方法or属性:rotate(angle: number, callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMap
方法 or 属性:rotate(angle: number): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMap
方法or属性:rotate(angle: number): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMap
方法 or 属性:flip(horizontal: boolean, vertical: boolean, callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMap
方法or属性:flip(horizontal: boolean, vertical: boolean, callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMap
方法 or 属性:flip(horizontal: boolean, vertical: boolean): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMap
方法or属性:flip(horizontal: boolean, vertical: boolean): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMap
方法 or 属性:crop(region: Region, callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMap
方法or属性:crop(region: Region, callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMap
方法 or 属性:crop(region: Region): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:PixelMap
方法or属性:crop(region: Region): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageSource
方法or属性:modifyImageProperty(key: string, value: string): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageSource
方法or属性:modifyImageProperty(key: string, value: string, callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageSource
方法or属性:updateData(buf: ArrayBuffer, isFinished: boolean, value: number, length: number): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageSource
方法or属性:updateData(buf: ArrayBuffer, isFinished: boolean, value: number, length: number, callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: Image|@ohos.multimedia.image.d.ts| +|新增|NA|类名:Image
方法or属性:|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: Image
方法 or 属性:clipRect: Region;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:Image
方法or属性:clipRect: Region;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: Image
方法 or 属性:readonly size: Size;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:Image
方法or属性:readonly size: Size;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: Image
方法 or 属性:readonly format: number;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:Image
方法or属性:readonly format: number;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: Image
方法 or 属性:getComponent(componentType: ComponentType, callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:Image
方法or属性:getComponent(componentType: ComponentType, callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: Image
方法 or 属性:getComponent(componentType: ComponentType): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:Image
方法or属性:getComponent(componentType: ComponentType): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: Image
方法 or 属性:release(callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:Image
方法or属性:release(callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: Image
方法 or 属性:release(): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:Image
方法or属性:release(): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageReceiver|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageReceiver
方法or属性:|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageReceiver
方法 or 属性:readonly size: Size;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageReceiver
方法or属性:readonly size: Size;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageReceiver
方法 or 属性:readonly capacity: number;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageReceiver
方法or属性:readonly capacity: number;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageReceiver
方法 or 属性:readonly format: ImageFormat;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageReceiver
方法or属性:readonly format: ImageFormat;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageReceiver
方法 or 属性:getReceivingSurfaceId(callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageReceiver
方法or属性:getReceivingSurfaceId(callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageReceiver
方法 or 属性:getReceivingSurfaceId(): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageReceiver
方法or属性:getReceivingSurfaceId(): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageReceiver
方法 or 属性:readLatestImage(callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageReceiver
方法or属性:readLatestImage(callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageReceiver
方法 or 属性:readLatestImage(): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageReceiver
方法or属性:readLatestImage(): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageReceiver
方法 or 属性:readNextImage(callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageReceiver
方法or属性:readNextImage(callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageReceiver
方法 or 属性:readNextImage(): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageReceiver
方法or属性:readNextImage(): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageReceiver
方法 or 属性:on(type: 'imageArrival', callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageReceiver
方法or属性:on(type: 'imageArrival', callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageReceiver
方法 or 属性:release(callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageReceiver
方法or属性:release(callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageReceiver
方法 or 属性:release(): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageReceiver
方法or属性:release(): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageCreator
方法or属性:|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法 or 属性:readonly capacity: number;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageCreator
方法or属性:readonly capacity: number;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法 or 属性:readonly format: ImageFormat;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageCreator
方法or属性:readonly format: ImageFormat;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法 or 属性:dequeueImage(callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageCreator
方法or属性:dequeueImage(callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法 or 属性:dequeueImage(): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageCreator
方法or属性:dequeueImage(): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法 or 属性:queueImage(interface: Image, callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageCreator
方法or属性:queueImage(interface: Image, callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法 or 属性:queueImage(interface: Image): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageCreator
方法or属性:queueImage(interface: Image): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法 or 属性:on(type: 'imageRelease', callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageCreator
方法or属性:on(type: 'imageRelease', callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法 or 属性:release(callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageCreator
方法or属性:release(callback: AsyncCallback\): void;|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法 or 属性:release(): Promise\;|@ohos.multimedia.image.d.ts| +|新增|NA|类名:ImageCreator
方法or属性:release(): Promise\;|@ohos.multimedia.image.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|模块名: ohos.multimedia.media
类名: VideoRecordState
方法 or 属性:type VideoRecordState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecordState
方法or属性:type VideoRecordState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecordState
方法 or 属性:type VideoRecordState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecordState
方法or属性:type VideoRecordState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecordState
方法 or 属性:type VideoRecordState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecordState
方法or属性:type VideoRecordState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecordState
方法 or 属性:type VideoRecordState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecordState
方法or属性:type VideoRecordState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecordState
方法 or 属性:type VideoRecordState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecordState
方法or属性:type VideoRecordState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecordState
方法 or 属性:type VideoRecordState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecordState
方法or属性:type VideoRecordState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| '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|类名:media
方法or属性:function createVideoRecorder(callback: AsyncCallback\): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:media
方法or属性:function createVideoRecorder(): 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
类名: AVFileDescriptor|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVFileDescriptor
方法or属性:|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVFileDescriptor
方法 or 属性:fd: number|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVFileDescriptor
方法or属性:fd: number|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVFileDescriptor
方法 or 属性:offset?: number|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVFileDescriptor
方法or属性:offset?: number|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVFileDescriptor
方法 or 属性:length?: number|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVFileDescriptor
方法or属性:length?: number|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AudioPlayer
方法or属性:fdSrc: AVFileDescriptor;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AudioPlayer
方法or属性:audioInterruptMode ?: audio.InterruptMode;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AudioPlayer
方法or属性:on(type: 'audioInterrupt', callback: (info: audio.InterruptEvent) => void): 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
类名: VideoRecorder|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorder
方法or属性:|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorder
方法 or 属性:prepare(config: VideoRecorderConfig, callback: AsyncCallback\): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorder
方法or属性:prepare(config: VideoRecorderConfig, callback: AsyncCallback\): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorder
方法 or 属性:prepare(config: VideoRecorderConfig): Promise\;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorder
方法or属性:prepare(config: VideoRecorderConfig): Promise\;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorder
方法 or 属性:getInputSurface(callback: AsyncCallback\): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorder
方法or属性:getInputSurface(callback: AsyncCallback\): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorder
方法 or 属性:getInputSurface(): Promise\;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorder
方法or属性:getInputSurface(): Promise\;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorder
方法 or 属性:start(callback: AsyncCallback\): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorder
方法or属性:start(callback: AsyncCallback\): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorder
方法 or 属性:start(): Promise\;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorder
方法or属性:start(): Promise\;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorder
方法 or 属性:pause(callback: AsyncCallback\): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorder
方法or属性:pause(callback: AsyncCallback\): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorder
方法 or 属性:pause(): Promise\;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorder
方法or属性:pause(): Promise\;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorder
方法 or 属性:resume(callback: AsyncCallback\): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorder
方法or属性:resume(callback: AsyncCallback\): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorder
方法 or 属性:resume(): Promise\;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorder
方法or属性:resume(): Promise\;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorder
方法 or 属性:stop(callback: AsyncCallback\): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorder
方法or属性:stop(callback: AsyncCallback\): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorder
方法 or 属性:stop(): Promise\;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorder
方法or属性:stop(): Promise\;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorder
方法 or 属性:release(callback: AsyncCallback\): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorder
方法or属性:release(callback: AsyncCallback\): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorder
方法 or 属性:release(): Promise\;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorder
方法or属性:release(): Promise\;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorder
方法 or 属性:reset(callback: AsyncCallback\): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorder
方法or属性:reset(callback: AsyncCallback\): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorder
方法 or 属性:reset(): Promise\;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorder
方法or属性:reset(): Promise\;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorder
方法 or 属性:on(type: 'error', callback: ErrorCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorder
方法or属性:on(type: 'error', callback: ErrorCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorder
方法 or 属性:readonly state: VideoRecordState;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorder
方法or属性:readonly state: VideoRecordState;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoPlayer
方法or属性:fdSrc: AVFileDescriptor;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoPlayer
方法or属性:audioInterruptMode ?: audio.InterruptMode;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoPlayer
方法or属性:videoScaleType ?: VideoScaleType;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoPlayer
方法or属性:on(type: 'audioInterrupt', callback: (info: audio.InterruptEvent) => void): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoScaleType|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoScaleType
方法or属性:|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoScaleType
方法 or 属性:VIDEO_SCALE_TYPE_FIT = 0|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoScaleType
方法or属性:VIDEO_SCALE_TYPE_FIT = 0|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoScaleType
方法 or 属性:VIDEO_SCALE_TYPE_FIT_CROP = 1|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoScaleType
方法or属性:VIDEO_SCALE_TYPE_FIT_CROP = 1|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorderProfile|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorderProfile
方法or属性:|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorderProfile
方法 or 属性:readonly audioBitrate: number;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorderProfile
方法or属性:readonly audioBitrate: number;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorderProfile
方法 or 属性:readonly audioChannels: number;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorderProfile
方法or属性:readonly audioChannels: number;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorderProfile
方法 or 属性:readonly audioCodec: CodecMimeType;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorderProfile
方法or属性:readonly audioCodec: CodecMimeType;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorderProfile
方法 or 属性:readonly audioSampleRate: number;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorderProfile
方法or属性:readonly audioSampleRate: number;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorderProfile
方法 or 属性:readonly fileFormat: ContainerFormatType;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorderProfile
方法or属性:readonly fileFormat: ContainerFormatType;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorderProfile
方法 or 属性:readonly videoBitrate: number;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorderProfile
方法or属性:readonly videoBitrate: number;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorderProfile
方法 or 属性:readonly videoCodec: CodecMimeType;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorderProfile
方法or属性:readonly videoCodec: CodecMimeType;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorderProfile
方法 or 属性:readonly videoFrameWidth: number;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorderProfile
方法or属性:readonly videoFrameWidth: number;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorderProfile
方法 or 属性:readonly videoFrameHeight: number;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorderProfile
方法or属性:readonly videoFrameHeight: number;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorderProfile
方法 or 属性:readonly videoFrameRate: number;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorderProfile
方法or属性:readonly videoFrameRate: number;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AudioSourceType|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AudioSourceType
方法or属性:|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AudioSourceType
方法 or 属性:AUDIO_SOURCE_TYPE_DEFAULT = 0|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AudioSourceType
方法or属性:AUDIO_SOURCE_TYPE_DEFAULT = 0|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AudioSourceType
方法 or 属性:AUDIO_SOURCE_TYPE_MIC = 1|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AudioSourceType
方法or属性:AUDIO_SOURCE_TYPE_MIC = 1|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoSourceType|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoSourceType
方法or属性:|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoSourceType
方法 or 属性:VIDEO_SOURCE_TYPE_SURFACE_YUV = 0|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoSourceType
方法or属性:VIDEO_SOURCE_TYPE_SURFACE_YUV = 0|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoSourceType
方法 or 属性:VIDEO_SOURCE_TYPE_SURFACE_ES = 1|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoSourceType
方法or属性:VIDEO_SOURCE_TYPE_SURFACE_ES = 1|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorderConfig|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorderConfig
方法or属性:|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorderConfig
方法 or 属性:audioSourceType?: AudioSourceType;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorderConfig
方法or属性:audioSourceType?: AudioSourceType;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorderConfig
方法 or 属性:videoSourceType: VideoSourceType;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorderConfig
方法or属性:videoSourceType: VideoSourceType;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorderConfig
方法 or 属性:profile: VideoRecorderProfile;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorderConfig
方法or属性:profile: VideoRecorderProfile;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorderConfig
方法 or 属性:url: string;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorderConfig
方法or属性:url: string;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorderConfig
方法 or 属性:rotation?: number;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorderConfig
方法or属性:rotation?: number;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: VideoRecorderConfig
方法 or 属性:location?: Location;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:VideoRecorderConfig
方法or属性:location?: Location;|@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| +|访问级别有变化|类名:VolumeEvent
访问级别:系统API|类名:VolumeEvent
访问级别:公开API|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:ActiveDeviceType
废弃版本:N/A|类名:ActiveDeviceType
废弃版本:9
代替接口:ohos.multimedia.audio.CommunicationDeviceType |@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:ActiveDeviceType
方法 or 属性:SPEAKER = 2
废弃版本:N/A|类名:ActiveDeviceType
方法 or 属性:SPEAKER = 2
废弃版本:9
代替接口:ohos.multimedia.audio.CommunicationDeviceType.SPEAKER |@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:ActiveDeviceType
方法 or 属性:BLUETOOTH_SCO = 7
废弃版本:N/A|类名:ActiveDeviceType
方法 or 属性:BLUETOOTH_SCO = 7
废弃版本:9
代替接口:N/A|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:InterruptActionType
废弃版本:N/A|类名:InterruptActionType
废弃版本:9
代替接口:N/A|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:InterruptActionType
方法 or 属性:TYPE_ACTIVATED = 0
废弃版本:N/A|类名:InterruptActionType
方法 or 属性:TYPE_ACTIVATED = 0
废弃版本:9
代替接口:N/A|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:InterruptActionType
方法 or 属性:TYPE_INTERRUPT = 1
废弃版本:N/A|类名:InterruptActionType
方法 or 属性:TYPE_INTERRUPT = 1
废弃版本:9
代替接口:N/A|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:setVolume(volumeType: AudioVolumeType, volume: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AudioManager
方法 or 属性:setVolume(volumeType: AudioVolumeType, volume: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:setVolume(volumeType: AudioVolumeType, volume: number): Promise\;
废弃版本:N/A|类名:AudioManager
方法 or 属性:setVolume(volumeType: AudioVolumeType, volume: number): Promise\;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:getVolume(volumeType: AudioVolumeType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AudioManager
方法 or 属性:getVolume(volumeType: AudioVolumeType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:getVolume(volumeType: AudioVolumeType): Promise\;
废弃版本:N/A|类名:AudioManager
方法 or 属性:getVolume(volumeType: AudioVolumeType): Promise\;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:getMinVolume(volumeType: AudioVolumeType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AudioManager
方法 or 属性:getMinVolume(volumeType: AudioVolumeType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:getMinVolume(volumeType: AudioVolumeType): Promise\;
废弃版本:N/A|类名:AudioManager
方法 or 属性:getMinVolume(volumeType: AudioVolumeType): Promise\;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:getMaxVolume(volumeType: AudioVolumeType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AudioManager
方法 or 属性:getMaxVolume(volumeType: AudioVolumeType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:getMaxVolume(volumeType: AudioVolumeType): Promise\;
废弃版本:N/A|类名:AudioManager
方法 or 属性:getMaxVolume(volumeType: AudioVolumeType): Promise\;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AudioManager
方法 or 属性:getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:getDevices(deviceFlag: DeviceFlag): Promise\;
废弃版本:N/A|类名:AudioManager
方法 or 属性:getDevices(deviceFlag: DeviceFlag): Promise\;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:mute(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AudioManager
方法 or 属性:mute(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:mute(volumeType: AudioVolumeType, mute: boolean): Promise\;
废弃版本:N/A|类名:AudioManager
方法 or 属性:mute(volumeType: AudioVolumeType, mute: boolean): Promise\;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:isMute(volumeType: AudioVolumeType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AudioManager
方法 or 属性:isMute(volumeType: AudioVolumeType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:isMute(volumeType: AudioVolumeType): Promise\;
废弃版本:N/A|类名:AudioManager
方法 or 属性:isMute(volumeType: AudioVolumeType): Promise\;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:isActive(volumeType: AudioVolumeType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AudioManager
方法 or 属性:isActive(volumeType: AudioVolumeType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioStreamManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:isActive(volumeType: AudioVolumeType): Promise\;
废弃版本:N/A|类名:AudioManager
方法 or 属性:isActive(volumeType: AudioVolumeType): Promise\;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioStreamManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:setMicrophoneMute(mute: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AudioManager
方法 or 属性:setMicrophoneMute(mute: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:setMicrophoneMute(mute: boolean): Promise\;
废弃版本:N/A|类名:AudioManager
方法 or 属性:setMicrophoneMute(mute: boolean): Promise\;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:isMicrophoneMute(callback: AsyncCallback\): void;
废弃版本:N/A|类名:AudioManager
方法 or 属性:isMicrophoneMute(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:isMicrophoneMute(): Promise\;
废弃版本:N/A|类名:AudioManager
方法 or 属性:isMicrophoneMute(): Promise\;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:setRingerMode(mode: AudioRingMode, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AudioManager
方法 or 属性:setRingerMode(mode: AudioRingMode, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:setRingerMode(mode: AudioRingMode): Promise\;
废弃版本:N/A|类名:AudioManager
方法 or 属性:setRingerMode(mode: AudioRingMode): Promise\;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:getRingerMode(callback: AsyncCallback\): void;
废弃版本:N/A|类名:AudioManager
方法 or 属性:getRingerMode(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:getRingerMode(): Promise\;
废弃版本:N/A|类名:AudioManager
方法 or 属性:getRingerMode(): Promise\;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:setDeviceActive(deviceType: ActiveDeviceType, active: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AudioManager
方法 or 属性:setDeviceActive(deviceType: ActiveDeviceType, active: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:setDeviceActive(deviceType: ActiveDeviceType, active: boolean): Promise\;
废弃版本:N/A|类名:AudioManager
方法 or 属性:setDeviceActive(deviceType: ActiveDeviceType, active: boolean): Promise\;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:isDeviceActive(deviceType: ActiveDeviceType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:AudioManager
方法 or 属性:isDeviceActive(deviceType: ActiveDeviceType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:isDeviceActive(deviceType: ActiveDeviceType): Promise\;
废弃版本:N/A|类名:AudioManager
方法 or 属性:isDeviceActive(deviceType: ActiveDeviceType): Promise\;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:on(type: 'ringerModeChange', callback: Callback\): void;
废弃版本:N/A|类名:AudioManager
方法 or 属性:on(type: 'ringerModeChange', callback: Callback\): void;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:on(type: 'deviceChange', callback: Callback\): void;
废弃版本:N/A|类名:AudioManager
方法 or 属性:on(type: 'deviceChange', callback: Callback\): void;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioManager
方法 or 属性:off(type: 'deviceChange', callback?: Callback\): void;
废弃版本:N/A|类名:AudioManager
方法 or 属性:off(type: 'deviceChange', callback?: Callback\): void;
废弃版本:9
代替接口:ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:InterruptAction
废弃版本:N/A|类名:InterruptAction
废弃版本:9
代替接口:ohos.multimedia.audio.InterruptEvent |@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:InterruptAction
方法 or 属性:actionType: InterruptActionType;
废弃版本:N/A|类名:InterruptAction
方法 or 属性:actionType: InterruptActionType;
废弃版本:9
代替接口:N/A|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:InterruptAction
方法 or 属性:type?: InterruptType;
废弃版本:N/A|类名:InterruptAction
方法 or 属性:type?: InterruptType;
废弃版本:9
代替接口:N/A|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:InterruptAction
方法 or 属性:hint?: InterruptHint;
废弃版本:N/A|类名:InterruptAction
方法 or 属性:hint?: InterruptHint;
废弃版本:9
代替接口:N/A|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:InterruptAction
方法 or 属性:activated?: boolean;
废弃版本:N/A|类名:InterruptAction
方法 or 属性:activated?: boolean;
废弃版本:9
代替接口:N/A|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioInterrupt
废弃版本:N/A|类名:AudioInterrupt
废弃版本:9
代替接口:N/A|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioInterrupt
方法 or 属性:streamUsage: StreamUsage;
废弃版本:N/A|类名:AudioInterrupt
方法 or 属性:streamUsage: StreamUsage;
废弃版本:9
代替接口:N/A|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioInterrupt
方法 or 属性:contentType: ContentType;
废弃版本:N/A|类名:AudioInterrupt
方法 or 属性:contentType: ContentType;
废弃版本:9
代替接口:N/A|@ohos.multimedia.audio.d.ts| +|废弃版本有变化|类名:AudioInterrupt
方法 or 属性:pauseWhenDucked: boolean;
废弃版本:N/A|类名:AudioInterrupt
方法 or 属性:pauseWhenDucked: boolean;
废弃版本:9
代替接口:N/A|@ohos.multimedia.audio.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 属性:loop: boolean;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:loop: boolean;
废弃版本: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: '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 属性: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 属性: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: '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| +|废弃版本有变化|类名:mediaLibrary
废弃版本:N/A|类名:mediaLibrary
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:mediaLibrary
方法 or 属性:function getMediaLibrary(): MediaLibrary;
废弃版本:N/A|类名:mediaLibrary
方法 or 属性:function getMediaLibrary(): MediaLibrary;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:mediaLibrary
方法 or 属性:function getMediaLibrary(context: Context): MediaLibrary;
废弃版本:N/A|类名:mediaLibrary
方法 or 属性:function getMediaLibrary(context: Context): MediaLibrary;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaType
废弃版本:N/A|类名:MediaType
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaType
方法 or 属性:FILE = 0
废弃版本:N/A|类名:MediaType
方法 or 属性:FILE = 0
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaType
方法 or 属性:IMAGE
废弃版本:N/A|类名:MediaType
方法 or 属性:IMAGE
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaType
方法 or 属性:VIDEO
废弃版本:N/A|类名:MediaType
方法 or 属性:VIDEO
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaType
方法 or 属性:AUDIO
废弃版本:N/A|类名:MediaType
方法 or 属性:AUDIO
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaAssetOption
废弃版本:N/A|类名:MediaAssetOption
废弃版本:9
代替接口:N/A|@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaAssetOption
方法 or 属性:src: string;
废弃版本:N/A|类名:MediaAssetOption
方法 or 属性:src: string;
废弃版本:9
代替接口:N/A|@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaAssetOption
方法 or 属性:mimeType: string;
废弃版本:N/A|类名:MediaAssetOption
方法 or 属性:mimeType: string;
废弃版本:9
代替接口:N/A|@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaAssetOption
方法 or 属性:relativePath?: string;
废弃版本:N/A|类名:MediaAssetOption
方法 or 属性:relativePath?: string;
废弃版本:9
代替接口:N/A|@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaSelectOption
废弃版本:N/A|类名:MediaSelectOption
废弃版本:9
代替接口:N/A|@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaSelectOption
方法 or 属性:type: 'image' \| 'video' \| 'media';
废弃版本:N/A|类名:MediaSelectOption
方法 or 属性:type: 'image' \| 'video' \| 'media';
废弃版本:9
代替接口:N/A|@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaSelectOption
方法 or 属性:count: number;
废弃版本:N/A|类名:MediaSelectOption
方法 or 属性:count: number;
废弃版本:9
代替接口:N/A|@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
废弃版本:N/A|类名:FileAsset
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly id: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly id: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly uri: string;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly uri: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly mimeType: string;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly mimeType: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly mediaType: MediaType;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly mediaType: MediaType;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:displayName: string;
废弃版本:N/A|类名:FileAsset
方法 or 属性:displayName: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:title: string;
废弃版本:N/A|类名:FileAsset
方法 or 属性:title: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:relativePath: string;
废弃版本:N/A|类名:FileAsset
方法 or 属性:relativePath: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly parent: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly parent: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly size: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly size: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly dateAdded: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly dateAdded: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly dateModified: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly dateModified: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly dateTaken: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly dateTaken: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly artist: string;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly artist: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly audioAlbum: string;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly audioAlbum: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly width: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly width: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly height: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly height: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:orientation: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:orientation: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly duration: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly duration: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly albumId: number;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly albumId: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly albumUri: string;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly albumUri: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:readonly albumName: string;
废弃版本:N/A|类名:FileAsset
方法 or 属性:readonly albumName: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:isDirectory(callback: AsyncCallback\): void;
废弃版本:N/A|类名:FileAsset
方法 or 属性:isDirectory(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:isDirectory():Promise\;
废弃版本:N/A|类名:FileAsset
方法 or 属性:isDirectory():Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:commitModify(callback: AsyncCallback\): void;
废弃版本:N/A|类名:FileAsset
方法 or 属性:commitModify(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:commitModify(): Promise\;
废弃版本:N/A|类名:FileAsset
方法 or 属性:commitModify(): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:open(mode: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:FileAsset
方法 or 属性:open(mode: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:open(mode: string): Promise\;
废弃版本:N/A|类名:FileAsset
方法 or 属性:open(mode: string): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:close(fd: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:FileAsset
方法 or 属性:close(fd: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:close(fd: number): Promise\;
废弃版本:N/A|类名:FileAsset
方法 or 属性:close(fd: number): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:getThumbnail(callback: AsyncCallback\): void;
废弃版本:N/A|类名:FileAsset
方法 or 属性:getThumbnail(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:getThumbnail(size: Size, callback: AsyncCallback\): void;
废弃版本:N/A|类名:FileAsset
方法 or 属性:getThumbnail(size: Size, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:getThumbnail(size?: Size): Promise\;
废弃版本:N/A|类名:FileAsset
方法 or 属性:getThumbnail(size?: Size): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:favorite(isFavorite: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:FileAsset
方法 or 属性:favorite(isFavorite: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:favorite(isFavorite: boolean): Promise\;
废弃版本:N/A|类名:FileAsset
方法 or 属性:favorite(isFavorite: boolean): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:isFavorite(callback: AsyncCallback\): void;
废弃版本:N/A|类名:FileAsset
方法 or 属性:isFavorite(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:isFavorite():Promise\;
废弃版本:N/A|类名:FileAsset
方法 or 属性:isFavorite():Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:trash(isTrash: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:FileAsset
方法 or 属性:trash(isTrash: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:trash(isTrash: boolean): Promise\;
废弃版本:N/A|类名:FileAsset
方法 or 属性:trash(isTrash: boolean): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:isTrash(callback: AsyncCallback\): void;
废弃版本:N/A|类名:FileAsset
方法 or 属性:isTrash(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileAsset
方法 or 属性:isTrash():Promise\;
废弃版本:N/A|类名:FileAsset
方法 or 属性:isTrash():Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
废弃版本:N/A|类名:FileKey
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:ID = "file_id"
废弃版本:N/A|类名:FileKey
方法 or 属性:ID = "file_id"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:RELATIVE_PATH = "relative_path"
废弃版本:N/A|类名:FileKey
方法 or 属性:RELATIVE_PATH = "relative_path"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:DISPLAY_NAME = "display_name"
废弃版本:N/A|类名:FileKey
方法 or 属性:DISPLAY_NAME = "display_name"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:PARENT = "parent"
废弃版本:N/A|类名:FileKey
方法 or 属性:PARENT = "parent"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:MIME_TYPE = "mime_type"
废弃版本:N/A|类名:FileKey
方法 or 属性:MIME_TYPE = "mime_type"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:MEDIA_TYPE = "media_type"
废弃版本:N/A|类名:FileKey
方法 or 属性:MEDIA_TYPE = "media_type"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:SIZE = "size"
废弃版本:N/A|类名:FileKey
方法 or 属性:SIZE = "size"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:DATE_ADDED = "date_added"
废弃版本:N/A|类名:FileKey
方法 or 属性:DATE_ADDED = "date_added"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:DATE_MODIFIED = "date_modified"
废弃版本:N/A|类名:FileKey
方法 or 属性:DATE_MODIFIED = "date_modified"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:DATE_TAKEN = "date_taken"
废弃版本:N/A|类名:FileKey
方法 or 属性:DATE_TAKEN = "date_taken"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:TITLE = "title"
废弃版本:N/A|类名:FileKey
方法 or 属性:TITLE = "title"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:ARTIST = "artist"
废弃版本:N/A|类名:FileKey
方法 or 属性:ARTIST = "artist"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:AUDIOALBUM = "audio_album"
废弃版本:N/A|类名:FileKey
方法 or 属性:AUDIOALBUM = "audio_album"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:DURATION = "duration"
废弃版本:N/A|类名:FileKey
方法 or 属性:DURATION = "duration"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:WIDTH = "width"
废弃版本:N/A|类名:FileKey
方法 or 属性:WIDTH = "width"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:HEIGHT = "height"
废弃版本:N/A|类名:FileKey
方法 or 属性:HEIGHT = "height"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:ORIENTATION = "orientation"
废弃版本:N/A|类名:FileKey
方法 or 属性:ORIENTATION = "orientation"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:ALBUM_ID = "bucket_id"
废弃版本:N/A|类名:FileKey
方法 or 属性:ALBUM_ID = "bucket_id"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FileKey
方法 or 属性:ALBUM_NAME = "bucket_display_name"
废弃版本:N/A|类名:FileKey
方法 or 属性:ALBUM_NAME = "bucket_display_name"
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaFetchOptions
废弃版本:N/A|类名:MediaFetchOptions
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaFetchOptions
方法 or 属性:selections: string;
废弃版本:N/A|类名:MediaFetchOptions
方法 or 属性:selections: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaFetchOptions
方法 or 属性:selectionArgs: Array\;
废弃版本:N/A|类名:MediaFetchOptions
方法 or 属性:selectionArgs: Array\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaFetchOptions
方法 or 属性:order?: string;
废弃版本:N/A|类名:MediaFetchOptions
方法 or 属性:order?: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaFetchOptions
方法 or 属性:uri?: string;
废弃版本:N/A|类名:MediaFetchOptions
方法 or 属性:uri?: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaFetchOptions
方法 or 属性:networkId?: string;
废弃版本:N/A|类名:MediaFetchOptions
方法 or 属性:networkId?: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaFetchOptions
方法 or 属性:extendArgs?: string;
废弃版本:N/A|类名:MediaFetchOptions
方法 or 属性:extendArgs?: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
废弃版本:N/A|类名:FetchFileResult
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getCount(): number;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getCount(): number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:isAfterLast(): boolean;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:isAfterLast(): boolean;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:close(): void;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:close(): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getFirstObject(callback: AsyncCallback\): void;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getFirstObject(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getFirstObject(): Promise\;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getFirstObject(): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getNextObject(callback: AsyncCallback\): void;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getNextObject(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getNextObject(): Promise\;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getNextObject(): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getLastObject(callback: AsyncCallback\): void;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getLastObject(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getLastObject(): Promise\;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getLastObject(): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getPositionObject(index: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getPositionObject(index: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getPositionObject(index: number): Promise\;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getPositionObject(index: number): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getAllObject(callback: AsyncCallback\>): void;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getAllObject(callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:FetchFileResult
方法 or 属性:getAllObject(): Promise\>;
废弃版本:N/A|类名:FetchFileResult
方法 or 属性:getAllObject(): Promise\>;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
废弃版本:N/A|类名:Album
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:readonly albumId: number;
废弃版本:N/A|类名:Album
方法 or 属性:readonly albumId: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:albumName: string;
废弃版本:N/A|类名:Album
方法 or 属性:albumName: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:readonly albumUri: string;
废弃版本:N/A|类名:Album
方法 or 属性:readonly albumUri: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:readonly dateModified: number;
废弃版本:N/A|类名:Album
方法 or 属性:readonly dateModified: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:readonly count: number;
废弃版本:N/A|类名:Album
方法 or 属性:readonly count: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:readonly relativePath: string;
废弃版本:N/A|类名:Album
方法 or 属性:readonly relativePath: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:readonly coverUri: string;
废弃版本:N/A|类名:Album
方法 or 属性:readonly coverUri: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:commitModify(callback: AsyncCallback\): void;
废弃版本:N/A|类名:Album
方法 or 属性:commitModify(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:commitModify(): Promise\;
废弃版本:N/A|类名:Album
方法 or 属性:commitModify(): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:getFileAssets(callback: AsyncCallback\): void;
废弃版本:N/A|类名:Album
方法 or 属性:getFileAssets(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:getFileAssets(options: MediaFetchOptions, callback: AsyncCallback\): void;
废弃版本:N/A|类名:Album
方法 or 属性:getFileAssets(options: MediaFetchOptions, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Album
方法 or 属性:getFileAssets(options?: MediaFetchOptions): Promise\;
废弃版本:N/A|类名:Album
方法 or 属性:getFileAssets(options?: MediaFetchOptions): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DirectoryType
废弃版本:N/A|类名:DirectoryType
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DirectoryType
方法 or 属性:DIR_CAMERA = 0
废弃版本:N/A|类名:DirectoryType
方法 or 属性:DIR_CAMERA = 0
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DirectoryType
方法 or 属性:DIR_VIDEO
废弃版本:N/A|类名:DirectoryType
方法 or 属性:DIR_VIDEO
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DirectoryType
方法 or 属性:DIR_IMAGE
废弃版本:N/A|类名:DirectoryType
方法 or 属性:DIR_IMAGE
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DirectoryType
方法 or 属性:DIR_AUDIO
废弃版本:N/A|类名:DirectoryType
方法 or 属性:DIR_AUDIO
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DirectoryType
方法 or 属性:DIR_DOCUMENTS
废弃版本:N/A|类名:DirectoryType
方法 or 属性:DIR_DOCUMENTS
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DirectoryType
方法 or 属性:DIR_DOWNLOAD
废弃版本:N/A|类名:DirectoryType
方法 or 属性:DIR_DOWNLOAD
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
废弃版本:N/A|类名:MediaLibrary
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:getPublicDirectory(type: DirectoryType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:getPublicDirectory(type: DirectoryType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:getPublicDirectory(type: DirectoryType): Promise\;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:getPublicDirectory(type: DirectoryType): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:getFileAssets(options: MediaFetchOptions, callback: AsyncCallback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:getFileAssets(options: MediaFetchOptions, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:getFileAssets(options: MediaFetchOptions): Promise\;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:getFileAssets(options: MediaFetchOptions): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:createAsset(mediaType: MediaType, displayName: string, relativePath: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:createAsset(mediaType: MediaType, displayName: string, relativePath: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:createAsset(mediaType: MediaType, displayName: string, relativePath: string): Promise\;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:createAsset(mediaType: MediaType, displayName: string, relativePath: string): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:deleteAsset(uri: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:deleteAsset(uri: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:deleteAsset(uri: string): Promise\;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:deleteAsset(uri: string): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:getAlbums(options: MediaFetchOptions, callback: AsyncCallback\>): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:getAlbums(options: MediaFetchOptions, callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:getAlbums(options: MediaFetchOptions): Promise\>;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:getAlbums(options: MediaFetchOptions): Promise\>;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:storeMediaAsset(option: MediaAssetOption, callback: AsyncCallback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:storeMediaAsset(option: MediaAssetOption, callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:storeMediaAsset(option: MediaAssetOption): Promise\;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:storeMediaAsset(option: MediaAssetOption): Promise\;
废弃版本:9
代替接口:N/A|@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:startImagePreview(images: Array\, index: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:startImagePreview(images: Array\, index: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:startImagePreview(images: Array\, callback: AsyncCallback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:startImagePreview(images: Array\, callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:startImagePreview(images: Array\, index?: number): Promise\;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:startImagePreview(images: Array\, index?: number): Promise\;
废弃版本:9
代替接口:N/A|@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:startMediaSelect(option: MediaSelectOption, callback: AsyncCallback\>): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:startMediaSelect(option: MediaSelectOption, callback: AsyncCallback\>): void;
废弃版本:9
代替接口:N/A|@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:startMediaSelect(option: MediaSelectOption): Promise\>;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:startMediaSelect(option: MediaSelectOption): Promise\>;
废弃版本:9
代替接口:N/A|@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:getActivePeers(callback: AsyncCallback\>): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:getActivePeers(callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:getActivePeers(): Promise\>;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:getActivePeers(): Promise\>;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:getAllPeers(callback: AsyncCallback\>): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:getAllPeers(callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:getAllPeers(): Promise\>;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:getAllPeers(): Promise\>;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:release(callback: AsyncCallback\): void;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:release(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:MediaLibrary
方法 or 属性:release(): Promise\;
废弃版本:N/A|类名:MediaLibrary
方法 or 属性:release(): Promise\;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Size
废弃版本:N/A|类名:Size
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Size
方法 or 属性:width: number;
废弃版本:N/A|类名:Size
方法 or 属性:width: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:Size
方法 or 属性:height: number;
废弃版本:N/A|类名:Size
方法 or 属性:height: number;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:PeerInfo
废弃版本:N/A|类名:PeerInfo
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:PeerInfo
方法 or 属性:readonly deviceName: string;
废弃版本:N/A|类名:PeerInfo
方法 or 属性:readonly deviceName: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:PeerInfo
方法 or 属性:readonly networkId: string;
废弃版本:N/A|类名:PeerInfo
方法 or 属性:readonly networkId: string;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:PeerInfo
方法 or 属性:readonly deviceType: DeviceType;
废弃版本:N/A|类名:PeerInfo
方法 or 属性:readonly deviceType: DeviceType;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:PeerInfo
方法 or 属性:readonly isOnline: boolean;
废弃版本:N/A|类名:PeerInfo
方法 or 属性:readonly isOnline: boolean;
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DeviceType
废弃版本:N/A|类名:DeviceType
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DeviceType
方法 or 属性:TYPE_UNKNOWN = 0
废弃版本:N/A|类名:DeviceType
方法 or 属性:TYPE_UNKNOWN = 0
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DeviceType
方法 or 属性:TYPE_LAPTOP
废弃版本:N/A|类名:DeviceType
方法 or 属性:TYPE_LAPTOP
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DeviceType
方法 or 属性:TYPE_PHONE
废弃版本:N/A|类名:DeviceType
方法 or 属性:TYPE_PHONE
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DeviceType
方法 or 属性:TYPE_TABLET
废弃版本:N/A|类名:DeviceType
方法 or 属性:TYPE_TABLET
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DeviceType
方法 or 属性:TYPE_WATCH
废弃版本:N/A|类名:DeviceType
方法 or 属性:TYPE_WATCH
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DeviceType
方法 or 属性:TYPE_CAR
废弃版本:N/A|类名:DeviceType
方法 or 属性:TYPE_CAR
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|废弃版本有变化|类名:DeviceType
方法 or 属性:TYPE_TV
废弃版本:N/A|类名:DeviceType
方法 or 属性:TYPE_TV
废弃版本:9
代替接口:ohos.file.picker |@ohos.multimedia.mediaLibrary.d.ts| +|起始版本有变化|类名:AudioManager
方法 or 属性:on(type: 'volumeChange', callback: Callback\): void;
起始版本:8|类名:AudioManager
方法 or 属性:on(type: 'volumeChange', callback: Callback\): void;
起始版本:9|@ohos.multimedia.audio.d.ts| +|起始版本有变化|类名:VolumeEvent
起始版本:8|类名:VolumeEvent
起始版本:9|@ohos.multimedia.audio.d.ts| +|起始版本有变化|类名:VolumeEvent
方法 or 属性:volumeType: AudioVolumeType;
起始版本:8|类名:VolumeEvent
方法 or 属性:volumeType: AudioVolumeType;
起始版本:9|@ohos.multimedia.audio.d.ts| +|起始版本有变化|类名:VolumeEvent
方法 or 属性:volume: number;
起始版本:8|类名:VolumeEvent
方法 or 属性:volume: number;
起始版本:9|@ohos.multimedia.audio.d.ts| +|起始版本有变化|类名:VolumeEvent
方法 or 属性:updateUi: boolean;
起始版本:8|类名:VolumeEvent
方法 or 属性:updateUi: boolean;
起始版本:9|@ohos.multimedia.audio.d.ts| +|权限有变化|类名:AudioPlayer
方法 or 属性:src: string;
权限:ohos.permission.READ_MEDIA|类名:AudioPlayer
方法 or 属性:src: string;
权限:ohos.permission.READ_MEDIA or ohos.permission.INTERNET|@ohos.multimedia.media.d.ts| +|删除(权限)|类名:VideoPlayer
方法 or 属性:prepare(callback: AsyncCallback\): void;
权限:ohos.permission.MICROPHONE|类名:VideoPlayer
方法 or 属性:prepare(callback: AsyncCallback\): void;
权限:N/A|@ohos.multimedia.media.d.ts| +|删除(权限)|类名:VideoPlayer
方法 or 属性:prepare(): Promise\;
权限:ohos.permission.MICROPHONE|类名:VideoPlayer
方法 or 属性:prepare(): Promise\;
权限:N/A|@ohos.multimedia.media.d.ts| +|函数有变化|类名:AudioRenderer
方法 or 属性:on(type: "markReach", frame: number, callback: (position: number) => {}): void;
|类名:AudioRenderer
方法 or 属性:on(type: "markReach", frame: number, callback: Callback\): void;
|@ohos.multimedia.audio.d.ts| +|函数有变化|类名:AudioRenderer
方法 or 属性:on(type: "periodReach", frame: number, callback: (position: number) => {}): void;
|类名:AudioRenderer
方法 or 属性:on(type: "periodReach", frame: number, callback: Callback\): void;
|@ohos.multimedia.audio.d.ts| +|函数有变化|类名:AudioCapturer
方法 or 属性:on(type: "markReach", frame: number, callback: (position: number) => {}): void;
|类名:AudioCapturer
方法 or 属性:on(type: "markReach", frame: number, callback: Callback\): void;
|@ohos.multimedia.audio.d.ts| +|函数有变化|类名:AudioCapturer
方法 or 属性:on(type: "periodReach", frame: number, callback: (position: number) => {}): void;
|类名:AudioCapturer
方法 or 属性:on(type: "periodReach", frame: number, callback: Callback\): void;
|@ohos.multimedia.audio.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-notification.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-notification.md new file mode 100644 index 0000000000000000000000000000000000000000..8ca083cc1efa12eed738f96ab538ee814f9dcfab --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-notification.md @@ -0,0 +1,559 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法 or 属性: function publish(event: string, callback: AsyncCallback\): void;|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法 or 属性: function publish(event: string, options: CommonEventPublishData, callback: AsyncCallback\): void;|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法 or 属性: function publishAsUser(event: string, userId: number, callback: AsyncCallback\): void;|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法 or 属性: function publishAsUser(event: string, userId: number, options: CommonEventPublishData, callback: AsyncCallback\): void;|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法 or 属性: function createSubscriber(subscribeInfo: CommonEventSubscribeInfo, callback: AsyncCallback\): void;|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法 or 属性: function createSubscriber(subscribeInfo: CommonEventSubscribeInfo): Promise\;|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法 or 属性: function subscribe(subscriber: CommonEventSubscriber, callback: AsyncCallback\): void;|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法 or 属性: function unsubscribe(subscriber: CommonEventSubscriber, callback?: AsyncCallback\): void;|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BOOT_COMPLETED = "usual.event.BOOT_COMPLETED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_LOCKED_BOOT_COMPLETED = "usual.event.LOCKED_BOOT_COMPLETED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_SHUTDOWN = "usual.event.SHUTDOWN"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BATTERY_CHANGED = "usual.event.BATTERY_CHANGED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BATTERY_LOW = "usual.event.BATTERY_LOW"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BATTERY_OKAY = "usual.event.BATTERY_OKAY"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_POWER_CONNECTED = "usual.event.POWER_CONNECTED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_POWER_DISCONNECTED = "usual.event.POWER_DISCONNECTED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_SCREEN_OFF = "usual.event.SCREEN_OFF"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_SCREEN_ON = "usual.event.SCREEN_ON"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_THERMAL_LEVEL_CHANGED = "usual.event.THERMAL_LEVEL_CHANGED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_USER_PRESENT = "usual.event.USER_PRESENT"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_TIME_TICK = "usual.event.TIME_TICK"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_TIME_CHANGED = "usual.event.TIME_CHANGED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_DATE_CHANGED = "usual.event.DATE_CHANGED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_TIMEZONE_CHANGED = "usual.event.TIMEZONE_CHANGED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_CLOSE_SYSTEM_DIALOGS = "usual.event.CLOSE_SYSTEM_DIALOGS"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_PACKAGE_ADDED = "usual.event.PACKAGE_ADDED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_PACKAGE_REPLACED = "usual.event.PACKAGE_REPLACED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_MY_PACKAGE_REPLACED = "usual.event.MY_PACKAGE_REPLACED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_PACKAGE_REMOVED = "usual.event.PACKAGE_REMOVED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BUNDLE_REMOVED = "usual.event.BUNDLE_REMOVED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_PACKAGE_FULLY_REMOVED = "usual.event.PACKAGE_FULLY_REMOVED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_PACKAGE_CHANGED = "usual.event.PACKAGE_CHANGED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_PACKAGE_RESTARTED = "usual.event.PACKAGE_RESTARTED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_PACKAGE_DATA_CLEARED = "usual.event.PACKAGE_DATA_CLEARED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_PACKAGE_CACHE_CLEARED = "usual.event.PACKAGE_CACHE_CLEARED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_PACKAGES_SUSPENDED = "usual.event.PACKAGES_SUSPENDED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_PACKAGES_UNSUSPENDED = "usual.event.PACKAGES_UNSUSPENDED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_MY_PACKAGE_SUSPENDED = "usual.event.MY_PACKAGE_SUSPENDED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_MY_PACKAGE_UNSUSPENDED = "usual.event.MY_PACKAGE_UNSUSPENDED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_UID_REMOVED = "usual.event.UID_REMOVED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_PACKAGE_FIRST_LAUNCH = "usual.event.PACKAGE_FIRST_LAUNCH"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION =
"usual.event.PACKAGE_NEEDS_VERIFICATION"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_PACKAGE_VERIFIED = "usual.event.PACKAGE_VERIFIED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE =
"usual.event.EXTERNAL_APPLICATIONS_AVAILABLE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE =
"usual.event.EXTERNAL_APPLICATIONS_UNAVAILABLE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_CONFIGURATION_CHANGED = "usual.event.CONFIGURATION_CHANGED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_LOCALE_CHANGED = "usual.event.LOCALE_CHANGED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_MANAGE_PACKAGE_STORAGE = "usual.event.MANAGE_PACKAGE_STORAGE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_DRIVE_MODE = "common.event.DRIVE_MODE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_HOME_MODE = "common.event.HOME_MODE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_OFFICE_MODE = "common.event.OFFICE_MODE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_USER_STARTED = "usual.event.USER_STARTED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_USER_BACKGROUND = "usual.event.USER_BACKGROUND"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_USER_FOREGROUND = "usual.event.USER_FOREGROUND"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_USER_SWITCHED = "usual.event.USER_SWITCHED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_USER_STARTING = "usual.event.USER_STARTING"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_USER_UNLOCKED = "usual.event.USER_UNLOCKED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_USER_STOPPING = "usual.event.USER_STOPPING"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_USER_STOPPED = "usual.event.USER_STOPPED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN = "common.event.DISTRIBUTED_ACCOUNT_LOGIN"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOUT = "common.event.DISTRIBUTED_ACCOUNT_LOGOUT"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_DISTRIBUTED_ACCOUNT_TOKEN_INVALID = "common.event.DISTRIBUTED_ACCOUNT_TOKEN_INVALID"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF = "common.event.DISTRIBUTED_ACCOUNT_LOGOFF"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_WIFI_POWER_STATE = "usual.event.wifi.POWER_STATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_WIFI_SCAN_FINISHED = "usual.event.wifi.SCAN_FINISHED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_WIFI_RSSI_VALUE = "usual.event.wifi.RSSI_VALUE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_WIFI_CONN_STATE = "usual.event.wifi.CONN_STATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_WIFI_HOTSPOT_STATE = "usual.event.wifi.HOTSPOT_STATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_WIFI_AP_STA_JOIN = "usual.event.wifi.WIFI_HS_STA_JOIN"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_WIFI_AP_STA_LEAVE = "usual.event.wifi.WIFI_HS_STA_LEAVE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE = "usual.event.wifi.mplink.STATE_CHANGE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_WIFI_P2P_CONN_STATE = "usual.event.wifi.p2p.CONN_STATE_CHANGE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_WIFI_P2P_STATE_CHANGED = "usual.event.wifi.p2p.STATE_CHANGE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED =
"usual.event.wifi.p2p.DEVICES_CHANGE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED =
"usual.event.wifi.p2p.PEER_DISCOVERY_STATE_CHANGE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED =
"usual.event.wifi.p2p.CURRENT_DEVICE_CHANGE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED =
"usual.event.wifi.p2p.GROUP_STATE_CHANGED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE =
"usual.event.bluetooth.handsfree.ag.CONNECT_STATE_UPDATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE =
"usual.event.bluetooth.handsfree.ag.CURRENT_DEVICE_UPDATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE =
"usual.event.bluetooth.handsfree.ag.AUDIO_STATE_UPDATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE =
"usual.event.bluetooth.a2dpsource.CONNECT_STATE_UPDATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE =
"usual.event.bluetooth.a2dpsource.CURRENT_DEVICE_UPDATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE =
"usual.event.bluetooth.a2dpsource.PLAYING_STATE_UPDATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE =
"usual.event.bluetooth.a2dpsource.AVRCP_CONNECT_STATE_UPDATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE =
"usual.event.bluetooth.a2dpsource.CODEC_VALUE_UPDATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED =
"usual.event.bluetooth.remotedevice.DISCOVERED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE =
"usual.event.bluetooth.remotedevice.CLASS_VALUE_UPDATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED =
"usual.event.bluetooth.remotedevice.ACL_CONNECTED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED =
"usual.event.bluetooth.remotedevice.ACL_DISCONNECTED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE =
"usual.event.bluetooth.remotedevice.NAME_UPDATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE =
"usual.event.bluetooth.remotedevice.PAIR_STATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE =
"usual.event.bluetooth.remotedevice.BATTERY_VALUE_UPDATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT =
"usual.event.bluetooth.remotedevice.SDP_RESULT"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE =
"usual.event.bluetooth.remotedevice.UUID_VALUE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ =
"usual.event.bluetooth.remotedevice.PAIRING_REQ"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL =
"usual.event.bluetooth.remotedevice.PAIRING_CANCEL"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ =
"usual.event.bluetooth.remotedevice.CONNECT_REQ"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY =
"usual.event.bluetooth.remotedevice.CONNECT_REPLY"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL =
"usual.event.bluetooth.remotedevice.CONNECT_CANCEL"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE =
"usual.event.bluetooth.handsfreeunit.CONNECT_STATE_UPDATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE =
"usual.event.bluetooth.handsfreeunit.AUDIO_STATE_UPDATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT =
"usual.event.bluetooth.handsfreeunit.AG_COMMON_EVENT"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE =
"usual.event.bluetooth.handsfreeunit.AG_CALL_STATE_UPDATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE =
"usual.event.bluetooth.host.STATE_UPDATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE =
"usual.event.bluetooth.host.REQ_DISCOVERABLE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE = "usual.event.bluetooth.host.REQ_ENABLE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE =
"usual.event.bluetooth.host.REQ_DISABLE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE =
"usual.event.bluetooth.host.SCAN_MODE_UPDATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED =
"usual.event.bluetooth.host.DISCOVERY_STARTED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED =
"usual.event.bluetooth.host.DISCOVERY_FINISHED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE =
"usual.event.bluetooth.host.NAME_UPDATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE =
"usual.event.bluetooth.a2dpsink.CONNECT_STATE_UPDATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE =
"usual.event.bluetooth.a2dpsink.PLAYING_STATE_UPDATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE =
"usual.event.bluetooth.a2dpsink.AUDIO_STATE_UPDATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED =
"usual.event.nfc.action.ADAPTER_STATE_CHANGED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED =
"usual.event.nfc.action.RF_FIELD_ON_DETECTED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED =
"usual.event.nfc.action.RF_FIELD_OFF_DETECTED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_DISCHARGING = "usual.event.DISCHARGING"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_CHARGING = "usual.event.CHARGING"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED = "usual.event.DEVICE_IDLE_MODE_CHANGED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_POWER_SAVE_MODE_CHANGED = "usual.event.POWER_SAVE_MODE_CHANGED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_USER_ADDED = "usual.event.USER_ADDED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_USER_REMOVED = "usual.event.USER_REMOVED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_ABILITY_ADDED = "common.event.ABILITY_ADDED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_ABILITY_REMOVED = "common.event.ABILITY_REMOVED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_ABILITY_UPDATED = "common.event.ABILITY_UPDATED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_LOCATION_MODE_STATE_CHANGED =
"usual.event.location.MODE_STATE_CHANGED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_IVI_SLEEP = "common.event.IVI_SLEEP"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_IVI_PAUSE = "common.event.IVI_PAUSE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_IVI_STANDBY = "common.event.IVI_STANDBY"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_IVI_LASTMODE_SAVE = "common.event.IVI_LASTMODE_SAVE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_IVI_VOLTAGE_ABNORMAL = "common.event.IVI_VOLTAGE_ABNORMAL"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_IVI_HIGH_TEMPERATURE = "common.event.IVI_HIGH_TEMPERATURE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_IVI_EXTREME_TEMPERATURE = "common.event.IVI_EXTREME_TEMPERATURE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL = "common.event.IVI_TEMPERATURE_ABNORMAL"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_IVI_VOLTAGE_RECOVERY = "common.event.IVI_VOLTAGE_RECOVERY"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_IVI_TEMPERATURE_RECOVERY = "common.event.IVI_TEMPERATURE_RECOVERY"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_IVI_ACTIVE = "common.event.IVI_ACTIVE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_USB_STATE = "usual.event.hardware.usb.action.USB_STATE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_USB_PORT_CHANGED = "usual.event.hardware.usb.action.USB_PORT_CHANGED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_USB_DEVICE_ATTACHED =
"usual.event.hardware.usb.action.USB_DEVICE_ATTACHED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_USB_DEVICE_DETACHED =
"usual.event.hardware.usb.action.USB_DEVICE_DETACHED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_USB_ACCESSORY_ATTACHED =
"usual.event.hardware.usb.action.USB_ACCESSORY_ATTACHED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_USB_ACCESSORY_DETACHED =
"usual.event.hardware.usb.action.USB_ACCESSORY_DETACHED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_DISK_REMOVED = "usual.event.data.DISK_REMOVED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_DISK_UNMOUNTED = "usual.event.data.DISK_UNMOUNTED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_DISK_MOUNTED = "usual.event.data.DISK_MOUNTED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_DISK_BAD_REMOVAL = "usual.event.data.DISK_BAD_REMOVAL"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_DISK_UNMOUNTABLE = "usual.event.data.DISK_UNMOUNTABLE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_DISK_EJECT = "usual.event.data.DISK_EJECT"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_VOLUME_REMOVED = "usual.event.data.VOLUME_REMOVED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_VOLUME_UNMOUNTED = "usual.event.data.VOLUME_UNMOUNTED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_VOLUME_MOUNTED = "usual.event.data.VOLUME_MOUNTED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_VOLUME_BAD_REMOVAL = "usual.event.data.VOLUME_BAD_REMOVAL"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_VOLUME_EJECT = "usual.event.data.VOLUME_EJECT"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED =
"usual.event.data.VISIBLE_ACCOUNTS_UPDATED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_ACCOUNT_DELETED = "usual.event.data.ACCOUNT_DELETED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_FOUNDATION_READY = "common.event.FOUNDATION_READY"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_AIRPLANE_MODE_CHANGED = "usual.event.AIRPLANE_MODE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_SPLIT_SCREEN = "common.event.SPLIT_SCREEN"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_SLOT_CHANGE = "usual.event.SLOT_CHANGE"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_SPN_INFO_CHANGED = "usual.event.SPN_INFO_CHANGED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_QUICK_FIX_APPLY_RESULT = "usual.event.QUICK_FIX_APPLY_RESULT"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_USER_INFO_UPDATED = "usual.event.USER_INFO_UPDATED"|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.notification
类名: RemoveReason|@ohos.notification.d.ts| +|新增|NA|类名:RemoveReason
方法or属性:|@ohos.notification.d.ts| +|新增|NA|模块名: ohos.notification
类名: RemoveReason
方法 or 属性:CLICK_REASON_REMOVE = 1|@ohos.notification.d.ts| +|新增|NA|类名:RemoveReason
方法or属性:CLICK_REASON_REMOVE = 1|@ohos.notification.d.ts| +|新增|NA|模块名: ohos.notification
类名: RemoveReason
方法 or 属性:CANCEL_REASON_REMOVE = 2|@ohos.notification.d.ts| +|新增|NA|类名:RemoveReason
方法or属性:CANCEL_REASON_REMOVE = 2|@ohos.notification.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function publish(request: NotificationRequest, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function publish(request: NotificationRequest): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function publish(request: NotificationRequest, userId: number, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function publish(request: NotificationRequest, userId: number): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function publishAsBundle(request: NotificationRequest, representativeBundle: string, userId: number, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function publishAsBundle(request: NotificationRequest, representativeBundle: string, userId: number): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function cancel(id: number, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function cancel(id: number, label: string, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function cancel(id: number, label?: string): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function cancelAsBundle(id: number, representativeBundle: string, userId: number, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function cancelAsBundle(id: number, representativeBundle: string, userId: number): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function cancelAll(callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function cancelAll(): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function addSlot(slot: NotificationSlot, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function addSlot(slot: NotificationSlot): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function addSlot(type: SlotType, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function addSlot(type: SlotType): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function addSlots(slots: Array\, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function addSlots(slots: Array\): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getSlot(slotType: SlotType, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getSlot(slotType: SlotType): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getSlots(callback: AsyncCallback\>): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getSlots(): Promise\>;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function removeSlot(slotType: SlotType, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function removeSlot(slotType: SlotType): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function removeAllSlots(callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function removeAllSlots(): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function setNotificationEnable(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function setNotificationEnable(bundle: BundleOption, enable: boolean): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function isNotificationEnabled(bundle: BundleOption, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function isNotificationEnabled(bundle: BundleOption): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function isNotificationEnabled(callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function isNotificationEnabled(): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function isNotificationEnabled(userId: number, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function isNotificationEnabled(userId: number): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function displayBadge(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function displayBadge(bundle: BundleOption, enable: boolean): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function isBadgeDisplayed(bundle: BundleOption, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function isBadgeDisplayed(bundle: BundleOption): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function setSlotByBundle(bundle: BundleOption, slot: NotificationSlot, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function setSlotByBundle(bundle: BundleOption, slot: NotificationSlot): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getSlotsByBundle(bundle: BundleOption, callback: AsyncCallback\>): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getSlotsByBundle(bundle: BundleOption): Promise\>;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getSlotNumByBundle(bundle: BundleOption, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getSlotNumByBundle(bundle: BundleOption): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getAllActiveNotifications(callback: AsyncCallback\>): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getAllActiveNotifications(): Promise\>;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getActiveNotificationCount(callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getActiveNotificationCount(): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getActiveNotifications(callback: AsyncCallback\>): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getActiveNotifications(): Promise\>;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function cancelGroup(groupName: string, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function cancelGroup(groupName: string): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function removeGroupByBundle(bundle: BundleOption, groupName: string, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function removeGroupByBundle(bundle: BundleOption, groupName: string): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function setDoNotDisturbDate(date: DoNotDisturbDate, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function setDoNotDisturbDate(date: DoNotDisturbDate): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function setDoNotDisturbDate(date: DoNotDisturbDate, userId: number, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function setDoNotDisturbDate(date: DoNotDisturbDate, userId: number): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getDoNotDisturbDate(callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getDoNotDisturbDate(): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getDoNotDisturbDate(userId: number, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getDoNotDisturbDate(userId: number): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function isSupportDoNotDisturbMode(callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function isSupportDoNotDisturbMode(): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function isSupportTemplate(templateName: string, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function isSupportTemplate(templateName: string): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function requestEnableNotification(callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function requestEnableNotification(): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function setDistributedEnable(enable: boolean, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function setDistributedEnable(enable: boolean): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function isDistributedEnabled(callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function isDistributedEnabled(): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function setDistributedEnableByBundle(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function setDistributedEnableByBundle(bundle: BundleOption, enable: boolean): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function isDistributedEnabledByBundle(bundle: BundleOption, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function isDistributedEnabledByBundle(bundle: BundleOption): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getDeviceRemindType(callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getDeviceRemindType(): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function setNotificationEnableSlot(bundle: BundleOption, type: SlotType, enable: boolean, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function setNotificationEnableSlot(bundle: BundleOption, type: SlotType, enable: boolean): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function isNotificationSlotEnabled(bundle: BundleOption, type: SlotType, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function isNotificationSlotEnabled(bundle: BundleOption, type: SlotType): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function setSyncNotificationEnabledWithoutApp(userId: number, enable: boolean, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function setSyncNotificationEnabledWithoutApp(userId: number, enable: boolean): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getSyncNotificationEnabledWithoutApp(userId: number, callback: AsyncCallback\): void;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法 or 属性: function getSyncNotificationEnabledWithoutApp(userId: number): Promise\;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotType|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotType
方法 or 属性: UNKNOWN_TYPE = 0|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotType
方法 or 属性: SOCIAL_COMMUNICATION = 1|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotType
方法 or 属性: SERVICE_INFORMATION = 2|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotType
方法 or 属性: CONTENT_INFORMATION = 3|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotType
方法 or 属性: OTHER_TYPES = 0xFFFF|@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 = 0|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotLevel
方法 or 属性: LEVEL_MIN = 1|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotLevel
方法 or 属性: LEVEL_LOW = 2|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotLevel
方法 or 属性: LEVEL_DEFAULT = 3|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotLevel
方法 or 属性: LEVEL_HIGH = 4|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbType|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbType
方法 or 属性: TYPE_NONE = 0|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbType
方法 or 属性: TYPE_ONCE = 1|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbType
方法 or 属性: TYPE_DAILY = 2|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbType
方法 or 属性: TYPE_CLEARLY = 3|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbDate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbDate
方法 or 属性: type: DoNotDisturbType;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbDate
方法 or 属性: begin: Date;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbDate
方法 or 属性: end: Date;|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DeviceRemindType|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DeviceRemindType
方法 or 属性: IDLE_DONOT_REMIND = 0|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DeviceRemindType
方法 or 属性: IDLE_REMIND = 1|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DeviceRemindType
方法 or 属性: ACTIVE_DONOT_REMIND = 2|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DeviceRemindType
方法 or 属性: ACTIVE_REMIND = 3|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SourceType|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SourceType
方法 or 属性: TYPE_NORMAL = 0|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SourceType
方法 or 属性: TYPE_CONTINUOUS = 1|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SourceType
方法 or 属性: TYPE_TIMER = 2|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: NotificationKey|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: NotificationKey
方法 or 属性: id: number;|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: NotificationKey
方法 or 属性: label?: string;|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: RemoveReason|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: RemoveReason
方法 or 属性: CLICK_REASON_REMOVE = 1|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: RemoveReason
方法 or 属性: CANCEL_REASON_REMOVE = 2|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法 or 属性: function subscribe(subscriber: NotificationSubscriber, callback: AsyncCallback\): void;|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法 or 属性: function subscribe(subscriber: NotificationSubscriber, info: NotificationSubscribeInfo, callback: AsyncCallback\): void;|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法 or 属性: function subscribe(subscriber: NotificationSubscriber, info?: NotificationSubscribeInfo): Promise\;|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法 or 属性: function unsubscribe(subscriber: NotificationSubscriber, callback: AsyncCallback\): void;|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法 or 属性: function unsubscribe(subscriber: NotificationSubscriber): Promise\;|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法 or 属性: function remove(bundle: BundleOption, notificationKey: NotificationKey, reason: RemoveReason, callback: AsyncCallback\): void;|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法 or 属性: function remove(bundle: BundleOption, notificationKey: NotificationKey, reason: RemoveReason): Promise\;|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法 or 属性: function remove(hashCode: string, reason: RemoveReason, callback: AsyncCallback\): void;|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法 or 属性: function remove(hashCode: string, reason: RemoveReason): Promise\;|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法 or 属性: function removeAll(bundle: BundleOption, callback: AsyncCallback\): void;|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法 or 属性: function removeAll(callback: AsyncCallback\): void;|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法 or 属性: function removeAll(userId: number, callback: AsyncCallback\): void;|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法 or 属性: function removeAll(userId: number): Promise\;|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法 or 属性: function removeAll(bundle?: BundleOption): Promise\;|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法 or 属性: function publishReminder(reminderReq: ReminderRequest, callback: AsyncCallback\): void;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法 or 属性: function publishReminder(reminderReq: ReminderRequest): Promise\;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法 or 属性: function cancelReminder(reminderId: number, callback: AsyncCallback\): void;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法 or 属性: function cancelReminder(reminderId: number): Promise\;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法 or 属性: function getValidReminders(callback: AsyncCallback\>): void;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法 or 属性: function getValidReminders(): Promise\>;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法 or 属性: function cancelAllReminders(callback: AsyncCallback\): void;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法 or 属性: function cancelAllReminders(): Promise\;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法 or 属性: function addNotificationSlot(slot: NotificationSlot, callback: AsyncCallback\): void;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法 or 属性: function addNotificationSlot(slot: NotificationSlot): Promise\;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法 or 属性: function removeNotificationSlot(slotType: notification.SlotType, callback: AsyncCallback\): void;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法 or 属性: function removeNotificationSlot(slotType: notification.SlotType): Promise\;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ActionButtonType|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ActionButtonType
方法 or 属性: ACTION_BUTTON_TYPE_CLOSE = 0|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ActionButtonType
方法 or 属性: ACTION_BUTTON_TYPE_SNOOZE = 1|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderType|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderType
方法 or 属性: REMINDER_TYPE_TIMER = 0|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderType
方法 or 属性: REMINDER_TYPE_CALENDAR = 1|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderType
方法 or 属性: REMINDER_TYPE_ALARM = 2|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ActionButton|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ActionButton
方法 or 属性: title: string;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ActionButton
方法 or 属性: type: ActionButtonType;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: WantAgent|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: WantAgent
方法 or 属性: pkgName: string;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: WantAgent
方法 or 属性: abilityName: string;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: MaxScreenWantAgent|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: MaxScreenWantAgent
方法 or 属性: pkgName: string;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: MaxScreenWantAgent
方法 or 属性: abilityName: string;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法 or 属性: reminderType: ReminderType;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法 or 属性: actionButton?: [ActionButton?, ActionButton?];|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法 or 属性: wantAgent?: WantAgent;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法 or 属性: maxScreenWantAgent?: MaxScreenWantAgent;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法 or 属性: ringDuration?: number;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法 or 属性: snoozeTimes?: number;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法 or 属性: timeInterval?: number;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法 or 属性: title?: string;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法 or 属性: content?: string;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法 or 属性: expiredContent?: string;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法 or 属性: snoozeContent?: string;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法 or 属性: notificationId?: number;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法 or 属性: slotType?: notification.SlotType;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestCalendar|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestCalendar
方法 or 属性: dateTime: LocalDateTime;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestCalendar
方法 or 属性: repeatMonths?: Array\;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestCalendar
方法 or 属性: repeatDays?: Array\;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestAlarm|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestAlarm
方法 or 属性: hour: number;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestAlarm
方法 or 属性: minute: number;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestAlarm
方法 or 属性: daysOfWeek?: Array\;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestTimer|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestTimer
方法 or 属性: triggerTimeInSeconds: number;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法 or 属性: year: number;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法 or 属性: month: number;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法 or 属性: day: number;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法 or 属性: hour: number;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法 or 属性: minute: number;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法 or 属性: second?: number;|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: commonEventSubscriber
类名: CommonEventSubscriber
方法 or 属性: finishCommonEvent(callback: AsyncCallback\): void;|commonEventSubscriber.d.ts| +|新增|NA|模块名: commonEventSubscriber
类名: CommonEventSubscriber
方法 or 属性: finishCommonEvent(): Promise\;|commonEventSubscriber.d.ts| +|新增|NA|模块名: NotificationCommonDef
类名: BundleOption|NotificationCommonDef.d.ts| +|新增|NA|模块名: NotificationCommonDef
类名: BundleOption
方法 or 属性: bundle: string;|NotificationCommonDef.d.ts| +|新增|NA|模块名: NotificationCommonDef
类名: BundleOption
方法 or 属性: uid?: number;|NotificationCommonDef.d.ts| +|新增|NA|模块名: notificationRequest
类名: NotificationRequest
方法 or 属性: removalWantAgent?: WantAgent;|notificationRequest.d.ts| +|新增|NA|模块名: notificationRequest
类名: NotificationRequest
方法 or 属性: badgeNumber?: number;|notificationRequest.d.ts| +|新增|NA|模块名: notificationSlot
类名: NotificationSlot
方法 or 属性: readonly enabled?: boolean;|notificationSlot.d.ts| +|废弃版本有变化|类名:commonEvent
废弃版本:N/A|类名:commonEvent
废弃版本:9
代替接口:ohos.commonEventManager |@ohos.commonEvent.d.ts| +|废弃版本有变化|类名:commonEvent
方法 or 属性:function publish(event: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:commonEvent
方法 or 属性:function publish(event: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.commonEventManager.publish |@ohos.commonEvent.d.ts| +|废弃版本有变化|类名:commonEvent
方法 or 属性:function publish(event: string, options: CommonEventPublishData, callback: AsyncCallback\): void;
废弃版本:N/A|类名:commonEvent
方法 or 属性:function publish(event: string, options: CommonEventPublishData, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.commonEventManager.publish |@ohos.commonEvent.d.ts| +|废弃版本有变化|类名:commonEvent
方法 or 属性:function publishAsUser(event: string, userId: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:commonEvent
方法 or 属性:function publishAsUser(event: string, userId: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.commonEventManager.publishAsUser |@ohos.commonEvent.d.ts| +|废弃版本有变化|类名:commonEvent
方法 or 属性:function publishAsUser(event: string, userId: number, options: CommonEventPublishData, callback: AsyncCallback\): void;
废弃版本:N/A|类名:commonEvent
方法 or 属性:function publishAsUser(event: string, userId: number, options: CommonEventPublishData, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.commonEventManager.publishAsUser |@ohos.commonEvent.d.ts| +|废弃版本有变化|类名:commonEvent
方法 or 属性:function createSubscriber(subscribeInfo: CommonEventSubscribeInfo, callback: AsyncCallback\): void;
废弃版本:N/A|类名:commonEvent
方法 or 属性:function createSubscriber(subscribeInfo: CommonEventSubscribeInfo, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.commonEventManager.createSubscriber |@ohos.commonEvent.d.ts| +|废弃版本有变化|类名:commonEvent
方法 or 属性:function createSubscriber(subscribeInfo: CommonEventSubscribeInfo): Promise\;
废弃版本:N/A|类名:commonEvent
方法 or 属性:function createSubscriber(subscribeInfo: CommonEventSubscribeInfo): Promise\;
废弃版本:9
代替接口:ohos.commonEventManager.createSubscriber |@ohos.commonEvent.d.ts| +|废弃版本有变化|类名:commonEvent
方法 or 属性:function subscribe(subscriber: CommonEventSubscriber, callback: AsyncCallback\): void;
废弃版本:N/A|类名:commonEvent
方法 or 属性:function subscribe(subscriber: CommonEventSubscriber, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.commonEventManager.subscribe |@ohos.commonEvent.d.ts| +|废弃版本有变化|类名:commonEvent
方法 or 属性:function unsubscribe(subscriber: CommonEventSubscriber, callback?: AsyncCallback\): void;
废弃版本:N/A|类名:commonEvent
方法 or 属性:function unsubscribe(subscriber: CommonEventSubscriber, callback?: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.commonEventManager.unsubscribe |@ohos.commonEvent.d.ts| +|废弃版本有变化|类名:Support
废弃版本:N/A|类名:Support
废弃版本:9
代替接口:ohos.commonEventManager.Support |@ohos.commonEvent.d.ts| +|废弃版本有变化|类名:notification
废弃版本:N/A|类名:notification
废弃版本:9
代替接口:ohos.notificationManager and ohos.notificationSubscribe |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function publish(request: NotificationRequest, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function publish(request: NotificationRequest, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.publish |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function publish(request: NotificationRequest): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function publish(request: NotificationRequest): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.publish |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function publish(request: NotificationRequest, userId: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function publish(request: NotificationRequest, userId: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.publish |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function publish(request: NotificationRequest, userId: number): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function publish(request: NotificationRequest, userId: number): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.publish |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function cancel(id: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function cancel(id: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.cancel |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function cancel(id: number, label: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function cancel(id: number, label: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.cancel |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function cancel(id: number, label?: string): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function cancel(id: number, label?: string): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.cancel |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function cancelAll(callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function cancelAll(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.cancelAll |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function cancelAll(): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function cancelAll(): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.cancelAll |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function addSlot(slot: NotificationSlot, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function addSlot(slot: NotificationSlot, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.addSlot |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function addSlot(slot: NotificationSlot): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function addSlot(slot: NotificationSlot): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.addSlot |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function addSlot(type: SlotType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function addSlot(type: SlotType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.addSlot |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function addSlot(type: SlotType): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function addSlot(type: SlotType): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.addSlot |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function addSlots(slots: Array\, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function addSlots(slots: Array\, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.addSlots |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function addSlots(slots: Array\): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function addSlots(slots: Array\): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.addSlots |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function getSlot(slotType: SlotType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function getSlot(slotType: SlotType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.getSlot |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function getSlot(slotType: SlotType): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function getSlot(slotType: SlotType): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.getSlot |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function getSlots(callback: AsyncCallback\>): void;
废弃版本:N/A|类名:notification
方法 or 属性:function getSlots(callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.notificationManager.getSlots |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function getSlots(): Promise\>;
废弃版本:N/A|类名:notification
方法 or 属性:function getSlots(): Promise\>;
废弃版本:9
代替接口:ohos.notificationManager.getSlots |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function removeSlot(slotType: SlotType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function removeSlot(slotType: SlotType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.removeSlot |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function removeSlot(slotType: SlotType): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function removeSlot(slotType: SlotType): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.removeSlot |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function removeAllSlots(callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function removeAllSlots(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.removeAllSlots |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function removeAllSlots(): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function removeAllSlots(): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.removeAllSlots |@ohos.notification.d.ts| +|废弃版本有变化|类名:SlotType
废弃版本:N/A|类名:SlotType
废弃版本:9
代替接口:ohos.notificationManager.SlotType |@ohos.notification.d.ts| +|废弃版本有变化|类名:ContentType
废弃版本:N/A|类名:ContentType
废弃版本:9
代替接口:ohos.notificationManager.ContentType |@ohos.notification.d.ts| +|废弃版本有变化|类名:SlotLevel
废弃版本:N/A|类名:SlotLevel
废弃版本:9
代替接口:ohos.notificationManager.SlotLevel |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function subscribe(subscriber: NotificationSubscriber, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function subscribe(subscriber: NotificationSubscriber, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationSubscribe.subscribe |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function subscribe(subscriber: NotificationSubscriber, info: NotificationSubscribeInfo, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function subscribe(subscriber: NotificationSubscriber, info: NotificationSubscribeInfo, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationSubscribe.subscribe |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function subscribe(subscriber: NotificationSubscriber, info?: NotificationSubscribeInfo): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function subscribe(subscriber: NotificationSubscriber, info?: NotificationSubscribeInfo): Promise\;
废弃版本:9
代替接口:ohos.notificationSubscribe.subscribe |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function unsubscribe(subscriber: NotificationSubscriber, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function unsubscribe(subscriber: NotificationSubscriber, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationSubscribe.unsubscribe |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function unsubscribe(subscriber: NotificationSubscriber): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function unsubscribe(subscriber: NotificationSubscriber): Promise\;
废弃版本:9
代替接口:ohos.notificationSubscribe.unsubscribe |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function enableNotification(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function enableNotification(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.setNotificationEnable |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function enableNotification(bundle: BundleOption, enable: boolean): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function enableNotification(bundle: BundleOption, enable: boolean): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.setNotificationEnable |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function isNotificationEnabled(bundle: BundleOption, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function isNotificationEnabled(bundle: BundleOption, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.isNotificationEnabled |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function isNotificationEnabled(bundle: BundleOption): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function isNotificationEnabled(bundle: BundleOption): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.isNotificationEnabled |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function isNotificationEnabled(callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function isNotificationEnabled(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.isNotificationEnabled |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function isNotificationEnabled(): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function isNotificationEnabled(): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.isNotificationEnabled |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function isNotificationEnabled(userId: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function isNotificationEnabled(userId: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.isNotificationEnabled |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function isNotificationEnabled(userId: number): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function isNotificationEnabled(userId: number): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.isNotificationEnabled |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function displayBadge(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function displayBadge(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.displayBadge |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function displayBadge(bundle: BundleOption, enable: boolean): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function displayBadge(bundle: BundleOption, enable: boolean): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.displayBadge |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function isBadgeDisplayed(bundle: BundleOption, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function isBadgeDisplayed(bundle: BundleOption, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.isBadgeDisplayed |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function isBadgeDisplayed(bundle: BundleOption): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function isBadgeDisplayed(bundle: BundleOption): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.isBadgeDisplayed |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function setSlotByBundle(bundle: BundleOption, slot: NotificationSlot, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function setSlotByBundle(bundle: BundleOption, slot: NotificationSlot, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.setSlotByBundle |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function setSlotByBundle(bundle: BundleOption, slot: NotificationSlot): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function setSlotByBundle(bundle: BundleOption, slot: NotificationSlot): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.setSlotByBundle |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function getSlotsByBundle(bundle: BundleOption, callback: AsyncCallback\>): void;
废弃版本:N/A|类名:notification
方法 or 属性:function getSlotsByBundle(bundle: BundleOption, callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.notificationManager.getSlotsByBundle |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function getSlotsByBundle(bundle: BundleOption): Promise\>;
废弃版本:N/A|类名:notification
方法 or 属性:function getSlotsByBundle(bundle: BundleOption): Promise\>;
废弃版本:9
代替接口:ohos.notificationManager.getSlotsByBundle |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function getSlotNumByBundle(bundle: BundleOption, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function getSlotNumByBundle(bundle: BundleOption, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.getSlotNumByBundle |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function getSlotNumByBundle(bundle: BundleOption): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function getSlotNumByBundle(bundle: BundleOption): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.getSlotNumByBundle |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function removeAll(bundle: BundleOption, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function removeAll(bundle: BundleOption, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationSubscribe.removeAll |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function removeAll(callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function removeAll(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationSubscribe.removeAll |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function removeAll(userId: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function removeAll(userId: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationSubscribe.removeAll |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function removeAll(userId: number): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function removeAll(userId: number): Promise\;
废弃版本:9
代替接口:ohos.notificationSubscribe.removeAll |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function removeAll(bundle?: BundleOption): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function removeAll(bundle?: BundleOption): Promise\;
废弃版本:9
代替接口:notificationSubscribe.removeAll |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function getAllActiveNotifications(callback: AsyncCallback\>): void;
废弃版本:N/A|类名:notification
方法 or 属性:function getAllActiveNotifications(callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.notificationManager.getAllActiveNotifications |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function getAllActiveNotifications(): Promise\>;
废弃版本:N/A|类名:notification
方法 or 属性:function getAllActiveNotifications(): Promise\>;
废弃版本:9
代替接口:ohos.notificationManager.getAllActiveNotifications |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function getActiveNotificationCount(callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function getActiveNotificationCount(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.getActiveNotificationCount |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function getActiveNotificationCount(): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function getActiveNotificationCount(): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.getActiveNotificationCount |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function getActiveNotifications(callback: AsyncCallback\>): void;
废弃版本:N/A|类名:notification
方法 or 属性:function getActiveNotifications(callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.notificationManager.cancelGroup |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function getActiveNotifications(): Promise\>;
废弃版本:N/A|类名:notification
方法 or 属性:function getActiveNotifications(): Promise\>;
废弃版本:9
代替接口:ohos.notificationManager.cancelGroup |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function cancelGroup(groupName: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function cancelGroup(groupName: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.cancelGroup |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function cancelGroup(groupName: string): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function cancelGroup(groupName: string): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.cancelGroup |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function removeGroupByBundle(bundle: BundleOption, groupName: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function removeGroupByBundle(bundle: BundleOption, groupName: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.removeGroupByBundle |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function removeGroupByBundle(bundle: BundleOption, groupName: string): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function removeGroupByBundle(bundle: BundleOption, groupName: string): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.removeGroupByBundle |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function setDoNotDisturbDate(date: DoNotDisturbDate, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function setDoNotDisturbDate(date: DoNotDisturbDate, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.setDoNotDisturbDate |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function setDoNotDisturbDate(date: DoNotDisturbDate): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function setDoNotDisturbDate(date: DoNotDisturbDate): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.setDoNotDisturbDate |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function setDoNotDisturbDate(date: DoNotDisturbDate, userId: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function setDoNotDisturbDate(date: DoNotDisturbDate, userId: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.setDoNotDisturbDate |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function setDoNotDisturbDate(date: DoNotDisturbDate, userId: number): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function setDoNotDisturbDate(date: DoNotDisturbDate, userId: number): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.setDoNotDisturbDate |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function getDoNotDisturbDate(callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function getDoNotDisturbDate(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.getDoNotDisturbDate |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function getDoNotDisturbDate(): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function getDoNotDisturbDate(): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.getDoNotDisturbDate |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function getDoNotDisturbDate(userId: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function getDoNotDisturbDate(userId: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.getDoNotDisturbDate |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function getDoNotDisturbDate(userId: number): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function getDoNotDisturbDate(userId: number): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.getDoNotDisturbDate |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function supportDoNotDisturbMode(callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function supportDoNotDisturbMode(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.isSupportDoNotDisturbMode |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function supportDoNotDisturbMode(): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function supportDoNotDisturbMode(): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.isSupportDoNotDisturbMode |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function isSupportTemplate(templateName: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function isSupportTemplate(templateName: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.isSupportTemplate |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function isSupportTemplate(templateName: string): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function isSupportTemplate(templateName: string): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.isSupportTemplate |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function requestEnableNotification(callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function requestEnableNotification(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.requestEnableNotification |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function requestEnableNotification(): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function requestEnableNotification(): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.requestEnableNotification |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function enableDistributed(enable: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function enableDistributed(enable: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.setDistributedEnable |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function enableDistributed(enable: boolean): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function enableDistributed(enable: boolean): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.setDistributedEnable |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function isDistributedEnabled(callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function isDistributedEnabled(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.isDistributedEnabled |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function isDistributedEnabled(): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function isDistributedEnabled(): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.isDistributedEnabled |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function enableDistributedByBundle(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function enableDistributedByBundle(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.setDistributedEnableByBundle |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function enableDistributedByBundle(bundle: BundleOption, enable: boolean): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function enableDistributedByBundle(bundle: BundleOption, enable: boolean): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.setDistributedEnableByBundle |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function isDistributedEnabledByBundle(bundle: BundleOption, callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function isDistributedEnabledByBundle(bundle: BundleOption, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.isDistributedEnabledByBundle |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function isDistributedEnabledByBundle(bundle: BundleOption): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function isDistributedEnabledByBundle(bundle: BundleOption): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.isDistributedEnabledByBundle |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function getDeviceRemindType(callback: AsyncCallback\): void;
废弃版本:N/A|类名:notification
方法 or 属性:function getDeviceRemindType(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.notificationManager.getDeviceRemindType |@ohos.notification.d.ts| +|废弃版本有变化|类名:notification
方法 or 属性:function getDeviceRemindType(): Promise\;
废弃版本:N/A|类名:notification
方法 or 属性:function getDeviceRemindType(): Promise\;
废弃版本:9
代替接口:ohos.notificationManager.getDeviceRemindType |@ohos.notification.d.ts| +|废弃版本有变化|类名:BundleOption
废弃版本:N/A|类名:BundleOption
废弃版本:9
代替接口:ohos.notificationManager.BundleOption |@ohos.notification.d.ts| +|废弃版本有变化|类名:NotificationKey
废弃版本:N/A|类名:NotificationKey
废弃版本:9
代替接口:ohos.notificationManager.NotificationKey |@ohos.notification.d.ts| +|废弃版本有变化|类名:DoNotDisturbType
废弃版本:N/A|类名:DoNotDisturbType
废弃版本:9
代替接口:ohos.notificationManager.DoNotDisturbType |@ohos.notification.d.ts| +|废弃版本有变化|类名: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| +|废弃版本有变化|类名:reminderAgent
废弃版本:N/A|类名:reminderAgent
废弃版本:9
代替接口:reminderAgentManager |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:reminderAgent
方法 or 属性:function publishReminder(reminderReq: ReminderRequest, callback: AsyncCallback\): void;
废弃版本:N/A|类名:reminderAgent
方法 or 属性:function publishReminder(reminderReq: ReminderRequest, callback: AsyncCallback\): void;
废弃版本:9
代替接口:reminderAgentManager.publishReminder |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:reminderAgent
方法 or 属性:function publishReminder(reminderReq: ReminderRequest): Promise\;
废弃版本:N/A|类名:reminderAgent
方法 or 属性:function publishReminder(reminderReq: ReminderRequest): Promise\;
废弃版本:9
代替接口:reminderAgentManager.publishReminder |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:reminderAgent
方法 or 属性:function cancelReminder(reminderId: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:reminderAgent
方法 or 属性:function cancelReminder(reminderId: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:reminderAgentManager.cancelReminder |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:reminderAgent
方法 or 属性:function cancelReminder(reminderId: number): Promise\;
废弃版本:N/A|类名:reminderAgent
方法 or 属性:function cancelReminder(reminderId: number): Promise\;
废弃版本:9
代替接口:reminderAgentManager.cancelReminder |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:reminderAgent
方法 or 属性:function getValidReminders(callback: AsyncCallback\>): void;
废弃版本:N/A|类名:reminderAgent
方法 or 属性:function getValidReminders(callback: AsyncCallback\>): void;
废弃版本:9
代替接口:reminderAgentManager.getValidReminders |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:reminderAgent
方法 or 属性:function getValidReminders(): Promise\>;
废弃版本:N/A|类名:reminderAgent
方法 or 属性:function getValidReminders(): Promise\>;
废弃版本:9
代替接口:reminderAgentManager.getValidReminders |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:reminderAgent
方法 or 属性:function cancelAllReminders(callback: AsyncCallback\): void;
废弃版本:N/A|类名:reminderAgent
方法 or 属性:function cancelAllReminders(callback: AsyncCallback\): void;
废弃版本:9
代替接口:reminderAgentManager.cancelAllReminders |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:reminderAgent
方法 or 属性:function cancelAllReminders(): Promise\;
废弃版本:N/A|类名:reminderAgent
方法 or 属性:function cancelAllReminders(): Promise\;
废弃版本:9
代替接口:reminderAgentManager.cancelAllReminders |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:reminderAgent
方法 or 属性:function addNotificationSlot(slot: NotificationSlot, callback: AsyncCallback\): void;
废弃版本:N/A|类名:reminderAgent
方法 or 属性:function addNotificationSlot(slot: NotificationSlot, callback: AsyncCallback\): void;
废弃版本:9
代替接口:reminderAgentManager.addNotificationSlot |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:reminderAgent
方法 or 属性:function addNotificationSlot(slot: NotificationSlot): Promise\;
废弃版本:N/A|类名:reminderAgent
方法 or 属性:function addNotificationSlot(slot: NotificationSlot): Promise\;
废弃版本:9
代替接口:reminderAgentManager.addNotificationSlot |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:reminderAgent
方法 or 属性:function removeNotificationSlot(slotType: notification.SlotType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:reminderAgent
方法 or 属性:function removeNotificationSlot(slotType: notification.SlotType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:reminderAgentManager.removeNotificationSlot |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:reminderAgent
方法 or 属性:function removeNotificationSlot(slotType: notification.SlotType): Promise\;
废弃版本:N/A|类名:reminderAgent
方法 or 属性:function removeNotificationSlot(slotType: notification.SlotType): Promise\;
废弃版本:9
代替接口:reminderAgentManager.removeNotificationSlot |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ActionButtonType
废弃版本:N/A|类名:ActionButtonType
废弃版本:9
代替接口:reminderAgentManager.ActionButtonType |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ActionButtonType
方法 or 属性:ACTION_BUTTON_TYPE_CLOSE = 0
废弃版本:N/A|类名:ActionButtonType
方法 or 属性:ACTION_BUTTON_TYPE_CLOSE = 0
废弃版本:9
代替接口:reminderAgentManager.ActionButtonType.ACTION_BUTTON_TYPE_CLOSE |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ActionButtonType
方法 or 属性:ACTION_BUTTON_TYPE_SNOOZE = 1
废弃版本:N/A|类名:ActionButtonType
方法 or 属性:ACTION_BUTTON_TYPE_SNOOZE = 1
废弃版本:9
代替接口:reminderAgentManager.ActionButtonType.ACTION_BUTTON_TYPE_SNOOZE |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderType
废弃版本:N/A|类名:ReminderType
废弃版本:9
代替接口:reminderAgentManager.ReminderType |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderType
方法 or 属性:REMINDER_TYPE_TIMER = 0
废弃版本:N/A|类名:ReminderType
方法 or 属性:REMINDER_TYPE_TIMER = 0
废弃版本:9
代替接口:reminderAgentManager.ReminderType.REMINDER_TYPE_TIMER |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderType
方法 or 属性:REMINDER_TYPE_CALENDAR = 1
废弃版本:N/A|类名:ReminderType
方法 or 属性:REMINDER_TYPE_CALENDAR = 1
废弃版本:9
代替接口:reminderAgentManager.ReminderType.REMINDER_TYPE_CALENDAR |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderType
方法 or 属性:REMINDER_TYPE_ALARM = 2
废弃版本:N/A|类名:ReminderType
方法 or 属性:REMINDER_TYPE_ALARM = 2
废弃版本:9
代替接口:reminderAgentManager.ReminderType.REMINDER_TYPE_ALARM |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ActionButton
废弃版本:N/A|类名:ActionButton
废弃版本:9
代替接口:reminderAgentManager.ActionButton |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ActionButton
方法 or 属性:title: string;
废弃版本:N/A|类名:ActionButton
方法 or 属性:title: string;
废弃版本:9
代替接口:reminderAgentManager.ActionButton.title |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ActionButton
方法 or 属性:type: ActionButtonType;
废弃版本:N/A|类名:ActionButton
方法 or 属性:type: ActionButtonType;
废弃版本:9
代替接口:reminderAgentManager.ActionButton.type |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:WantAgent
废弃版本:N/A|类名:WantAgent
废弃版本:9
代替接口:reminderAgentManager.WantAgent |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:WantAgent
方法 or 属性:pkgName: string;
废弃版本:N/A|类名:WantAgent
方法 or 属性:pkgName: string;
废弃版本:9
代替接口:reminderAgentManager.WantAgent.pkgName |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:WantAgent
方法 or 属性:abilityName: string;
废弃版本:N/A|类名:WantAgent
方法 or 属性:abilityName: string;
废弃版本:9
代替接口:reminderAgentManager.WantAgent.abilityName |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:MaxScreenWantAgent
废弃版本:N/A|类名:MaxScreenWantAgent
废弃版本:9
代替接口:reminderAgentManager.MaxScreenWantAgent |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:MaxScreenWantAgent
方法 or 属性:pkgName: string;
废弃版本:N/A|类名:MaxScreenWantAgent
方法 or 属性:pkgName: string;
废弃版本:9
代替接口:reminderAgentManager.MaxScreenWantAgent.pkgName |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:MaxScreenWantAgent
方法 or 属性:abilityName: string;
废弃版本:N/A|类名:MaxScreenWantAgent
方法 or 属性:abilityName: string;
废弃版本:9
代替接口:reminderAgentManager.MaxScreenWantAgent.abilityName |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequest
废弃版本:N/A|类名:ReminderRequest
废弃版本:9
代替接口:reminderAgentManager.ReminderRequest |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequest
方法 or 属性:reminderType: ReminderType;
废弃版本:N/A|类名:ReminderRequest
方法 or 属性:reminderType: ReminderType;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequest.reminderType |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequest
方法 or 属性:actionButton?: [ActionButton?, ActionButton?];
废弃版本:N/A|类名:ReminderRequest
方法 or 属性:actionButton?: [ActionButton?, ActionButton?];
废弃版本:9
代替接口:reminderAgentManager.ReminderRequest.actionButton |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequest
方法 or 属性:wantAgent?: WantAgent;
废弃版本:N/A|类名:ReminderRequest
方法 or 属性:wantAgent?: WantAgent;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequest.wantAgent |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequest
方法 or 属性:maxScreenWantAgent?: MaxScreenWantAgent;
废弃版本:N/A|类名:ReminderRequest
方法 or 属性:maxScreenWantAgent?: MaxScreenWantAgent;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequest.maxScreenWantAgent |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequest
方法 or 属性:ringDuration?: number;
废弃版本:N/A|类名:ReminderRequest
方法 or 属性:ringDuration?: number;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequest.ringDuration |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequest
方法 or 属性:snoozeTimes?: number;
废弃版本:N/A|类名:ReminderRequest
方法 or 属性:snoozeTimes?: number;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequest.snoozeTimes |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequest
方法 or 属性:timeInterval?: number;
废弃版本:N/A|类名:ReminderRequest
方法 or 属性:timeInterval?: number;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequest.timeInterval |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequest
方法 or 属性:title?: string;
废弃版本:N/A|类名:ReminderRequest
方法 or 属性:title?: string;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequest.title |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequest
方法 or 属性:content?: string;
废弃版本:N/A|类名:ReminderRequest
方法 or 属性:content?: string;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequest.content |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequest
方法 or 属性:expiredContent?: string;
废弃版本:N/A|类名:ReminderRequest
方法 or 属性:expiredContent?: string;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequest.expiredContent |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequest
方法 or 属性:snoozeContent?: string;
废弃版本:N/A|类名:ReminderRequest
方法 or 属性:snoozeContent?: string;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequest.snoozeContent |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequest
方法 or 属性:notificationId?: number;
废弃版本:N/A|类名:ReminderRequest
方法 or 属性:notificationId?: number;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequest.notificationId |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequest
方法 or 属性:slotType?: notification.SlotType;
废弃版本:N/A|类名:ReminderRequest
方法 or 属性:slotType?: notification.SlotType;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequest.slotType |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequestCalendar
废弃版本:N/A|类名:ReminderRequestCalendar
废弃版本:9
代替接口:reminderAgentManager.ReminderRequestCalendar |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequestCalendar
方法 or 属性:dateTime: LocalDateTime;
废弃版本:N/A|类名:ReminderRequestCalendar
方法 or 属性:dateTime: LocalDateTime;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequestCalendar.dateTime |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequestCalendar
方法 or 属性:repeatMonths?: Array\;
废弃版本:N/A|类名:ReminderRequestCalendar
方法 or 属性:repeatMonths?: Array\;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequestCalendar.repeatMonths |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequestCalendar
方法 or 属性:repeatDays?: Array\;
废弃版本:N/A|类名:ReminderRequestCalendar
方法 or 属性:repeatDays?: Array\;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequestCalendar.repeatDays |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequestAlarm
废弃版本:N/A|类名:ReminderRequestAlarm
废弃版本:9
代替接口:reminderAgentManager.ReminderRequestAlarm |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequestAlarm
方法 or 属性:hour: number;
废弃版本:N/A|类名:ReminderRequestAlarm
方法 or 属性:hour: number;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequestAlarm.hour |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequestAlarm
方法 or 属性:minute: number;
废弃版本:N/A|类名:ReminderRequestAlarm
方法 or 属性:minute: number;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequestAlarm.minute |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequestAlarm
方法 or 属性:daysOfWeek?: Array\;
废弃版本:N/A|类名:ReminderRequestAlarm
方法 or 属性:daysOfWeek?: Array\;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequestAlarm.daysOfWeek |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:ReminderRequestTimer
废弃版本:N/A|类名:ReminderRequestTimer
废弃版本:9
代替接口:reminderAgentManager.ReminderRequestTimer |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:LocalDateTime
方法 or 属性:year: number;
废弃版本:N/A|类名:LocalDateTime
方法 or 属性:year: number;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequestTimer.year |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:LocalDateTime
方法 or 属性:month: number;
废弃版本:N/A|类名:LocalDateTime
方法 or 属性:month: number;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequestTimer.month |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:LocalDateTime
方法 or 属性:day: number;
废弃版本:N/A|类名:LocalDateTime
方法 or 属性:day: number;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequestTimer.day |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:LocalDateTime
方法 or 属性:hour: number;
废弃版本:N/A|类名:LocalDateTime
方法 or 属性:hour: number;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequestTimer.hour |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:LocalDateTime
方法 or 属性:minute: number;
废弃版本:N/A|类名:LocalDateTime
方法 or 属性:minute: number;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequestTimer.minute |@ohos.reminderAgent.d.ts| +|废弃版本有变化|类名:LocalDateTime
方法 or 属性:second?: number;
废弃版本:N/A|类名:LocalDateTime
方法 or 属性:second?: number;
废弃版本:9
代替接口:reminderAgentManager.ReminderRequestTimer.second |@ohos.reminderAgent.d.ts| +|SysCap有变化|类名:ReminderRequestAlarm
SysCap:Define alarm reminder object.|类名:ReminderRequestAlarm
SysCap:SystemCapability.Notification.ReminderAgent|@ohos.reminderAgent.d.ts| +|函数有变化|类名:notification
方法 or 属性:function remove(bundle: BundleOption, notificationKey: NotificationKey, callback: AsyncCallback\): void;
|类名:notification
方法 or 属性:function remove(bundle: BundleOption, notificationKey: NotificationKey, reason: RemoveReason, callback: AsyncCallback\): void;
|@ohos.notification.d.ts| +|函数有变化|类名:notification
方法 or 属性:function remove(hashCode: string, callback: AsyncCallback\): void;
|类名:notification
方法 or 属性:function remove(bundle: BundleOption, notificationKey: NotificationKey, reason: RemoveReason, callback: AsyncCallback\): void;
|@ohos.notification.d.ts| +|函数有变化|类名:notification
方法 or 属性:function remove(bundle: BundleOption, notificationKey: NotificationKey): Promise\;
|类名:notification
方法 or 属性:function remove(bundle: BundleOption, notificationKey: NotificationKey, reason: RemoveReason): Promise\;
|@ohos.notification.d.ts| +|函数有变化|类名:notification
方法 or 属性:function remove(hashCode: string): Promise\;
|类名:notification
方法 or 属性:function remove(bundle: BundleOption, notificationKey: NotificationKey, reason: RemoveReason): Promise\;
|@ohos.notification.d.ts| +|函数有变化|类名:notification
方法 or 属性:function remove(bundle: BundleOption, notificationKey: NotificationKey, callback: AsyncCallback\): void;
|类名:notification
方法 or 属性:function remove(hashCode: string, reason: RemoveReason, callback: AsyncCallback\): void;
|@ohos.notification.d.ts| +|函数有变化|类名:notification
方法 or 属性:function remove(hashCode: string, callback: AsyncCallback\): void;
|类名:notification
方法 or 属性:function remove(hashCode: string, reason: RemoveReason, callback: AsyncCallback\): void;
|@ohos.notification.d.ts| +|函数有变化|类名:notification
方法 or 属性:function remove(bundle: BundleOption, notificationKey: NotificationKey): Promise\;
|类名:notification
方法 or 属性:function remove(hashCode: string, reason: RemoveReason): Promise\;
|@ohos.notification.d.ts| +|函数有变化|类名:notification
方法 or 属性:function remove(hashCode: string): Promise\;
|类名:notification
方法 or 属性:function remove(hashCode: string, reason: RemoveReason): Promise\;
|@ohos.notification.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-resource-scheduler.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-resource-scheduler.md new file mode 100644 index 0000000000000000000000000000000000000000..ea654bf00e7c052462e4c1905711ca9ad9f0d314 --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-resource-scheduler.md @@ -0,0 +1,215 @@ +| 操作 | 旧版本 | 新版本 | 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: number;|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: DelaySuspendInfo
方法 or 属性: actualDelayTime: number;|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法 or 属性: function cancelSuspendDelay(requestId: number): void;|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法 or 属性: function getRemainingDelayTime(requestId: number, callback: AsyncCallback\): void;|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法 or 属性: function getRemainingDelayTime(requestId: number): Promise\;|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法 or 属性: function requestSuspendDelay(reason: string, callback: Callback\): DelaySuspendInfo;|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法 or 属性: function startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent, callback: AsyncCallback\): void;|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法 or 属性: function startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent): Promise\;|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法 or 属性: function stopBackgroundRunning(context: Context, callback: AsyncCallback\): void;|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法 or 属性: function stopBackgroundRunning(context: Context): Promise\;|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法 or 属性: function applyEfficiencyResources(request: EfficiencyResourcesRequest): void;|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法 or 属性: function resetAllEfficiencyResources(): void;|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法 or 属性: DATA_TRANSFER = 1|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法 or 属性: AUDIO_PLAYBACK = 2|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法 or 属性: AUDIO_RECORDING = 3|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法 or 属性: LOCATION = 4|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法 or 属性: BLUETOOTH_INTERACTION = 5|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法 or 属性: MULTI_DEVICE_CONNECTION = 6|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法 or 属性: WIFI_INTERACTION = 7|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法 or 属性: VOIP = 8|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法 or 属性: TASK_KEEPING = 9|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法 or 属性: CPU = 1|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法 or 属性: COMMON_EVENT = 1 \<\< 1|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法 or 属性: TIMER = 1 \<\< 2|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法 or 属性: WORK_SCHEDULER = 1 \<\< 3|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法 or 属性: BLUETOOTH = 1 \<\< 4|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法 or 属性: GPS = 1 \<\< 5|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法 or 属性: AUDIO = 1 \<\< 6|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法 or 属性: resourceTypes: number;|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法 or 属性: isApply: boolean;|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法 or 属性: timeOut: number;|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法 or 属性: isPersist?: boolean;|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法 or 属性: isProcess?: boolean;|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法 or 属性: reason: string;|@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: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法 or 属性: abilityInFgTotalTime?: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法 or 属性: abilityPrevAccessTime?: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法 or 属性: abilityPrevSeenTime?: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法 or 属性: abilitySeenTotalTime?: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法 or 属性: bundleName?: string;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法 or 属性: fgAbilityAccessTotalTime?: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法 or 属性: fgAbilityPrevAccessTime?: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法 or 属性: infosBeginTime?: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法 or 属性: infosEndTime?: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法 or 属性: formName: string;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法 or 属性: formDimension: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法 or 属性: formId: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法 or 属性: formLastUsedTime: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法 or 属性: count: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法 or 属性: deviceId?: string;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法 or 属性: bundleName: string;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法 or 属性: moduleName: string;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法 or 属性: abilityName?: string;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法 or 属性: appLabelId?: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法 or 属性: labelId?: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法 or 属性: descriptionId?: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法 or 属性: abilityLableId?: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法 or 属性: abilityDescriptionId?: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法 or 属性: abilityIconId?: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法 or 属性: launchedCount: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法 or 属性: lastModuleUsedTime: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法 or 属性: formRecords: Array\;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: DeviceEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: DeviceEventStats
方法 or 属性: name: string;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: DeviceEventStats
方法 or 属性: eventId: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: DeviceEventStats
方法 or 属性: count: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法 or 属性: appGroup?: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法 or 属性: bundleName?: string;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法 or 属性: indexOfLink?: string;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法 or 属性: nameOfClass?: string;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法 or 属性: eventOccurredTime?: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法 or 属性: eventId?: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法 or 属性: appOldGroup: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法 or 属性: appNewGroup: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法 or 属性: userId: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法 or 属性: changeReason: number;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法 or 属性: bundleName: string;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function isIdleState(bundleName: string, callback: AsyncCallback\): void;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function isIdleState(bundleName: string): Promise\;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function queryAppGroup(callback: AsyncCallback\): void;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function queryAppGroup(): Promise\;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function queryAppGroup(bundleName : string, callback: AsyncCallback\): void;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function queryAppGroup(bundleName : string): Promise\;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsMap|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsMap
方法 or 属性: [key: string]: BundleStatsInfo;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function queryBundleStatsInfos(begin: number, end: number, callback: AsyncCallback\): void;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function queryBundleStatsInfos(begin: number, end: number): Promise\;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法 or 属性: BY_OPTIMIZED = 0|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法 or 属性: BY_DAILY = 1|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法 or 属性: BY_WEEKLY = 2|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法 or 属性: BY_MONTHLY = 3|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法 or 属性: BY_ANNUALLY = 4|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function queryBundleStatsInfoByInterval(byInterval: IntervalType, begin: number, end: number, callback: AsyncCallback\>): void;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function queryBundleStatsInfoByInterval(byInterval: IntervalType, begin: number, end: number): Promise\>;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function queryBundleEvents(begin: number, end: number, callback: AsyncCallback\>): void;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function queryBundleEvents(begin: number, end: number): Promise\>;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function queryCurrentBundleEvents(begin: number, end: number, callback: AsyncCallback\>): void;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function queryCurrentBundleEvents(begin: number, end: number): Promise\>;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function queryModuleUsageRecords(maxNum: number, callback: AsyncCallback\>): void;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function queryModuleUsageRecords(maxNum: number): Promise\>;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function queryModuleUsageRecords(callback: AsyncCallback\>): void;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function queryModuleUsageRecords(): Promise\>;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法 or 属性: ALIVE_GROUP = 10|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法 or 属性: DAILY_GROUP = 20|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法 or 属性: FIXED_GROUP = 30|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法 or 属性: RARE_GROUP = 40|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法 or 属性: LIMITED_GROUP = 50|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法 or 属性: NEVER_GROUP = 60|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function setAppGroup(bundleName: string, newGroup: GroupType, callback: AsyncCallback\): void;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function setAppGroup(bundleName: string, newGroup: GroupType): Promise\;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function registerAppGroupCallBack(groupCallback: Callback\, callback: AsyncCallback\): void;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function registerAppGroupCallBack(groupCallback: Callback\): Promise\;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function unregisterAppGroupCallBack(callback: AsyncCallback\): void;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function unregisterAppGroupCallBack(): Promise\;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function queryDeviceEventStats(begin: number, end: number, callback: AsyncCallback\>): void;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function queryDeviceEventStats(begin: number, end: number): Promise\>;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function queryNotificationEventStats(begin: number, end: number, callback: AsyncCallback\>): void;|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法 or 属性: function queryNotificationEventStats(begin: number, end: number): Promise\>;|@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: number;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法 or 属性: bundleName: string;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法 or 属性: abilityName: string;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法 or 属性: isPersisted?: boolean;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法 or 属性: networkType?: NetworkType;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法 or 属性: isCharging?: boolean;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法 or 属性: chargerType?: ChargingType;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法 or 属性: batteryLevel?: number;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法 or 属性: batteryStatus?: BatteryStatus;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法 or 属性: storageRequest?: StorageRequest;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法 or 属性: repeatCycleTime?: number;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法 or 属性: isRepeat?: boolean;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法 or 属性: repeatCount?: number;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法 or 属性: isDeepIdle?: boolean;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法 or 属性: idleWaitTime?: number;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法 or 属性: parameters?: {[key: string]: number \| string \| boolean};|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法 or 属性: function startWork(work: WorkInfo): void;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法 or 属性: function stopWork(work: WorkInfo, needCancel?: boolean): void;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法 or 属性: function getWorkStatus(workId: number, callback: AsyncCallback\): void;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法 or 属性: function getWorkStatus(workId: number): Promise\;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法 or 属性: function obtainAllWorks(callback: AsyncCallback\): Array\;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法 or 属性: function obtainAllWorks(): Promise\>;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法 or 属性: function stopAndClearWorks(): void;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法 or 属性: function isLastWorkTimeOut(workId: number, callback: AsyncCallback\): boolean;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法 or 属性: function isLastWorkTimeOut(workId: number): Promise\;|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: NetworkType|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法 or 属性: NETWORK_TYPE_ANY = 0|@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 = 0|@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 = 0|@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 = 0|@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| +|新增|NA|模块名: ohos.WorkSchedulerExtensionAbility
类名: WorkSchedulerExtensionAbility|@ohos.WorkSchedulerExtensionAbility.d.ts| +|新增|NA|模块名: ohos.WorkSchedulerExtensionAbility
类名: WorkSchedulerExtensionAbility
方法 or 属性: onWorkStart(work: workScheduler.WorkInfo): void;|@ohos.WorkSchedulerExtensionAbility.d.ts| +|新增|NA|模块名: ohos.WorkSchedulerExtensionAbility
类名: WorkSchedulerExtensionAbility
方法 or 属性: onWorkStop(work: workScheduler.WorkInfo): void;|@ohos.WorkSchedulerExtensionAbility.d.ts| +|废弃版本有变化|类名:particleAbility
方法 or 属性:function startBackgroundRunning(id: number, request: NotificationRequest, callback: AsyncCallback\): void;
废弃版本:N/A|类名:particleAbility
方法 or 属性:function startBackgroundRunning(id: number, request: NotificationRequest, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.startBackgroundRunning |@ohos.ability.particleAbility.d.ts| +|废弃版本有变化|类名:particleAbility
方法 or 属性:function startBackgroundRunning(id: number, request: NotificationRequest): Promise\;
废弃版本:N/A|类名:particleAbility
方法 or 属性:function startBackgroundRunning(id: number, request: NotificationRequest): Promise\;
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.startBackgroundRunning |@ohos.ability.particleAbility.d.ts| +|废弃版本有变化|类名:particleAbility
方法 or 属性:function cancelBackgroundRunning(callback: AsyncCallback\): void;
废弃版本:N/A|类名:particleAbility
方法 or 属性:function cancelBackgroundRunning(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.stopBackgroundRunning |@ohos.ability.particleAbility.d.ts| +|废弃版本有变化|类名:particleAbility
方法 or 属性:function cancelBackgroundRunning(): Promise\;
废弃版本:N/A|类名:particleAbility
方法 or 属性:function cancelBackgroundRunning(): Promise\;
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.stopBackgroundRunning |@ohos.ability.particleAbility.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| +|废弃版本有变化|类名:backgroundTaskManager
方法 or 属性:function cancelSuspendDelay(requestId: number): void;
废弃版本:N/A|类名:backgroundTaskManager
方法 or 属性:function cancelSuspendDelay(requestId: number): void;
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.cancelSuspendDelay |@ohos.backgroundTaskManager.d.ts| +|废弃版本有变化|类名:backgroundTaskManager
方法 or 属性:function getRemainingDelayTime(requestId: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:backgroundTaskManager
方法 or 属性:function getRemainingDelayTime(requestId: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.getRemainingDelayTime |@ohos.backgroundTaskManager.d.ts| +|废弃版本有变化|类名:backgroundTaskManager
方法 or 属性:function getRemainingDelayTime(requestId: number): Promise\;
废弃版本:N/A|类名:backgroundTaskManager
方法 or 属性:function getRemainingDelayTime(requestId: number): Promise\;
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.getRemainingDelayTime |@ohos.backgroundTaskManager.d.ts| +|废弃版本有变化|类名:backgroundTaskManager
方法 or 属性:function requestSuspendDelay(reason: string, callback: Callback\): DelaySuspendInfo;
废弃版本:N/A|类名:backgroundTaskManager
方法 or 属性:function requestSuspendDelay(reason: string, callback: Callback\): DelaySuspendInfo;
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.requestSuspendDelay |@ohos.backgroundTaskManager.d.ts| +|废弃版本有变化|类名:backgroundTaskManager
方法 or 属性:function startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent, callback: AsyncCallback\): void;
废弃版本:N/A|类名:backgroundTaskManager
方法 or 属性:function startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.startBackgroundRunning |@ohos.backgroundTaskManager.d.ts| +|废弃版本有变化|类名:backgroundTaskManager
方法 or 属性:function startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent): Promise\;
废弃版本:N/A|类名:backgroundTaskManager
方法 or 属性:function startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent): Promise\;
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.startBackgroundRunning |@ohos.backgroundTaskManager.d.ts| +|废弃版本有变化|类名:backgroundTaskManager
方法 or 属性:function stopBackgroundRunning(context: Context, callback: AsyncCallback\): void;
废弃版本:N/A|类名:backgroundTaskManager
方法 or 属性:function stopBackgroundRunning(context: Context, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.stopBackgroundRunning |@ohos.backgroundTaskManager.d.ts| +|废弃版本有变化|类名:backgroundTaskManager
方法 or 属性:function stopBackgroundRunning(context: Context): Promise\;
废弃版本:N/A|类名:backgroundTaskManager
方法 or 属性:function stopBackgroundRunning(context: Context): Promise\;
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.stopBackgroundRunning |@ohos.backgroundTaskManager.d.ts| +|废弃版本有变化|类名:BackgroundMode
废弃版本:N/A|类名:BackgroundMode
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.BackgroundMode |@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| +|废弃版本有变化|类名:bundleState
方法 or 属性:function isIdleState(bundleName: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:bundleState
方法 or 属性:function isIdleState(bundleName: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.resourceschedule.usageStatistics.isIdleState |@ohos.bundleState.d.ts| +|废弃版本有变化|类名:bundleState
方法 or 属性:function isIdleState(bundleName: string): Promise\;
废弃版本:N/A|类名:bundleState
方法 or 属性:function isIdleState(bundleName: string): Promise\;
废弃版本:9
代替接口:ohos.resourceschedule.usageStatistics.isIdleState |@ohos.bundleState.d.ts| +|废弃版本有变化|类名:bundleState
方法 or 属性:function queryAppUsagePriorityGroup(callback: AsyncCallback\): void;
废弃版本:N/A|类名:bundleState
方法 or 属性:function queryAppUsagePriorityGroup(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.resourceschedule.usageStatistics.queryAppGroup |@ohos.bundleState.d.ts| +|废弃版本有变化|类名:bundleState
方法 or 属性:function queryAppUsagePriorityGroup(): Promise\;
废弃版本:N/A|类名:bundleState
方法 or 属性:function queryAppUsagePriorityGroup(): Promise\;
废弃版本:9
代替接口:ohos.resourceschedule.usageStatistics.queryAppGroup |@ohos.bundleState.d.ts| +|废弃版本有变化|类名:BundleActiveInfoResponse
废弃版本:N/A|类名:BundleActiveInfoResponse
废弃版本:9
代替接口:ohos.resourceschedule.usageStatistics.BundleStatsMap |@ohos.bundleState.d.ts| +|废弃版本有变化|类名:bundleState
方法 or 属性:function queryBundleStateInfos(begin: number, end: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:bundleState
方法 or 属性:function queryBundleStateInfos(begin: number, end: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.resourceschedule.usageStatistics.queryBundleStatsInfos |@ohos.bundleState.d.ts| +|废弃版本有变化|类名:bundleState
方法 or 属性:function queryBundleStateInfos(begin: number, end: number): Promise\;
废弃版本:N/A|类名:bundleState
方法 or 属性:function queryBundleStateInfos(begin: number, end: number): Promise\;
废弃版本:9
代替接口:ohos.resourceschedule.usageStatistics.queryBundleStatsInfos |@ohos.bundleState.d.ts| +|废弃版本有变化|类名:IntervalType
废弃版本:N/A|类名:IntervalType
废弃版本:9
代替接口:ohos.resourceschedule.usageStatistics.IntervalType |@ohos.bundleState.d.ts| +|废弃版本有变化|类名:bundleState
方法 or 属性:function queryBundleStateInfoByInterval(byInterval: IntervalType, begin: number, end: number, callback: AsyncCallback\>): void;
废弃版本:N/A|类名:bundleState
方法 or 属性:function queryBundleStateInfoByInterval(byInterval: IntervalType, begin: number, end: number, callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.resourceschedule.usageStatistics.queryBundleStatsInfoByInterval |@ohos.bundleState.d.ts| +|废弃版本有变化|类名:bundleState
方法 or 属性:function queryBundleStateInfoByInterval(byInterval: IntervalType, begin: number, end: number): Promise\>;
废弃版本:N/A|类名:bundleState
方法 or 属性:function queryBundleStateInfoByInterval(byInterval: IntervalType, begin: number, end: number): Promise\>;
废弃版本:9
代替接口:ohos.resourceschedule.usageStatistics.queryBundleStatsInfoByInterval |@ohos.bundleState.d.ts| +|废弃版本有变化|类名:bundleState
方法 or 属性:function queryBundleActiveStates(begin: number, end: number, callback: AsyncCallback\>): void;
废弃版本:N/A|类名:bundleState
方法 or 属性:function queryBundleActiveStates(begin: number, end: number, callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.resourceschedule.usageStatistics.queryBundleEvents |@ohos.bundleState.d.ts| +|废弃版本有变化|类名:bundleState
方法 or 属性:function queryBundleActiveStates(begin: number, end: number): Promise\>;
废弃版本:N/A|类名:bundleState
方法 or 属性:function queryBundleActiveStates(begin: number, end: number): Promise\>;
废弃版本:9
代替接口:ohos.resourceschedule.usageStatistics.queryBundleEvents |@ohos.bundleState.d.ts| +|废弃版本有变化|类名:bundleState
方法 or 属性:function queryCurrentBundleActiveStates(begin: number, end: number, callback: AsyncCallback\>): void;
废弃版本:N/A|类名:bundleState
方法 or 属性:function queryCurrentBundleActiveStates(begin: number, end: number, callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.resourceschedule.usageStatistics.queryCurrentBundleEvents |@ohos.bundleState.d.ts| +|废弃版本有变化|类名:bundleState
方法 or 属性:function queryCurrentBundleActiveStates(begin: number, end: number): Promise\>;
废弃版本:N/A|类名:bundleState
方法 or 属性:function queryCurrentBundleActiveStates(begin: number, end: number): Promise\>;
废弃版本:9
代替接口:ohos.resourceschedule.usageStatistics.queryCurrentBundleEvents |@ohos.bundleState.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-security.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-security.md new file mode 100644 index 0000000000000000000000000000000000000000..10c57766cee349b5e2f36229a038dd0d67c500d4 --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-security.md @@ -0,0 +1,512 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:AtManager
方法or属性:verifyAccessTokenSync(tokenID: number, permissionName: Permissions): GrantStatus;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|类名:AtManager
方法or属性:checkAccessToken(tokenID: number, permissionName: Permissions): Promise\;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|类名:AtManager
方法or属性:requestPermissionsFromUser(context: Context, permissionList: Array\, requestCallback: AsyncCallback\) : void;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|类名:AtManager
方法or属性:requestPermissionsFromUser(context: Context, permissionList: Array\) : Promise\;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|类名:AtManager
方法or属性:getVersion(): Promise\;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|类名:AtManager
方法or属性:on(type: 'permissionStateChange', tokenIDList: Array\, permissionList: Array\, callback: Callback\): void;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|类名:AtManager
方法or属性:off(type: 'permissionStateChange', tokenIDList: Array\, permissionList: Array\, callback?: Callback\): void;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|模块名: ohos.abilityAccessCtrl
类名: PermissionStateChangeType|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|类名:PermissionStateChangeType
方法or属性:|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|模块名: ohos.abilityAccessCtrl
类名: PermissionStateChangeType
方法 or 属性:PERMISSION_REVOKED_OPER = 0|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|类名:PermissionStateChangeType
方法or属性:PERMISSION_REVOKED_OPER = 0|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|模块名: ohos.abilityAccessCtrl
类名: PermissionStateChangeType
方法 or 属性:PERMISSION_GRANTED_OPER = 1|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|类名:PermissionStateChangeType
方法or属性:PERMISSION_GRANTED_OPER = 1|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|模块名: ohos.abilityAccessCtrl
类名: PermissionStateChangeInfo|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|类名:PermissionStateChangeInfo
方法or属性:|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|模块名: ohos.abilityAccessCtrl
类名: PermissionStateChangeInfo
方法 or 属性:change: PermissionStateChangeType;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|类名:PermissionStateChangeInfo
方法or属性:change: PermissionStateChangeType;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|模块名: ohos.abilityAccessCtrl
类名: PermissionStateChangeInfo
方法 or 属性:tokenID: number;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|类名:PermissionStateChangeInfo
方法or属性:tokenID: number;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|模块名: ohos.abilityAccessCtrl
类名: PermissionStateChangeInfo
方法 or 属性:permissionName: Permissions;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|类名:PermissionStateChangeInfo
方法or属性:permissionName: Permissions;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: privacyManager|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: privacyManager
方法 or 属性: function addPermissionUsedRecord(tokenID: number, permissionName: Permissions, successCount: number, failCount: number): Promise\;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: privacyManager
方法 or 属性: function addPermissionUsedRecord(tokenID: number, permissionName: Permissions, successCount: number, failCount: number, callback: AsyncCallback\): void;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: privacyManager
方法 or 属性: function getPermissionUsedRecord(request: PermissionUsedRequest): Promise\;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: privacyManager
方法 or 属性: function getPermissionUsedRecord(request: PermissionUsedRequest, callback: AsyncCallback\): void;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: privacyManager
方法 or 属性: function startUsingPermission(tokenID: number, permissionName: Permissions): Promise\;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: privacyManager
方法 or 属性: function startUsingPermission(tokenID: number, permissionName: Permissions, callback: AsyncCallback\): void;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: privacyManager
方法 or 属性: function stopUsingPermission(tokenID: number, permissionName: Permissions): Promise\;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: privacyManager
方法 or 属性: function stopUsingPermission(tokenID: number, permissionName: Permissions, callback: AsyncCallback\): void;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: privacyManager
方法 or 属性: function on(type: 'activeStateChange', permissionList: Array\, callback: Callback\): void;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: privacyManager
方法 or 属性: function off(type: 'activeStateChange', permissionList: Array\, callback?: Callback\): void;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionActiveStatus|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionActiveStatus
方法 or 属性: PERM_INACTIVE = 0|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionActiveStatus
方法 or 属性: PERM_ACTIVE_IN_FOREGROUND = 1|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionActiveStatus
方法 or 属性: PERM_ACTIVE_IN_BACKGROUND = 2|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: ActiveChangeResponse|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: ActiveChangeResponse
方法 or 属性: tokenId: number;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: ActiveChangeResponse
方法 or 属性: permissionName: Permissions;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: ActiveChangeResponse
方法 or 属性: deviceId: string;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: ActiveChangeResponse
方法 or 属性: activeStatus: PermissionActiveStatus;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsageFlag|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsageFlag
方法 or 属性: FLAG_PERMISSION_USAGE_SUMMARY = 0|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsageFlag
方法 or 属性: FLAG_PERMISSION_USAGE_DETAIL = 1|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedRequest|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedRequest
方法 or 属性: tokenId: number;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedRequest
方法 or 属性: isRemote: boolean;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedRequest
方法 or 属性: deviceId: string;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedRequest
方法 or 属性: bundleName: string;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedRequest
方法 or 属性: permissionNames: Array\;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedRequest
方法 or 属性: beginTime: number;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedRequest
方法 or 属性: endTime: number;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedRequest
方法 or 属性: flag: PermissionUsageFlag;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedResponse|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedResponse
方法 or 属性: beginTime: number;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedResponse
方法 or 属性: endTime: number;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedResponse
方法 or 属性: bundleRecords: Array\;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: BundleUsedRecord|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: BundleUsedRecord
方法 or 属性: tokenId: number;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: BundleUsedRecord
方法 or 属性: isRemote: boolean;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: BundleUsedRecord
方法 or 属性: deviceId: string;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: BundleUsedRecord
方法 or 属性: bundleName: string;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: BundleUsedRecord
方法 or 属性: permissionRecords: Array\;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedRecord|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedRecord
方法 or 属性: permissionName: Permissions;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedRecord
方法 or 属性: accessCount: number;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedRecord
方法 or 属性: rejectCount: number;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedRecord
方法 or 属性: lastAccessTime: number;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedRecord
方法 or 属性: lastRejectTime: number;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedRecord
方法 or 属性: lastAccessDuration: number;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedRecord
方法 or 属性: accessRecords: Array\;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionUsedRecord
方法 or 属性: rejectRecords: Array\;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: UsedRecordDetail|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: UsedRecordDetail
方法 or 属性: status: number;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: UsedRecordDetail
方法 or 属性: timestamp: number;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: UsedRecordDetail
方法 or 属性: accessDuration: number;|@ohos.privacyManager.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|模块名: 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 = 401|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Result
方法 or 属性: NOT_SUPPORT = 801|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Result
方法 or 属性: ERR_OUT_OF_MEMORY = 17620001|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Result
方法 or 属性: ERR_RUNTIME_ERROR = 17620002|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Result
方法 or 属性: ERR_CRYPTO_OPERATION = 17630001|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: DataBlob|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: DataBlob
方法 or 属性: data : Uint8Array;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: ParamsSpec|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: ParamsSpec
方法 or 属性: algName : string;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: IvParamsSpec|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: IvParamsSpec
方法 or 属性: iv : DataBlob;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: GcmParamsSpec|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: GcmParamsSpec
方法 or 属性: iv : DataBlob;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: GcmParamsSpec
方法 or 属性: aad : DataBlob;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: GcmParamsSpec
方法 or 属性: authTag : DataBlob;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CcmParamsSpec|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CcmParamsSpec
方法 or 属性: iv : DataBlob;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CcmParamsSpec
方法 or 属性: aad : DataBlob;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CcmParamsSpec
方法 or 属性: authTag : DataBlob;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CryptoMode|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CryptoMode
方法 or 属性: ENCRYPT_MODE = 0|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CryptoMode
方法 or 属性: DECRYPT_MODE = 1|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Key|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Key
方法 or 属性: getEncoded() : DataBlob;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Key
方法 or 属性: readonly format : string;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Key
方法 or 属性: readonly algName : string;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: SymKey|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: SymKey
方法 or 属性: clearMem() : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: PriKey|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: PriKey
方法 or 属性: clearMem() : void;|@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 属性: readonly priKey : PriKey;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: KeyPair
方法 or 属性: readonly pubKey : PubKey;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Random|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Random
方法 or 属性: generateRandom(len : number, callback: AsyncCallback\) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Random
方法 or 属性: generateRandom(len : number) : Promise\;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Random
方法 or 属性: setSeed(seed : DataBlob) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法 or 属性: function createRandom() : Random;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: AsyKeyGenerator|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: AsyKeyGenerator
方法 or 属性: generateKeyPair(callback : AsyncCallback\) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: AsyKeyGenerator
方法 or 属性: generateKeyPair() : Promise\;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: AsyKeyGenerator
方法 or 属性: convertKey(pubKey : DataBlob, priKey : DataBlob, callback : AsyncCallback\) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: AsyKeyGenerator
方法 or 属性: convertKey(pubKey : DataBlob, priKey : DataBlob) : Promise\;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: AsyKeyGenerator
方法 or 属性: readonly algName : string;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: SymKeyGenerator|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: SymKeyGenerator
方法 or 属性: generateSymKey(callback : AsyncCallback\) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: SymKeyGenerator
方法 or 属性: generateSymKey() : Promise\;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: SymKeyGenerator
方法 or 属性: convertKey(key : DataBlob, callback : AsyncCallback\) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: SymKeyGenerator
方法 or 属性: convertKey(key : DataBlob) : Promise\;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: SymKeyGenerator
方法 or 属性: readonly algName : string;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法 or 属性: function createAsyKeyGenerator(algName : string) : AsyKeyGenerator;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法 or 属性: function createSymKeyGenerator(algName : string) : SymKeyGenerator;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Mac|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Mac
方法 or 属性: init(key : SymKey, callback : AsyncCallback\) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Mac
方法 or 属性: init(key : SymKey) : Promise\;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Mac
方法 or 属性: update(input : DataBlob, callback : AsyncCallback\) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Mac
方法 or 属性: update(input : DataBlob) : Promise\;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Mac
方法 or 属性: doFinal(callback : AsyncCallback\) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Mac
方法 or 属性: doFinal() : Promise\;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Mac
方法 or 属性: getMacLength() : number;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Mac
方法 or 属性: readonly algName : string;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法 or 属性: function createMac(algName : string) : Mac;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Md|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Md
方法 or 属性: update(input : DataBlob, callback : AsyncCallback\) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Md
方法 or 属性: update(input : DataBlob) : Promise\;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Md
方法 or 属性: digest(callback : AsyncCallback\) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Md
方法 or 属性: digest() : Promise\;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Md
方法 or 属性: getMdLength() : number;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Md
方法 or 属性: readonly algName : string;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法 or 属性: function createMd(algName : string) : Md;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Cipher|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Cipher
方法 or 属性: init(opMode : CryptoMode, key : Key, params : ParamsSpec, callback : AsyncCallback\) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Cipher
方法 or 属性: init(opMode : CryptoMode, key : Key, params : ParamsSpec) : Promise\;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Cipher
方法 or 属性: update(data : DataBlob, callback : AsyncCallback\) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Cipher
方法 or 属性: update(data : DataBlob) : Promise\;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Cipher
方法 or 属性: doFinal(data : DataBlob, callback : AsyncCallback\) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Cipher
方法 or 属性: doFinal(data : DataBlob) : Promise\;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Cipher
方法 or 属性: readonly algName : string;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法 or 属性: function createCipher(transformation : string) : Cipher;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Sign|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Sign
方法 or 属性: init(priKey : PriKey, callback : AsyncCallback\) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Sign
方法 or 属性: init(priKey : PriKey) : Promise\;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Sign
方法 or 属性: update(data : DataBlob, callback : AsyncCallback\) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Sign
方法 or 属性: update(data : DataBlob) : Promise\;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Sign
方法 or 属性: sign(data : DataBlob, callback : AsyncCallback\) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Sign
方法 or 属性: sign(data : DataBlob) : Promise\;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Sign
方法 or 属性: readonly algName : string;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Verify|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Verify
方法 or 属性: init(pubKey : PubKey, callback : AsyncCallback\) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Verify
方法 or 属性: init(pubKey : PubKey) : Promise\;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Verify
方法 or 属性: update(data : DataBlob, callback : AsyncCallback\) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Verify
方法 or 属性: update(data : DataBlob) : Promise\;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Verify
方法 or 属性: verify(data : DataBlob, signatureData : DataBlob, callback : AsyncCallback\) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Verify
方法 or 属性: verify(data : DataBlob, signatureData : DataBlob) : Promise\;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Verify
方法 or 属性: readonly algName : string;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法 or 属性: function createSign(algName : string) : Sign;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法 or 属性: function createVerify(algName : string) : Verify;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: KeyAgreement|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: KeyAgreement
方法 or 属性: generateSecret(priKey : PriKey, pubKey : PubKey, callback : AsyncCallback\) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: KeyAgreement
方法 or 属性: generateSecret(priKey : PriKey, pubKey : PubKey) : Promise\;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: KeyAgreement
方法 or 属性: readonly algName : string;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法 or 属性: function createKeyAgreement(algName : string) : KeyAgreement;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|类名:huks
方法or属性:function generateKeyItem(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function generateKeyItem(keyAlias: string, options: HuksOptions) : Promise\;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function deleteKeyItem(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function deleteKeyItem(keyAlias: string, options: HuksOptions) : Promise\;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function importKeyItem(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function importKeyItem(keyAlias: string, options: HuksOptions) : Promise\;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function importWrappedKeyItem(keyAlias: string, wrappingKeyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function importWrappedKeyItem(keyAlias: string, wrappingKeyAlias: string, options: HuksOptions) : Promise\;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function exportKeyItem(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function exportKeyItem(keyAlias: string, options: HuksOptions) : Promise\;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function getKeyItemProperties(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function getKeyItemProperties(keyAlias: string, options: HuksOptions) : Promise\;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function isKeyItemExist(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function isKeyItemExist(keyAlias: string, options: HuksOptions) : Promise\;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function initSession(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function initSession(keyAlias: string, options: HuksOptions) : Promise\;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function updateSession(handle: number, options: HuksOptions, callback: AsyncCallback\) : void;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function updateSession(handle: number, options: HuksOptions, token: Uint8Array, callback: AsyncCallback\) : void;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function updateSession(handle: number, options: HuksOptions, token?: Uint8Array) : Promise\;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function finishSession(handle: number, options: HuksOptions, callback: AsyncCallback\) : void;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function finishSession(handle: number, options: HuksOptions, token: Uint8Array, callback: AsyncCallback\) : void;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function finishSession(handle: number, options: HuksOptions, token?: Uint8Array) : Promise\;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function abortSession(handle: number, options: HuksOptions, callback: AsyncCallback\) : void;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function abortSession(handle: number, options: HuksOptions) : Promise\;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function attestKeyItem(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;|@ohos.security.huks.d.ts| +|新增|NA|类名:huks
方法or属性:function attestKeyItem(keyAlias: string, options: HuksOptions) : Promise\;|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksSessionHandle|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksSessionHandle
方法or属性:|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksSessionHandle
方法 or 属性:handle: number;|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksSessionHandle
方法or属性:handle: number;|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksSessionHandle
方法 or 属性:challenge?: Uint8Array;|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksSessionHandle
方法or属性:challenge?: Uint8Array;|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksReturnResult|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksReturnResult
方法or属性:|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksReturnResult
方法 or 属性:outData?: Uint8Array;|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksReturnResult
方法or属性:outData?: Uint8Array;|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksReturnResult
方法 or 属性:properties?: Array\;|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksReturnResult
方法or属性:properties?: Array\;|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksReturnResult
方法 or 属性:certChains?: Array\;|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksReturnResult
方法or属性:certChains?: Array\;|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksExceptionErrCode
方法or属性:|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法 or 属性:HUKS_ERR_CODE_PERMISSION_FAIL = 201|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksExceptionErrCode
方法or属性:HUKS_ERR_CODE_PERMISSION_FAIL = 201|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法 or 属性:HUKS_ERR_CODE_ILLEGAL_ARGUMENT = 401|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksExceptionErrCode
方法or属性:HUKS_ERR_CODE_ILLEGAL_ARGUMENT = 401|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法 or 属性:HUKS_ERR_CODE_NOT_SUPPORTED_API = 801|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksExceptionErrCode
方法or属性:HUKS_ERR_CODE_NOT_SUPPORTED_API = 801|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法 or 属性:HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED = 12000001|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksExceptionErrCode
方法or属性:HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED = 12000001|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法 or 属性:HUKS_ERR_CODE_MISSING_CRYPTO_ALG_ARGUMENT = 12000002|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksExceptionErrCode
方法or属性:HUKS_ERR_CODE_MISSING_CRYPTO_ALG_ARGUMENT = 12000002|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法 or 属性:HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT = 12000003|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksExceptionErrCode
方法or属性:HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT = 12000003|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法 or 属性:HUKS_ERR_CODE_FILE_OPERATION_FAIL = 12000004|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksExceptionErrCode
方法or属性:HUKS_ERR_CODE_FILE_OPERATION_FAIL = 12000004|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法 or 属性:HUKS_ERR_CODE_COMMUNICATION_FAIL = 12000005|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksExceptionErrCode
方法or属性:HUKS_ERR_CODE_COMMUNICATION_FAIL = 12000005|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法 or 属性:HUKS_ERR_CODE_CRYPTO_FAIL = 12000006|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksExceptionErrCode
方法or属性:HUKS_ERR_CODE_CRYPTO_FAIL = 12000006|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法 or 属性:HUKS_ERR_CODE_KEY_AUTH_PERMANENTLY_INVALIDATED = 12000007|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksExceptionErrCode
方法or属性:HUKS_ERR_CODE_KEY_AUTH_PERMANENTLY_INVALIDATED = 12000007|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法 or 属性:HUKS_ERR_CODE_KEY_AUTH_VERIFY_FAILED = 12000008|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksExceptionErrCode
方法or属性:HUKS_ERR_CODE_KEY_AUTH_VERIFY_FAILED = 12000008|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法 or 属性:HUKS_ERR_CODE_KEY_AUTH_TIME_OUT = 12000009|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksExceptionErrCode
方法or属性:HUKS_ERR_CODE_KEY_AUTH_TIME_OUT = 12000009|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法 or 属性:HUKS_ERR_CODE_SESSION_LIMIT = 12000010|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksExceptionErrCode
方法or属性:HUKS_ERR_CODE_SESSION_LIMIT = 12000010|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法 or 属性:HUKS_ERR_CODE_ITEM_NOT_EXIST = 12000011|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksExceptionErrCode
方法or属性:HUKS_ERR_CODE_ITEM_NOT_EXIST = 12000011|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法 or 属性:HUKS_ERR_CODE_EXTERNAL_ERROR = 12000012|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksExceptionErrCode
方法or属性:HUKS_ERR_CODE_EXTERNAL_ERROR = 12000012|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法 or 属性:HUKS_ERR_CODE_CREDENTIAL_NOT_EXIST = 12000013|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksExceptionErrCode
方法or属性:HUKS_ERR_CODE_CREDENTIAL_NOT_EXIST = 12000013|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法 or 属性:HUKS_ERR_CODE_INSUFFICIENT_MEMORY = 12000014|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksExceptionErrCode
方法or属性:HUKS_ERR_CODE_INSUFFICIENT_MEMORY = 12000014|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法 or 属性:HUKS_ERR_CODE_CALL_SERVICE_FAILED = 12000015|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksExceptionErrCode
方法or属性:HUKS_ERR_CODE_CALL_SERVICE_FAILED = 12000015|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksKeyDigest
方法 or 属性:HUKS_DIGEST_SM3 = 2|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksKeyDigest
方法or属性:HUKS_DIGEST_SM3 = 2|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksKeySize
方法 or 属性:HUKS_SM2_KEY_SIZE_256 = 256|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksKeySize
方法or属性:HUKS_SM2_KEY_SIZE_256 = 256|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksKeySize
方法 or 属性:HUKS_SM4_KEY_SIZE_128 = 128|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksKeySize
方法or属性:HUKS_SM4_KEY_SIZE_128 = 128|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksKeyAlg
方法 or 属性:HUKS_ALG_SM2 = 150|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksKeyAlg
方法or属性:HUKS_ALG_SM2 = 150|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksKeyAlg
方法 or 属性:HUKS_ALG_SM3 = 151|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksKeyAlg
方法or属性:HUKS_ALG_SM3 = 151|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksKeyAlg
方法 or 属性:HUKS_ALG_SM4 = 152|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksKeyAlg
方法or属性:HUKS_ALG_SM4 = 152|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksUnwrapSuite|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksUnwrapSuite
方法or属性:|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksUnwrapSuite
方法 or 属性:HUKS_UNWRAP_SUITE_X25519_AES_256_GCM_NOPADDING = 1|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksUnwrapSuite
方法or属性:HUKS_UNWRAP_SUITE_X25519_AES_256_GCM_NOPADDING = 1|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksUnwrapSuite
方法 or 属性:HUKS_UNWRAP_SUITE_ECDH_AES_256_GCM_NOPADDING = 2|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksUnwrapSuite
方法or属性:HUKS_UNWRAP_SUITE_ECDH_AES_256_GCM_NOPADDING = 2|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksImportKeyType|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksImportKeyType
方法or属性:|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksImportKeyType
方法 or 属性:HUKS_KEY_TYPE_PUBLIC_KEY = 0|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksImportKeyType
方法or属性:HUKS_KEY_TYPE_PUBLIC_KEY = 0|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksImportKeyType
方法 or 属性:HUKS_KEY_TYPE_PRIVATE_KEY = 1|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksImportKeyType
方法or属性:HUKS_KEY_TYPE_PRIVATE_KEY = 1|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksImportKeyType
方法 or 属性:HUKS_KEY_TYPE_KEY_PAIR = 2|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksImportKeyType
方法or属性:HUKS_KEY_TYPE_KEY_PAIR = 2|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksUserAuthType|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksUserAuthType
方法or属性:|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksUserAuthType
方法 or 属性:HUKS_USER_AUTH_TYPE_FINGERPRINT = 1 \<\< 0|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksUserAuthType
方法or属性:HUKS_USER_AUTH_TYPE_FINGERPRINT = 1 \<\< 0|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksUserAuthType
方法 or 属性:HUKS_USER_AUTH_TYPE_FACE = 1 \<\< 1|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksUserAuthType
方法or属性:HUKS_USER_AUTH_TYPE_FACE = 1 \<\< 1|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksUserAuthType
方法 or 属性:HUKS_USER_AUTH_TYPE_PIN = 1 \<\< 2|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksUserAuthType
方法or属性:HUKS_USER_AUTH_TYPE_PIN = 1 \<\< 2|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksAuthAccessType|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksAuthAccessType
方法or属性:|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksAuthAccessType
方法 or 属性:HUKS_AUTH_ACCESS_INVALID_CLEAR_PASSWORD = 1 \<\< 0|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksAuthAccessType
方法or属性:HUKS_AUTH_ACCESS_INVALID_CLEAR_PASSWORD = 1 \<\< 0|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksAuthAccessType
方法 or 属性:HUKS_AUTH_ACCESS_INVALID_NEW_BIO_ENROLL = 1 \<\< 1|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksAuthAccessType
方法or属性:HUKS_AUTH_ACCESS_INVALID_NEW_BIO_ENROLL = 1 \<\< 1|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksChallengeType|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksChallengeType
方法or属性:|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksChallengeType
方法 or 属性:HUKS_CHALLENGE_TYPE_NORMAL = 0|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksChallengeType
方法or属性:HUKS_CHALLENGE_TYPE_NORMAL = 0|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksChallengeType
方法 or 属性:HUKS_CHALLENGE_TYPE_CUSTOM = 1|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksChallengeType
方法or属性:HUKS_CHALLENGE_TYPE_CUSTOM = 1|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksChallengeType
方法 or 属性:HUKS_CHALLENGE_TYPE_NONE = 2|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksChallengeType
方法or属性:HUKS_CHALLENGE_TYPE_NONE = 2|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksChallengePosition|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksChallengePosition
方法or属性:|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksChallengePosition
方法 or 属性:HUKS_CHALLENGE_POS_0 = 0|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksChallengePosition
方法or属性:HUKS_CHALLENGE_POS_0 = 0|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksChallengePosition
方法 or 属性:HUKS_CHALLENGE_POS_1|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksChallengePosition
方法or属性:HUKS_CHALLENGE_POS_1|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksChallengePosition
方法 or 属性:HUKS_CHALLENGE_POS_2|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksChallengePosition
方法or属性:HUKS_CHALLENGE_POS_2|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksChallengePosition
方法 or 属性:HUKS_CHALLENGE_POS_3|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksChallengePosition
方法or属性:HUKS_CHALLENGE_POS_3|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksSecureSignType|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksSecureSignType
方法or属性:|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksSecureSignType
方法 or 属性:HUKS_SECURE_SIGN_WITH_AUTHINFO = 1|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksSecureSignType
方法or属性:HUKS_SECURE_SIGN_WITH_AUTHINFO = 1|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksTag
方法or属性:HUKS_TAG_IMPORT_KEY_TYPE = HuksTagType.HUKS_TAG_TYPE_UINT \| 25|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksTag
方法or属性:HUKS_TAG_UNWRAP_ALGORITHM_SUITE = HuksTagType.HUKS_TAG_TYPE_UINT \| 26|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksTag
方法or属性:HUKS_TAG_KEY_AUTH_ACCESS_TYPE = HuksTagType.HUKS_TAG_TYPE_UINT \| 307|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksTag
方法or属性:HUKS_TAG_KEY_SECURE_SIGN_TYPE = HuksTagType.HUKS_TAG_TYPE_UINT \| 308|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksTag
方法or属性:HUKS_TAG_CHALLENGE_TYPE = HuksTagType.HUKS_TAG_TYPE_UINT \| 309|@ohos.security.huks.d.ts| +|新增|NA|类名:HuksTag
方法or属性:HUKS_TAG_CHALLENGE_POS = HuksTagType.HUKS_TAG_TYPE_UINT \| 310|@ohos.security.huks.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| +|废弃版本有变化|类名:AtManager
方法 or 属性:verifyAccessToken(tokenID: number, permissionName: string): Promise\;
废弃版本:N/A|类名:AtManager
方法 or 属性:verifyAccessToken(tokenID: number, permissionName: string): Promise\;
废弃版本:9
代替接口:ohos.abilityAccessCtrl.AtManager|@ohos.abilityAccessCtrl.d.ts| +|废弃版本有变化|类名:huks
方法 or 属性:function generateKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
废弃版本:N/A|类名:huks
方法 or 属性:function generateKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
废弃版本:9
代替接口:ohos.security.huks.generateKeyItem |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:huks
方法 or 属性:function generateKey(keyAlias: string, options: HuksOptions) : Promise\;
废弃版本:N/A|类名:huks
方法 or 属性:function generateKey(keyAlias: string, options: HuksOptions) : Promise\;
废弃版本:9
代替接口:ohos.security.huks.generateKeyItem |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:huks
方法 or 属性:function deleteKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
废弃版本:N/A|类名:huks
方法 or 属性:function deleteKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
废弃版本:9
代替接口:ohos.security.huks.deleteKeyItem |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:huks
方法 or 属性:function deleteKey(keyAlias: string, options: HuksOptions) : Promise\;
废弃版本:N/A|类名:huks
方法 or 属性:function deleteKey(keyAlias: string, options: HuksOptions) : Promise\;
废弃版本:9
代替接口:ohos.security.huks.deleteKeyItem |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:huks
方法 or 属性:function importKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
废弃版本:N/A|类名:huks
方法 or 属性:function importKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
废弃版本:9
代替接口:ohos.security.huks.importKeyItem |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:huks
方法 or 属性:function importKey(keyAlias: string, options: HuksOptions) : Promise\;
废弃版本:N/A|类名:huks
方法 or 属性:function importKey(keyAlias: string, options: HuksOptions) : Promise\;
废弃版本:9
代替接口:ohos.security.huks.importKeyItem |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:huks
方法 or 属性:function exportKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
废弃版本:N/A|类名:huks
方法 or 属性:function exportKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
废弃版本:9
代替接口:ohos.security.huks.exportKeyItem |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:huks
方法 or 属性:function exportKey(keyAlias: string, options: HuksOptions) : Promise\;
废弃版本:N/A|类名:huks
方法 or 属性:function exportKey(keyAlias: string, options: HuksOptions) : Promise\;
废弃版本:9
代替接口:ohos.security.huks.exportKeyItem |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:huks
方法 or 属性:function getKeyProperties(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
废弃版本:N/A|类名:huks
方法 or 属性:function getKeyProperties(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
废弃版本:9
代替接口:ohos.security.huks.getKeyItemProperties |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:huks
方法 or 属性:function getKeyProperties(keyAlias: string, options: HuksOptions) : Promise\;
废弃版本:N/A|类名:huks
方法 or 属性:function getKeyProperties(keyAlias: string, options: HuksOptions) : Promise\;
废弃版本:9
代替接口:ohos.security.huks.getKeyItemProperties |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:huks
方法 or 属性:function isKeyExist(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
废弃版本:N/A|类名:huks
方法 or 属性:function isKeyExist(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
废弃版本:9
代替接口:ohos.security.huks.isKeyItemExist |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:huks
方法 or 属性:function isKeyExist(keyAlias: string, options: HuksOptions) : Promise\;
废弃版本:N/A|类名:huks
方法 or 属性:function isKeyExist(keyAlias: string, options: HuksOptions) : Promise\;
废弃版本:9
代替接口:ohos.security.huks.isKeyItemExist |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:huks
方法 or 属性:function init(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
废弃版本:N/A|类名:huks
方法 or 属性:function init(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
废弃版本:9
代替接口:ohos.security.huks.initSession |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:huks
方法 or 属性:function init(keyAlias: string, options: HuksOptions) : Promise\;
废弃版本:N/A|类名:huks
方法 or 属性:function init(keyAlias: string, options: HuksOptions) : Promise\;
废弃版本:9
代替接口:ohos.security.huks.initSession |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:huks
方法 or 属性:function update(handle: number, token?: Uint8Array, options: HuksOptions, callback: AsyncCallback\) : void;
废弃版本:N/A|类名:huks
方法 or 属性:function update(handle: number, token?: Uint8Array, options: HuksOptions, callback: AsyncCallback\) : void;
废弃版本:9
代替接口:ohos.security.huks.updateSession |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:huks
方法 or 属性:function update(handle: number, token?: Uint8Array, options: HuksOptions) : Promise\;
废弃版本:N/A|类名:huks
方法 or 属性:function update(handle: number, token?: Uint8Array, options: HuksOptions) : Promise\;
废弃版本:9
代替接口:ohos.security.huks.updateSession |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:huks
方法 or 属性:function finish(handle: number, options: HuksOptions, callback: AsyncCallback\) : void;
废弃版本:N/A|类名:huks
方法 or 属性:function finish(handle: number, options: HuksOptions, callback: AsyncCallback\) : void;
废弃版本:9
代替接口:ohos.security.huks.finishSession |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:huks
方法 or 属性:function finish(handle: number, options: HuksOptions) : Promise\;
废弃版本:N/A|类名:huks
方法 or 属性:function finish(handle: number, options: HuksOptions) : Promise\;
废弃版本:9
代替接口:ohos.security.huks.finishSession |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:huks
方法 or 属性:function abort(handle: number, options: HuksOptions, callback: AsyncCallback\) : void;
废弃版本:N/A|类名:huks
方法 or 属性:function abort(handle: number, options: HuksOptions, callback: AsyncCallback\) : void;
废弃版本:9
代替接口:ohos.security.huks.abortSession |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:huks
方法 or 属性:function abort(handle: number, options: HuksOptions) : Promise\;
废弃版本:N/A|类名:huks
方法 or 属性:function abort(handle: number, options: HuksOptions) : Promise\;
废弃版本:9
代替接口:ohos.security.huks.abortSession |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksHandle
废弃版本:N/A|类名:HuksHandle
废弃版本:9
代替接口:ohos.security.huks.HuksSessionHandle |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksResult
废弃版本:N/A|类名:HuksResult
废弃版本:9
代替接口:ohos.security.huks.HuksReturnResult |@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksErrorCode
废弃版本:N/A|类名:HuksErrorCode
废弃版本:9
代替接口:ohos.security.huks.HuksExceptionErrCode |@ohos.security.huks.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| +|废弃版本有变化|类名:Cipher
废弃版本:N/A|类名:Cipher
废弃版本:9
代替接口:ohos.security.cryptoFramework.Cipher |@system.cipher.d.ts| +|废弃版本有变化|类名:Cipher
方法 or 属性:static rsa(options: CipherRsaOptions): void;
废弃版本:N/A|类名:Cipher
方法 or 属性:static rsa(options: CipherRsaOptions): void;
废弃版本:9
代替接口:N/A|@system.cipher.d.ts| +|废弃版本有变化|类名:Cipher
方法 or 属性:static aes(options: CipherAesOptions): void;
废弃版本:N/A|类名:Cipher
方法 or 属性:static aes(options: CipherAesOptions): void;
废弃版本:9
代替接口:N/A|@system.cipher.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| +|函数有变化|类名:AtManager
方法 or 属性:verifyAccessToken(tokenID: number, permissionName: string): Promise\;
|类名:AtManager
方法 or 属性:verifyAccessToken(tokenID: number, permissionName: string): Promise\;
|@ohos.abilityAccessCtrl.d.ts| +|函数有变化|类名:AtManager
方法 or 属性:verifyAccessToken(tokenID: number, permissionName: string): Promise\;
|类名:AtManager
方法 or 属性:verifyAccessToken(tokenID: number, permissionName: Permissions): Promise\;
|@ohos.abilityAccessCtrl.d.ts| +|函数有变化|类名:AtManager
方法 or 属性:grantUserGrantedPermission(tokenID: number, permissionName: string, permissionFlag: number): Promise\;
|类名:AtManager
方法 or 属性:grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlags: number): Promise\;
|@ohos.abilityAccessCtrl.d.ts| +|函数有变化|类名:AtManager
方法 or 属性:grantUserGrantedPermission(tokenID: number, permissionName: string, permissionFlag: number, callback: AsyncCallback\): void;
|类名:AtManager
方法 or 属性:grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlags: number, callback: AsyncCallback\): void;
|@ohos.abilityAccessCtrl.d.ts| +|函数有变化|类名:AtManager
方法 or 属性:revokeUserGrantedPermission(tokenID: number, permissionName: string, permissionFlag: number): Promise\;
|类名:AtManager
方法 or 属性:revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlags: number): Promise\;
|@ohos.abilityAccessCtrl.d.ts| +|函数有变化|类名:AtManager
方法 or 属性:revokeUserGrantedPermission(tokenID: number, permissionName: string, permissionFlag: number, callback: AsyncCallback\): void;
|类名:AtManager
方法 or 属性:revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlags: number, callback: AsyncCallback\): void;
|@ohos.abilityAccessCtrl.d.ts| +|函数有变化|类名:AtManager
方法 or 属性:getPermissionFlags(tokenID: number, permissionName: string): Promise\;
|类名:AtManager
方法 or 属性:getPermissionFlags(tokenID: number, permissionName: Permissions): Promise\;
|@ohos.abilityAccessCtrl.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-sensor.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-sensor.md new file mode 100644 index 0000000000000000000000000000000000000000..ed5d5fc70248e17e006a9971e00d261f9b38be38 --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-sensor.md @@ -0,0 +1,1149 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.sensor
类名: SensorId|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:ACCELEROMETER = 1|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:ACCELEROMETER = 1|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:GYROSCOPE = 2|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:GYROSCOPE = 2|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:AMBIENT_LIGHT = 5|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:AMBIENT_LIGHT = 5|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:MAGNETIC_FIELD = 6|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:MAGNETIC_FIELD = 6|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:BAROMETER = 8|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:BAROMETER = 8|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:HALL = 10|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:HALL = 10|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:PROXIMITY = 12|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:PROXIMITY = 12|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:HUMIDITY = 13|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:HUMIDITY = 13|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:ORIENTATION = 256|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:ORIENTATION = 256|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:GRAVITY = 257|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:GRAVITY = 257|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:LINEAR_ACCELEROMETER = 258|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:LINEAR_ACCELEROMETER = 258|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:ROTATION_VECTOR = 259|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:ROTATION_VECTOR = 259|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:AMBIENT_TEMPERATURE = 260|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:AMBIENT_TEMPERATURE = 260|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:MAGNETIC_FIELD_UNCALIBRATED = 261|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:MAGNETIC_FIELD_UNCALIBRATED = 261|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:GYROSCOPE_UNCALIBRATED = 263|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:GYROSCOPE_UNCALIBRATED = 263|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:SIGNIFICANT_MOTION = 264|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:SIGNIFICANT_MOTION = 264|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:PEDOMETER_DETECTION = 265|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:PEDOMETER_DETECTION = 265|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:PEDOMETER = 266|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:PEDOMETER = 266|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:HEART_RATE = 278|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:HEART_RATE = 278|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:WEAR_DETECTION = 280|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:WEAR_DETECTION = 280|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法 or 属性:ACCELEROMETER_UNCALIBRATED = 281|@ohos.sensor.d.ts| +|新增|NA|类名:SensorId
方法or属性:ACCELEROMETER_UNCALIBRATED = 281|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.ACCELEROMETER, callback: Callback\,

options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\,

options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.AMBIENT_LIGHT, callback: Callback\, options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\,

options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.BAROMETER, callback: Callback\, options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.GRAVITY, callback: Callback\,

options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.GYROSCOPE, callback: Callback\,

options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\,

options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.HALL, callback: Callback\, options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.HEART_RATE, callback: Callback\,

options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.HUMIDITY, callback: Callback\,

options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\,

options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.MAGNETIC_FIELD, callback: Callback\,

options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\,

options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.ORIENTATION, callback: Callback\,

options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.PEDOMETER, callback: Callback\, options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.PEDOMETER_DETECTION, callback: Callback\,

options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.PROXIMITY, callback: Callback\, options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.ROTATION_VECTOR, callback: Callback\,

options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\,

options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function on(type: SensorId.WEAR_DETECTION, callback: Callback\,

options?: Options): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.ACCELEROMETER, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.AMBIENT_LIGHT, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.AMBIENT_TEMPERATURE, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.BAROMETER, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.GRAVITY, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.GYROSCOPE, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.GYROSCOPE_UNCALIBRATED, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.HALL, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.HEART_RATE, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.HUMIDITY, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.LINEAR_ACCELEROMETER, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.MAGNETIC_FIELD, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.ORIENTATION, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.PEDOMETER, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.PEDOMETER_DETECTION, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.PROXIMITY, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.ROTATION_VECTOR, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.SIGNIFICANT_MOTION, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function off(type: SensorId.WEAR_DETECTION, callback?: Callback\): void;|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: Sensor|@ohos.sensor.d.ts| +|新增|NA|类名:Sensor
方法or属性:|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: Sensor
方法 or 属性:sensorName:string;|@ohos.sensor.d.ts| +|新增|NA|类名:Sensor
方法or属性:sensorName:string;|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: Sensor
方法 or 属性:vendorName:string;|@ohos.sensor.d.ts| +|新增|NA|类名:Sensor
方法or属性:vendorName:string;|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: Sensor
方法 or 属性:firmwareVersion:string;|@ohos.sensor.d.ts| +|新增|NA|类名:Sensor
方法or属性:firmwareVersion:string;|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: Sensor
方法 or 属性:hardwareVersion:string;|@ohos.sensor.d.ts| +|新增|NA|类名:Sensor
方法or属性:hardwareVersion:string;|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: Sensor
方法 or 属性:sensorId:number;|@ohos.sensor.d.ts| +|新增|NA|类名:Sensor
方法or属性:sensorId:number;|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: Sensor
方法 or 属性:maxRange:number;|@ohos.sensor.d.ts| +|新增|NA|类名:Sensor
方法or属性:maxRange:number;|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: Sensor
方法 or 属性:minSamplePeriod:number;|@ohos.sensor.d.ts| +|新增|NA|类名:Sensor
方法or属性:minSamplePeriod:number;|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: Sensor
方法 or 属性:maxSamplePeriod:number;|@ohos.sensor.d.ts| +|新增|NA|类名:Sensor
方法or属性:maxSamplePeriod:number;|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: Sensor
方法 or 属性:precision:number;|@ohos.sensor.d.ts| +|新增|NA|类名:Sensor
方法or属性:precision:number;|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: Sensor
方法 or 属性:power:number;|@ohos.sensor.d.ts| +|新增|NA|类名:Sensor
方法or属性:power:number;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function getSingleSensor(type: SensorId, callback: AsyncCallback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function getSingleSensor(type: SensorId): Promise\;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function getSensorList(callback: AsyncCallback\>): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function getSensorList(): Promise\>;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function getGeomagneticInfo(locationOptions: LocationOptions, timeMillis: number, callback: AsyncCallback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function getGeomagneticInfo(locationOptions: LocationOptions, timeMillis: number): Promise\;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function getDeviceAltitude(seaPressure: number, currentPressure: number, callback: AsyncCallback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function getDeviceAltitude(seaPressure: number, currentPressure: number): Promise\;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function getInclination(inclinationMatrix: Array\, callback: AsyncCallback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function getInclination(inclinationMatrix: Array\): Promise\;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function getAngleVariation(currentRotationMatrix: Array\, preRotationMatrix: Array\,

callback: AsyncCallback\>): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function getAngleVariation(currentRotationMatrix: Array\, preRotationMatrix: Array\): Promise\>;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function getRotationMatrix(rotationVector: Array\, callback: AsyncCallback\>): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function getRotationMatrix(rotationVector: Array\): Promise\>;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function transformRotationMatrix(inRotationVector: Array\, coordinates: CoordinatesOptions,

callback: AsyncCallback\>): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function transformRotationMatrix(inRotationVector: Array\, coordinates: CoordinatesOptions): Promise\>;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function getQuaternion(rotationVector: Array\, callback: AsyncCallback\>): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function getQuaternion(rotationVector: Array\): Promise\>;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function getOrientation(rotationMatrix: Array\, callback: AsyncCallback\>): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function getOrientation(rotationMatrix: Array\): Promise\>;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function getRotationMatrix(gravity: Array\, geomagnetic: Array\, callback: AsyncCallback\): void;|@ohos.sensor.d.ts| +|新增|NA|类名:sensor
方法or属性:function getRotationMatrix(gravity: Array\, geomagnetic: Array\): Promise\;|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: Usage
方法 or 属性:type Usage = "unknown" \| "alarm" \| "ring" \| "notification" \| "communication" \|

"touch" \| "media" \| "physicalFeedback" \| "simulateReality";|@ohos.vibrator.d.ts| +|新增|NA|类名:Usage
方法or属性:type Usage = "unknown" \| "alarm" \| "ring" \| "notification" \| "communication" \|

"touch" \| "media" \| "physicalFeedback" \| "simulateReality";|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: Usage
方法 or 属性:type Usage = "unknown" \| "alarm" \| "ring" \| "notification" \| "communication" \|

"touch" \| "media" \| "physicalFeedback" \| "simulateReality";|@ohos.vibrator.d.ts| +|新增|NA|类名:Usage
方法or属性:type Usage = "unknown" \| "alarm" \| "ring" \| "notification" \| "communication" \|

"touch" \| "media" \| "physicalFeedback" \| "simulateReality";|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: Usage
方法 or 属性:type Usage = "unknown" \| "alarm" \| "ring" \| "notification" \| "communication" \|

"touch" \| "media" \| "physicalFeedback" \| "simulateReality";|@ohos.vibrator.d.ts| +|新增|NA|类名:Usage
方法or属性:type Usage = "unknown" \| "alarm" \| "ring" \| "notification" \| "communication" \|

"touch" \| "media" \| "physicalFeedback" \| "simulateReality";|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: Usage
方法 or 属性:type Usage = "unknown" \| "alarm" \| "ring" \| "notification" \| "communication" \|

"touch" \| "media" \| "physicalFeedback" \| "simulateReality";|@ohos.vibrator.d.ts| +|新增|NA|类名:Usage
方法or属性:type Usage = "unknown" \| "alarm" \| "ring" \| "notification" \| "communication" \|

"touch" \| "media" \| "physicalFeedback" \| "simulateReality";|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: Usage
方法 or 属性:type Usage = "unknown" \| "alarm" \| "ring" \| "notification" \| "communication" \|

"touch" \| "media" \| "physicalFeedback" \| "simulateReality";|@ohos.vibrator.d.ts| +|新增|NA|类名:Usage
方法or属性:type Usage = "unknown" \| "alarm" \| "ring" \| "notification" \| "communication" \|

"touch" \| "media" \| "physicalFeedback" \| "simulateReality";|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: Usage
方法 or 属性:type Usage = "unknown" \| "alarm" \| "ring" \| "notification" \| "communication" \|

"touch" \| "media" \| "physicalFeedback" \| "simulateReality";|@ohos.vibrator.d.ts| +|新增|NA|类名:Usage
方法or属性:type Usage = "unknown" \| "alarm" \| "ring" \| "notification" \| "communication" \|

"touch" \| "media" \| "physicalFeedback" \| "simulateReality";|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: Usage
方法 or 属性:type Usage = "unknown" \| "alarm" \| "ring" \| "notification" \| "communication" \|

"touch" \| "media" \| "physicalFeedback" \| "simulateReality";|@ohos.vibrator.d.ts| +|新增|NA|类名:Usage
方法or属性:type Usage = "unknown" \| "alarm" \| "ring" \| "notification" \| "communication" \|

"touch" \| "media" \| "physicalFeedback" \| "simulateReality";|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: Usage
方法 or 属性:type Usage = "unknown" \| "alarm" \| "ring" \| "notification" \| "communication" \|

"touch" \| "media" \| "physicalFeedback" \| "simulateReality";|@ohos.vibrator.d.ts| +|新增|NA|类名:Usage
方法or属性:type Usage = "unknown" \| "alarm" \| "ring" \| "notification" \| "communication" \|

"touch" \| "media" \| "physicalFeedback" \| "simulateReality";|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: Usage
方法 or 属性:type Usage = "unknown" \| "alarm" \| "ring" \| "notification" \| "communication" \|

"touch" \| "media" \| "physicalFeedback" \| "simulateReality";|@ohos.vibrator.d.ts| +|新增|NA|类名:Usage
方法or属性:type Usage = "unknown" \| "alarm" \| "ring" \| "notification" \| "communication" \|

"touch" \| "media" \| "physicalFeedback" \| "simulateReality";|@ohos.vibrator.d.ts| +|新增|NA|类名:vibrator
方法or属性:function startVibration(effect: VibrateEffect, attribute: VibrateAttribute, callback: AsyncCallback\): void;|@ohos.vibrator.d.ts| +|新增|NA|类名:vibrator
方法or属性:function startVibration(effect: VibrateEffect, attribute: VibrateAttribute): Promise\;|@ohos.vibrator.d.ts| +|新增|NA|类名:vibrator
方法or属性:function stopVibration(stopMode: VibratorStopMode): Promise\;|@ohos.vibrator.d.ts| +|新增|NA|类名:vibrator
方法or属性:function stopVibration(stopMode: VibratorStopMode, callback: AsyncCallback\): void;|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: VibrateAttribute|@ohos.vibrator.d.ts| +|新增|NA|类名:VibrateAttribute
方法or属性:|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: VibrateAttribute
方法 or 属性:id?: number,|@ohos.vibrator.d.ts| +|新增|NA|类名:VibrateAttribute
方法or属性:id?: number,|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: VibrateAttribute
方法 or 属性:usage: Usage,|@ohos.vibrator.d.ts| +|新增|NA|类名:VibrateAttribute
方法or属性:usage: Usage,|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: VibrateTime|@ohos.vibrator.d.ts| +|新增|NA|类名:VibrateTime
方法or属性:|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: VibrateTime
方法 or 属性:type: "time";|@ohos.vibrator.d.ts| +|新增|NA|类名:VibrateTime
方法or属性:type: "time";|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: VibrateTime
方法 or 属性:duration: number;|@ohos.vibrator.d.ts| +|新增|NA|类名:VibrateTime
方法or属性:duration: number;|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: VibratePreset|@ohos.vibrator.d.ts| +|新增|NA|类名:VibratePreset
方法or属性:|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: VibratePreset
方法 or 属性:type: "preset";|@ohos.vibrator.d.ts| +|新增|NA|类名:VibratePreset
方法or属性:type: "preset";|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: VibratePreset
方法 or 属性:effectId: string;|@ohos.vibrator.d.ts| +|新增|NA|类名:VibratePreset
方法or属性:effectId: string;|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: VibratePreset
方法 or 属性:count: number;|@ohos.vibrator.d.ts| +|新增|NA|类名:VibratePreset
方法or属性:count: number;|@ohos.vibrator.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\,

options?: Options): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\,

options?: Options): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED,

callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED,

callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_HALL, callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_HALL, callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback?: Callback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback?: Callback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function getGeomagneticField(locationOptions: LocationOptions, timeMillis: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function getGeomagneticField(locationOptions: LocationOptions, timeMillis: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function getGeomagneticField(locationOptions: LocationOptions, timeMillis: number): Promise\;
废弃版本:N/A|类名:sensor
方法 or 属性:function getGeomagneticField(locationOptions: LocationOptions, timeMillis: number): Promise\;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function getAltitude(seaPressure: number, currentPressure: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function getAltitude(seaPressure: number, currentPressure: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function getAltitude(seaPressure: number, currentPressure: number): Promise\;
废弃版本:N/A|类名:sensor
方法 or 属性:function getAltitude(seaPressure: number, currentPressure: number): Promise\;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function getGeomagneticDip(inclinationMatrix: Array\, callback: AsyncCallback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function getGeomagneticDip(inclinationMatrix: Array\, callback: AsyncCallback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function getGeomagneticDip(inclinationMatrix: Array\): Promise\;
废弃版本:N/A|类名:sensor
方法 or 属性:function getGeomagneticDip(inclinationMatrix: Array\): Promise\;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function getAngleModify(currentRotationMatrix: Array\, preRotationMatrix: Array\,

callback: AsyncCallback\>): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function getAngleModify(currentRotationMatrix: Array\, preRotationMatrix: Array\,

callback: AsyncCallback\>): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function getAngleModify(currentRotationMatrix: Array\, preRotationMatrix: Array\): Promise\>;
废弃版本:N/A|类名:sensor
方法 or 属性:function getAngleModify(currentRotationMatrix: Array\, preRotationMatrix: Array\): Promise\>;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function createRotationMatrix(rotationVector: Array\, callback: AsyncCallback\>): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function createRotationMatrix(rotationVector: Array\, callback: AsyncCallback\>): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function createRotationMatrix(rotationVector: Array\): Promise\>;
废弃版本:N/A|类名:sensor
方法 or 属性:function createRotationMatrix(rotationVector: Array\): Promise\>;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function transformCoordinateSystem(inRotationVector: Array\, coordinates: CoordinatesOptions,

callback: AsyncCallback\>): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function transformCoordinateSystem(inRotationVector: Array\, coordinates: CoordinatesOptions,

callback: AsyncCallback\>): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function transformCoordinateSystem(inRotationVector: Array\, coordinates: CoordinatesOptions): Promise\>;
废弃版本:N/A|类名:sensor
方法 or 属性:function transformCoordinateSystem(inRotationVector: Array\, coordinates: CoordinatesOptions): Promise\>;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function createQuaternion(rotationVector: Array\, callback: AsyncCallback\>): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function createQuaternion(rotationVector: Array\, callback: AsyncCallback\>): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function createQuaternion(rotationVector: Array\): Promise\>;
废弃版本:N/A|类名:sensor
方法 or 属性:function createQuaternion(rotationVector: Array\): Promise\>;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function getDirection(rotationMatrix: Array\, callback: AsyncCallback\>): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function getDirection(rotationMatrix: Array\, callback: AsyncCallback\>): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function getDirection(rotationMatrix: Array\): Promise\>;
废弃版本:N/A|类名:sensor
方法 or 属性:function getDirection(rotationMatrix: Array\): Promise\>;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function createRotationMatrix(gravity: Array\, geomagnetic: Array\, callback: AsyncCallback\): void;
废弃版本:N/A|类名:sensor
方法 or 属性:function createRotationMatrix(gravity: Array\, geomagnetic: Array\, callback: AsyncCallback\): void;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:sensor
方法 or 属性:function createRotationMatrix(gravity: Array\, geomagnetic: Array\,): Promise\;
废弃版本:N/A|类名:sensor
方法 or 属性:function createRotationMatrix(gravity: Array\, geomagnetic: Array\,): Promise\;
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| +|废弃版本有变化|类名:SensorType
废弃版本:N/A|类名:SensorType
废弃版本:9
代替接口:sensor.SensorId |@ohos.sensor.d.ts| +|废弃版本有变化|类名:vibrator
方法 or 属性:function vibrate(duration: number, callback?: AsyncCallback\): void;
废弃版本:N/A|类名:vibrator
方法 or 属性:function vibrate(duration: number, callback?: AsyncCallback\): void;
废弃版本:9
代替接口:vibrator|@ohos.vibrator.d.ts| +|废弃版本有变化|类名:vibrator
方法 or 属性:function vibrate(duration: number): Promise\;
废弃版本:N/A|类名:vibrator
方法 or 属性:function vibrate(duration: number): Promise\;
废弃版本:9
代替接口:vibrator|@ohos.vibrator.d.ts| +|废弃版本有变化|类名:vibrator
方法 or 属性:function vibrate(effectId: EffectId): Promise\;
废弃版本:N/A|类名:vibrator
方法 or 属性:function vibrate(effectId: EffectId): Promise\;
废弃版本:9
代替接口:vibrator|@ohos.vibrator.d.ts| +|废弃版本有变化|类名:vibrator
方法 or 属性:function vibrate(effectId: EffectId, callback?: AsyncCallback\): void;
废弃版本:N/A|类名:vibrator
方法 or 属性:function vibrate(effectId: EffectId, callback?: AsyncCallback\): void;
废弃版本:9
代替接口:vibrator|@ohos.vibrator.d.ts| +|废弃版本有变化|类名:vibrator
方法 or 属性:function stop(stopMode: VibratorStopMode): Promise\;
废弃版本:N/A|类名:vibrator
方法 or 属性:function stop(stopMode: VibratorStopMode): Promise\;
废弃版本:9
代替接口:vibrator|@ohos.vibrator.d.ts| +|废弃版本有变化|类名:vibrator
方法 or 属性:function stop(stopMode: VibratorStopMode, callback?: AsyncCallback\): void;
废弃版本:N/A|类名:vibrator
方法 or 属性:function stop(stopMode: VibratorStopMode, callback?: AsyncCallback\): void;
废弃版本:9
代替接口:vibrator|@ohos.vibrator.d.ts| +|权限有变化|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\,

options?: Options): void;
权限:ohos.permission.READ_HEALTH_DATA|类名:sensor
方法 or 属性:function on(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\,

options?: Options): void;
权限:ohos.permission.HEALTH_DATA|@ohos.sensor.d.ts| +|权限有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
权限:ohos.permission.READ_HEALTH_DATA|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
权限:ohos.permission.HEART_RATE|@ohos.sensor.d.ts| +|权限有变化|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback?: Callback\): void;
权限:ohos.permission.READ_HEALTH_DATA|类名:sensor
方法 or 属性:function off(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback?: Callback\): void;
权限:ohos.permission.HEALTH_DATA|@ohos.sensor.d.ts| +|删除(权限)|类名:sensor
权限:ohos.permission.ACCELEROMETER|类名:sensor
权限:N/A|@ohos.sensor.d.ts| +|删除(权限)|类名:vibrator
权限:ohos.permission.VIBRATE|类名:vibrator
权限:N/A|@ohos.vibrator.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorId.WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| +|函数有变化|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|类名:sensor
方法 or 属性:function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void;
|@ohos.sensor.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-start-up.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-start-up.md new file mode 100644 index 0000000000000000000000000000000000000000..51574345fb635a9331694dc9317d5bee09dc4a21 --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-start-up.md @@ -0,0 +1,14 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.systemParameterEnhance
类名: systemParameterEnhance|@ohos.systemParameterEnhance.d.ts| +|新增|NA|模块名: ohos.systemParameterEnhance
类名: systemParameterEnhance
方法 or 属性: function getSync(key: string, def?: string): string;|@ohos.systemParameterEnhance.d.ts| +|新增|NA|模块名: ohos.systemParameterEnhance
类名: systemParameterEnhance
方法 or 属性: function get(key: string, callback: AsyncCallback\): void;|@ohos.systemParameterEnhance.d.ts| +|新增|NA|模块名: ohos.systemParameterEnhance
类名: systemParameterEnhance
方法 or 属性: function get(key: string, def: string, callback: AsyncCallback\): void;|@ohos.systemParameterEnhance.d.ts| +|新增|NA|模块名: ohos.systemParameterEnhance
类名: systemParameterEnhance
方法 or 属性: function get(key: string, def?: string): Promise\;|@ohos.systemParameterEnhance.d.ts| +|新增|NA|模块名: ohos.systemParameterEnhance
类名: systemParameterEnhance
方法 or 属性: function setSync(key: string, value: string): void;|@ohos.systemParameterEnhance.d.ts| +|新增|NA|模块名: ohos.systemParameterEnhance
类名: systemParameterEnhance
方法 or 属性: function set(key: string, value: string, callback: AsyncCallback\): void;|@ohos.systemParameterEnhance.d.ts| +|新增|NA|模块名: ohos.systemParameterEnhance
类名: systemParameterEnhance
方法 or 属性: function set(key: string, value: string): Promise\;|@ohos.systemParameterEnhance.d.ts| +|废弃版本有变化|类名:deviceInfo
方法 or 属性:const hardwareProfile: string;
废弃版本:N/A|类名:deviceInfo
方法 or 属性:const hardwareProfile: string;
废弃版本:9
代替接口:N/A|@ohos.deviceInfo.d.ts| +|废弃版本有变化|类名:Device
方法 or 属性:static getInfo(options?: GetDeviceOptions): void;
废弃版本:N/A|类名:Device
方法 or 属性:static getInfo(options?: GetDeviceOptions): void;
废弃版本:6
代替接口:N/A|@system.device.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-diff/v3.2-Release/js-apidiff-telephony.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-telephony.md new file mode 100644 index 0000000000000000000000000000000000000000..ad4b4769bd4e4ec4a6575a4bf5e84fdd20d126a0 --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-telephony.md @@ -0,0 +1,656 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:call
方法or属性:function dialCall(phoneNumber: string, callback: AsyncCallback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function dialCall(phoneNumber: string, options: DialCallOptions, callback: AsyncCallback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function dialCall(phoneNumber: string, options?: DialCallOptions): Promise\;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function answerCall(callId: number, callback: AsyncCallback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function answerCall(callId?: number): Promise\;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function answerCall(callback: AsyncCallback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function hangUpCall(callId: number, callback: AsyncCallback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function hangUpCall(callId?: number): Promise\;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function hangUpCall(callback: AsyncCallback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function rejectCall(callId: number, callback: AsyncCallback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function rejectCall(callId: number, options: RejectMessageOptions, callback: AsyncCallback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function rejectCall(callId?: number, options?: RejectMessageOptions): Promise\;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function rejectCall(callback: AsyncCallback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function rejectCall(options: RejectMessageOptions, callback: AsyncCallback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function on(type: 'mmiCodeResult', callback: Callback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|类名:call
方法or属性:function off(type: 'mmiCodeResult', callback?: Callback\): void;|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: AudioDevice
方法 or 属性:DEVICE_EARPIECE|@ohos.telephony.call.d.ts| +|新增|NA|类名:AudioDevice
方法or属性:DEVICE_EARPIECE|@ohos.telephony.call.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|模块名: ohos.telephony.call
类名: DialCallOptions|@ohos.telephony.call.d.ts| +|新增|NA|类名:DialCallOptions
方法or属性:|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DialCallOptions
方法 or 属性:accountId?: number;|@ohos.telephony.call.d.ts| +|新增|NA|类名:DialCallOptions
方法or属性:accountId?: number;|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DialCallOptions
方法 or 属性:videoState?: VideoStateType;|@ohos.telephony.call.d.ts| +|新增|NA|类名:DialCallOptions
方法or属性:videoState?: VideoStateType;|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DialCallOptions
方法 or 属性:dialScene?: DialScene;|@ohos.telephony.call.d.ts| +|新增|NA|类名:DialCallOptions
方法or属性:dialScene?: DialScene;|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DialCallOptions
方法 or 属性:dialType?: DialType;|@ohos.telephony.call.d.ts| +|新增|NA|类名:DialCallOptions
方法or属性:dialType?: DialType;|@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
类名: AudioDeviceOptions|@ohos.telephony.call.d.ts| +|新增|NA|类名:AudioDeviceOptions
方法or属性:|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: AudioDeviceOptions
方法 or 属性:bluetoothAddress?: string;|@ohos.telephony.call.d.ts| +|新增|NA|类名:AudioDeviceOptions
方法or属性:bluetoothAddress?: string;|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: MmiCodeResults|@ohos.telephony.call.d.ts| +|新增|NA|类名:MmiCodeResults
方法or属性:|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: MmiCodeResults
方法 or 属性:result: MmiCodeResult;|@ohos.telephony.call.d.ts| +|新增|NA|类名:MmiCodeResults
方法or属性:result: MmiCodeResult;|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: MmiCodeResults
方法 or 属性:message: string;|@ohos.telephony.call.d.ts| +|新增|NA|类名:MmiCodeResults
方法or属性:message: string;|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: MmiCodeResult|@ohos.telephony.call.d.ts| +|新增|NA|类名:MmiCodeResult
方法or属性:|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: MmiCodeResult
方法 or 属性:MMI_CODE_SUCCESS = 0|@ohos.telephony.call.d.ts| +|新增|NA|类名:MmiCodeResult
方法or属性:MMI_CODE_SUCCESS = 0|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: MmiCodeResult
方法 or 属性:MMI_CODE_FAILED = 1|@ohos.telephony.call.d.ts| +|新增|NA|类名:MmiCodeResult
方法or属性:MMI_CODE_FAILED = 1|@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|类名:data
方法or属性:function getDefaultCellularDataSlotIdSync(): number;|@ohos.telephony.data.d.ts| +|新增|NA|类名:radio
方法or属性:function isNRSupported(): boolean;|@ohos.telephony.radio.d.ts| +|新增|NA|类名:radio
方法or属性:function isNRSupported(slotId: number): boolean;|@ohos.telephony.radio.d.ts| +|新增|NA|类名:radio
方法or属性:function getImsRegInfo(slotId: number, imsType: ImsServiceType, callback: AsyncCallback\): void;|@ohos.telephony.radio.d.ts| +|新增|NA|类名:radio
方法or属性:function getImsRegInfo(slotId: number, imsType: ImsServiceType): Promise\;|@ohos.telephony.radio.d.ts| +|新增|NA|类名:radio
方法or属性:function on(type: 'imsRegStateChange', slotId: number, imsType: ImsServiceType, callback: Callback\): void;|@ohos.telephony.radio.d.ts| +|新增|NA|类名:radio
方法or属性:function off(type: 'imsRegStateChange', slotId: number, imsType: ImsServiceType, callback?: Callback\): void;|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: SignalInformation
方法 or 属性:dBm: number;|@ohos.telephony.radio.d.ts| +|新增|NA|类名:SignalInformation
方法or属性:dBm: number;|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsRegState|@ohos.telephony.radio.d.ts| +|新增|NA|类名:ImsRegState
方法or属性:|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsRegState
方法 or 属性:IMS_UNREGISTERED|@ohos.telephony.radio.d.ts| +|新增|NA|类名:ImsRegState
方法or属性:IMS_UNREGISTERED|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsRegState
方法 or 属性:IMS_REGISTERED|@ohos.telephony.radio.d.ts| +|新增|NA|类名:ImsRegState
方法or属性:IMS_REGISTERED|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsRegTech|@ohos.telephony.radio.d.ts| +|新增|NA|类名:ImsRegTech
方法or属性:|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsRegTech
方法 or 属性:REGISTRATION_TECH_NONE|@ohos.telephony.radio.d.ts| +|新增|NA|类名: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|类名: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|类名: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|类名:ImsRegTech
方法or属性:REGISTRATION_TECH_NR|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsRegInfo|@ohos.telephony.radio.d.ts| +|新增|NA|类名:ImsRegInfo
方法or属性:|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsRegInfo
方法 or 属性:imsRegState: ImsRegState;|@ohos.telephony.radio.d.ts| +|新增|NA|类名:ImsRegInfo
方法or属性:imsRegState: ImsRegState;|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsRegInfo
方法 or 属性:imsRegTech: ImsRegTech;|@ohos.telephony.radio.d.ts| +|新增|NA|类名:ImsRegInfo
方法or属性:imsRegTech: ImsRegTech;|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsServiceType|@ohos.telephony.radio.d.ts| +|新增|NA|类名:ImsServiceType
方法or属性:|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsServiceType
方法 or 属性:TYPE_VOICE|@ohos.telephony.radio.d.ts| +|新增|NA|类名:ImsServiceType
方法or属性:TYPE_VOICE|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsServiceType
方法 or 属性:TYPE_VIDEO|@ohos.telephony.radio.d.ts| +|新增|NA|类名:ImsServiceType
方法or属性:TYPE_VIDEO|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsServiceType
方法 or 属性:TYPE_UT|@ohos.telephony.radio.d.ts| +|新增|NA|类名:ImsServiceType
方法or属性:TYPE_UT|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsServiceType
方法 or 属性:TYPE_SMS|@ohos.telephony.radio.d.ts| +|新增|NA|类名:ImsServiceType
方法or属性:TYPE_SMS|@ohos.telephony.radio.d.ts| +|新增|NA|类名:sim
方法or属性:function getOpKey(slotId: number, callback: AsyncCallback\): void;|@ohos.telephony.sim.d.ts| +|新增|NA|类名:sim
方法or属性:function getOpKey(slotId: number): Promise\;|@ohos.telephony.sim.d.ts| +|新增|NA|类名:sim
方法or属性:function getOpName(slotId: number, callback: AsyncCallback\): void;|@ohos.telephony.sim.d.ts| +|新增|NA|类名:sim
方法or属性:function getOpName(slotId: number): Promise\;|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey|@ohos.telephony.sim.d.ts| +|新增|NA|类名:OperatorConfigKey
方法or属性:|@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|类名: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|类名: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|类名: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|类名: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|类名: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|类名: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|类名: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|类名: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|类名: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|类名: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|类名: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|类名: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_REASON_INFO_MAPPING_STRING_ARRAY = "ims_call_disconnect_reason_info_mapping_string_array"|@ohos.telephony.sim.d.ts| +|新增|NA|类名:OperatorConfigKey
方法or属性:KEY_IMS_CALL_DISCONNECT_REASON_INFO_MAPPING_STRING_ARRAY = "ims_call_disconnect_reason_info_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|类名: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|类名: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|类名: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|类名: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|类名: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|类名: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| +|新增|NA|类名:OperatorConfigKey
方法or属性:KEY_EMERGENCY_CALL_STRING_ARRAY = "emergency_call_string_array"|@ohos.telephony.sim.d.ts| +|删除|模块名:ohos.telephony.call
类名:call
方法 or 属性:function answer(callId: number, callback: AsyncCallback\): void;|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:call
方法 or 属性:function answer(callId: number): Promise\;|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:call
方法 or 属性:function hangup(callId: number, callback: AsyncCallback\): void;|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:call
方法 or 属性:function hangup(callId: number): Promise\;|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:call
方法 or 属性:function reject(callId: number, callback: AsyncCallback\): void;|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:call
方法 or 属性:function reject(callId: number, options: RejectMessageOptions, callback: AsyncCallback\): void;|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:call
方法 or 属性:function reject(callId: number, options?: RejectMessageOptions): Promise\;|NA|@ohos.telephony.call.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| +|废弃版本有变化|类名:call
方法 or 属性:function dial(phoneNumber: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:call
方法 or 属性:function dial(phoneNumber: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:telephony.call|@ohos.telephony.call.d.ts| +|废弃版本有变化|类名:call
方法 or 属性:function dial(phoneNumber: string, options: DialOptions, callback: AsyncCallback\): void;
废弃版本:N/A|类名:call
方法 or 属性:function dial(phoneNumber: string, options: DialOptions, callback: AsyncCallback\): void;
废弃版本:9
代替接口:telephony.call|@ohos.telephony.call.d.ts| +|废弃版本有变化|类名:call
方法 or 属性:function dial(phoneNumber: string, options?: DialOptions): Promise\;
废弃版本:N/A|类名:call
方法 or 属性:function dial(phoneNumber: string, options?: DialOptions): Promise\;
废弃版本:9
代替接口:telephony.call|@ohos.telephony.call.d.ts| +|废弃版本有变化|类名:radio
方法 or 属性:function isNrSupported(): boolean;
废弃版本:N/A|类名:radio
方法 or 属性:function isNrSupported(): boolean;
废弃版本:9
代替接口:telephony.radio|@ohos.telephony.radio.d.ts| +|废弃版本有变化|类名:radio
方法 or 属性:function isNrSupported(slotId: number): boolean;
废弃版本:N/A|类名:radio
方法 or 属性:function isNrSupported(slotId: number): boolean;
废弃版本:9
代替接口:telephony.radio|@ohos.telephony.radio.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| +|权限有变化|类名: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 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| +|删除(权限)|类名:data
方法 or 属性:function getDefaultCellularDataSlotId(callback: AsyncCallback\): void;
权限:ohos.permission.GET_NETWORK_INFO|类名:data
方法 or 属性:function getDefaultCellularDataSlotId(callback: AsyncCallback\): void;
权限:N/A|@ohos.telephony.data.d.ts| +|删除(权限)|类名:data
方法 or 属性:function getDefaultCellularDataSlotId(): Promise\;
权限:ohos.permission.GET_NETWORK_INFO|类名:data
方法 or 属性:function getDefaultCellularDataSlotId(): Promise\;
权限:N/A|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function muteRinger(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function muteRinger(): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isEmergencyPhoneNumber(phoneNumber: string, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isEmergencyPhoneNumber(phoneNumber: string, options: EmergencyNumberOptions, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isEmergencyPhoneNumber(phoneNumber: string, options?: EmergencyNumberOptions): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function formatPhoneNumber(phoneNumber: string, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function formatPhoneNumber(phoneNumber: string, options: NumberFormatOptions, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function formatPhoneNumber(phoneNumber: string, options?: NumberFormatOptions): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function formatPhoneNumberToE164(phoneNumber: string, countryCode: string, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function formatPhoneNumberToE164(phoneNumber: string, countryCode: string): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function holdCall(callId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function holdCall(callId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function unHoldCall(callId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function unHoldCall(callId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function switchCall(callId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function switchCall(callId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function combineConference(callId: number, callback: AsyncCallback\): void;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function combineConference(callId: number): Promise\;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getMainCallId(callId: number, callback: AsyncCallback\): void;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getMainCallId(callId: number): Promise\;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getSubCallIdList(callId: number, callback: AsyncCallback\>): void;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getSubCallIdList(callId: number): Promise\>;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getCallIdListForConference(callId: number, callback: AsyncCallback\>): void;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getCallIdListForConference(callId: number): Promise\>;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getCallWaitingStatus(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getCallWaitingStatus(slotId: number): Promise\;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function setCallWaiting(slotId: number, activate: boolean, callback: AsyncCallback\): void;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function setCallWaiting(slotId: number, activate: boolean): Promise\;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function startDTMF(callId: number, character: string, callback: AsyncCallback\): void;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function startDTMF(callId: number, character: string): Promise\;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function stopDTMF(callId: number, callback: AsyncCallback\): void;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function stopDTMF(callId: number): Promise\;
错误码内容: 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isInEmergencyCall(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isInEmergencyCall(): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function on(type: 'callDetailsChange', callback: Callback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function off(type: 'callDetailsChange', callback?: Callback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function on(type: 'callEventChange', callback: Callback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function off(type: 'callEventChange', callback?: Callback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function on(type: 'callDisconnectedCause', callback: Callback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function off(type: 'callDisconnectedCause', callback?: Callback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isNewCallAllowed(callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isNewCallAllowed(): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function separateConference(callId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function separateConference(callId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getCallRestrictionStatus(slotId: number, type: CallRestrictionType, callback: AsyncCallback\): void;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getCallRestrictionStatus(slotId: number, type: CallRestrictionType): Promise\;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function setCallRestriction(slotId: number, info: CallRestrictionInfo, callback: AsyncCallback\): void;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function setCallRestriction(slotId: number, info: CallRestrictionInfo): Promise\;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getCallTransferInfo(slotId: number, type: CallTransferType, callback: AsyncCallback\): void;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function getCallTransferInfo(slotId: number, type: CallTransferType): Promise\;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function setCallTransfer(slotId: number, info: CallTransferInfo, callback: AsyncCallback\): void;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function setCallTransfer(slotId: number, info: CallTransferInfo): Promise\;
错误码内容: 201, 401, 801, 8300001, 8300002, 8300003|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isRinging(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isRinging(): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function setMuted(callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function setMuted(): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function cancelMuted(callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function cancelMuted(): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function setAudioDevice(device: AudioDevice, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function joinConference(mainCallId: number, callNumberList: Array\, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function joinConference(mainCallId: number, callNumberList: Array\): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function updateImsCallMode(callId: number, mode: ImsCallMode, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function updateImsCallMode(callId: number, mode: ImsCallMode): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function enableImsSwitch(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function enableImsSwitch(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function disableImsSwitch(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function disableImsSwitch(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isImsSwitchEnabled(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:call
方法 or 属性:function isImsSwitchEnabled(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function setDefaultCellularDataSlotId(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301001|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function setDefaultCellularDataSlotId(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301001|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function isCellularDataEnabled(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function isCellularDataEnabled(): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function enableCellularData(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function enableCellularData(): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function disableCellularData(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function disableCellularData(): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function isCellularDataRoamingEnabled(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function isCellularDataRoamingEnabled(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function enableCellularDataRoaming(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function enableCellularDataRoaming(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function disableCellularDataRoaming(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:data
方法 or 属性:function disableCellularDataRoaming(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.data.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'networkStateChange', callback: Callback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'networkStateChange', options: { slotId: number }, callback: Callback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function off(type: 'networkStateChange', callback?: Callback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'signalInfoChange', callback: Callback\>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'signalInfoChange', options: { slotId: number },
callback: Callback\>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function off(type: 'signalInfoChange', callback?: Callback\>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'cellInfoChange', callback: Callback\>): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'cellInfoChange', options: { slotId: number },
callback: Callback\>): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function off(type: 'cellInfoChange', callback?: Callback\>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'cellularDataConnectionStateChange',
callback: Callback\<{ state: DataConnectState, network: RatType }>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'cellularDataConnectionStateChange', options: { slotId: number },
callback: Callback\<{ state: DataConnectState, network: RatType }>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function off(type: 'cellularDataConnectionStateChange',
callback?: Callback\<{ state: DataConnectState, network: RatType }>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'cellularDataFlowChange', callback: Callback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'cellularDataFlowChange', options: { slotId: number },
callback: Callback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function off(type: 'cellularDataFlowChange', callback?: Callback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'callStateChange', callback: Callback\<{ state: CallState, number: string }>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'callStateChange', options: { slotId: number },
callback: Callback\<{ state: CallState, number: string }>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function off(type: 'callStateChange', callback?: Callback\<{ state: CallState, number: string }>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'simStateChange', callback: Callback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function on(type: 'simStateChange', options: { slotId: number }, callback: Callback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:observer
方法 or 属性:function off(type: 'simStateChange', callback?: Callback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.observer.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getRadioTech(slotId: number,
callback: AsyncCallback\<{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getRadioTech(slotId: number): Promise\<{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getNetworkState(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getNetworkState(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getNetworkState(slotId?: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function sendUpdateCellLocationRequest(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getCellInformation(callback: AsyncCallback\>): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getCellInformation(slotId: number, callback: AsyncCallback\>): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getCellInformation(slotId?: number): Promise\>;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getNetworkSelectionMode(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getNetworkSelectionMode(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function setNetworkSelectionMode(options: NetworkSelectionModeOptions, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function setNetworkSelectionMode(options: NetworkSelectionModeOptions): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getNetworkSearchInformation(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getNetworkSearchInformation(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getISOCountryCodeForNetwork(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getISOCountryCodeForNetwork(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getNrOptionMode(callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getNrOptionMode(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getNrOptionMode(slotId?: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getIMEI(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getIMEI(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getIMEI(slotId?: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getMEID(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getMEID(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getMEID(slotId?: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getUniqueDeviceId(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getUniqueDeviceId(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getUniqueDeviceId(slotId?: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getPrimarySlotId(callback: AsyncCallback\): void;
错误码内容: 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getPrimarySlotId(): Promise\;
错误码内容: 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function setPrimarySlotId(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function setPrimarySlotId(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getSignalInformation(slotId: number, callback: AsyncCallback\>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getSignalInformation(slotId: number): Promise\>;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function isRadioOn(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function isRadioOn(slotId: number, callback: AsyncCallback\): void
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function isRadioOn(slotId?: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function turnOnRadio(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function turnOnRadio(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function turnOnRadio(slotId?: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function turnOffRadio(callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function turnOffRadio(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function turnOffRadio(slotId?: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getOperatorName(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getOperatorName(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function setPreferredNetwork(slotId: number, networkMode: PreferredNetworkMode, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function setPreferredNetwork(slotId: number, networkMode: PreferredNetworkMode): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getPreferredNetwork(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:radio
方法 or 属性:function getPreferredNetwork(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.radio.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function hasOperatorPrivileges(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function hasOperatorPrivileges(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getISOCountryCodeForSim(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getISOCountryCodeForSim(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimOperatorNumeric(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimOperatorNumeric(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimSpn(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimSpn(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimState(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimState(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getCardType(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getCardType(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimIccId(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimIccId(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getVoiceMailIdentifier(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getVoiceMailIdentifier(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getVoiceMailNumber(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getVoiceMailNumber(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function setVoiceMailInfo(slotId: number, mailName: string, mailNumber: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function setVoiceMailInfo(slotId: number, mailName: string, mailNumber: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimTelephoneNumber(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimTelephoneNumber(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimGid1(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimGid1(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getIMSI(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getIMSI(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function hasSimCard(slotId: number, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function hasSimCard(slotId: number): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimAccountInfo(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getSimAccountInfo(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getActiveSimAccountInfoList(callback: AsyncCallback\>): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getActiveSimAccountInfoList(): Promise\>;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function setDefaultVoiceSlotId(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301001|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function setDefaultVoiceSlotId(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301001|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function activateSim(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function activateSim(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function deactivateSim(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function deactivateSim(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function setShowName(slotId: number, name: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function setShowName(slotId: number, name: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getShowName(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getShowName(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function setShowNumber(slotId: number, number: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function setShowNumber(slotId: number, number: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getShowNumber(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getShowNumber(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getOperatorConfigs(slotId: number, callback: AsyncCallback\>): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getOperatorConfigs(slotId: number): Promise\>;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function unlockPin(slotId: number, pin: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function unlockPin(slotId: number, pin: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function unlockPuk(slotId: number, newPin: string, puk: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function unlockPuk(slotId: number, newPin: string, puk: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function alterPin(slotId: number, newPin: string, oldPin: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function alterPin(slotId: number, newPin: string, oldPin: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function setLockState(slotId: number, options: LockInfo, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function setLockState(slotId: number, options: LockInfo): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function unlockPin2(slotId: number, pin2: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function unlockPin2(slotId: number, pin2: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function unlockPuk2(slotId: number, newPin2: string, puk2: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function unlockPuk2(slotId: number, newPin2: string, puk2: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function alterPin2(slotId: number, newPin2: string, oldPin2: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function alterPin2(slotId: number, newPin2: string, oldPin2: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function queryIccDiallingNumbers(slotId: number, type: ContactType, callback: AsyncCallback\>): void
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function queryIccDiallingNumbers(slotId: number, type: ContactType): Promise\>;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function addIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function addIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function delIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function delIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function updateIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function updateIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getLockState(slotId: number, lockType: LockType, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function getLockState(slotId: number, lockType: LockType): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function sendEnvelopeCmd(slotId: number, cmd: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function sendEnvelopeCmd(slotId: number, cmd: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function sendTerminalResponseCmd(slotId: number, cmd: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function sendTerminalResponseCmd(slotId: number, cmd: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function unlockSimLock(slotId: number, lockInfo: PersoLockInfo, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sim
方法 or 属性:function unlockSimLock(slotId: number, lockInfo: PersoLockInfo): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999, 8301002|@ohos.telephony.sim.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function splitMessage(content: string, callback: AsyncCallback\>): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function splitMessage(content: string): Promise\>;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function createMessage(pdu: Array\, specification: string, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function createMessage(pdu: Array\, specification: string): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function sendMessage(options: SendMessageOptions): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function setDefaultSmsSlotId(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function setDefaultSmsSlotId(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300004, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function setSmscAddr(slotId: number, smscAddr: string, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function setSmscAddr(slotId: number, smscAddr: string): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function getSmscAddr(slotId: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function getSmscAddr(slotId: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function addSimMessage(options: SimMessageOptions, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function addSimMessage(options: SimMessageOptions): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function delSimMessage(slotId: number, msgIndex: number, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function delSimMessage(slotId: number, msgIndex: number): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function updateSimMessage(options: UpdateSimMessageOptions, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function updateSimMessage(options: UpdateSimMessageOptions): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function getAllSimMessages(slotId: number, callback: AsyncCallback\>): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function getAllSimMessages(slotId: number): Promise\>;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function setCBConfig(options: CBConfigOptions, callback: AsyncCallback\): void;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function setCBConfig(options: CBConfigOptions): Promise\;
错误码内容: 201, 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function getImsShortMessageFormat(callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function getImsShortMessageFormat(): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function decodeMms(mmsFilePathName: string \| Array\, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function decodeMms(mmsFilePathName: string \| Array\): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function encodeMms(mms: MmsInformation, callback: AsyncCallback\>): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(错误码)|NA|类名:sms
方法 or 属性:function encodeMms(mms: MmsInformation): Promise\>;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.sms.d.ts| +|新增(权限)|类名:call
方法 or 属性:function holdCall(callId: number, callback: AsyncCallback\): void;
权限:N/A|类名:call
方法 or 属性:function holdCall(callId: number, callback: AsyncCallback\): void;
权限:ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function holdCall(callId: number): Promise\;
权限:N/A|类名:call
方法 or 属性:function holdCall(callId: number): Promise\;
权限:ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function unHoldCall(callId: number, callback: AsyncCallback\): void;
权限:N/A|类名:call
方法 or 属性:function unHoldCall(callId: number, callback: AsyncCallback\): void;
权限:ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function unHoldCall(callId: number): Promise\;
权限:N/A|类名:call
方法 or 属性:function unHoldCall(callId: number): Promise\;
权限:ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function switchCall(callId: number, callback: AsyncCallback\): void;
权限:N/A|类名:call
方法 or 属性:function switchCall(callId: number, callback: AsyncCallback\): void;
权限:ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function switchCall(callId: number): Promise\;
权限:N/A|类名:call
方法 or 属性:function switchCall(callId: number): Promise\;
权限:ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function getCallWaitingStatus(slotId: number, callback: AsyncCallback\): void;
权限:N/A|类名:call
方法 or 属性:function getCallWaitingStatus(slotId: number, callback: AsyncCallback\): void;
权限:ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function getCallWaitingStatus(slotId: number): Promise\;
权限:N/A|类名:call
方法 or 属性:function getCallWaitingStatus(slotId: number): Promise\;
权限:ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function setCallWaiting(slotId: number, activate: boolean, callback: AsyncCallback\): void;
权限:N/A|类名:call
方法 or 属性:function setCallWaiting(slotId: number, activate: boolean, callback: AsyncCallback\): void;
权限:ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function setCallWaiting(slotId: number, activate: boolean): Promise\;
权限:N/A|类名:call
方法 or 属性:function setCallWaiting(slotId: number, activate: boolean): Promise\;
权限:ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function on(type: 'callDetailsChange', callback: Callback\): void;
权限:N/A|类名:call
方法 or 属性:function on(type: 'callDetailsChange', callback: Callback\): void;
权限:ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function off(type: 'callDetailsChange', callback?: Callback\): void;
权限:N/A|类名:call
方法 or 属性:function off(type: 'callDetailsChange', callback?: Callback\): void;
权限:ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function on(type: 'callEventChange', callback: Callback\): void;
权限:N/A|类名:call
方法 or 属性:function on(type: 'callEventChange', callback: Callback\): void;
权限:ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function off(type: 'callEventChange', callback?: Callback\): void;
权限:N/A|类名:call
方法 or 属性:function off(type: 'callEventChange', callback?: Callback\): void;
权限:ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function on(type: 'callDisconnectedCause', callback: Callback\): void;
权限:N/A|类名:call
方法 or 属性:function on(type: 'callDisconnectedCause', callback: Callback\): void;
权限:ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function off(type: 'callDisconnectedCause', callback?: Callback\): void;
权限:N/A|类名:call
方法 or 属性:function off(type: 'callDisconnectedCause', callback?: Callback\): void;
权限:ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function getCallRestrictionStatus(slotId: number, type: CallRestrictionType, callback: AsyncCallback\): void;
权限:N/A|类名:call
方法 or 属性:function getCallRestrictionStatus(slotId: number, type: CallRestrictionType, callback: AsyncCallback\): void;
权限:ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function getCallRestrictionStatus(slotId: number, type: CallRestrictionType): Promise\;
权限:N/A|类名:call
方法 or 属性:function getCallRestrictionStatus(slotId: number, type: CallRestrictionType): Promise\;
权限:ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function setCallRestriction(slotId: number, info: CallRestrictionInfo, callback: AsyncCallback\): void;
权限:N/A|类名:call
方法 or 属性:function setCallRestriction(slotId: number, info: CallRestrictionInfo, callback: AsyncCallback\): void;
权限:ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function setCallRestriction(slotId: number, info: CallRestrictionInfo): Promise\;
权限:N/A|类名:call
方法 or 属性:function setCallRestriction(slotId: number, info: CallRestrictionInfo): Promise\;
权限:ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function getCallTransferInfo(slotId: number, type: CallTransferType, callback: AsyncCallback\): void;
权限:N/A|类名:call
方法 or 属性:function getCallTransferInfo(slotId: number, type: CallTransferType, callback: AsyncCallback\): void;
权限:ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function getCallTransferInfo(slotId: number, type: CallTransferType): Promise\;
权限:N/A|类名:call
方法 or 属性:function getCallTransferInfo(slotId: number, type: CallTransferType): Promise\;
权限:ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function setCallTransfer(slotId: number, info: CallTransferInfo, callback: AsyncCallback\): void;
权限:N/A|类名:call
方法 or 属性:function setCallTransfer(slotId: number, info: CallTransferInfo, callback: AsyncCallback\): void;
权限:ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function setCallTransfer(slotId: number, info: CallTransferInfo): Promise\;
权限:N/A|类名:call
方法 or 属性:function setCallTransfer(slotId: number, info: CallTransferInfo): Promise\;
权限:ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function enableImsSwitch(slotId: number, callback: AsyncCallback\): void;
权限:N/A|类名:call
方法 or 属性:function enableImsSwitch(slotId: number, callback: AsyncCallback\): void;
权限:ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function enableImsSwitch(slotId: number): Promise\;
权限:N/A|类名:call
方法 or 属性:function enableImsSwitch(slotId: number): Promise\;
权限:ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function disableImsSwitch(slotId: number, callback: AsyncCallback\): void;
权限:N/A|类名:call
方法 or 属性:function disableImsSwitch(slotId: number, callback: AsyncCallback\): void;
权限:ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:call
方法 or 属性:function disableImsSwitch(slotId: number): Promise\;
权限:N/A|类名:call
方法 or 属性:function disableImsSwitch(slotId: number): Promise\;
权限:ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|新增(权限)|类名:radio
方法 or 属性:function sendUpdateCellLocationRequest(callback: AsyncCallback\): void;
权限:N/A|类名:radio
方法 or 属性:function sendUpdateCellLocationRequest(callback: AsyncCallback\): void;
权限:ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION|@ohos.telephony.radio.d.ts| +|新增(权限)|类名:sim
方法 or 属性:function getLockState(slotId: number, lockType: LockType, callback: AsyncCallback\): void;
权限:N/A|类名:sim
方法 or 属性:function getLockState(slotId: number, lockType: LockType, callback: AsyncCallback\): void;
权限:ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.sim.d.ts| +|新增(权限)|类名:sim
方法 or 属性:function getLockState(slotId: number, lockType: LockType): Promise\;
权限:N/A|类名:sim
方法 or 属性:function getLockState(slotId: number, lockType: LockType): Promise\;
权限:ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.sim.d.ts| +|函数有变化|类名:call
方法 or 属性:function setAudioDevice(device: AudioDevice, callback: AsyncCallback\): void;
|类名:call
方法 or 属性:function setAudioDevice(device: AudioDevice, callback: AsyncCallback\): void;
|@ohos.telephony.call.d.ts| +|函数有变化|类名:call
方法 or 属性:function setAudioDevice(device: AudioDevice, callback: AsyncCallback\): void;
|类名:call
方法 or 属性:function setAudioDevice(device: AudioDevice, options: AudioDeviceOptions, callback: AsyncCallback\): void;
|@ohos.telephony.call.d.ts| +|函数有变化|类名:call
方法 or 属性:function setAudioDevice(device: AudioDevice): Promise\;
|类名:call
方法 or 属性:function setAudioDevice(device: AudioDevice, options?: AudioDeviceOptions): Promise\;
|@ohos.telephony.call.d.ts| +|函数有变化|类名:radio
方法 or 属性:function sendUpdateCellLocationRequest(callback: AsyncCallback\): void;
|类名:radio
方法 or 属性:function sendUpdateCellLocationRequest(callback: AsyncCallback\): void;
|@ohos.telephony.radio.d.ts| +|函数有变化|类名:radio
方法 or 属性:function sendUpdateCellLocationRequest(callback: AsyncCallback\): void;
|类名:radio
方法 or 属性:function sendUpdateCellLocationRequest(slotId: number, callback: AsyncCallback\): void;
|@ohos.telephony.radio.d.ts| +|函数有变化|类名:radio
方法 or 属性:function sendUpdateCellLocationRequest(): Promise\;
|类名:radio
方法 or 属性:function sendUpdateCellLocationRequest(slotId?: number): Promise\;
|@ohos.telephony.radio.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-diff/v3.2-Release/js-apidiff-unitest.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-unitest.md new file mode 100644 index 0000000000000000000000000000000000000000..a0681e6ca9e1c783e6fcb6dc6d73d469f07ef243 --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-unitest.md @@ -0,0 +1,211 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.UiTest
类名: MatchPattern|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: MatchPattern
方法 or 属性: EQUALS = 0|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: MatchPattern
方法 or 属性: CONTAINS = 1|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: MatchPattern
方法 or 属性: STARTS_WITH = 2|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: MatchPattern
方法 or 属性: ENDS_WITH = 3|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: text(txt: string, pattern?: MatchPattern): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: key(key: string): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: id(id: number): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: type(tp: string): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: clickable(b?: boolean): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: scrollable(b?: boolean): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: enabled(b?: boolean): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: focused(b?: boolean): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: selected(b?: boolean): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: isBefore(by: By): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: By
方法 or 属性: isAfter(by: By): By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: click(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: doubleClick(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: longClick(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: getId(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: getKey(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: getText(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: getType(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: isClickable(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: isScrollable(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: isEnabled(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: isFocused(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: isSelected(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: inputText(text: string): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiComponent
方法 or 属性: scrollSearch(by: By): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: static create(): UiDriver;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: delayMs(duration: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: findComponent(by: By): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: findComponents(by: By): Promise\>;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: assertComponentExist(by: By): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: pressBack(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: triggerKey(keyCode: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: click(x: number, y: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: doubleClick(x: number, y: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: longClick(x: number, y: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: swipe(startx: number, starty: number, endx: number, endy: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiDriver
方法 or 属性: screenCap(savePath: string): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: WindowMode|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: WindowMode
方法 or 属性: FULLSCREEN = 0|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: WindowMode
方法 or 属性: PRIMARY = 1|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: WindowMode
方法 or 属性: SECONDARY = 2|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: WindowMode
方法 or 属性: FLOATING = 3|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: ResizeDirection|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: ResizeDirection
方法 or 属性: LEFT = 0|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: ResizeDirection
方法 or 属性: RIGHT = 1|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: ResizeDirection
方法 or 属性: UP = 2|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: ResizeDirection
方法 or 属性: DOWN = 3|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: ResizeDirection
方法 or 属性: LEFT_UP = 4|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: ResizeDirection
方法 or 属性: LEFT_DOWN = 5|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: ResizeDirection
方法 or 属性: RIGHT_UP = 6|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: ResizeDirection
方法 or 属性: RIGHT_DOWN = 7|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: DisplayRotation|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: DisplayRotation
方法 or 属性: ROTATION_0 = 0|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: DisplayRotation
方法 or 属性: ROTATION_90 = 1|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: DisplayRotation
方法 or 属性: ROTATION_180 = 2|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: DisplayRotation
方法 or 属性: ROTATION_270 = 3|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Point|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Point
方法 or 属性: readonly x: number;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Point
方法 or 属性: readonly y: number;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Rect|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Rect
方法 or 属性: readonly left: number;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Rect
方法 or 属性: readonly top: number;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Rect
方法 or 属性: readonly right: number;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Rect
方法 or 属性: readonly bottom: number;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: WindowFilter|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: WindowFilter
方法 or 属性: bundleName?: string;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: WindowFilter
方法 or 属性: title?: string;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: WindowFilter
方法 or 属性: focused?: boolean;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: WindowFilter
方法 or 属性: actived?: boolean;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: text(txt: string, pattern?: MatchPattern): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: id(id: string): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: type(tp: string): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: clickable(b?: boolean): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: longClickable(b?: boolean): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: scrollable(b?: boolean): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: enabled(b?: boolean): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: focused(b?: boolean): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: selected(b?: boolean): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: checked(b?: boolean): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: checkable(b?: boolean): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: isBefore(on: On): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: On
方法 or 属性: isAfter(on: On): On;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: click(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: doubleClick(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: longClick(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: getId(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: getText(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: getType(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: isClickable(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: isLongClickable(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: isScrollable(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: isEnabled(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: isFocused(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: isSelected(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: isChecked(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: isCheckable(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: inputText(text: string): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: clearText(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: scrollToTop(speed?: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: scrollToBottom(speed?: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: scrollSearch(on: On): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: getBounds(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: getBoundsCenter(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: dragTo(target: Component): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: pinchOut(scale: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Component
方法 or 属性: pinchIn(scale: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: static create(): Driver;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: delayMs(duration: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: findComponent(on: On): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: findWindow(filter: WindowFilter): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: waitForComponent(on: On, time: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: findComponents(on: On): Promise\>;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: assertComponentExist(on: On): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: pressBack(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: triggerKey(keyCode: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: triggerCombineKeys(key0: number, key1: number, key2?: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: click(x: number, y: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: doubleClick(x: number, y: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: longClick(x: number, y: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: swipe(startx: number, starty: number, endx: number, endy: number, speed?: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: drag(startx: number, starty: number, endx: number, endy: number, speed?: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: screenCap(savePath: string): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: setDisplayRotation(rotation: DisplayRotation): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: getDisplayRotation(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: setDisplayRotationEnabled(enabled: boolean): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: getDisplaySize(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: getDisplayDensity(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: wakeUpDisplay(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: pressHome(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: waitForIdle(idleTime: number, timeout: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: fling(from: Point, to: Point, stepLen: number, speed: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: Driver
方法 or 属性: injectMultiPointerAction(pointers: PointerMatrix, speed?: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: getBundleName(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: getBounds(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: getTitle(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: getWindowMode(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: isFocused(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: isActived(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: focus(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: moveTo(x: number, y: number): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: resize(wide: number, height: number, direction: ResizeDirection): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: split(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: maximize(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: minimize(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: resume(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: UiWindow
方法 or 属性: close(): Promise\;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: PointerMatrix|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: PointerMatrix
方法 or 属性: static create(fingers: number, steps: number): PointerMatrix;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: PointerMatrix
方法 or 属性: setPoint(finger: number, step: number, point: Point): void;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: global
方法 or 属性: declare const BY: By;|@ohos.UiTest.d.ts| +|新增|NA|模块名: ohos.UiTest
类名: global
方法 or 属性: declare const ON: On;|@ohos.UiTest.d.ts| +|删除|模块名: ohos.uitest
类名: MatchPattern|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: MatchPattern
方法 or 属性:EQUALS = 0|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: MatchPattern
方法 or 属性:CONTAINS = 1|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: MatchPattern
方法 or 属性:STARTS_WITH = 2|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: MatchPattern
方法 or 属性:ENDS_WITH = 3|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:text(txt:string,pattern?:MatchPattern):By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:key(key:string):By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:id(id:number):By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:type(tp:string):By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:clickable(b?:bool):By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:scrollable(b?:bool):By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:enabled(b?:bool):By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:focused(b?:bool):By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:selected(b?:bool):By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:isBefore(by:By):By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: By
方法 or 属性:isAfter(by:By):By;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:click():Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:doubleClick():Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:longClick():Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:getId():Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:getKey():Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:getText():Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:getType():Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:isClickable():Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:isScrollable():Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:isEnabled():Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:isFocused():Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:isSelected():Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:inputText(text: string):Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiComponent
方法 or 属性:scrollSearch(by:By):Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:static create():UiDriver;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:delayMs(duration:number):Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:findComponent(by:By):Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:findComponents(by:By):Promise\>;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:assertComponentExist(by:By):Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:pressBack():Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:triggerKey(keyCode:number):Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:click(x:number,y:number):Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:doubleClick(x:number,y:number):Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:longClick(x:number,y:number):Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:swipe(startx:number,starty:number,endx:number,endy:number):Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: UiDriver
方法 or 属性:screenCap(savePath:string):Promise\;|NA|@ohos.uitest.d.ts| +|删除|模块名: ohos.uitest
类名: global
方法 or 属性:const BY:By;|NA|@ohos.uitest.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-update.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-update.md new file mode 100644 index 0000000000000000000000000000000000000000..505689bae3886c1dfac105e2450052aa774463d8 --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-update.md @@ -0,0 +1,417 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:update
方法or属性:function getOnlineUpdater(upgradeInfo: UpgradeInfo): Updater;|@ohos.update.d.ts| +|新增|NA|类名:update
方法or属性:function getRestorer(): Restorer;|@ohos.update.d.ts| +|新增|NA|类名:update
方法or属性:function getLocalUpdater(): LocalUpdater;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:getNewVersionDescription(versionDigestInfo: VersionDigestInfo, descriptionOptions: DescriptionOptions, callback: AsyncCallback\>): void;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:getNewVersionDescription(versionDigestInfo: VersionDigestInfo, descriptionOptions: DescriptionOptions): Promise\>;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:getCurrentVersionInfo(callback: AsyncCallback\): void;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:getCurrentVersionInfo(): Promise\;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:getCurrentVersionDescription(descriptionOptions: DescriptionOptions, callback: AsyncCallback\>): void;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:getCurrentVersionDescription(descriptionOptions: DescriptionOptions): Promise\>;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:getTaskInfo(callback: AsyncCallback\): void;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:getTaskInfo(): Promise\;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:download(versionDigestInfo: VersionDigestInfo, downloadOptions: DownloadOptions, callback: AsyncCallback\): void;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:download(versionDigestInfo: VersionDigestInfo, downloadOptions: DownloadOptions): Promise\;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:resumeDownload(versionDigestInfo: VersionDigestInfo, resumeDownloadOptions: ResumeDownloadOptions, callback: AsyncCallback\): void;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:resumeDownload(versionDigestInfo: VersionDigestInfo, resumeDownloadOptions: ResumeDownloadOptions): Promise\;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:pauseDownload(versionDigestInfo: VersionDigestInfo, pauseDownloadOptions: PauseDownloadOptions, callback: AsyncCallback\): void;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:pauseDownload(versionDigestInfo: VersionDigestInfo, pauseDownloadOptions: PauseDownloadOptions): Promise\;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:upgrade(versionDigestInfo: VersionDigestInfo, upgradeOptions: UpgradeOptions, callback: AsyncCallback\): void;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:upgrade(versionDigestInfo: VersionDigestInfo, upgradeOptions: UpgradeOptions): Promise\;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:clearError(versionDigestInfo: VersionDigestInfo, clearOptions: ClearOptions, callback: AsyncCallback\): void;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:clearError(versionDigestInfo: VersionDigestInfo, clearOptions: ClearOptions): Promise\;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:getUpgradePolicy(callback: AsyncCallback\): void;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:getUpgradePolicy(): Promise\;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:setUpgradePolicy(policy: UpgradePolicy, callback: AsyncCallback\): void;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:setUpgradePolicy(policy: UpgradePolicy): Promise\;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:terminateUpgrade(callback: AsyncCallback\): void;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:terminateUpgrade(): Promise\;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:on(eventClassifyInfo: EventClassifyInfo, taskCallback: UpgradeTaskCallback): void;|@ohos.update.d.ts| +|新增|NA|类名:Updater
方法or属性:off(eventClassifyInfo: EventClassifyInfo, taskCallback?: UpgradeTaskCallback): void;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: Restorer|@ohos.update.d.ts| +|新增|NA|类名:Restorer
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: Restorer
方法 or 属性:factoryReset(callback: AsyncCallback\): void;|@ohos.update.d.ts| +|新增|NA|类名:Restorer
方法or属性:factoryReset(callback: AsyncCallback\): void;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: Restorer
方法 or 属性:factoryReset(): Promise\;|@ohos.update.d.ts| +|新增|NA|类名:Restorer
方法or属性:factoryReset(): Promise\;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: LocalUpdater|@ohos.update.d.ts| +|新增|NA|类名:LocalUpdater
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: LocalUpdater
方法 or 属性:verifyUpgradePackage(upgradeFile: UpgradeFile, certsFile: string, callback: AsyncCallback\): void;|@ohos.update.d.ts| +|新增|NA|类名:LocalUpdater
方法or属性:verifyUpgradePackage(upgradeFile: UpgradeFile, certsFile: string, callback: AsyncCallback\): void;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: LocalUpdater
方法 or 属性:verifyUpgradePackage(upgradeFile: UpgradeFile, certsFile: string): Promise\;|@ohos.update.d.ts| +|新增|NA|类名:LocalUpdater
方法or属性:verifyUpgradePackage(upgradeFile: UpgradeFile, certsFile: string): Promise\;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: LocalUpdater
方法 or 属性:applyNewVersion(upgradeFiles: Array\, callback: AsyncCallback\): void;|@ohos.update.d.ts| +|新增|NA|类名:LocalUpdater
方法or属性:applyNewVersion(upgradeFiles: Array\, callback: AsyncCallback\): void;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: LocalUpdater
方法 or 属性:applyNewVersion(upgradeFiles: Array\): Promise\;|@ohos.update.d.ts| +|新增|NA|类名:LocalUpdater
方法or属性:applyNewVersion(upgradeFiles: Array\): Promise\;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: LocalUpdater
方法 or 属性:on(eventClassifyInfo: EventClassifyInfo, taskCallback: UpgradeTaskCallback): void;|@ohos.update.d.ts| +|新增|NA|类名:LocalUpdater
方法or属性:on(eventClassifyInfo: EventClassifyInfo, taskCallback: UpgradeTaskCallback): void;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: LocalUpdater
方法 or 属性:off(eventClassifyInfo: EventClassifyInfo, taskCallback?: UpgradeTaskCallback): void;|@ohos.update.d.ts| +|新增|NA|类名:LocalUpdater
方法or属性:off(eventClassifyInfo: EventClassifyInfo, taskCallback?: UpgradeTaskCallback): void;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeInfo|@ohos.update.d.ts| +|新增|NA|类名:UpgradeInfo
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeInfo
方法 or 属性:upgradeApp: string;|@ohos.update.d.ts| +|新增|NA|类名:UpgradeInfo
方法or属性:upgradeApp: string;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeInfo
方法 or 属性:businessType: BusinessType;|@ohos.update.d.ts| +|新增|NA|类名:UpgradeInfo
方法or属性:businessType: BusinessType;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: BusinessType|@ohos.update.d.ts| +|新增|NA|类名:BusinessType
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: BusinessType
方法 or 属性:vendor: BusinessVendor;|@ohos.update.d.ts| +|新增|NA|类名:BusinessType
方法or属性:vendor: BusinessVendor;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: BusinessType
方法 or 属性:subType: BusinessSubType;|@ohos.update.d.ts| +|新增|NA|类名:BusinessType
方法or属性:subType: BusinessSubType;|@ohos.update.d.ts| +|新增|NA|类名:CheckResult
方法or属性:isExistNewVersion: boolean;|@ohos.update.d.ts| +|新增|NA|类名:CheckResult
方法or属性:newVersionInfo: NewVersionInfo;|@ohos.update.d.ts| +|新增|NA|类名:NewVersionInfo
方法or属性:versionDigestInfo: VersionDigestInfo;|@ohos.update.d.ts| +|新增|NA|类名:NewVersionInfo
方法or属性:versionComponents: Array\;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: VersionDigestInfo|@ohos.update.d.ts| +|新增|NA|类名:VersionDigestInfo
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: VersionDigestInfo
方法 or 属性:versionDigest: string;|@ohos.update.d.ts| +|新增|NA|类名:VersionDigestInfo
方法or属性:versionDigest: string;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: VersionComponent|@ohos.update.d.ts| +|新增|NA|类名:VersionComponent
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: VersionComponent
方法 or 属性:componentId: string;|@ohos.update.d.ts| +|新增|NA|类名:VersionComponent
方法or属性:componentId: string;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: VersionComponent
方法 or 属性:componentType: ComponentType;|@ohos.update.d.ts| +|新增|NA|类名:VersionComponent
方法or属性:componentType: ComponentType;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: VersionComponent
方法 or 属性:upgradeAction: UpgradeAction;|@ohos.update.d.ts| +|新增|NA|类名:VersionComponent
方法or属性:upgradeAction: UpgradeAction;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: VersionComponent
方法 or 属性:displayVersion: string;|@ohos.update.d.ts| +|新增|NA|类名:VersionComponent
方法or属性:displayVersion: string;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: VersionComponent
方法 or 属性:innerVersion: string;|@ohos.update.d.ts| +|新增|NA|类名:VersionComponent
方法or属性:innerVersion: string;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: VersionComponent
方法 or 属性:size: number;|@ohos.update.d.ts| +|新增|NA|类名:VersionComponent
方法or属性:size: number;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: VersionComponent
方法 or 属性:effectiveMode: EffectiveMode;|@ohos.update.d.ts| +|新增|NA|类名:VersionComponent
方法or属性:effectiveMode: EffectiveMode;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: VersionComponent
方法 or 属性:descriptionInfo: DescriptionInfo;|@ohos.update.d.ts| +|新增|NA|类名:VersionComponent
方法or属性:descriptionInfo: DescriptionInfo;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: DescriptionOptions|@ohos.update.d.ts| +|新增|NA|类名:DescriptionOptions
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: DescriptionOptions
方法 or 属性:format: DescriptionFormat;|@ohos.update.d.ts| +|新增|NA|类名:DescriptionOptions
方法or属性:format: DescriptionFormat;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: DescriptionOptions
方法 or 属性:language: string;|@ohos.update.d.ts| +|新增|NA|类名:DescriptionOptions
方法or属性:language: string;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: ComponentDescription|@ohos.update.d.ts| +|新增|NA|类名:ComponentDescription
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: ComponentDescription
方法 or 属性:componentId: string;|@ohos.update.d.ts| +|新增|NA|类名:ComponentDescription
方法or属性:componentId: string;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: ComponentDescription
方法 or 属性:descriptionInfo: DescriptionInfo;|@ohos.update.d.ts| +|新增|NA|类名:ComponentDescription
方法or属性:descriptionInfo: DescriptionInfo;|@ohos.update.d.ts| +|新增|NA|类名:DescriptionInfo
方法or属性:descriptionType: DescriptionType;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: CurrentVersionInfo|@ohos.update.d.ts| +|新增|NA|类名:CurrentVersionInfo
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: CurrentVersionInfo
方法 or 属性:osVersion: string;|@ohos.update.d.ts| +|新增|NA|类名:CurrentVersionInfo
方法or属性:osVersion: string;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: CurrentVersionInfo
方法 or 属性:deviceName: string;|@ohos.update.d.ts| +|新增|NA|类名:CurrentVersionInfo
方法or属性:deviceName: string;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: CurrentVersionInfo
方法 or 属性:versionComponents: Array\;|@ohos.update.d.ts| +|新增|NA|类名:CurrentVersionInfo
方法or属性:versionComponents: Array\;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: DownloadOptions|@ohos.update.d.ts| +|新增|NA|类名:DownloadOptions
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: DownloadOptions
方法 or 属性:allowNetwork: NetType;|@ohos.update.d.ts| +|新增|NA|类名:DownloadOptions
方法or属性:allowNetwork: NetType;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: DownloadOptions
方法 or 属性:order: Order;|@ohos.update.d.ts| +|新增|NA|类名:DownloadOptions
方法or属性:order: Order;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: ResumeDownloadOptions|@ohos.update.d.ts| +|新增|NA|类名:ResumeDownloadOptions
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: ResumeDownloadOptions
方法 or 属性:allowNetwork: NetType;|@ohos.update.d.ts| +|新增|NA|类名:ResumeDownloadOptions
方法or属性:allowNetwork: NetType;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: PauseDownloadOptions|@ohos.update.d.ts| +|新增|NA|类名:PauseDownloadOptions
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: PauseDownloadOptions
方法 or 属性:isAllowAutoResume: boolean;|@ohos.update.d.ts| +|新增|NA|类名:PauseDownloadOptions
方法or属性:isAllowAutoResume: boolean;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeOptions|@ohos.update.d.ts| +|新增|NA|类名:UpgradeOptions
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeOptions
方法 or 属性:order: Order;|@ohos.update.d.ts| +|新增|NA|类名:UpgradeOptions
方法or属性:order: Order;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: ClearOptions|@ohos.update.d.ts| +|新增|NA|类名:ClearOptions
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: ClearOptions
方法 or 属性:status: UpgradeStatus;|@ohos.update.d.ts| +|新增|NA|类名:ClearOptions
方法or属性:status: UpgradeStatus;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradePolicy|@ohos.update.d.ts| +|新增|NA|类名:UpgradePolicy
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradePolicy
方法 or 属性:downloadStrategy: boolean;|@ohos.update.d.ts| +|新增|NA|类名:UpgradePolicy
方法or属性:downloadStrategy: boolean;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradePolicy
方法 or 属性:autoUpgradeStrategy: boolean;|@ohos.update.d.ts| +|新增|NA|类名:UpgradePolicy
方法or属性:autoUpgradeStrategy: boolean;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradePolicy
方法 or 属性:autoUpgradePeriods: Array\;|@ohos.update.d.ts| +|新增|NA|类名:UpgradePolicy
方法or属性:autoUpgradePeriods: Array\;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradePeriod|@ohos.update.d.ts| +|新增|NA|类名:UpgradePeriod
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradePeriod
方法 or 属性:start: number;|@ohos.update.d.ts| +|新增|NA|类名:UpgradePeriod
方法or属性:start: number;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradePeriod
方法 or 属性:end: number;|@ohos.update.d.ts| +|新增|NA|类名:UpgradePeriod
方法or属性:end: number;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: TaskInfo|@ohos.update.d.ts| +|新增|NA|类名:TaskInfo
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: TaskInfo
方法 or 属性:existTask: boolean;|@ohos.update.d.ts| +|新增|NA|类名:TaskInfo
方法or属性:existTask: boolean;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: TaskInfo
方法 or 属性:taskBody: TaskBody;|@ohos.update.d.ts| +|新增|NA|类名:TaskInfo
方法or属性:taskBody: TaskBody;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventInfo|@ohos.update.d.ts| +|新增|NA|类名:EventInfo
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventInfo
方法 or 属性:eventId: EventId;|@ohos.update.d.ts| +|新增|NA|类名:EventInfo
方法or属性:eventId: EventId;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventInfo
方法 or 属性:taskBody: TaskBody;|@ohos.update.d.ts| +|新增|NA|类名:EventInfo
方法or属性:taskBody: TaskBody;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: TaskBody|@ohos.update.d.ts| +|新增|NA|类名:TaskBody
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: TaskBody
方法 or 属性:versionDigestInfo: VersionDigestInfo;|@ohos.update.d.ts| +|新增|NA|类名:TaskBody
方法or属性:versionDigestInfo: VersionDigestInfo;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: TaskBody
方法 or 属性:status: UpgradeStatus;|@ohos.update.d.ts| +|新增|NA|类名:TaskBody
方法or属性:status: UpgradeStatus;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: TaskBody
方法 or 属性:subStatus: number;|@ohos.update.d.ts| +|新增|NA|类名:TaskBody
方法or属性:subStatus: number;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: TaskBody
方法 or 属性:progress: number;|@ohos.update.d.ts| +|新增|NA|类名:TaskBody
方法or属性:progress: number;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: TaskBody
方法 or 属性:installMode: number;|@ohos.update.d.ts| +|新增|NA|类名:TaskBody
方法or属性:installMode: number;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: TaskBody
方法 or 属性:errorMessages: Array\;|@ohos.update.d.ts| +|新增|NA|类名:TaskBody
方法or属性:errorMessages: Array\;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: TaskBody
方法 or 属性:versionComponents: Array\;|@ohos.update.d.ts| +|新增|NA|类名:TaskBody
方法or属性:versionComponents: Array\;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: ErrorMessage|@ohos.update.d.ts| +|新增|NA|类名:ErrorMessage
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: ErrorMessage
方法 or 属性:errorCode: number;|@ohos.update.d.ts| +|新增|NA|类名:ErrorMessage
方法or属性:errorCode: number;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: ErrorMessage
方法 or 属性:errorMessage: string;|@ohos.update.d.ts| +|新增|NA|类名:ErrorMessage
方法or属性:errorMessage: string;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventClassifyInfo|@ohos.update.d.ts| +|新增|NA|类名:EventClassifyInfo
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventClassifyInfo
方法 or 属性:eventClassify: EventClassify;|@ohos.update.d.ts| +|新增|NA|类名:EventClassifyInfo
方法or属性:eventClassify: EventClassify;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventClassifyInfo
方法 or 属性:extraInfo: string;|@ohos.update.d.ts| +|新增|NA|类名:EventClassifyInfo
方法or属性:extraInfo: string;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeFile|@ohos.update.d.ts| +|新增|NA|类名:UpgradeFile
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeFile
方法 or 属性:fileType: ComponentType;|@ohos.update.d.ts| +|新增|NA|类名:UpgradeFile
方法or属性:fileType: ComponentType;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeFile
方法 or 属性:filePath: string;|@ohos.update.d.ts| +|新增|NA|类名:UpgradeFile
方法or属性:filePath: string;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeTaskCallback|@ohos.update.d.ts| +|新增|NA|类名:UpgradeTaskCallback
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeTaskCallback
方法 or 属性:(eventInfo: EventInfo): void;|@ohos.update.d.ts| +|新增|NA|类名:UpgradeTaskCallback
方法or属性:(eventInfo: EventInfo): void;|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: BusinessVendor|@ohos.update.d.ts| +|新增|NA|类名:BusinessVendor
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: BusinessVendor
方法 or 属性:PUBLIC = "public"|@ohos.update.d.ts| +|新增|NA|类名:BusinessVendor
方法or属性:PUBLIC = "public"|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: BusinessSubType|@ohos.update.d.ts| +|新增|NA|类名:BusinessSubType
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: BusinessSubType
方法 or 属性:FIRMWARE = 1|@ohos.update.d.ts| +|新增|NA|类名:BusinessSubType
方法or属性:FIRMWARE = 1|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: ComponentType|@ohos.update.d.ts| +|新增|NA|类名:ComponentType
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: ComponentType
方法 or 属性:OTA = 1|@ohos.update.d.ts| +|新增|NA|类名:ComponentType
方法or属性:OTA = 1|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeAction|@ohos.update.d.ts| +|新增|NA|类名:UpgradeAction
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeAction
方法 or 属性:UPGRADE = "upgrade"|@ohos.update.d.ts| +|新增|NA|类名:UpgradeAction
方法or属性:UPGRADE = "upgrade"|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeAction
方法 or 属性:RECOVERY = "recovery"|@ohos.update.d.ts| +|新增|NA|类名:UpgradeAction
方法or属性:RECOVERY = "recovery"|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EffectiveMode|@ohos.update.d.ts| +|新增|NA|类名:EffectiveMode
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EffectiveMode
方法 or 属性:COLD = 1|@ohos.update.d.ts| +|新增|NA|类名:EffectiveMode
方法or属性:COLD = 1|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EffectiveMode
方法 or 属性:LIVE = 2|@ohos.update.d.ts| +|新增|NA|类名:EffectiveMode
方法or属性:LIVE = 2|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EffectiveMode
方法 or 属性:LIVE_AND_COLD = 3|@ohos.update.d.ts| +|新增|NA|类名:EffectiveMode
方法or属性:LIVE_AND_COLD = 3|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: DescriptionType|@ohos.update.d.ts| +|新增|NA|类名:DescriptionType
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: DescriptionType
方法 or 属性:CONTENT = 0|@ohos.update.d.ts| +|新增|NA|类名:DescriptionType
方法or属性:CONTENT = 0|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: DescriptionType
方法 or 属性:URI = 1|@ohos.update.d.ts| +|新增|NA|类名:DescriptionType
方法or属性:URI = 1|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: DescriptionFormat|@ohos.update.d.ts| +|新增|NA|类名:DescriptionFormat
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: DescriptionFormat
方法 or 属性:STANDARD = 0|@ohos.update.d.ts| +|新增|NA|类名:DescriptionFormat
方法or属性:STANDARD = 0|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: DescriptionFormat
方法 or 属性:SIMPLIFIED = 1|@ohos.update.d.ts| +|新增|NA|类名:DescriptionFormat
方法or属性:SIMPLIFIED = 1|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: NetType|@ohos.update.d.ts| +|新增|NA|类名:NetType
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: NetType
方法 or 属性:CELLULAR = 1|@ohos.update.d.ts| +|新增|NA|类名:NetType
方法or属性:CELLULAR = 1|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: NetType
方法 or 属性:METERED_WIFI = 2|@ohos.update.d.ts| +|新增|NA|类名:NetType
方法or属性:METERED_WIFI = 2|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: NetType
方法 or 属性:NOT_METERED_WIFI = 4|@ohos.update.d.ts| +|新增|NA|类名:NetType
方法or属性:NOT_METERED_WIFI = 4|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: NetType
方法 or 属性:WIFI = 6|@ohos.update.d.ts| +|新增|NA|类名:NetType
方法or属性:WIFI = 6|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: NetType
方法 or 属性:CELLULAR_AND_WIFI = 7|@ohos.update.d.ts| +|新增|NA|类名:NetType
方法or属性:CELLULAR_AND_WIFI = 7|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: Order|@ohos.update.d.ts| +|新增|NA|类名:Order
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: Order
方法 or 属性:DOWNLOAD = 1|@ohos.update.d.ts| +|新增|NA|类名:Order
方法or属性:DOWNLOAD = 1|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: Order
方法 or 属性:INSTALL = 2|@ohos.update.d.ts| +|新增|NA|类名:Order
方法or属性:INSTALL = 2|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: Order
方法 or 属性:DOWNLOAD_AND_INSTALL = 3|@ohos.update.d.ts| +|新增|NA|类名:Order
方法or属性:DOWNLOAD_AND_INSTALL = 3|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: Order
方法 or 属性:APPLY = 4|@ohos.update.d.ts| +|新增|NA|类名:Order
方法or属性:APPLY = 4|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: Order
方法 or 属性:INSTALL_AND_APPLY = 6|@ohos.update.d.ts| +|新增|NA|类名:Order
方法or属性:INSTALL_AND_APPLY = 6|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeStatus|@ohos.update.d.ts| +|新增|NA|类名:UpgradeStatus
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeStatus
方法 or 属性:WAITING_DOWNLOAD = 20|@ohos.update.d.ts| +|新增|NA|类名:UpgradeStatus
方法or属性:WAITING_DOWNLOAD = 20|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeStatus
方法 or 属性:DOWNLOADING = 21|@ohos.update.d.ts| +|新增|NA|类名:UpgradeStatus
方法or属性:DOWNLOADING = 21|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeStatus
方法 or 属性:DOWNLOAD_PAUSED = 22|@ohos.update.d.ts| +|新增|NA|类名:UpgradeStatus
方法or属性:DOWNLOAD_PAUSED = 22|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeStatus
方法 or 属性:DOWNLOAD_FAIL = 23|@ohos.update.d.ts| +|新增|NA|类名:UpgradeStatus
方法or属性:DOWNLOAD_FAIL = 23|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeStatus
方法 or 属性:WAITING_INSTALL = 30|@ohos.update.d.ts| +|新增|NA|类名:UpgradeStatus
方法or属性:WAITING_INSTALL = 30|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeStatus
方法 or 属性:UPDATING = 31|@ohos.update.d.ts| +|新增|NA|类名:UpgradeStatus
方法or属性:UPDATING = 31|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeStatus
方法 or 属性:WAITING_APPLY = 40|@ohos.update.d.ts| +|新增|NA|类名:UpgradeStatus
方法or属性:WAITING_APPLY = 40|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeStatus
方法 or 属性:APPLYING = 41|@ohos.update.d.ts| +|新增|NA|类名:UpgradeStatus
方法or属性:APPLYING = 41|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeStatus
方法 or 属性:UPGRADE_SUCCESS = 50|@ohos.update.d.ts| +|新增|NA|类名:UpgradeStatus
方法or属性:UPGRADE_SUCCESS = 50|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: UpgradeStatus
方法 or 属性:UPGRADE_FAIL = 51|@ohos.update.d.ts| +|新增|NA|类名:UpgradeStatus
方法or属性:UPGRADE_FAIL = 51|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventClassify|@ohos.update.d.ts| +|新增|NA|类名:EventClassify
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventClassify
方法 or 属性:TASK = 0x01000000|@ohos.update.d.ts| +|新增|NA|类名:EventClassify
方法or属性:TASK = 0x01000000|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventId|@ohos.update.d.ts| +|新增|NA|类名:EventId
方法or属性:|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventId
方法 or 属性:EVENT_TASK_BASE = EventClassify.TASK|@ohos.update.d.ts| +|新增|NA|类名:EventId
方法or属性:EVENT_TASK_BASE = EventClassify.TASK|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventId
方法 or 属性:EVENT_TASK_RECEIVE|@ohos.update.d.ts| +|新增|NA|类名:EventId
方法or属性:EVENT_TASK_RECEIVE|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventId
方法 or 属性:EVENT_TASK_CANCEL|@ohos.update.d.ts| +|新增|NA|类名:EventId
方法or属性:EVENT_TASK_CANCEL|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventId
方法 or 属性:EVENT_DOWNLOAD_WAIT|@ohos.update.d.ts| +|新增|NA|类名:EventId
方法or属性:EVENT_DOWNLOAD_WAIT|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventId
方法 or 属性:EVENT_DOWNLOAD_START|@ohos.update.d.ts| +|新增|NA|类名:EventId
方法or属性:EVENT_DOWNLOAD_START|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventId
方法 or 属性:EVENT_DOWNLOAD_UPDATE|@ohos.update.d.ts| +|新增|NA|类名:EventId
方法or属性:EVENT_DOWNLOAD_UPDATE|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventId
方法 or 属性:EVENT_DOWNLOAD_PAUSE|@ohos.update.d.ts| +|新增|NA|类名:EventId
方法or属性:EVENT_DOWNLOAD_PAUSE|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventId
方法 or 属性:EVENT_DOWNLOAD_RESUME|@ohos.update.d.ts| +|新增|NA|类名:EventId
方法or属性:EVENT_DOWNLOAD_RESUME|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventId
方法 or 属性:EVENT_DOWNLOAD_SUCCESS|@ohos.update.d.ts| +|新增|NA|类名:EventId
方法or属性:EVENT_DOWNLOAD_SUCCESS|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventId
方法 or 属性:EVENT_DOWNLOAD_FAIL|@ohos.update.d.ts| +|新增|NA|类名:EventId
方法or属性:EVENT_DOWNLOAD_FAIL|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventId
方法 or 属性:EVENT_UPGRADE_WAIT|@ohos.update.d.ts| +|新增|NA|类名:EventId
方法or属性:EVENT_UPGRADE_WAIT|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventId
方法 or 属性:EVENT_UPGRADE_START|@ohos.update.d.ts| +|新增|NA|类名:EventId
方法or属性:EVENT_UPGRADE_START|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventId
方法 or 属性:EVENT_UPGRADE_UPDATE|@ohos.update.d.ts| +|新增|NA|类名:EventId
方法or属性:EVENT_UPGRADE_UPDATE|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventId
方法 or 属性:EVENT_APPLY_WAIT|@ohos.update.d.ts| +|新增|NA|类名:EventId
方法or属性:EVENT_APPLY_WAIT|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventId
方法 or 属性:EVENT_APPLY_START|@ohos.update.d.ts| +|新增|NA|类名:EventId
方法or属性:EVENT_APPLY_START|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventId
方法 or 属性:EVENT_UPGRADE_SUCCESS|@ohos.update.d.ts| +|新增|NA|类名:EventId
方法or属性:EVENT_UPGRADE_SUCCESS|@ohos.update.d.ts| +|新增|NA|模块名: ohos.update
类名: EventId
方法 or 属性:EVENT_UPGRADE_FAIL|@ohos.update.d.ts| +|新增|NA|类名:EventId
方法or属性:EVENT_UPGRADE_FAIL|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateTypes
方法 or 属性:type UpdateTypes =
'OTA' \|
'patch';|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateTypes
方法 or 属性:type UpdateTypes =
'OTA' \|
'patch';|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: PackageTypes|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: PackageTypes
方法 or 属性:PACKAGE_TYPE_NORMAL = 1|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: PackageTypes
方法 or 属性:PACKAGE_TYPE_BASE = 2|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: PackageTypes
方法 or 属性:PACKAGE_TYPE_CUST = 3|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: PackageTypes
方法 or 属性:PACKAGE_TYPE_PRELOAD = 4|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: PackageTypes
方法 or 属性:PACKAGE_TYPE_COTA = 5|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: PackageTypes
方法 or 属性:PACKAGE_TYPE_VERSION = 6|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: PackageTypes
方法 or 属性:PACKAGE_TYPE_PATCH = 7|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:CheckResult
方法 or 属性:versionName: number;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:CheckResult
方法 or 属性:versionCode: string;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:CheckResult
方法 or 属性:size: number;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:CheckResult
方法 or 属性:verifyInfo: string;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:CheckResult
方法 or 属性:packageType: PackageTypes;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:CheckResult
方法 or 属性:descriptionId: string;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:DescriptionInfo
方法 or 属性:descriptionId: string;|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: NewVersionStatus|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: NewVersionStatus
方法 or 属性:VERSION_STATUS_ERR = -1|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: NewVersionStatus
方法 or 属性:VERSION_STATUS_NEW = 0|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: NewVersionStatus
方法 or 属性:VERSION_STATUS_NONE = 1|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: NewVersionStatus
方法 or 属性:VERSION_STATUS_BUSY = 2|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:NewVersionInfo
方法 or 属性:status: NewVersionStatus;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:NewVersionInfo
方法 or 属性:errMsg: string;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:NewVersionInfo
方法 or 属性:checkResults: Array\;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:NewVersionInfo
方法 or 属性:descriptionInfo: Array\;|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_INIT = 0|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_CHECK_VERSION_ON = 10|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_CHECK_VERSION_FAIL|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_CHECK_VERSION_SUCCESS|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_DOWNLOAD_ON = 20|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_DOWNLOAD_PAUSE|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_DOWNLOAD_CANCEL|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_DOWNLOAD_FAIL|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_DOWNLOAD_SUCCESS|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_VERIFY_ON = 30|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_VERIFY_FAIL|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_VERIFY_SUCCESS|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_PACKAGE_TRANS_ON = 70|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_PACKAGE_TRANS_FAIL|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_PACKAGE_TRANS_SUCCESS|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_INSTALL_ON = 80|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_INSTALL_FAIL|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_INSTALL_SUCCESS|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_UPDATE_ON = 90|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_UPDATE_FAIL|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateState
方法 or 属性:UPDATE_STATE_UPDATE_SUCCESS|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: Progress|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: Progress
方法 or 属性:percent: number;|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: Progress
方法 or 属性:status: UpdateState;|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: Progress
方法 or 属性:endReason: string;|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: InstallMode|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: InstallMode
方法 or 属性:INSTALL_MODE_NORMAL|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: InstallMode
方法 or 属性:INSTALL_MODE_NIGHT|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: InstallMode
方法 or 属性:INSTALL_MODE_AUTO|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdatePolicy|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdatePolicy
方法 or 属性:autoDownload: boolean;|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdatePolicy
方法 or 属性:installMode: INSTALL_MODE;|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdatePolicy
方法 or 属性:autoUpgradeInterval: Array\;|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateProgressCallback|NA|@ohos.update.d.ts| +|删除|模块名: ohos.update
类名: UpdateProgressCallback
方法 or 属性:(progress: Progress): void;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:Updater
方法 or 属性:getUpdatePolicy(callback: AsyncCallback\): void;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:Updater
方法 or 属性:getUpdatePolicy(): Promise\;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:Updater
方法 or 属性:setUpdatePolicy(policy: UpdatePolicy, callback: AsyncCallback\): void;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:Updater
方法 or 属性:setUpdatePolicy(policy: UpdatePolicy): Promise\;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:Updater
方法 or 属性:applyNewVersion(callback: AsyncCallback\): void;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:Updater
方法 or 属性:applyNewVersion(): Promise\;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:Updater
方法 or 属性:rebootAndCleanCache(callback: AsyncCallback\): void;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:Updater
方法 or 属性:rebootAndCleanCache(): Promise\;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:Updater
方法 or 属性:rebootAndCleanUserData(callback: AsyncCallback\): void;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:Updater
方法 or 属性:rebootAndCleanUserData(): Promise\;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:Updater
方法 or 属性:verifyUpdatePackage(upgradeFile: string, certsFile: string): void;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:Updater
方法 or 属性:on(eventType: 'downloadProgress', callback: UpdateProgressCallback): void;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:Updater
方法 or 属性:on(eventType: 'upgradeProgress', callback: UpdateProgressCallback): void;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:Updater
方法 or 属性:on(eventType: 'verifyProgress', callback: UpdateProgressCallback): void;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:Updater
方法 or 属性:off(eventType: 'downloadProgress', callback?: UpdateProgressCallback): void;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:Updater
方法 or 属性:off(eventType: 'upgradeProgress', callback?: UpdateProgressCallback): void;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:Updater
方法 or 属性:off(eventType: 'verifyProgress', callback?: UpdateProgressCallback): void;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:Updater
方法 or 属性:cancel(): void;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:update
方法 or 属性:function getUpdater(upgradeFile: string, updateType?: UpdateTypes): Updater;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:update
方法 or 属性:function getUpdaterForOther(upgradeFile: string, device: string, updateType?: UpdateTypes): Updater;|NA|@ohos.update.d.ts| +|删除|模块名:ohos.update
类名:update
方法 or 属性:function getUpdaterFromOther(upgradeFile: string, device: string, updateType?: UpdateTypes): Updater;|NA|@ohos.update.d.ts| +|起始版本有变化|类名:update
起始版本:6|类名:update
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:Updater
起始版本:6|类名:Updater
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:Updater
方法 or 属性:getNewVersionInfo(callback: AsyncCallback\): void;
起始版本:6|类名:Updater
方法 or 属性:getNewVersionInfo(callback: AsyncCallback\): void;
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:Updater
方法 or 属性:getNewVersionInfo(): Promise\;
起始版本:6|类名:Updater
方法 or 属性:getNewVersionInfo(): Promise\;
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:CheckResult
起始版本:6|类名:CheckResult
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:NewVersionInfo
起始版本:6|类名:NewVersionInfo
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:DescriptionInfo
起始版本:6|类名:DescriptionInfo
起始版本:9|@ohos.update.d.ts| +|起始版本有变化|类名:DescriptionInfo
方法 or 属性:content: string;
起始版本:6|类名:DescriptionInfo
方法 or 属性:content: string;
起始版本:9|@ohos.update.d.ts| +|新增(错误码)|NA|类名:Updater
方法 or 属性:getNewVersionInfo(callback: AsyncCallback\): void;
错误码内容: 201, 11500104|@ohos.update.d.ts| +|新增(错误码)|NA|类名:Updater
方法 or 属性:getNewVersionInfo(): Promise\;
错误码内容: 201, 11500104|@ohos.update.d.ts| +|新增(权限)|类名:Updater
方法 or 属性:getNewVersionInfo(callback: AsyncCallback\): void;
权限:N/A|类名:Updater
方法 or 属性:getNewVersionInfo(callback: AsyncCallback\): void;
权限:ohos.permission.UPDATE_SYSTEM|@ohos.update.d.ts| +|新增(权限)|类名:Updater
方法 or 属性:getNewVersionInfo(): Promise\;
权限:N/A|类名:Updater
方法 or 属性:getNewVersionInfo(): Promise\;
权限:ohos.permission.UPDATE_SYSTEM|@ohos.update.d.ts| +|函数有变化|类名:Updater
方法 or 属性:checkNewVersion(callback: AsyncCallback\): void;
|类名:Updater
方法 or 属性:checkNewVersion(callback: AsyncCallback\): void;
|@ohos.update.d.ts| +|函数有变化|类名:Updater
方法 or 属性:checkNewVersion(): Promise\;
|类名:Updater
方法 or 属性:checkNewVersion(): Promise\;
|@ohos.update.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-usb.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-usb.md new file mode 100644 index 0000000000000000000000000000000000000000..ede50e45521ee4e1cccd9c9f7d32506ab5d6f2a0 --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-usb.md @@ -0,0 +1,199 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:usb
方法or属性:function usbFunctionsFromString(funcs: string): number;|@ohos.usb.d.ts| +|新增|NA|类名:usb
方法or属性:function usbFunctionsToString(funcs: FunctionType): string;|@ohos.usb.d.ts| +|新增|NA|类名:usb
方法or属性:function setCurrentFunctions(funcs: FunctionType): Promise\;|@ohos.usb.d.ts| +|新增|NA|类名:usb
方法or属性:function getCurrentFunctions(): FunctionType;|@ohos.usb.d.ts| +|新增|NA|类名:usb
方法or属性:function getPorts(): Array\;|@ohos.usb.d.ts| +|新增|NA|类名:usb
方法or属性:function getSupportedModes(portId: number): PortModeType;|@ohos.usb.d.ts| +|新增|NA|类名:usb
方法or属性:function setPortRoles(portId: number, powerRole: PowerRoleType, dataRole: DataRoleType): Promise\;|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: PowerRoleType|@ohos.usb.d.ts| +|新增|NA|类名:PowerRoleType
方法or属性:|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: PowerRoleType
方法 or 属性:NONE = 0|@ohos.usb.d.ts| +|新增|NA|类名:PowerRoleType
方法or属性:NONE = 0|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: PowerRoleType
方法 or 属性:SOURCE = 1|@ohos.usb.d.ts| +|新增|NA|类名:PowerRoleType
方法or属性:SOURCE = 1|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: PowerRoleType
方法 or 属性:SINK = 2|@ohos.usb.d.ts| +|新增|NA|类名:PowerRoleType
方法or属性:SINK = 2|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: DataRoleType|@ohos.usb.d.ts| +|新增|NA|类名:DataRoleType
方法or属性:|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: DataRoleType
方法 or 属性:NONE = 0|@ohos.usb.d.ts| +|新增|NA|类名:DataRoleType
方法or属性:NONE = 0|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: DataRoleType
方法 or 属性:HOST = 1|@ohos.usb.d.ts| +|新增|NA|类名:DataRoleType
方法or属性:HOST = 1|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: DataRoleType
方法 or 属性:DEVICE = 2|@ohos.usb.d.ts| +|新增|NA|类名:DataRoleType
方法or属性:DEVICE = 2|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: PortModeType|@ohos.usb.d.ts| +|新增|NA|类名:PortModeType
方法or属性:|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: PortModeType
方法 or 属性:NONE = 0|@ohos.usb.d.ts| +|新增|NA|类名:PortModeType
方法or属性:NONE = 0|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: PortModeType
方法 or 属性:UFP = 1|@ohos.usb.d.ts| +|新增|NA|类名:PortModeType
方法or属性:UFP = 1|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: PortModeType
方法 or 属性:DFP = 2|@ohos.usb.d.ts| +|新增|NA|类名:PortModeType
方法or属性:DFP = 2|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: PortModeType
方法 or 属性:DRP = 3|@ohos.usb.d.ts| +|新增|NA|类名:PortModeType
方法or属性:DRP = 3|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: PortModeType
方法 or 属性:NUM_MODES = 4|@ohos.usb.d.ts| +|新增|NA|类名:PortModeType
方法or属性:NUM_MODES = 4|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: USBPortStatus|@ohos.usb.d.ts| +|新增|NA|类名:USBPortStatus
方法or属性:|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: USBPortStatus
方法 or 属性:currentMode: number;|@ohos.usb.d.ts| +|新增|NA|类名:USBPortStatus
方法or属性:currentMode: number;|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: USBPortStatus
方法 or 属性:currentPowerRole: number;|@ohos.usb.d.ts| +|新增|NA|类名:USBPortStatus
方法or属性:currentPowerRole: number;|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: USBPortStatus
方法 or 属性:currentDataRole: number;|@ohos.usb.d.ts| +|新增|NA|类名:USBPortStatus
方法or属性:currentDataRole: number;|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: USBPort|@ohos.usb.d.ts| +|新增|NA|类名:USBPort
方法or属性:|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: USBPort
方法 or 属性:id: number;|@ohos.usb.d.ts| +|新增|NA|类名:USBPort
方法or属性:id: number;|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: USBPort
方法 or 属性:supportedModes: PortModeType;|@ohos.usb.d.ts| +|新增|NA|类名:USBPort
方法or属性:supportedModes: PortModeType;|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: USBPort
方法 or 属性:status: USBPortStatus;|@ohos.usb.d.ts| +|新增|NA|类名:USBPort
方法or属性:status: USBPortStatus;|@ohos.usb.d.ts| +|新增|NA|类名:USBRequestTargetType
方法or属性:USB_REQUEST_TARGET_INTERFACE = 1|@ohos.usb.d.ts| +|新增|NA|类名:USBRequestTargetType
方法or属性:USB_REQUEST_TARGET_ENDPOINT = 2|@ohos.usb.d.ts| +|新增|NA|类名:USBRequestTargetType
方法or属性:USB_REQUEST_TARGET_OTHER = 3|@ohos.usb.d.ts| +|新增|NA|类名:USBControlRequestType
方法or属性:USB_REQUEST_TYPE_CLASS = 1|@ohos.usb.d.ts| +|新增|NA|类名:USBControlRequestType
方法or属性:USB_REQUEST_TYPE_VENDOR = 2|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: FunctionType|@ohos.usb.d.ts| +|新增|NA|类名:FunctionType
方法or属性:|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: FunctionType
方法 or 属性:NONE = 0|@ohos.usb.d.ts| +|新增|NA|类名:FunctionType
方法or属性:NONE = 0|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: FunctionType
方法 or 属性:ACM = 1|@ohos.usb.d.ts| +|新增|NA|类名:FunctionType
方法or属性:ACM = 1|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: FunctionType
方法 or 属性:ECM = 2|@ohos.usb.d.ts| +|新增|NA|类名:FunctionType
方法or属性:ECM = 2|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: FunctionType
方法 or 属性:HDC = 4|@ohos.usb.d.ts| +|新增|NA|类名:FunctionType
方法or属性:HDC = 4|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: FunctionType
方法 or 属性:MTP = 8|@ohos.usb.d.ts| +|新增|NA|类名:FunctionType
方法or属性:MTP = 8|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: FunctionType
方法 or 属性:PTP = 16|@ohos.usb.d.ts| +|新增|NA|类名:FunctionType
方法or属性:PTP = 16|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: FunctionType
方法 or 属性:RNDIS = 32|@ohos.usb.d.ts| +|新增|NA|类名:FunctionType
方法or属性:RNDIS = 32|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: FunctionType
方法 or 属性:MIDI = 64|@ohos.usb.d.ts| +|新增|NA|类名:FunctionType
方法or属性:MIDI = 64|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: FunctionType
方法 or 属性:AUDIO_SOURCE = 128|@ohos.usb.d.ts| +|新增|NA|类名:FunctionType
方法or属性:AUDIO_SOURCE = 128|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usb
类名: FunctionType
方法 or 属性:NCM = 256|@ohos.usb.d.ts| +|新增|NA|类名:FunctionType
方法or属性:NCM = 256|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function getDevices(): Array\>;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function connectDevice(device: USBDevice): Readonly\;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function hasRight(deviceName: string): boolean;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function requestRight(deviceName: string): Promise\;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function removeRight(deviceName: string): boolean;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function addRight(bundleName: string, deviceName: string): boolean;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function usbFunctionsFromString(funcs: string): number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function usbFunctionsToString(funcs: FunctionType): string;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function setCurrentFunctions(funcs: FunctionType): Promise\;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function getCurrentFunctions(): FunctionType;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function getPorts(): Array\;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function getSupportedModes(portId: number): PortModeType;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function setPortRoles(portId: number, powerRole: PowerRoleType, dataRole: DataRoleType): Promise\;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function setConfiguration(pipe: USBDevicePipe, config: USBConfiguration): number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function setInterface(pipe: USBDevicePipe, iface: USBInterface): number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function getRawDescriptor(pipe: USBDevicePipe): Uint8Array;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function getFileDescriptor(pipe: USBDevicePipe): number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise\;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array,

timeout?: number): Promise\;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: usbManager
方法 or 属性: function closePipe(pipe: USBDevicePipe): number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBEndpoint|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBEndpoint
方法 or 属性: address: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBEndpoint
方法 or 属性: attributes: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBEndpoint
方法 or 属性: interval: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBEndpoint
方法 or 属性: maxPacketSize: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBEndpoint
方法 or 属性: direction: USBRequestDirection;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBEndpoint
方法 or 属性: number: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBEndpoint
方法 or 属性: type: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBEndpoint
方法 or 属性: interfaceId: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBInterface|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBInterface
方法 or 属性: id: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBInterface
方法 or 属性: protocol: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBInterface
方法 or 属性: clazz: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBInterface
方法 or 属性: subClass: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBInterface
方法 or 属性: alternateSetting: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBInterface
方法 or 属性: name: string;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBInterface
方法 or 属性: endpoints: Array\;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBConfiguration|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBConfiguration
方法 or 属性: id: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBConfiguration
方法 or 属性: attributes: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBConfiguration
方法 or 属性: maxPower: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBConfiguration
方法 or 属性: name: string;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBConfiguration
方法 or 属性: isRemoteWakeup: boolean;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBConfiguration
方法 or 属性: isSelfPowered: boolean;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBConfiguration
方法 or 属性: interfaces: Array\;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: busNum: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: devAddress: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: serial: string;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: name: string;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: manufacturerName: string;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: productName: string;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: version: string;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: vendorId: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: productId: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: clazz: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: subClass: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: protocol: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevice
方法 or 属性: configs: Array\;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevicePipe|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevicePipe
方法 or 属性: busNum: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBDevicePipe
方法 or 属性: devAddress: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: PowerRoleType|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: PowerRoleType
方法 or 属性: NONE = 0|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: PowerRoleType
方法 or 属性: SOURCE = 1|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: PowerRoleType
方法 or 属性: SINK = 2|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: DataRoleType|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: DataRoleType
方法 or 属性: NONE = 0|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: DataRoleType
方法 or 属性: HOST = 1|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: DataRoleType
方法 or 属性: DEVICE = 2|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: PortModeType|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: PortModeType
方法 or 属性: NONE = 0|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: PortModeType
方法 or 属性: UFP = 1|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: PortModeType
方法 or 属性: DFP = 2|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: PortModeType
方法 or 属性: DRP = 3|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: PortModeType
方法 or 属性: NUM_MODES = 4|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBPortStatus|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBPortStatus
方法 or 属性: currentMode: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBPortStatus
方法 or 属性: currentPowerRole: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBPortStatus
方法 or 属性: currentDataRole: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBPort|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBPort
方法 or 属性: id: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBPort
方法 or 属性: supportedModes: PortModeType;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBPort
方法 or 属性: status: USBPortStatus;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlParams|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlParams
方法 or 属性: request: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlParams
方法 or 属性: target: USBRequestTargetType;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlParams
方法 or 属性: reqType: USBControlRequestType;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlParams
方法 or 属性: value: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlParams
方法 or 属性: index: number;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlParams
方法 or 属性: data: Uint8Array;|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBRequestTargetType|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBRequestTargetType
方法 or 属性: USB_REQUEST_TARGET_DEVICE = 0|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBRequestTargetType
方法 or 属性: USB_REQUEST_TARGET_INTERFACE = 1|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBRequestTargetType
方法 or 属性: USB_REQUEST_TARGET_ENDPOINT = 2|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBRequestTargetType
方法 or 属性: USB_REQUEST_TARGET_OTHER = 3|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlRequestType|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlRequestType
方法 or 属性: USB_REQUEST_TYPE_STANDARD = 0|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlRequestType
方法 or 属性: USB_REQUEST_TYPE_CLASS = 1|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBControlRequestType
方法 or 属性: USB_REQUEST_TYPE_VENDOR = 2|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBRequestDirection|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBRequestDirection
方法 or 属性: USB_REQUEST_DIR_TO_DEVICE = 0|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: USBRequestDirection
方法 or 属性: USB_REQUEST_DIR_FROM_DEVICE = 0x80|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType
方法 or 属性: NONE = 0|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType
方法 or 属性: ACM = 1|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType
方法 or 属性: ECM = 2|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType
方法 or 属性: HDC = 4|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType
方法 or 属性: MTP = 8|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType
方法 or 属性: PTP = 16|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType
方法 or 属性: RNDIS = 32|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType
方法 or 属性: MIDI = 64|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType
方法 or 属性: AUDIO_SOURCE = 128|@ohos.usbManager.d.ts| +|新增|NA|模块名: ohos.usbManager
类名: FunctionType
方法 or 属性: NCM = 256|@ohos.usbManager.d.ts| +|废弃版本有变化|类名:usb
废弃版本:N/A|类名:usb
废弃版本:9
代替接口:ohos.usbManager |@ohos.usb.d.ts| +|函数有变化|类名:usb
方法 or 属性:function controlTransfer(pipe: USBDevicePipe, contrlparam: USBControlParams, timeout?: number): Promise\;
|类名:usb
方法 or 属性:function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise\;
|@ohos.usb.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-user-iam.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-user-iam.md new file mode 100644 index 0000000000000000000000000000000000000000..55ee09c63abf59cfb58f53aa4a58a78cee7ff584 --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-user-iam.md @@ -0,0 +1,111 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.userIAM.faceAuth
类名: faceAuth|@ohos.userIAM.faceAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.faceAuth
类名: FaceAuthManager|@ohos.userIAM.faceAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.faceAuth
类名: FaceAuthManager
方法 or 属性: constructor();|@ohos.userIAM.faceAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.faceAuth
类名: FaceAuthManager
方法 or 属性: setSurfaceId(surfaceId: string): void;|@ohos.userIAM.faceAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthEventKey
方法 or 属性:type AuthEventKey = "result" \| "tip";|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:AuthEventKey
方法or属性:type AuthEventKey = "result" \| "tip";|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthEventKey
方法 or 属性:type AuthEventKey = "result" \| "tip";|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:AuthEventKey
方法or属性:type AuthEventKey = "result" \| "tip";|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthEvent|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:AuthEvent
方法or属性:|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthEvent
方法 or 属性:callback(result: EventInfo): void;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:AuthEvent
方法or属性:callback(result: EventInfo): void;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthResultInfo|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:AuthResultInfo
方法or属性:|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthResultInfo
方法 or 属性:result: number;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:AuthResultInfo
方法or属性:result: number;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthResultInfo
方法 or 属性:token ?: Uint8Array;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:AuthResultInfo
方法or属性:token ?: Uint8Array;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthResultInfo
方法 or 属性:remainAttempts ?: number;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:AuthResultInfo
方法or属性:remainAttempts ?: number;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthResultInfo
方法 or 属性:lockoutDuration ?: number;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:AuthResultInfo
方法or属性:lockoutDuration ?: number;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: TipInfo|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:TipInfo
方法or属性:|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: TipInfo
方法 or 属性:module: number;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:TipInfo
方法or属性:module: number;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: TipInfo
方法 or 属性:tip: number;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:TipInfo
方法or属性:tip: number;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthInstance|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:AuthInstance
方法or属性:|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthInstance
方法 or 属性:on: (name: AuthEventKey, callback: AuthEvent) => void;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:AuthInstance
方法or属性:on: (name: AuthEventKey, callback: AuthEvent) => void;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthInstance
方法 or 属性:off: (name: AuthEventKey) => void;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:AuthInstance
方法or属性:off: (name: AuthEventKey) => void;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthInstance
方法 or 属性:start: () => void;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:AuthInstance
方法or属性:start: () => void;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthInstance
方法 or 属性:cancel: () => void;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:AuthInstance
方法or属性:cancel: () => void;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:userAuth
方法or属性:function getAvailableStatus(authType: UserAuthType, authTrustLevel: AuthTrustLevel): void;|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:userAuth
方法or属性:function getAuthInstance(challenge: Uint8Array, authType: UserAuthType, authTrustLevel: AuthTrustLevel): AuthInstance;|@ohos.userIAM.userAuth.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| +|废弃版本有变化|类名:AuthenticationResult
废弃版本:N/A|类名:AuthenticationResult
废弃版本:8
代替接口:ohos.userIAM.userAuth.ResultCode |@ohos.userIAM.userAuth.d.ts| +|废弃版本有变化|类名:Authenticator
废弃版本:N/A|类名:Authenticator
废弃版本:8
代替接口:N/A|@ohos.userIAM.userAuth.d.ts| +|废弃版本有变化|类名:UserAuth
废弃版本:N/A|类名:UserAuth
废弃版本:9
代替接口:ohos.userIAM.userAuth.AuthInstance |@ohos.userIAM.userAuth.d.ts| +|废弃版本有变化|类名:UserAuth
方法 or 属性:constructor();
废弃版本:N/A|类名:UserAuth
方法 or 属性:constructor();
废弃版本:9
代替接口:ohos.userIAM.userAuth.getAuthInstance |@ohos.userIAM.userAuth.d.ts| +|废弃版本有变化|类名:UserAuth
方法 or 属性:auth(challenge: Uint8Array, authType: UserAuthType, authTrustLevel: AuthTrustLevel, callback: IUserAuthCallback): Uint8Array;
废弃版本:N/A|类名:UserAuth
方法 or 属性:auth(challenge: Uint8Array, authType: UserAuthType, authTrustLevel: AuthTrustLevel, callback: IUserAuthCallback): Uint8Array;
废弃版本:9
代替接口:ohos.userIAM.userAuth.AuthInstance.start |@ohos.userIAM.userAuth.d.ts| +|废弃版本有变化|类名:IUserAuthCallback
废弃版本:N/A|类名:IUserAuthCallback
废弃版本:9
代替接口:ohos.userIAM.userAuth.AuthEvent |@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.UserAuthResultCode |@ohos.userIAM.userAuth.d.ts| +|废弃版本有变化|类名:ResultCode
方法 or 属性:SUCCESS = 0
废弃版本:N/A|类名:ResultCode
方法 or 属性:SUCCESS = 0
废弃版本:9
代替接口:N/A|@ohos.userIAM.userAuth.d.ts| +|废弃版本有变化|类名:ResultCode
方法 or 属性:FAIL = 1
废弃版本:N/A|类名:ResultCode
方法 or 属性:FAIL = 1
废弃版本:9
代替接口:N/A|@ohos.userIAM.userAuth.d.ts| +|废弃版本有变化|类名:ResultCode
方法 or 属性:GENERAL_ERROR = 2
废弃版本:N/A|类名:ResultCode
方法 or 属性:GENERAL_ERROR = 2
废弃版本:9
代替接口:N/A|@ohos.userIAM.userAuth.d.ts| +|废弃版本有变化|类名:ResultCode
方法 or 属性:CANCELED = 3
废弃版本:N/A|类名:ResultCode
方法 or 属性:CANCELED = 3
废弃版本:9
代替接口:N/A|@ohos.userIAM.userAuth.d.ts| +|废弃版本有变化|类名:ResultCode
方法 or 属性:TIMEOUT = 4
废弃版本:N/A|类名:ResultCode
方法 or 属性:TIMEOUT = 4
废弃版本:9
代替接口:N/A|@ohos.userIAM.userAuth.d.ts| +|废弃版本有变化|类名:ResultCode
方法 or 属性:TYPE_NOT_SUPPORT = 5
废弃版本:N/A|类名:ResultCode
方法 or 属性:TYPE_NOT_SUPPORT = 5
废弃版本:9
代替接口:N/A|@ohos.userIAM.userAuth.d.ts| +|废弃版本有变化|类名:ResultCode
方法 or 属性:TRUST_LEVEL_NOT_SUPPORT = 6
废弃版本:N/A|类名:ResultCode
方法 or 属性:TRUST_LEVEL_NOT_SUPPORT = 6
废弃版本:9
代替接口:N/A|@ohos.userIAM.userAuth.d.ts| +|废弃版本有变化|类名:ResultCode
方法 or 属性:BUSY = 7
废弃版本:N/A|类名:ResultCode
方法 or 属性:BUSY = 7
废弃版本:9
代替接口:N/A|@ohos.userIAM.userAuth.d.ts| +|废弃版本有变化|类名:ResultCode
方法 or 属性:INVALID_PARAMETERS = 8
废弃版本:N/A|类名:ResultCode
方法 or 属性:INVALID_PARAMETERS = 8
废弃版本:9
代替接口:N/A|@ohos.userIAM.userAuth.d.ts| +|废弃版本有变化|类名:ResultCode
方法 or 属性:LOCKED = 9
废弃版本:N/A|类名:ResultCode
方法 or 属性:LOCKED = 9
废弃版本:9
代替接口:N/A|@ohos.userIAM.userAuth.d.ts| +|废弃版本有变化|类名:ResultCode
方法 or 属性:NOT_ENROLLED = 10
废弃版本:N/A|类名:ResultCode
方法 or 属性:NOT_ENROLLED = 10
废弃版本:9
代替接口:N/A|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:AuthType
方法 or 属性:type AuthType = "ALL" \| "FACE_ONLY";
起始版本:N/A|类名:AuthType
方法 or 属性:type AuthType = "ALL" \| "FACE_ONLY";
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:AuthType
方法 or 属性:type AuthType = "ALL" \| "FACE_ONLY";
起始版本:N/A|类名:AuthType
方法 or 属性:type AuthType = "ALL" \| "FACE_ONLY";
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:SecureLevel
方法 or 属性:type SecureLevel = "S1" \| "S2" \| "S3" \| "S4";
起始版本:N/A|类名:SecureLevel
方法 or 属性:type SecureLevel = "S1" \| "S2" \| "S3" \| "S4";
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:SecureLevel
方法 or 属性:type SecureLevel = "S1" \| "S2" \| "S3" \| "S4";
起始版本:N/A|类名:SecureLevel
方法 or 属性:type SecureLevel = "S1" \| "S2" \| "S3" \| "S4";
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:SecureLevel
方法 or 属性:type SecureLevel = "S1" \| "S2" \| "S3" \| "S4";
起始版本:N/A|类名:SecureLevel
方法 or 属性:type SecureLevel = "S1" \| "S2" \| "S3" \| "S4";
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:SecureLevel
方法 or 属性:type SecureLevel = "S1" \| "S2" \| "S3" \| "S4";
起始版本:N/A|类名:SecureLevel
方法 or 属性:type SecureLevel = "S1" \| "S2" \| "S3" \| "S4";
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:AuthenticationResult
起始版本:N/A|类名:AuthenticationResult
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:AuthenticationResult
方法 or 属性:NO_SUPPORT = -1
起始版本:N/A|类名:AuthenticationResult
方法 or 属性:NO_SUPPORT = -1
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:AuthenticationResult
方法 or 属性:SUCCESS = 0
起始版本:N/A|类名:AuthenticationResult
方法 or 属性:SUCCESS = 0
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:AuthenticationResult
方法 or 属性:COMPARE_FAILURE = 1
起始版本:N/A|类名:AuthenticationResult
方法 or 属性:COMPARE_FAILURE = 1
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:AuthenticationResult
方法 or 属性:CANCELED = 2
起始版本:N/A|类名:AuthenticationResult
方法 or 属性:CANCELED = 2
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:AuthenticationResult
方法 or 属性:TIMEOUT = 3
起始版本:N/A|类名:AuthenticationResult
方法 or 属性:TIMEOUT = 3
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:AuthenticationResult
方法 or 属性:CAMERA_FAIL = 4
起始版本:N/A|类名:AuthenticationResult
方法 or 属性:CAMERA_FAIL = 4
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:AuthenticationResult
方法 or 属性:BUSY = 5
起始版本:N/A|类名:AuthenticationResult
方法 or 属性:BUSY = 5
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:AuthenticationResult
方法 or 属性:INVALID_PARAMETERS = 6
起始版本:N/A|类名:AuthenticationResult
方法 or 属性:INVALID_PARAMETERS = 6
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:AuthenticationResult
方法 or 属性:LOCKED = 7
起始版本:N/A|类名:AuthenticationResult
方法 or 属性:LOCKED = 7
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:AuthenticationResult
方法 or 属性:NOT_ENROLLED = 8
起始版本:N/A|类名:AuthenticationResult
方法 or 属性:NOT_ENROLLED = 8
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:AuthenticationResult
方法 or 属性:GENERAL_ERROR = 100
起始版本:N/A|类名:AuthenticationResult
方法 or 属性:GENERAL_ERROR = 100
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:Authenticator
起始版本:N/A|类名:Authenticator
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:Authenticator
方法 or 属性:execute(type: AuthType, level: SecureLevel, callback: AsyncCallback\): void;
起始版本:N/A|类名:Authenticator
方法 or 属性:execute(type: AuthType, level: SecureLevel, callback: AsyncCallback\): void;
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:Authenticator
方法 or 属性:execute(type: AuthType, level: SecureLevel): Promise\;
起始版本:N/A|类名:Authenticator
方法 or 属性:execute(type: AuthType, level: SecureLevel): Promise\;
起始版本:6|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:IUserAuthCallback
起始版本:N/A|类名:IUserAuthCallback
起始版本:8|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:AuthResult
方法 or 属性:token ?: Uint8Array;
起始版本:N/A|类名:AuthResult
方法 or 属性:token ?: Uint8Array;
起始版本:8|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:AuthResult
方法 or 属性:remainTimes ?: number;
起始版本:N/A|类名:AuthResult
方法 or 属性:remainTimes ?: number;
起始版本:8|@ohos.userIAM.userAuth.d.ts| +|起始版本有变化|类名:AuthResult
方法 or 属性:freezingTime ?: number;
起始版本:N/A|类名:AuthResult
方法 or 属性:freezingTime ?: number;
起始版本:8|@ohos.userIAM.userAuth.d.ts| +|删除(权限)|类名:userAuth
权限:ohos.permission.ACCESS_BIOMETRIC|类名:userAuth
权限:N/A|@ohos.userIAM.userAuth.d.ts| +|新增(权限)|类名:Authenticator
方法 or 属性:execute(type: AuthType, level: SecureLevel, callback: AsyncCallback\): void;
权限:N/A|类名:Authenticator
方法 or 属性:execute(type: AuthType, level: SecureLevel, callback: AsyncCallback\): void;
权限:ohos.permission.ACCESS_BIOMETRIC|@ohos.userIAM.userAuth.d.ts| +|新增(权限)|类名:Authenticator
方法 or 属性:execute(type: AuthType, level: SecureLevel): Promise\;
权限:N/A|类名:Authenticator
方法 or 属性:execute(type: AuthType, level: SecureLevel): Promise\;
权限:ohos.permission.ACCESS_BIOMETRIC|@ohos.userIAM.userAuth.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-web.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-web.md new file mode 100644 index 0000000000000000000000000000000000000000..7ef0432efae5aa71e6e2be92d26612a3a63cb668 --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-web.md @@ -0,0 +1,129 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.web.webview
类名: webview|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHeader|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHeader
方法 or 属性: headerKey: string;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHeader
方法 or 属性: headerValue: string;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHitTestType|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHitTestType
方法 or 属性: EditText|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHitTestType
方法 or 属性: Email|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHitTestType
方法 or 属性: HttpAnchor|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHitTestType
方法 or 属性: HttpAnchorImg|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHitTestType
方法 or 属性: Img|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHitTestType
方法 or 属性: Map|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHitTestType
方法 or 属性: Phone|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebHitTestType
方法 or 属性: Unknown|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestValue|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestValue
方法 or 属性: type: WebHitTestType;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestValue
方法 or 属性: extra: string;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCustomScheme|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCustomScheme
方法 or 属性: schemeName: string;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCustomScheme
方法 or 属性: isSupportCORS: boolean;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCustomScheme
方法 or 属性: isSupportFetch: boolean;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebStorageOrigin|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebStorageOrigin
方法 or 属性: origin: string;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebStorageOrigin
方法 or 属性: usage: number;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebStorageOrigin
方法 or 属性: quota: number;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: webview
方法 or 属性: function once(type: string, callback: Callback\): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebStorage|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebStorage
方法 or 属性: static deleteAllData(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebStorage
方法 or 属性: static deleteOrigin(origin: string): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebStorage
方法 or 属性: static getOrigins(): Promise\>;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebStorage
方法 or 属性: static getOrigins(callback: AsyncCallback\>): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebStorage
方法 or 属性: static getOriginQuota(origin: string): Promise\;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebStorage
方法 or 属性: static getOriginQuota(origin: string, callback: AsyncCallback\): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebStorage
方法 or 属性: static getOriginUsage(origin: string): Promise\ ;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebStorage
方法 or 属性: static getOriginUsage(origin: string, callback: AsyncCallback\): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebDataBase|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebDataBase
方法 or 属性: static existHttpAuthCredentials(): boolean;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebDataBase
方法 or 属性: static deleteHttpAuthCredentials(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebDataBase
方法 or 属性: static getHttpAuthCredentials(host: string, realm: string): Array\;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebDataBase
方法 or 属性: static saveHttpAuthCredentials(host: string, realm: string, username: string, password: string): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: GeolocationPermissions|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: GeolocationPermissions
方法 or 属性: static allowGeolocation(origin: string): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: GeolocationPermissions
方法 or 属性: static deleteGeolocation(origin: string): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: GeolocationPermissions
方法 or 属性: static deleteAllGeolocation(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: GeolocationPermissions
方法 or 属性: static getAccessibleGeolocation(origin: string): Promise\;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: GeolocationPermissions
方法 or 属性: static getAccessibleGeolocation(origin: string, callback: AsyncCallback\): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: GeolocationPermissions
方法 or 属性: static getStoredGeolocation(): Promise\>;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: GeolocationPermissions
方法 or 属性: static getStoredGeolocation(callback: AsyncCallback\>): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法 or 属性: static getCookie(url: string): string;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法 or 属性: static setCookie(url: string, value: string): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法 or 属性: static saveCookieAsync(): Promise\;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法 or 属性: static saveCookieAsync(callback: AsyncCallback\): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法 or 属性: static isCookieAllowed(): boolean;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法 or 属性: static putAcceptCookieEnabled(accept: boolean): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法 or 属性: static isThirdPartyCookieAllowed(): boolean;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法 or 属性: static putAcceptThirdPartyCookieEnabled(accept: boolean): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法 or 属性: static existCookie(): boolean;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法 or 属性: static deleteEntireCookie(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法 or 属性: static deleteSessionCookie(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebMessagePort|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebMessagePort
方法 or 属性: close(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebMessagePort
方法 or 属性: postMessageEvent(message: WebMessage): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebMessagePort
方法 or 属性: onMessageEvent(callback: (result: WebMessage) => void): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HistoryItem|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HistoryItem
方法 or 属性: icon: image.PixelMap;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HistoryItem
方法 or 属性: historyUrl: string;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HistoryItem
方法 or 属性: historyRawUrl: string;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HistoryItem
方法 or 属性: title: string;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: BackForwardList|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: BackForwardList
方法 or 属性: currentIndex: number;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: 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|模块名: ohos.web.webview
类名: WebviewController|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: static initializeWebEngine(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: static setWebDebuggingAccess(webDebuggingAccess: boolean): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: accessForward(): boolean;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: accessBackward(): boolean;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: accessStep(step: number): boolean;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: forward(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: backward(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: clearHistory(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: onActive(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: onInactive(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: refresh(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: loadData(data: string, mimeType: string, encoding: string, baseUrl?: string, historyUrl?: string): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: loadUrl(url: string \| Resource, headers?: Array\): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: getHitTest(): WebHitTestType;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: storeWebArchive(baseName: string, autoName: boolean): Promise\;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: storeWebArchive(baseName: string, autoName: boolean, callback: AsyncCallback\): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: zoom(factor: number): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: zoomIn(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: zoomOut(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: getHitTestValue(): HitTestValue;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: getWebId(): number;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: getUserAgent(): string;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: getTitle(): string;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: getPageHeight(): number;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: backOrForward(step: number): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: requestFocus(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: createWebMessagePorts(): Array\;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: postMessage(name: string, ports: Array\, uri: string): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: stop(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: registerJavaScriptProxy(object: object, name: string, methodList: Array\): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: deleteJavaScriptRegister(name: string): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: searchAllAsync(searchString: string): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: clearMatches(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: searchNext(forward: boolean): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: clearSslCache(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: clearClientAuthenticationCache(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: runJavaScript(script: string): Promise\;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: runJavaScript(script: string, callback: AsyncCallback\): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: getUrl(): string;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: 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|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性: getOriginalUrl(): string;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: 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|模块名: ohos.web.webview
类名: 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|模块名: ohos.web.webview
类名: 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|模块名: ohos.web.webview
类名: 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|模块名: ohos.web.webview
类名: 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|模块名: ohos.web.webview
类名: 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| diff --git a/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-window.md b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-window.md new file mode 100644 index 0000000000000000000000000000000000000000..f1dd5ca853ec7c41c8668426834eaec0a5fddd7c --- /dev/null +++ b/zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-window.md @@ -0,0 +1,467 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: windowAnimationManager|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: windowAnimationManager
方法 or 属性: function setController(controller: WindowAnimationController): void;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: windowAnimationManager
方法 or 属性: function minimizeWindowWithAnimation(windowTarget: WindowAnimationTarget,
callback: AsyncCallback\): void;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: windowAnimationManager
方法 or 属性: function minimizeWindowWithAnimation(windowTarget: WindowAnimationTarget): Promise\;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: RRect|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: RRect
方法 or 属性: left: number;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: RRect
方法 or 属性: top: number;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: RRect
方法 or 属性: width: number;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: RRect
方法 or 属性: height: number;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: RRect
方法 or 属性: radius: number;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: WindowAnimationTarget|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: WindowAnimationTarget
方法 or 属性: readonly bundleName: string;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: WindowAnimationTarget
方法 or 属性: readonly abilityName: string;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: WindowAnimationTarget
方法 or 属性: readonly windowBounds: RRect;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: WindowAnimationTarget
方法 or 属性: readonly missionId: number;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: WindowAnimationFinishedCallback|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: WindowAnimationFinishedCallback
方法 or 属性: onAnimationFinish(): void;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: WindowAnimationController|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: WindowAnimationController
方法 or 属性: onStartAppFromLauncher(startingWindowTarget: WindowAnimationTarget,
finishCallback: WindowAnimationFinishedCallback): void;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: WindowAnimationController
方法 or 属性: onStartAppFromRecent(startingWindowTarget: WindowAnimationTarget,
finishCallback: WindowAnimationFinishedCallback): void;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: WindowAnimationController
方法 or 属性: onStartAppFromOther(startingWindowTarget: WindowAnimationTarget,
finishCallback: WindowAnimationFinishedCallback): void;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: WindowAnimationController
方法 or 属性: onAppTransition(fromWindowTarget: WindowAnimationTarget, toWindowTarget: WindowAnimationTarget,
finishCallback: WindowAnimationFinishedCallback): void;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: WindowAnimationController
方法 or 属性: onMinimizeWindow(minimizingWindowTarget: WindowAnimationTarget,
finishCallback: WindowAnimationFinishedCallback): void;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: WindowAnimationController
方法 or 属性: onCloseWindow(closingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: WindowAnimationController
方法 or 属性: onScreenUnlock(finishCallback: WindowAnimationFinishedCallback): void;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.animation.windowAnimationManager
类名: WindowAnimationController
方法 or 属性: onWindowAnimationTargetsUpdate(fullScreenWindowTarget: WindowAnimationTarget,
floatingWindowTargets: Array\): void;|@ohos.animation.windowAnimationManager.d.ts| +|新增|NA|模块名: ohos.application.WindowExtensionAbility
类名: WindowExtensionAbility|@ohos.application.WindowExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.WindowExtensionAbility
类名: WindowExtensionAbility
方法 or 属性: context: WindowExtensionContext;|@ohos.application.WindowExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.WindowExtensionAbility
类名: WindowExtensionAbility
方法 or 属性: onConnect(want: Want): void;|@ohos.application.WindowExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.WindowExtensionAbility
类名: WindowExtensionAbility
方法 or 属性: onDisconnect(want: Want): void;|@ohos.application.WindowExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.WindowExtensionAbility
类名: WindowExtensionAbility
方法 or 属性: onWindowReady(window: window.Window): void;|@ohos.application.WindowExtensionAbility.d.ts| +|新增|NA|类名:display
方法or属性:function getDefaultDisplaySync(): Display;|@ohos.display.d.ts| +|新增|NA|类名:display
方法or属性:function getAllDisplays(callback: AsyncCallback\>): void;|@ohos.display.d.ts| +|新增|NA|类名:display
方法or属性:function getAllDisplays(): Promise\>;|@ohos.display.d.ts| +|新增|NA|类名:display
方法or属性:function hasPrivateWindow(displayId: number): boolean;|@ohos.display.d.ts| +|新增|NA|模块名: ohos.display
类名: Rect|@ohos.display.d.ts| +|新增|NA|类名:Rect
方法or属性:|@ohos.display.d.ts| +|新增|NA|模块名: ohos.display
类名: Rect
方法 or 属性:left: number;|@ohos.display.d.ts| +|新增|NA|类名:Rect
方法or属性:left: number;|@ohos.display.d.ts| +|新增|NA|模块名: ohos.display
类名: Rect
方法 or 属性:top: number;|@ohos.display.d.ts| +|新增|NA|类名:Rect
方法or属性:top: number;|@ohos.display.d.ts| +|新增|NA|模块名: ohos.display
类名: Rect
方法 or 属性:width: number;|@ohos.display.d.ts| +|新增|NA|类名:Rect
方法or属性:width: number;|@ohos.display.d.ts| +|新增|NA|模块名: ohos.display
类名: Rect
方法 or 属性:height: number;|@ohos.display.d.ts| +|新增|NA|类名:Rect
方法or属性:height: number;|@ohos.display.d.ts| +|新增|NA|模块名: ohos.display
类名: WaterfallDisplayAreaRects|@ohos.display.d.ts| +|新增|NA|类名:WaterfallDisplayAreaRects
方法or属性:|@ohos.display.d.ts| +|新增|NA|模块名: ohos.display
类名: WaterfallDisplayAreaRects
方法 or 属性:readonly left: Rect;|@ohos.display.d.ts| +|新增|NA|类名:WaterfallDisplayAreaRects
方法or属性:readonly left: Rect;|@ohos.display.d.ts| +|新增|NA|模块名: ohos.display
类名: WaterfallDisplayAreaRects
方法 or 属性:readonly right: Rect;|@ohos.display.d.ts| +|新增|NA|类名:WaterfallDisplayAreaRects
方法or属性:readonly right: Rect;|@ohos.display.d.ts| +|新增|NA|模块名: ohos.display
类名: WaterfallDisplayAreaRects
方法 or 属性:readonly top: Rect;|@ohos.display.d.ts| +|新增|NA|类名:WaterfallDisplayAreaRects
方法or属性:readonly top: Rect;|@ohos.display.d.ts| +|新增|NA|模块名: ohos.display
类名: WaterfallDisplayAreaRects
方法 or 属性:readonly bottom: Rect;|@ohos.display.d.ts| +|新增|NA|类名:WaterfallDisplayAreaRects
方法or属性:readonly bottom: Rect;|@ohos.display.d.ts| +|新增|NA|模块名: ohos.display
类名: CutoutInfo|@ohos.display.d.ts| +|新增|NA|类名:CutoutInfo
方法or属性:|@ohos.display.d.ts| +|新增|NA|模块名: ohos.display
类名: CutoutInfo
方法 or 属性:readonly boundingRects: Array\;|@ohos.display.d.ts| +|新增|NA|类名:CutoutInfo
方法or属性:readonly boundingRects: Array\;|@ohos.display.d.ts| +|新增|NA|模块名: ohos.display
类名: CutoutInfo
方法 or 属性:readonly waterfallDisplayAreaRects: WaterfallDisplayAreaRects;|@ohos.display.d.ts| +|新增|NA|类名:CutoutInfo
方法or属性:readonly waterfallDisplayAreaRects: WaterfallDisplayAreaRects;|@ohos.display.d.ts| +|新增|NA|模块名: ohos.display
类名: Display
方法 or 属性:getCutoutInfo(callback: AsyncCallback\): void;|@ohos.display.d.ts| +|新增|NA|类名:Display
方法or属性:getCutoutInfo(callback: AsyncCallback\): void;|@ohos.display.d.ts| +|新增|NA|模块名: ohos.display
类名: Display
方法 or 属性:getCutoutInfo(): Promise\;|@ohos.display.d.ts| +|新增|NA|类名:Display
方法or属性:getCutoutInfo(): Promise\;|@ohos.display.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function getAllScreens(callback: AsyncCallback\>): void;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function getAllScreens(): Promise\>;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function on(eventType: 'connect' \| 'disconnect' \| 'change', callback: Callback\): void;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function on(eventType: 'connect' \| 'disconnect' \| 'change', callback: Callback\): void;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function on(eventType: 'connect' \| 'disconnect' \| 'change', callback: Callback\): void;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function off(eventType: 'connect' \| 'disconnect' \| 'change', callback?: Callback\): void;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function off(eventType: 'connect' \| 'disconnect' \| 'change', callback?: Callback\): void;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function off(eventType: 'connect' \| 'disconnect' \| 'change', callback?: Callback\): void;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function makeExpand(options:Array\, callback: AsyncCallback\): void;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function makeExpand(options:Array\): Promise\;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function makeMirror(mainScreen:number, mirrorScreen:Array\, callback: AsyncCallback\): void;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function makeMirror(mainScreen:number, mirrorScreen:Array\): Promise\;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function createVirtualScreen(options:VirtualScreenOption, callback: AsyncCallback\): void;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function createVirtualScreen(options:VirtualScreenOption): Promise\;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function destroyVirtualScreen(screenId:number, callback: AsyncCallback\): void;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function destroyVirtualScreen(screenId:number): Promise\;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function setVirtualScreenSurface(screenId:number, surfaceId: string, callback: AsyncCallback\): void;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function setVirtualScreenSurface(screenId:number, surfaceId: string): Promise\;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function isScreenRotationLocked(callback: AsyncCallback\): void;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function isScreenRotationLocked(): Promise\;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function setScreenRotationLocked(isLocked:boolean, callback: AsyncCallback\): void;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: screen
方法 or 属性: function setScreenRotationLocked(isLocked:boolean): Promise\;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: ExpandOption|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: ExpandOption
方法 or 属性: screenId: number;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: ExpandOption
方法 or 属性: startX: number;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: ExpandOption
方法 or 属性: startY: number;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: VirtualScreenOption|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: VirtualScreenOption
方法 or 属性: name: string|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: VirtualScreenOption
方法 or 属性: width: number|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: VirtualScreenOption
方法 or 属性: height: number|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: VirtualScreenOption
方法 or 属性: density: number|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: VirtualScreenOption
方法 or 属性: surfaceId: string|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: Screen|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: Screen
方法 or 属性: readonly id: number;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: Screen
方法 or 属性: readonly parent: number;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: Screen
方法 or 属性: readonly supportedModeInfo: Array\;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: Screen
方法 or 属性: readonly activeModeIndex: number;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: Screen
方法 or 属性: readonly orientation: Orientation;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: Screen
方法 or 属性: setOrientation(orientation: Orientation, callback: AsyncCallback\): void;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: Screen
方法 or 属性: setOrientation(orientation: Orientation): Promise\;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: Screen
方法 or 属性: setScreenActiveMode(modeIndex: number, callback: AsyncCallback\): void;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: Screen
方法 or 属性: setScreenActiveMode(modeIndex: number): Promise\;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: Screen
方法 or 属性: setDensityDpi(densityDpi: number, callback: AsyncCallback\): void;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: Screen
方法 or 属性: setDensityDpi(densityDpi: number): Promise\;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: Orientation|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: Orientation
方法 or 属性: UNSPECIFIED = 0|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: Orientation
方法 or 属性: VERTICAL = 1|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: Orientation
方法 or 属性: HORIZONTAL = 2|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: Orientation
方法 or 属性: REVERSE_VERTICAL = 3|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: Orientation
方法 or 属性: REVERSE_HORIZONTAL = 4|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: ScreenModeInfo|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: ScreenModeInfo
方法 or 属性: id: number;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: ScreenModeInfo
方法 or 属性: width: number;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: ScreenModeInfo
方法 or 属性: height: number;|@ohos.screen.d.ts| +|新增|NA|模块名: ohos.screen
类名: ScreenModeInfo
方法 or 属性: refreshRate: number;|@ohos.screen.d.ts| +|新增|NA|类名:WindowType
方法or属性:TYPE_INPUT_METHOD|@ohos.window.d.ts| +|新增|NA|类名:WindowType
方法or属性:TYPE_STATUS_BAR|@ohos.window.d.ts| +|新增|NA|类名:WindowType
方法or属性:TYPE_PANEL|@ohos.window.d.ts| +|新增|NA|类名:WindowType
方法or属性:TYPE_KEYGUARD|@ohos.window.d.ts| +|新增|NA|类名:WindowType
方法or属性:TYPE_VOLUME_OVERLAY|@ohos.window.d.ts| +|新增|NA|类名:WindowType
方法or属性:TYPE_NAVIGATION_BAR|@ohos.window.d.ts| +|新增|NA|类名:WindowType
方法or属性:TYPE_FLOAT|@ohos.window.d.ts| +|新增|NA|类名:WindowType
方法or属性:TYPE_WALLPAPER|@ohos.window.d.ts| +|新增|NA|类名:WindowType
方法or属性:TYPE_DESKTOP|@ohos.window.d.ts| +|新增|NA|类名:WindowType
方法or属性:TYPE_LAUNCHER_RECENT|@ohos.window.d.ts| +|新增|NA|类名:WindowType
方法or属性:TYPE_LAUNCHER_DOCK|@ohos.window.d.ts| +|新增|NA|类名:WindowType
方法or属性:TYPE_VOICE_INTERACTION|@ohos.window.d.ts| +|新增|NA|类名:WindowType
方法or属性:TYPE_POINTER|@ohos.window.d.ts| +|新增|NA|类名:WindowType
方法or属性:TYPE_FLOAT_CAMERA|@ohos.window.d.ts| +|新增|NA|类名:WindowType
方法or属性:TYPE_DIALOG|@ohos.window.d.ts| +|新增|NA|类名:WindowType
方法or属性:TYPE_SCREENSHOT|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: AvoidAreaType
方法 or 属性:TYPE_SYSTEM_GESTURE|@ohos.window.d.ts| +|新增|NA|类名:AvoidAreaType
方法or属性:TYPE_SYSTEM_GESTURE|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: AvoidAreaType
方法 or 属性:TYPE_KEYBOARD|@ohos.window.d.ts| +|新增|NA|类名:AvoidAreaType
方法or属性:TYPE_KEYBOARD|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowLayoutMode|@ohos.window.d.ts| +|新增|NA|类名:WindowLayoutMode
方法or属性:|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowLayoutMode
方法 or 属性:WINDOW_LAYOUT_MODE_CASCADE|@ohos.window.d.ts| +|新增|NA|类名:WindowLayoutMode
方法or属性:WINDOW_LAYOUT_MODE_CASCADE|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowLayoutMode
方法 or 属性:WINDOW_LAYOUT_MODE_TILE|@ohos.window.d.ts| +|新增|NA|类名:WindowLayoutMode
方法or属性:WINDOW_LAYOUT_MODE_TILE|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: AvoidArea
方法 or 属性:visible: boolean;|@ohos.window.d.ts| +|新增|NA|类名:AvoidArea
方法or属性:visible: boolean;|@ohos.window.d.ts| +|新增|NA|类名:WindowProperties
方法or属性:id: number|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: ScaleOptions|@ohos.window.d.ts| +|新增|NA|类名:ScaleOptions
方法or属性:|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: ScaleOptions
方法 or 属性:x?: number;|@ohos.window.d.ts| +|新增|NA|类名:ScaleOptions
方法or属性:x?: number;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: ScaleOptions
方法 or 属性:y?: number;|@ohos.window.d.ts| +|新增|NA|类名:ScaleOptions
方法or属性:y?: number;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: ScaleOptions
方法 or 属性:pivotX?: number;|@ohos.window.d.ts| +|新增|NA|类名:ScaleOptions
方法or属性:pivotX?: number;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: ScaleOptions
方法 or 属性:pivotY?: number;|@ohos.window.d.ts| +|新增|NA|类名:ScaleOptions
方法or属性:pivotY?: number;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: RotateOptions|@ohos.window.d.ts| +|新增|NA|类名:RotateOptions
方法or属性:|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: RotateOptions
方法 or 属性:x?: number;|@ohos.window.d.ts| +|新增|NA|类名:RotateOptions
方法or属性:x?: number;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: RotateOptions
方法 or 属性:y?: number;|@ohos.window.d.ts| +|新增|NA|类名:RotateOptions
方法or属性:y?: number;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: RotateOptions
方法 or 属性:z?: number;|@ohos.window.d.ts| +|新增|NA|类名:RotateOptions
方法or属性:z?: number;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: RotateOptions
方法 or 属性:pivotX?: number;|@ohos.window.d.ts| +|新增|NA|类名:RotateOptions
方法or属性:pivotX?: number;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: RotateOptions
方法 or 属性:pivotY?: number;|@ohos.window.d.ts| +|新增|NA|类名:RotateOptions
方法or属性:pivotY?: number;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: TranslateOptions|@ohos.window.d.ts| +|新增|NA|类名:TranslateOptions
方法or属性:|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: TranslateOptions
方法 or 属性:x?: number;|@ohos.window.d.ts| +|新增|NA|类名:TranslateOptions
方法or属性:x?: number;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: TranslateOptions
方法 or 属性:y?: number;|@ohos.window.d.ts| +|新增|NA|类名:TranslateOptions
方法or属性:y?: number;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: TranslateOptions
方法 or 属性:z?: number;|@ohos.window.d.ts| +|新增|NA|类名:TranslateOptions
方法or属性:z?: number;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: TransitionContext|@ohos.window.d.ts| +|新增|NA|类名:TransitionContext
方法or属性:|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: TransitionContext
方法 or 属性:toWindow: Window|@ohos.window.d.ts| +|新增|NA|类名:TransitionContext
方法or属性:toWindow: Window|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: TransitionContext
方法 or 属性:completeTransition(isCompleted: boolean): void;|@ohos.window.d.ts| +|新增|NA|类名:TransitionContext
方法or属性:completeTransition(isCompleted: boolean): void;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: TransitionController|@ohos.window.d.ts| +|新增|NA|类名:TransitionController
方法or属性:|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: TransitionController
方法 or 属性:animationForShown(context: TransitionContext): void;|@ohos.window.d.ts| +|新增|NA|类名:TransitionController
方法or属性:animationForShown(context: TransitionContext): void;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: TransitionController
方法 or 属性:animationForHidden(context: TransitionContext): void;|@ohos.window.d.ts| +|新增|NA|类名:TransitionController
方法or属性:animationForHidden(context: TransitionContext): void;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Configuration|@ohos.window.d.ts| +|新增|NA|类名:Configuration
方法or属性:|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Configuration
方法 or 属性:name: string|@ohos.window.d.ts| +|新增|NA|类名:Configuration
方法or属性:name: string|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Configuration
方法 or 属性:windowType: WindowType|@ohos.window.d.ts| +|新增|NA|类名:Configuration
方法or属性:windowType: WindowType|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Configuration
方法 or 属性:ctx?: BaseContext|@ohos.window.d.ts| +|新增|NA|类名:Configuration
方法or属性:ctx?: BaseContext|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Configuration
方法 or 属性:displayId?: number|@ohos.window.d.ts| +|新增|NA|类名:Configuration
方法or属性:displayId?: number|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Configuration
方法 or 属性:parentId?: number|@ohos.window.d.ts| +|新增|NA|类名:Configuration
方法or属性:parentId?: number|@ohos.window.d.ts| +|新增|NA|类名:window
方法or属性:function createWindow(config: Configuration, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:window
方法or属性:function createWindow(config: Configuration): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:window
方法or属性:function findWindow(name: string): Window;|@ohos.window.d.ts| +|新增|NA|类名:window
方法or属性:function getLastWindow(ctx: BaseContext, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:window
方法or属性:function getLastWindow(ctx: BaseContext): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:window
方法or属性:function minimizeAll(id: number, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:window
方法or属性:function minimizeAll(id: number): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:window
方法or属性:function toggleShownStateForAllAppWindows(callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:window
方法or属性:function toggleShownStateForAllAppWindows(): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:window
方法or属性:function setWindowLayoutMode(mode: WindowLayoutMode, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:window
方法or属性:function setWindowLayoutMode(mode: WindowLayoutMode): Promise\;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Orientation|@ohos.window.d.ts| +|新增|NA|类名:Orientation
方法or属性:|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Orientation
方法 or 属性:UNSPECIFIED = 0|@ohos.window.d.ts| +|新增|NA|类名:Orientation
方法or属性:UNSPECIFIED = 0|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Orientation
方法 or 属性:PORTRAIT = 1|@ohos.window.d.ts| +|新增|NA|类名:Orientation
方法or属性:PORTRAIT = 1|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Orientation
方法 or 属性:LANDSCAPE = 2|@ohos.window.d.ts| +|新增|NA|类名:Orientation
方法or属性:LANDSCAPE = 2|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Orientation
方法 or 属性:PORTRAIT_INVERTED = 3|@ohos.window.d.ts| +|新增|NA|类名:Orientation
方法or属性:PORTRAIT_INVERTED = 3|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Orientation
方法 or 属性:LANDSCAPE_INVERTED = 4|@ohos.window.d.ts| +|新增|NA|类名:Orientation
方法or属性:LANDSCAPE_INVERTED = 4|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Orientation
方法 or 属性:AUTO_ROTATION = 5|@ohos.window.d.ts| +|新增|NA|类名:Orientation
方法or属性:AUTO_ROTATION = 5|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Orientation
方法 or 属性:AUTO_ROTATION_PORTRAIT = 6|@ohos.window.d.ts| +|新增|NA|类名:Orientation
方法or属性:AUTO_ROTATION_PORTRAIT = 6|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Orientation
方法 or 属性:AUTO_ROTATION_LANDSCAPE = 7|@ohos.window.d.ts| +|新增|NA|类名:Orientation
方法or属性:AUTO_ROTATION_LANDSCAPE = 7|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Orientation
方法 or 属性:AUTO_ROTATION_RESTRICTED = 8|@ohos.window.d.ts| +|新增|NA|类名:Orientation
方法or属性:AUTO_ROTATION_RESTRICTED = 8|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Orientation
方法 or 属性:AUTO_ROTATION_PORTRAIT_RESTRICTED = 9|@ohos.window.d.ts| +|新增|NA|类名:Orientation
方法or属性:AUTO_ROTATION_PORTRAIT_RESTRICTED = 9|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Orientation
方法 or 属性:AUTO_ROTATION_LANDSCAPE_RESTRICTED = 10|@ohos.window.d.ts| +|新增|NA|类名:Orientation
方法or属性:AUTO_ROTATION_LANDSCAPE_RESTRICTED = 10|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Orientation
方法 or 属性:LOCKED = 11|@ohos.window.d.ts| +|新增|NA|类名:Orientation
方法or属性:LOCKED = 11|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: BlurStyle|@ohos.window.d.ts| +|新增|NA|类名:BlurStyle
方法or属性:|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: BlurStyle
方法 or 属性:OFF|@ohos.window.d.ts| +|新增|NA|类名:BlurStyle
方法or属性:OFF|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: BlurStyle
方法 or 属性:THIN|@ohos.window.d.ts| +|新增|NA|类名:BlurStyle
方法or属性:THIN|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: BlurStyle
方法 or 属性:REGULAR|@ohos.window.d.ts| +|新增|NA|类名:BlurStyle
方法or属性:REGULAR|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: BlurStyle
方法 or 属性:THICK|@ohos.window.d.ts| +|新增|NA|类名:BlurStyle
方法or属性:THICK|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:hideWithAnimation(callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:hideWithAnimation(): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:showWindow(callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:showWindow(): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:showWithAnimation(callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:showWithAnimation(): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:destroyWindow(callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:destroyWindow(): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:moveWindowTo(x: number, y: number): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:moveWindowTo(x: number, y: number, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:resize(width: number, height: number): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:resize(width: number, height: number, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowMode(mode: WindowMode): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowMode(mode: WindowMode, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:getWindowProperties(): WindowProperties;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:getWindowAvoidArea(type: AvoidAreaType): AvoidArea;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowLayoutFullScreen(isLayoutFullScreen: boolean, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowLayoutFullScreen(isLayoutFullScreen: boolean): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowSystemBarEnable(names: Array\<'status'\|'navigation'>, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowSystemBarEnable(names: Array\<'status'\|'navigation'>): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowSystemBarProperties(systemBarProperties: SystemBarProperties, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowSystemBarProperties(systemBarProperties: SystemBarProperties): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setPreferredOrientation(orientation: Orientation): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setPreferredOrientation(orientation: Orientation, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setUIContent(path: string, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setUIContent(path: string): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:isWindowShowing(): boolean;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:on(type: 'avoidAreaChange', callback: Callback\<{ type: AvoidAreaType, area: AvoidArea }>): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:off(type: 'avoidAreaChange', callback?: Callback\<{ type: AvoidAreaType, area: AvoidArea }>): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:on(type: 'touchOutside', callback: Callback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:off(type: 'touchOutside', callback?: Callback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:on(type: 'screenshot', callback: Callback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:off(type: 'screenshot', callback?: Callback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:bindDialogTarget(token: rpc.RemoteObject, deathCallback: Callback\): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:bindDialogTarget(token: rpc.RemoteObject, deathCallback: Callback\, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:bindDialogTarget(requestInfo: dialogRequest.RequestInfo, deathCallback: Callback\): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:bindDialogTarget(requestInfo: dialogRequest.RequestInfo, deathCallback: Callback\, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:isWindowSupportWideGamut(): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:isWindowSupportWideGamut(callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowColorSpace(colorSpace:ColorSpace): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowColorSpace(colorSpace:ColorSpace, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:getWindowColorSpace(): ColorSpace;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowBackgroundColor(color: string): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowBrightness(brightness: number): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowBrightness(brightness: number, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowFocusable(isFocusable: boolean): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowFocusable(isFocusable: boolean, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowKeepScreenOn(isKeepScreenOn: boolean): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowKeepScreenOn(isKeepScreenOn: boolean, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWakeUpScreen(wakeUp: boolean): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowPrivacyMode(isPrivacyMode: boolean): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowPrivacyMode(isPrivacyMode: boolean, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setSnapshotSkip(isSkip: boolean): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowTouchable(isTouchable: boolean): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setWindowTouchable(isTouchable: boolean, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setForbidSplitMove(isForbidSplitMove: boolean, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setForbidSplitMove(isForbidSplitMove: boolean): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:snapshot(callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:snapshot(): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:opacity(opacity: number): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:scale(scaleOptions: ScaleOptions): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:rotate(rotateOptions: RotateOptions): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:translate(translateOptions: TranslateOptions): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:getTransitionController(): TransitionController;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setBlur(radius: number): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setBackdropBlur(radius: number): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setBackdropBlurStyle(blurStyle: BlurStyle): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setShadow(radius: number, color?: string, offsetX?: number, offsetY?: number): void;|@ohos.window.d.ts| +|新增|NA|类名:Window
方法or属性:setCornerRadius(cornerRadius: number): void;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStageEventType|@ohos.window.d.ts| +|新增|NA|类名:WindowStageEventType
方法or属性:|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStageEventType
方法 or 属性:SHOWN = 1|@ohos.window.d.ts| +|新增|NA|类名:WindowStageEventType
方法or属性:SHOWN = 1|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStageEventType
方法 or 属性:ACTIVE|@ohos.window.d.ts| +|新增|NA|类名:WindowStageEventType
方法or属性:ACTIVE|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStageEventType
方法 or 属性:INACTIVE|@ohos.window.d.ts| +|新增|NA|类名:WindowStageEventType
方法or属性:INACTIVE|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStageEventType
方法 or 属性:HIDDEN|@ohos.window.d.ts| +|新增|NA|类名:WindowStageEventType
方法or属性:HIDDEN|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStage|@ohos.window.d.ts| +|新增|NA|类名:WindowStage
方法or属性:|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStage
方法 or 属性:getMainWindow(): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:WindowStage
方法or属性:getMainWindow(): Promise\;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStage
方法 or 属性:getMainWindow(callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:WindowStage
方法or属性:getMainWindow(callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStage
方法 or 属性:getMainWindowSync(): Window;|@ohos.window.d.ts| +|新增|NA|类名:WindowStage
方法or属性:getMainWindowSync(): Window;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStage
方法 or 属性:createSubWindow(name: string): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:WindowStage
方法or属性:createSubWindow(name: string): Promise\;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStage
方法 or 属性:createSubWindow(name: string, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|类名:WindowStage
方法or属性:createSubWindow(name: string, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStage
方法 or 属性:getSubWindow(): Promise\>;|@ohos.window.d.ts| +|新增|NA|类名:WindowStage
方法or属性:getSubWindow(): Promise\>;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStage
方法 or 属性:getSubWindow(callback: AsyncCallback\>): void;|@ohos.window.d.ts| +|新增|NA|类名:WindowStage
方法or属性:getSubWindow(callback: AsyncCallback\>): void;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStage
方法 or 属性:loadContent(path: string, storage: LocalStorage, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStage
方法 or 属性:loadContent(path: string, storage?: LocalStorage): Promise\;|@ohos.window.d.ts| +|新增|NA|类名:WindowStage
方法or属性:loadContent(path: string, storage?: LocalStorage): Promise\;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStage
方法 or 属性:loadContent(path: string, callback: AsyncCallback\): void;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStage
方法 or 属性:on(eventType: 'windowStageEvent', callback: Callback\): void;|@ohos.window.d.ts| +|新增|NA|类名:WindowStage
方法or属性:on(eventType: 'windowStageEvent', callback: Callback\): void;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStage
方法 or 属性:off(eventType: 'windowStageEvent', callback?: Callback\): void;|@ohos.window.d.ts| +|新增|NA|类名:WindowStage
方法or属性:off(eventType: 'windowStageEvent', callback?: Callback\): void;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStage
方法 or 属性:disableWindowDecor(): void;|@ohos.window.d.ts| +|新增|NA|类名:WindowStage
方法or属性:disableWindowDecor(): void;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStage
方法 or 属性:setShowOnLockScreen(showOnLockScreen: boolean): void;|@ohos.window.d.ts| +|新增|NA|类名:WindowStage
方法or属性:setShowOnLockScreen(showOnLockScreen: boolean): void;|@ohos.window.d.ts| +|新增|NA|模块名: WindowExtensionContext
类名: WindowExtensionContext|WindowExtensionContext.d.ts| +|新增|NA|模块名: WindowExtensionContext
类名: WindowExtensionContext
方法 or 属性: startAbility(want: Want, options: StartOptions, callback: AsyncCallback\): void;|WindowExtensionContext.d.ts| +|新增|NA|模块名: WindowExtensionContext
类名: WindowExtensionContext
方法 or 属性: startAbility(want: Want, options?: StartOptions): Promise\;|WindowExtensionContext.d.ts| +|model有变化|类名:WindowType
方法 or 属性:TYPE_APP
model:N/A|类名:WindowType
方法 or 属性:TYPE_APP
model:@FAModelOnly|@ohos.window.d.ts| +|model有变化|类名:window
方法 or 属性:function create(id: string, type: WindowType, callback: AsyncCallback\): void;
model:N/A|类名:window
方法 or 属性:function create(id: string, type: WindowType, callback: AsyncCallback\): void;
model:@FAModelOnly|@ohos.window.d.ts| +|model有变化|类名:window
方法 or 属性:function create(id: string, type: WindowType): Promise\;
model:N/A|类名:window
方法 or 属性:function create(id: string, type: WindowType): Promise\;
model:@FAModelOnly|@ohos.window.d.ts| +|model有变化|类名:window
方法 or 属性:function getTopWindow(callback: AsyncCallback\): void;
model:N/A|类名:window
方法 or 属性:function getTopWindow(callback: AsyncCallback\): void;
model:@FAModelOnly|@ohos.window.d.ts| +|model有变化|类名:window
方法 or 属性:function getTopWindow(): Promise\;
model:N/A|类名:window
方法 or 属性:function getTopWindow(): Promise\;
model:@FAModelOnly|@ohos.window.d.ts| +|废弃版本有变化|类名:display
方法 or 属性:function getDefaultDisplay(callback: AsyncCallback\): void;
废弃版本:N/A|类名:display
方法 or 属性:function getDefaultDisplay(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.display|@ohos.display.d.ts| +|废弃版本有变化|类名:display
方法 or 属性:function getDefaultDisplay(): Promise\;
废弃版本:N/A|类名:display
方法 or 属性:function getDefaultDisplay(): Promise\;
废弃版本:9
代替接口:ohos.display|@ohos.display.d.ts| +|废弃版本有变化|类名:display
方法 or 属性:function getAllDisplay(callback: AsyncCallback\>): void;
废弃版本:N/A|类名:display
方法 or 属性:function getAllDisplay(callback: AsyncCallback\>): void;
废弃版本:9
代替接口:ohos.display|@ohos.display.d.ts| +|废弃版本有变化|类名:display
方法 or 属性:function getAllDisplay(): Promise\>;
废弃版本:N/A|类名:display
方法 or 属性:function getAllDisplay(): Promise\>;
废弃版本:9
代替接口:ohos.display|@ohos.display.d.ts| +|废弃版本有变化|类名:WindowProperties
方法 or 属性:dimBehindValue: number
废弃版本:N/A|类名:WindowProperties
方法 or 属性:dimBehindValue: number
废弃版本:9
代替接口:N/A|@ohos.window.d.ts| +|废弃版本有变化|类名:WindowProperties
方法 or 属性:isRoundCorner: boolean
废弃版本:N/A|类名:WindowProperties
方法 or 属性:isRoundCorner: boolean
废弃版本:9
代替接口:N/A|@ohos.window.d.ts| +|废弃版本有变化|类名:window
方法 or 属性:function create(id: string, type: WindowType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:window
方法 or 属性:function create(id: string, type: WindowType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window|@ohos.window.d.ts| +|废弃版本有变化|类名:window
方法 or 属性:function create(id: string, type: WindowType): Promise\;
废弃版本:N/A|类名:window
方法 or 属性:function create(id: string, type: WindowType): Promise\;
废弃版本:9
代替接口:ohos.window|@ohos.window.d.ts| +|废弃版本有变化|类名:window
方法 or 属性:function find(id: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:window
方法 or 属性:function find(id: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window|@ohos.window.d.ts| +|废弃版本有变化|类名:window
方法 or 属性:function find(id: string): Promise\;
废弃版本:N/A|类名:window
方法 or 属性:function find(id: string): Promise\;
废弃版本:9
代替接口:ohos.window|@ohos.window.d.ts| +|废弃版本有变化|类名:window
方法 or 属性:function getTopWindow(callback: AsyncCallback\): void;
废弃版本:N/A|类名:window
方法 or 属性:function getTopWindow(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window|@ohos.window.d.ts| +|废弃版本有变化|类名:window
方法 or 属性:function getTopWindow(): Promise\;
废弃版本:N/A|类名:window
方法 or 属性:function getTopWindow(): Promise\;
废弃版本:9
代替接口:ohos.window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:show(callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:show(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:show(): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:show(): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:destroy(callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:destroy(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:destroy(): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:destroy(): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:moveTo(x: number, y: number): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:moveTo(x: number, y: number): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:moveTo(x: number, y: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:moveTo(x: number, y: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:resetSize(width: number, height: number): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:resetSize(width: number, height: number): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:resetSize(width: number, height: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:resetSize(width: number, height: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setWindowType(type: WindowType): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:setWindowType(type: WindowType): Promise\;
废弃版本:9
代替接口:N/A|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setWindowType(type: WindowType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:setWindowType(type: WindowType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:getProperties(callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:getProperties(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:getProperties(): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:getProperties(): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:getAvoidArea(type: AvoidAreaType, callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:getAvoidArea(type: AvoidAreaType, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:getAvoidArea(type: AvoidAreaType): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:getAvoidArea(type: AvoidAreaType): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setFullScreen(isFullScreen: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:setFullScreen(isFullScreen: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setFullScreen(isFullScreen: boolean): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:setFullScreen(isFullScreen: boolean): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setLayoutFullScreen(isLayoutFullScreen: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:setLayoutFullScreen(isLayoutFullScreen: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setLayoutFullScreen(isLayoutFullScreen: boolean): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:setLayoutFullScreen(isLayoutFullScreen: boolean): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setSystemBarEnable(names: Array\<'status'\|'navigation'>, callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:setSystemBarEnable(names: Array\<'status'\|'navigation'>, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setSystemBarEnable(names: Array\<'status'\|'navigation'>): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:setSystemBarEnable(names: Array\<'status'\|'navigation'>): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setSystemBarProperties(systemBarProperties: SystemBarProperties, callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:setSystemBarProperties(systemBarProperties: SystemBarProperties, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setSystemBarProperties(systemBarProperties: SystemBarProperties): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:setSystemBarProperties(systemBarProperties: SystemBarProperties): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:loadContent(path: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:loadContent(path: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:loadContent(path: string): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:loadContent(path: string): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:isShowing(callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:isShowing(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:isShowing(): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:isShowing(): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:on(type: 'systemAvoidAreaChange', callback: Callback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:on(type: 'systemAvoidAreaChange', callback: Callback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:off(type: 'systemAvoidAreaChange', callback?: Callback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:off(type: 'systemAvoidAreaChange', callback?: Callback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:isSupportWideGamut(): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:isSupportWideGamut(): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:isSupportWideGamut(callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:isSupportWideGamut(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setColorSpace(colorSpace:ColorSpace): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:setColorSpace(colorSpace:ColorSpace): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setColorSpace(colorSpace:ColorSpace, callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:setColorSpace(colorSpace:ColorSpace, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:getColorSpace(): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:getColorSpace(): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:getColorSpace(callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:getColorSpace(callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setBackgroundColor(color: string): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:setBackgroundColor(color: string): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setBackgroundColor(color: string, callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:setBackgroundColor(color: string, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setBrightness(brightness: number): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:setBrightness(brightness: number): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setBrightness(brightness: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:setBrightness(brightness: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setDimBehind(dimBehindValue: number, callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:setDimBehind(dimBehindValue: number, callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setDimBehind(dimBehindValue: number): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:setDimBehind(dimBehindValue: number): Promise\;
废弃版本:9
代替接口:N/A|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setFocusable(isFocusable: boolean): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:setFocusable(isFocusable: boolean): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setFocusable(isFocusable: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:setFocusable(isFocusable: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setKeepScreenOn(isKeepScreenOn: boolean): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:setKeepScreenOn(isKeepScreenOn: boolean): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setKeepScreenOn(isKeepScreenOn: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:setKeepScreenOn(isKeepScreenOn: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setOutsideTouchable(touchable: boolean): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:setOutsideTouchable(touchable: boolean): Promise\;
废弃版本:9
代替接口:N/A|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setOutsideTouchable(touchable: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:setOutsideTouchable(touchable: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:N/A|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setPrivacyMode(isPrivacyMode: boolean): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:setPrivacyMode(isPrivacyMode: boolean): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setPrivacyMode(isPrivacyMode: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:setPrivacyMode(isPrivacyMode: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setTouchable(isTouchable: boolean): Promise\;
废弃版本:N/A|类名:Window
方法 or 属性:setTouchable(isTouchable: boolean): Promise\;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|废弃版本有变化|类名:Window
方法 or 属性:setTouchable(isTouchable: boolean, callback: AsyncCallback\): void;
废弃版本:N/A|类名:Window
方法 or 属性:setTouchable(isTouchable: boolean, callback: AsyncCallback\): void;
废弃版本:9
代替接口:ohos.window.Window|@ohos.window.d.ts| +|新增(错误码)|NA|类名:display
方法 or 属性:function on(type: 'add' \| 'remove' \| 'change', callback: Callback\): void;
错误码内容: 401|@ohos.display.d.ts| +|新增(错误码)|NA|类名:display
方法 or 属性:function on(type: 'add' \| 'remove' \| 'change', callback: Callback\): void;
错误码内容: 401|@ohos.display.d.ts| +|新增(错误码)|NA|类名:display
方法 or 属性:function on(type: 'add' \| 'remove' \| 'change', callback: Callback\): void;
错误码内容: 401|@ohos.display.d.ts| +|新增(错误码)|NA|类名:display
方法 or 属性:function off(type: 'add' \| 'remove' \| 'change', callback?: Callback\): void;
错误码内容: 401|@ohos.display.d.ts| +|新增(错误码)|NA|类名:display
方法 or 属性:function off(type: 'add' \| 'remove' \| 'change', callback?: Callback\): void;
错误码内容: 401|@ohos.display.d.ts| +|新增(错误码)|NA|类名:display
方法 or 属性:function off(type: 'add' \| 'remove' \| 'change', callback?: Callback\): void;
错误码内容: 401|@ohos.display.d.ts| +|新增(错误码)|NA|类名:screenshot
方法 or 属性:function save(options?: ScreenshotOptions): Promise\;
错误码内容: 201, 401|@ohos.screenshot.d.ts| +|新增(错误码)|NA|类名:window
方法 or 属性:function on(type: 'systemBarTintChange', callback: Callback\): void;
错误码内容: 401|@ohos.window.d.ts| +|新增(错误码)|NA|类名:window
方法 or 属性:function off(type: 'systemBarTintChange', callback?: Callback\): void;
错误码内容: 401|@ohos.window.d.ts| +|新增(错误码)|NA|类名:Window
方法 or 属性:hide (callback: AsyncCallback\): void;
错误码内容: 1300002|@ohos.window.d.ts| +|新增(错误码)|NA|类名:Window
方法 or 属性:hide(): Promise\;
错误码内容: 1300002|@ohos.window.d.ts| +|新增(错误码)|NA|类名:Window
方法 or 属性:on(type: 'windowSizeChange', callback: Callback\): void;
错误码内容: 401|@ohos.window.d.ts| +|新增(错误码)|NA|类名:Window
方法 or 属性:off(type: 'windowSizeChange', callback?: Callback\): void;
错误码内容: 401|@ohos.window.d.ts| +|新增(错误码)|NA|类名:Window
方法 or 属性:on(type: 'keyboardHeightChange', callback: Callback\): void;
错误码内容: 401|@ohos.window.d.ts| +|新增(错误码)|NA|类名:Window
方法 or 属性:off(type: 'keyboardHeightChange', callback?: Callback\): void;
错误码内容: 401|@ohos.window.d.ts| +|函数有变化|类名:screenshot
方法 or 属性:function save(options?: ScreenshotOptions, callback: AsyncCallback\): void;
|类名:screenshot
方法 or 属性:function save(options: ScreenshotOptions, callback: AsyncCallback\): void;
|@ohos.screenshot.d.ts| +|函数有变化|类名:screenshot
方法 or 属性:function save(options?: ScreenshotOptions, callback: AsyncCallback\): void;
|类名:screenshot
方法 or 属性:function save(callback: AsyncCallback\): void;
|@ohos.screenshot.d.ts| +|函数有变化|类名:window
方法 or 属性:function create(id: string, type: WindowType, callback: AsyncCallback\): void;
|类名:window
方法 or 属性:function create(id: string, type: WindowType, callback: AsyncCallback\): void;
|@ohos.window.d.ts| +|函数有变化|类名:window
方法 or 属性:function create(ctx: Context, id: string, type: WindowType, callback: AsyncCallback\): void;
|类名:window
方法 or 属性:function create(id: string, type: WindowType, callback: AsyncCallback\): void;
|@ohos.window.d.ts| +|函数有变化|类名:window
方法 or 属性:function create(id: string, type: WindowType): Promise\;
|类名:window
方法 or 属性:function create(id: string, type: WindowType): Promise\;
|@ohos.window.d.ts| +|函数有变化|类名:window
方法 or 属性:function create(ctx: Context, id: string, type: WindowType): Promise\;
|类名:window
方法 or 属性:function create(id: string, type: WindowType): Promise\;
|@ohos.window.d.ts| +|函数有变化|类名:window
方法 or 属性:function create(id: string, type: WindowType): Promise\;
|类名:window
方法 or 属性:function create(ctx: BaseContext, id: string, type: WindowType): Promise\;
|@ohos.window.d.ts| +|函数有变化|类名:window
方法 or 属性:function create(ctx: Context, id: string, type: WindowType): Promise\;
|类名:window
方法 or 属性:function create(ctx: BaseContext, id: string, type: WindowType): Promise\;
|@ohos.window.d.ts| +|函数有变化|类名:window
方法 or 属性:function create(id: string, type: WindowType, callback: AsyncCallback\): void;
|类名:window
方法 or 属性:function create(ctx: BaseContext, id: string, type: WindowType, callback: AsyncCallback\): void;
|@ohos.window.d.ts| +|函数有变化|类名:window
方法 or 属性:function create(ctx: Context, id: string, type: WindowType, callback: AsyncCallback\): void;
|类名:window
方法 or 属性:function create(ctx: BaseContext, id: string, type: WindowType, callback: AsyncCallback\): void;
|@ohos.window.d.ts| +|函数有变化|类名:window
方法 or 属性:function getTopWindow(callback: AsyncCallback\): void;
|类名:window
方法 or 属性:function getTopWindow(callback: AsyncCallback\): void;
|@ohos.window.d.ts| +|函数有变化|类名:window
方法 or 属性:function getTopWindow(ctx: Context, callback: AsyncCallback\): void;
|类名:window
方法 or 属性:function getTopWindow(callback: AsyncCallback\): void;
|@ohos.window.d.ts| +|函数有变化|类名:window
方法 or 属性:function getTopWindow(): Promise\;
|类名:window
方法 or 属性:function getTopWindow(): Promise\;
|@ohos.window.d.ts| +|函数有变化|类名:window
方法 or 属性:function getTopWindow(ctx: Context): Promise\;
|类名:window
方法 or 属性:function getTopWindow(): Promise\;
|@ohos.window.d.ts| +|函数有变化|类名:window
方法 or 属性:function getTopWindow(): Promise\;
|类名:window
方法 or 属性:function getTopWindow(ctx: BaseContext): Promise\;
|@ohos.window.d.ts| +|函数有变化|类名:window
方法 or 属性:function getTopWindow(ctx: Context): Promise\;
|类名:window
方法 or 属性:function getTopWindow(ctx: BaseContext): Promise\;
|@ohos.window.d.ts| +|函数有变化|类名:window
方法 or 属性:function getTopWindow(callback: AsyncCallback\): void;
|类名:window
方法 or 属性:function getTopWindow(ctx: BaseContext, callback: AsyncCallback\): void;
|@ohos.window.d.ts| +|函数有变化|类名:window
方法 or 属性:function getTopWindow(ctx: Context, callback: AsyncCallback\): void;
|类名:window
方法 or 属性:function getTopWindow(ctx: BaseContext, callback: AsyncCallback\): void;
|@ohos.window.d.ts| +|函数有变化|类名:Window
方法 or 属性:loadContent(path: string, callback: AsyncCallback\): void;
|类名:Window
方法 or 属性:loadContent(path: string, storage: LocalStorage, callback: AsyncCallback\): void;
|@ohos.window.d.ts| +|函数有变化|类名:Window
方法 or 属性:loadContent(path: string): Promise\;
|类名:Window
方法 or 属性:loadContent(path: string, storage: LocalStorage): Promise\;
|@ohos.window.d.ts| +|函数有变化|类名:Window
方法 or 属性:loadContent(path: string, callback: AsyncCallback\): void;
|类名:Window
方法 or 属性:loadContent(path: string, callback: AsyncCallback\): void;
|@ohos.window.d.ts| +|函数有变化|类名:Window
方法 or 属性:loadContent(path: string): Promise\;
|类名:Window
方法 or 属性:loadContent(path: string): Promise\;
|@ohos.window.d.ts| diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.6.1/changelog-web.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.6.1/changelog-web.md new file mode 100644 index 0000000000000000000000000000000000000000..a60d12ad2408ed795dcd9cbb7fe8f2e0d5191e16 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.6.1/changelog-web.md @@ -0,0 +1,33 @@ +# web子系统ChangeLog + +OpenHarmony 4.0.6.1 版本相较于OpenHarmony 之前的版本,web的API变更如下。 + +## cl.web.1 createWebMessagePorts接口参数 + +由于WebMessagePort需要新增支持更多数据类型,因此在该接口增加一个可选参数来区分新老接口。 + +**变更影响** + +无,可选参数,可前向兼容。 + +**关键的接口/组件变更** + +- 涉及接口 + + createWebMessagePorts(): Array; + +- 变更前: + + ```ts + createWebMessagePorts(): Array; + ``` + +- 变更后: + + ```ts + createWebMessagePorts(isExtentionType?: boolean): Array; + ``` + +**适配指导** + +已有应用无需适配。 \ No newline at end of file diff --git a/zh-cn/release-notes/release-definitions/Release-version-definitions.md b/zh-cn/release-notes/release-definitions/Release-version-definitions.md old mode 100644 new mode 100755 index e17d819f8bb9cfb840b5268474c8490e96bef8ee..7a4f97ed628e69b48113fc3b52d32aa4fbbee13c --- a/zh-cn/release-notes/release-definitions/Release-version-definitions.md +++ b/zh-cn/release-notes/release-definitions/Release-version-definitions.md @@ -25,49 +25,31 @@ OpenHarmony社区Beta分支是在社区开发和演进过程中不定期从Maste OpenHarmony社区基于LTS/Release分支以patch形式合入少量补丁代码,用于解决单点bug、安全漏洞、以及其他必须的适配修改,经过集成验证之后发布的稳定可靠的标签版本。 -### 维护分支下载命令 +社区版本发布在:https://gitee.com/openharmony/docs/tree/master/zh-cn/release-notes -| 分支 | 下载命令(repo + https) | 下载命令(repo + ssh) | -| ------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | -| 1.0.1-Release | repo init -u https://gitee.com/openharmony/manifest -b OpenHarmony_1.0.1_release -m default.xml --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull' | repo init -u git@gitee.com:openharmony/manifest.git -b OpenHarmony-3.1-Release -m default.xml --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull' | -| 3.0-LTS | repo init -u https://gitee.com/openharmony/manifest.git -b OpenHarmony-3.0-LTS --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull' | repo init -u git@gitee.com:openharmony/manifest.git -b OpenHarmony-3.0-LTS --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull' | -| 3.1-Release | repo init -u git@gitee.com:openharmony/manifest.git -b OpenHarmony-3.1-Release -m default.xml --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull' | repo init -u git@gitee.com:openharmony/manifest.git -b OpenHarmony-3.1-Release -m default.xml --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull' | - - - -## 维护策略 - -### 生命周期策略 - -OpenHarmony对已发布的LTS和Release分支提供生命周期管理服务,分为两个部分: - -#### 发布->停止主动维护: - -​ Release sig团队会定期规划维护标签版本计划,用于解决单点bug、安全漏洞、以及其他必须的修改,以此确保分支持续处于稳定可用状态。 +## 生命周期策略 -#### 停止主动维护->停止维护: +OpenHarmony社区依据《OpenHarmony版本生命周期管理》对Release和LTS分支提供维护和技术支持。 -​ Release sig团队不再主动规划和发布标签版本,仅对社区安全漏洞和严重缺陷在对应分支进行修复。 - -### LTS/Release分支维护策略 - -LTS分支:分支发布之日起,提供两年主动维护,并提供1.5年被动维护。 +### 维护时间表 -Release分支:分支发布之日起,提供一年主动维护,并提供一年被动维护。 +OpenHarmony目前已发布的LTS/Release分支的维护时间表如下: -### 分支合入管控策略 +| 分支名 | 分支类型 | 发布时间 | 停止主动维护 | 停止维护 | +| ------------- | -------- | --------- | ------------ | --------- | +| 1.0.1-Release | Release | 2021-3-30 | 2022-3-30 | 2023-3-30 | +| 3.0-LTS | LTS | 2021-9-30 | 2023-9-30 | 2025-3-30 | +| 3.1-Release | Release | 2022-3-30 | 2023-3-30 | 2024-3-30 | -LTS/Release分支发布后,Release sig团队负责其生命周期管理,在维护周期内,我们只接受安全问题、acts套件问题以及其他重大问题的修复及合入,对应分支的合入会严格管控。目前分支合入管控策略已生效,合入请求需要在committer审查通过后联系对应[owner](https://gitee.com/openharmony/community/blob/master/zh/BRANCHOWNER)评论approve后合入。 +分支下载命令如下: -### 维护时间表 +| 分支 | 下载命令(repo + https) | 下载命令(repo + ssh) | +| ------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| 1.0.1-Release | repo init -u https://gitee.com/openharmony/manifest -b OpenHarmony_1.0.1_release -m default.xml --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull' | repo init -u git@gitee.com:openharmony/manifest.git -b OpenHarmony-3.1-Release -m default.xml --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull' | +| 3.0-LTS | repo init -u https://gitee.com/openharmony/manifest.git -b OpenHarmony-3.0-LTS --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull' | repo init -u git@gitee.com:openharmony/manifest.git -b OpenHarmony-3.0-LTS --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull' | +| 3.1-Release | repo init -u git@gitee.com:openharmony/manifest.git -b OpenHarmony-3.1-Release -m default.xml --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull' | repo init -u git@gitee.com:openharmony/manifest.git -b OpenHarmony-3.1-Release -m default.xml --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull' | -OpenHarmony目前已发布的LTS/Release分支的维护时间表如下: -| NO. | 分支名 | 分支类型 | 发布时间 | 停止主动维护 | 停止维护 | -| :--- | ------------- | :------- | :-------- | :----------- | :-------- | -| 1 | 1.0.1-Release | Release | 2021-3-30 | 2022-3-30 | 2023-3-30 | -| 2 | 3.0-LTS | LTS | 2021-9-30 | 2023-9-30 | 2025-3-30 | -| 3 | 3.1-Release | Release | 2022-3-30 | 2023-3-30 | 2024-3-30 | ### 版本计划