未验证 提交 02c45676 编写于 作者: O openharmony_ci 提交者: Gitee

!18940 翻译完成:18271+18264+18432 零散刷新

Merge pull request !18940 from wusongqing/TR18271
...@@ -135,7 +135,7 @@ To create a widget in the stage model, you need to implement lifecycle callbacks ...@@ -135,7 +135,7 @@ To create a widget in the stage model, you need to implement lifecycle callbacks
| Name | Description | Data Type | Default Value Allowed | | Name | Description | Data Type | Default Value Allowed |
| ----------- | ------------------------------------------------------------ | ---------- | -------------------- | | ----------- | ------------------------------------------------------------ | ---------- | -------------------- |
| name | Name of the Extension ability. This field must be specified. | String | No | | name | Name of the Extension ability. This field must be specified. | String | No |
| srcEnty | Path of the Extension ability lifecycle code. This field must be specified.| String | No | | srcEnty | Path of the Extension ability lifecycle code. This field must be specified.| String | No |
| description | Description of the Extension ability. The value can be a string or a resource index to descriptions in multiple languages.| String | Yes (initial value: left empty)| | description | Description of the Extension ability. The value can be a string or a resource index to descriptions in multiple languages.| String | Yes (initial value: left empty)|
| icon | Index of the Extension ability icon file. | String | Yes (initial value: left empty)| | icon | Index of the Extension ability icon file. | String | Yes (initial value: left empty)|
| label | Descriptive information about the Extension ability presented externally. The value can be a string or a resource index to the description.| String | Yes (initial value: left empty)| | label | Descriptive information about the Extension ability presented externally. The value can be a string or a resource index to the description.| String | Yes (initial value: left empty)|
...@@ -242,7 +242,7 @@ You should override **onDestroy** to implement widget data deletion. ...@@ -242,7 +242,7 @@ You should override **onDestroy** to implement widget data deletion.
} }
``` ```
For details about how to implement persistent data storage, see [Lightweight Data Store Development](../database/database-preference-guidelines.md). For details about how to implement persistent data storage, see [Persisting Preferences Data](../database/data-persistence-by-preferences.md).
The **Want** object passed in by the widget host to the widget provider contains a flag that specifies whether the requested widget is normal or temporary. The **Want** object passed in by the widget host to the widget provider contains a flag that specifies whether the requested widget is normal or temporary.
......
...@@ -15,10 +15,11 @@ import bundle from '@ohos.bundle'; ...@@ -15,10 +15,11 @@ import bundle from '@ohos.bundle';
| Required Permissions | Permission Level | Description | | Required Permissions | Permission Level | Description |
|--------------------------------------------|--------------|---------------| |--------------------------------------------|--------------|---------------|
| ohos.permission.CHANGE_ABILITY_ENABLED_STATE | system_basic | Permission to enable or disable an application or ability.|
| ohos.permission.GET_BUNDLE_INFO | normal | Permission to query information about a specified bundle.| | ohos.permission.GET_BUNDLE_INFO | normal | Permission to query information about a specified bundle.|
| ohos.permission.GET_BUNDLE_INFO_PRIVILEGED| system_basic | Permission to query information about all bundles. | | ohos.permission.GET_BUNDLE_INFO_PRIVILEGED| system_basic | Permission to query information about all bundles. |
| ohos.permission.INSTALL_BUNDLE | system_core | Permission to install or uninstall bundles. | | ohos.permission.INSTALL_BUNDLE | system_core | Permission to install or uninstall bundles. |
| ohos.permission.MANAGE_DISPOSED_APP_STATUS | system_core | Permission to set and query the application disposal status. | | ohos.permission.REMOVE_CACHE_FILES | system_basic | Permission to clear cache files of a bundle.|
For details, see [Permission Levels](../../security/accesstoken-overview.md#permission-levels). For details, see [Permission Levels](../../security/accesstoken-overview.md#permission-levels).
...@@ -186,6 +187,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -186,6 +187,7 @@ SystemCapability.BundleManager.BundleFramework
```ts ```ts
let bundleFlag = 0; let bundleFlag = 0;
let userId = 100; let userId = 100;
bundle.getAllBundleInfo(bundleFlag, userId) bundle.getAllBundleInfo(bundleFlag, userId)
.then((data) => { .then((data) => {
console.info('Operation successful. Data: ' + JSON.stringify(data)); console.info('Operation successful. Data: ' + JSON.stringify(data));
...@@ -310,7 +312,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -310,7 +312,7 @@ SystemCapability.BundleManager.BundleFramework
let bundleName = "com.example.myapplication"; let bundleName = "com.example.myapplication";
let bundleFlags = 1; let bundleFlags = 1;
let options = { let options = {
"userId" : 100 "userId": 100
}; };
bundle.getBundleInfo(bundleName, bundleFlags, options) bundle.getBundleInfo(bundleName, bundleFlags, options)
.then((data) => { .then((data) => {
...@@ -360,7 +362,6 @@ bundle.getBundleInfo(bundleName, bundleFlags, (err, data) => { ...@@ -360,7 +362,6 @@ bundle.getBundleInfo(bundleName, bundleFlags, (err, data) => {
}) })
``` ```
## bundle.getBundleInfo<sup>deprecated<sup> ## bundle.getBundleInfo<sup>deprecated<sup>
> This API is deprecated since API version 9. You are advised to use [bundleManager.getBundleInfo](js-apis-bundleManager.md#bundlemanagergetbundleinfo) instead. > This API is deprecated since API version 9. You are advised to use [bundleManager.getBundleInfo](js-apis-bundleManager.md#bundlemanagergetbundleinfo) instead.
...@@ -394,7 +395,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -394,7 +395,7 @@ SystemCapability.BundleManager.BundleFramework
let bundleName = "com.example.myapplication"; let bundleName = "com.example.myapplication";
let bundleFlags = 1; let bundleFlags = 1;
let options = { let options = {
"userId" : 100 "userId": 100
}; };
bundle.getBundleInfo(bundleName, bundleFlags, options, (err, data) => { bundle.getBundleInfo(bundleName, bundleFlags, options, (err, data) => {
if (err) { if (err) {
...@@ -425,7 +426,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -425,7 +426,7 @@ SystemCapability.BundleManager.BundleFramework
**System API** **System API**
This is a system API and cannot be called by third-party applications. This is a system API.
**Return value** **Return value**
...@@ -461,7 +462,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -461,7 +462,7 @@ SystemCapability.BundleManager.BundleFramework
**System API** **System API**
This is a system API and cannot be called by third-party applications. This is a system API.
**Parameters** **Parameters**
...@@ -498,7 +499,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -498,7 +499,7 @@ SystemCapability.BundleManager.BundleFramework
**System API** **System API**
This is a system API and cannot be called by third-party applications. This is a system API.
**Parameters** **Parameters**
...@@ -539,7 +540,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -539,7 +540,7 @@ SystemCapability.BundleManager.BundleFramework
**System API** **System API**
This is a system API and cannot be called by third-party applications. This is a system API.
**Parameters** **Parameters**
...@@ -583,7 +584,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -583,7 +584,7 @@ SystemCapability.BundleManager.BundleFramework
**System API** **System API**
This is a system API and cannot be called by third-party applications. This is a system API.
**Parameters** **Parameters**
...@@ -625,7 +626,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -625,7 +626,7 @@ SystemCapability.BundleManager.BundleFramework
**System API** **System API**
This is a system API and cannot be called by third-party applications. This is a system API.
**Parameters** **Parameters**
...@@ -670,7 +671,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -670,7 +671,7 @@ SystemCapability.BundleManager.BundleFramework
**System API** **System API**
This is a system API and cannot be called by third-party applications. This is a system API.
**Parameters** **Parameters**
...@@ -698,7 +699,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -698,7 +699,7 @@ SystemCapability.BundleManager.BundleFramework
**System API** **System API**
This is a system API and cannot be called by third-party applications. This is a system API.
**Parameters** **Parameters**
...@@ -720,7 +721,7 @@ let flag = bundle.BundleFlag.GET_ABILITY_INFO_WITH_PERMISSION; ...@@ -720,7 +721,7 @@ let flag = bundle.BundleFlag.GET_ABILITY_INFO_WITH_PERMISSION;
let userId = 100; let userId = 100;
let want = { let want = {
bundleName : "com.example.myapplication", bundleName : "com.example.myapplication",
abilityName : "com.example.myapplication.MainAbility" abilityName : "EntryAbility"
}; };
bundle.getAbilityInfo(want, flag, userId).then((abilityInfo) => { bundle.getAbilityInfo(want, flag, userId).then((abilityInfo) => {
...@@ -753,7 +754,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -753,7 +754,7 @@ SystemCapability.BundleManager.BundleFramework
**System API** **System API**
This is a system API and cannot be called by third-party applications. This is a system API.
**Parameters** **Parameters**
...@@ -793,7 +794,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -793,7 +794,7 @@ SystemCapability.BundleManager.BundleFramework
**System API** **System API**
This is a system API and cannot be called by third-party applications. This is a system API.
**Parameters** **Parameters**
...@@ -903,7 +904,7 @@ bundle.getAllApplicationInfo(bundleFlags, userId, (err, data) => { ...@@ -903,7 +904,7 @@ bundle.getAllApplicationInfo(bundleFlags, userId, (err, data) => {
> This API is deprecated since API version 9. You are advised to use [bundleManager.getAllApplicationInfo](js-apis-bundleManager.md#bundlemanagergetallapplicationinfo) instead. > This API is deprecated since API version 9. You are advised to use [bundleManager.getAllApplicationInfo](js-apis-bundleManager.md#bundlemanagergetallapplicationinfo) instead.
getAllApplicationInfo(bundleFlags: number, callback: AsyncCallback<Array\<ApplicationInfo>>) : void; getAllApplicationInfo(bundleFlags: number, callback: AsyncCallback\<Array\<ApplicationInfo\>\>): void;
Obtains the information about all applications of the current user. This API uses an asynchronous callback to return the result. Obtains the information about all applications of the current user. This API uses an asynchronous callback to return the result.
...@@ -1006,7 +1007,6 @@ bundle.getBundleArchiveInfo(hapFilePath, bundleFlags, (err, data) => { ...@@ -1006,7 +1007,6 @@ bundle.getBundleArchiveInfo(hapFilePath, bundleFlags, (err, data) => {
}) })
``` ```
## bundle.getAbilityInfo<sup>deprecated<sup> ## bundle.getAbilityInfo<sup>deprecated<sup>
> This API is deprecated since API version 9. You are advised to use [bundleManager.queryAbilityInfo](js-apis-bundleManager.md#bundlemanagerqueryabilityinfo) instead. > This API is deprecated since API version 9. You are advised to use [bundleManager.queryAbilityInfo](js-apis-bundleManager.md#bundlemanagerqueryabilityinfo) instead.
...@@ -1042,7 +1042,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -1042,7 +1042,7 @@ SystemCapability.BundleManager.BundleFramework
```ts ```ts
let bundleName = "com.example.myapplication"; let bundleName = "com.example.myapplication";
let abilityName = "com.example.myapplication.MainAbility"; let abilityName = "EntryAbility";
bundle.getAbilityInfo(bundleName, abilityName) bundle.getAbilityInfo(bundleName, abilityName)
.then((data) => { .then((data) => {
console.info('Operation successful. Data: ' + JSON.stringify(data)); console.info('Operation successful. Data: ' + JSON.stringify(data));
...@@ -1081,7 +1081,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -1081,7 +1081,7 @@ SystemCapability.BundleManager.BundleFramework
```ts ```ts
let bundleName = "com.example.myapplication"; let bundleName = "com.example.myapplication";
let abilityName = "com.example.myapplication.MainAbility"; let abilityName = "EntryAbility";
bundle.getAbilityInfo(bundleName, abilityName, (err, data) => { bundle.getAbilityInfo(bundleName, abilityName, (err, data) => {
if (err) { if (err) {
console.error('Operation failed. Cause: ' + JSON.stringify(err)); console.error('Operation failed. Cause: ' + JSON.stringify(err));
...@@ -1126,7 +1126,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -1126,7 +1126,7 @@ SystemCapability.BundleManager.BundleFramework
```ts ```ts
let bundleName = "com.example.myapplication"; let bundleName = "com.example.myapplication";
let abilityName = "com.example.myapplication.MainAbility"; let abilityName = "EntryAbility";
bundle.getAbilityLabel(bundleName, abilityName) bundle.getAbilityLabel(bundleName, abilityName)
.then((data) => { .then((data) => {
console.info('Operation successful. Data: ' + JSON.stringify(data)); console.info('Operation successful. Data: ' + JSON.stringify(data));
...@@ -1165,7 +1165,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -1165,7 +1165,7 @@ SystemCapability.BundleManager.BundleFramework
```ts ```ts
let bundleName = "com.example.myapplication"; let bundleName = "com.example.myapplication";
let abilityName = "com.example.myapplication.MainAbility"; let abilityName = "EntryAbility";
bundle.getAbilityLabel(bundleName, abilityName, (err, data) => { bundle.getAbilityLabel(bundleName, abilityName, (err, data) => {
if (err) { if (err) {
console.error('Operation failed. Cause: ' + JSON.stringify(err)); console.error('Operation failed. Cause: ' + JSON.stringify(err));
...@@ -1203,7 +1203,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -1203,7 +1203,7 @@ SystemCapability.BundleManager.BundleFramework
```ts ```ts
let bundleName = "com.example.myapplication"; let bundleName = "com.example.myapplication";
let abilityName = "com.example.myapplication.MainAbility"; let abilityName = "EntryAbility";
bundle.getAbilityInfo(bundleName, abilityName).then((abilityInfo)=>{ bundle.getAbilityInfo(bundleName, abilityName).then((abilityInfo)=>{
bundle.isAbilityEnabled(abilityInfo).then((data) => { bundle.isAbilityEnabled(abilityInfo).then((data) => {
console.info('Operation successful. Data: ' + JSON.stringify(data)); console.info('Operation successful. Data: ' + JSON.stringify(data));
...@@ -1236,7 +1236,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -1236,7 +1236,7 @@ SystemCapability.BundleManager.BundleFramework
```ts ```ts
let bundleName = "com.example.myapplication"; let bundleName = "com.example.myapplication";
let abilityName = "com.example.myapplication.MainAbility"; let abilityName = "EntryAbility";
bundle.getAbilityInfo(bundleName, abilityName).then((abilityInfo)=>{ bundle.getAbilityInfo(bundleName, abilityName).then((abilityInfo)=>{
bundle.isAbilityEnabled(abilityInfo, (err, data) => { bundle.isAbilityEnabled(abilityInfo, (err, data) => {
if (err) { if (err) {
...@@ -1355,7 +1355,7 @@ let bundleFlags = 0; ...@@ -1355,7 +1355,7 @@ let bundleFlags = 0;
let userId = 100; let userId = 100;
let want = { let want = {
bundleName : "com.example.myapplication", bundleName : "com.example.myapplication",
abilityName : "com.example.myapplication.MainAbility" abilityName : "EntryAbility"
}; };
bundle.queryAbilityByWant(want, bundleFlags, userId) bundle.queryAbilityByWant(want, bundleFlags, userId)
.then((data) => { .then((data) => {
...@@ -1401,7 +1401,7 @@ let bundleFlags = 0; ...@@ -1401,7 +1401,7 @@ let bundleFlags = 0;
let userId = 100; let userId = 100;
let want = { let want = {
bundleName : "com.example.myapplication", bundleName : "com.example.myapplication",
abilityName : "com.example.myapplication.MainAbility" abilityName : "EntryAbility"
}; };
bundle.queryAbilityByWant(want, bundleFlags, userId, (err, data) => { bundle.queryAbilityByWant(want, bundleFlags, userId, (err, data) => {
if (err) { if (err) {
...@@ -1444,7 +1444,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -1444,7 +1444,7 @@ SystemCapability.BundleManager.BundleFramework
let bundleFlags = 0; let bundleFlags = 0;
let want = { let want = {
bundleName : "com.example.myapplication", bundleName : "com.example.myapplication",
abilityName : "com.example.myapplication.MainAbility" abilityName : "EntryAbility"
}; };
bundle.queryAbilityByWant(want, bundleFlags, (err, data) => { bundle.queryAbilityByWant(want, bundleFlags, (err, data) => {
if (err) { if (err) {
...@@ -1635,7 +1635,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -1635,7 +1635,7 @@ SystemCapability.BundleManager.BundleFramework
```ts ```ts
let bundleName = "com.example.myapplication"; let bundleName = "com.example.myapplication";
let abilityName = "com.example.myapplication.MainAbility"; let abilityName = "EntryAbility";
bundle.getAbilityIcon(bundleName, abilityName) bundle.getAbilityIcon(bundleName, abilityName)
.then((data) => { .then((data) => {
console.info('Operation successful. Data: ' + JSON.stringify(data)); console.info('Operation successful. Data: ' + JSON.stringify(data));
...@@ -1675,7 +1675,7 @@ SystemCapability.BundleManager.BundleFramework ...@@ -1675,7 +1675,7 @@ SystemCapability.BundleManager.BundleFramework
```ts ```ts
let bundleName = "com.example.myapplication"; let bundleName = "com.example.myapplication";
let abilityName = "com.example.myapplication.MainAbility"; let abilityName = "EntryAbility";
bundle.getAbilityIcon(bundleName, abilityName, (err, data) => { bundle.getAbilityIcon(bundleName, abilityName, (err, data) => {
if (err) { if (err) {
console.error('Operation failed. Cause: ' + JSON.stringify(err)); console.error('Operation failed. Cause: ' + JSON.stringify(err));
......
...@@ -80,7 +80,7 @@ Instructs the **WorkSchedulerService** to stop the specified task. ...@@ -80,7 +80,7 @@ Instructs the **WorkSchedulerService** to stop the specified task.
| Name | Type | Mandatory | Description | | Name | Type | Mandatory | Description |
| ---------- | --------------------- | ---- | ---------- | | ---------- | --------------------- | ---- | ---------- |
| work | [WorkInfo](#workinfo) | Yes | Task to stop. | | work | [WorkInfo](#workinfo) | Yes | Task to stop. |
| needCancel | boolean | No | Whether to cancel the task.| | needCancel | boolean | No | Whether to cancel the task. The default value is **false**.|
**Error codes** **Error codes**
...@@ -118,7 +118,7 @@ For details about the error codes, see [workScheduler Error Codes](../errorcodes ...@@ -118,7 +118,7 @@ For details about the error codes, see [workScheduler Error Codes](../errorcodes
} }
``` ```
## workScheduler.getWorkStatus:callback ## workScheduler.getWorkStatus
getWorkStatus(workId: number, callback : AsyncCallback\<WorkInfo>): void getWorkStatus(workId: number, callback : AsyncCallback\<WorkInfo>): void
Obtains the latest task status. This API uses an asynchronous callback to return the result. Obtains the latest task status. This API uses an asynchronous callback to return the result.
...@@ -130,7 +130,7 @@ Obtains the latest task status. This API uses an asynchronous callback to return ...@@ -130,7 +130,7 @@ Obtains the latest task status. This API uses an asynchronous callback to return
| Name | Type | Mandatory | Description | | Name | Type | Mandatory | Description |
| -------- | ------------------------------------- | ---- | ---------------------------------------- | | -------- | ------------------------------------- | ---- | ---------------------------------------- |
| workId | number | Yes | Task ID. | | workId | number | Yes | Task ID. |
| callback | AsyncCallback\<[WorkInfo](#workinfo)> | Yes | Callback used to return the result. Returns the task status obtained from the **WorkSchedulerService** if the specified task ID is valid; throws an exception otherwise. | | callback | AsyncCallback\<[WorkInfo](#workinfo)> | Yes | Callback used to return the result. Returns the task status obtained from the **WorkSchedulerService** if the specified task ID is valid; throws an exception otherwise.|
**Error codes** **Error codes**
...@@ -161,7 +161,7 @@ For details about the error codes, see [workScheduler Error Codes](../errorcodes ...@@ -161,7 +161,7 @@ For details about the error codes, see [workScheduler Error Codes](../errorcodes
} }
``` ```
## workScheduler.getWorkStatus:promise ## workScheduler.getWorkStatus
getWorkStatus(workId: number): Promise\<WorkInfo> getWorkStatus(workId: number): Promise\<WorkInfo>
Obtains the latest task status. This API uses a promise to return the result. Obtains the latest task status. This API uses a promise to return the result.
...@@ -178,7 +178,7 @@ Obtains the latest task status. This API uses a promise to return the result. ...@@ -178,7 +178,7 @@ Obtains the latest task status. This API uses a promise to return the result.
| Type | Description | | Type | Description |
| ------------------------------- | ---------------------------------------- | | ------------------------------- | ---------------------------------------- |
| Promise\<[WorkInfo](#workinfo)> | Promise used to return the result. Returns the task status obtained from the **WorkSchedulerService** if the specified task ID is valid; throws an exception otherwise. | | Promise\<[WorkInfo](#workinfo)> | Promise used to return the result. Returns the task status obtained from the **WorkSchedulerService** if the specified task ID is valid; throws an exception otherwise.|
**Error codes** **Error codes**
...@@ -207,7 +207,7 @@ For details about the error codes, see [workScheduler Error Codes](../errorcodes ...@@ -207,7 +207,7 @@ For details about the error codes, see [workScheduler Error Codes](../errorcodes
} }
``` ```
## workScheduler.obtainAllWorks:callback ## workScheduler.obtainAllWorks
obtainAllWorks(callback : AsyncCallback\<void>): Array\<WorkInfo> obtainAllWorks(callback : AsyncCallback\<void>): Array\<WorkInfo>
Obtains all tasks associated with this application. This API uses an asynchronous callback to return the result. Obtains all tasks associated with this application. This API uses an asynchronous callback to return the result.
...@@ -252,8 +252,8 @@ For details about the error codes, see [workScheduler Error Codes](../errorcodes ...@@ -252,8 +252,8 @@ For details about the error codes, see [workScheduler Error Codes](../errorcodes
} }
``` ```
## workScheduler.obtainAllWorks:promise ## workScheduler.obtainAllWorks
obtainAllWorks(): Promise<Array\<WorkInfo>> obtainAllWorks(): Promise\<Array\<WorkInfo>>
Obtains all tasks associated with this application. This API uses a promise to return the result. Obtains all tasks associated with this application. This API uses a promise to return the result.
...@@ -317,7 +317,7 @@ For details about the error codes, see [workScheduler Error Codes](../errorcodes ...@@ -317,7 +317,7 @@ For details about the error codes, see [workScheduler Error Codes](../errorcodes
} }
``` ```
## workScheduler.isLastWorkTimeOut:callback ## workScheduler.isLastWorkTimeOut
isLastWorkTimeOut(workId: number, callback : AsyncCallback\<void>): boolean isLastWorkTimeOut(workId: number, callback : AsyncCallback\<void>): boolean
Checks whether the last execution of the specified task timed out. This API uses an asynchronous callback to return the result. Checks whether the last execution of the specified task timed out. This API uses an asynchronous callback to return the result.
...@@ -364,7 +364,7 @@ For details about the error codes, see [workScheduler Error Codes](../errorcodes ...@@ -364,7 +364,7 @@ For details about the error codes, see [workScheduler Error Codes](../errorcodes
} }
``` ```
## workScheduler.isLastWorkTimeOut:promise ## workScheduler.isLastWorkTimeOut
isLastWorkTimeOut(workId: number): Promise\<boolean> isLastWorkTimeOut(workId: number): Promise\<boolean>
Checks whether the last execution of the specified task timed out. This API uses a promise to return the result. Checks whether the last execution of the specified task timed out. This API uses a promise to return the result.
...@@ -432,7 +432,7 @@ Provides detailed information about the task. For details about the constraints ...@@ -432,7 +432,7 @@ Provides detailed information about the task. For details about the constraints
| isPersisted | boolean | No | Whether to enable persistent storage for the task. | | isPersisted | boolean | No | Whether to enable persistent storage for the task. |
| isDeepIdle | boolean | No | Whether the device needs to enter the idle state. | | isDeepIdle | boolean | No | Whether the device needs to enter the idle state. |
| idleWaitTime | number | No | Time to wait in the idle state. | | idleWaitTime | number | No | Time to wait in the idle state. |
| parameters | {[key: string]: number | string | boolean} | No | Carried parameters. | | parameters | {[key: string]: number \| string \| boolean} | No | Carried parameters. |
## NetworkType ## NetworkType
Enumerates the network types that can trigger the task. Enumerates the network types that can trigger the task.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册