未验证 提交 71be0c92 编写于 作者: O openharmony_ci 提交者: Gitee

!18393 文档一致性修改

Merge pull request !18393 from 朱天怡/master
......@@ -51,10 +51,10 @@ requestSuspendDelay(reason: string, callback: Callback<void>): DelaySuspen
| ---- | --------------------- |
| 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. |
| 9800003 | IPC failed. | |
| 9800003 | Inner transact failed. | |
| 9800004 | System service operation failed. |
| 9900001 | Caller information verification failed for a transient task. |
| 9900002 | Transient task verification failed. |
| 9900001 | Caller information verification failed. |
| 9900002 | Background task verification failed. |
**示例**
......@@ -99,10 +99,10 @@ getRemainingDelayTime(requestId: number, callback: AsyncCallback<number>):
| ---- | --------------------- |
| 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. |
| 9800003 | IPC failed. | |
| 9800003 | Inner transact failed. |
| 9800004 | System service operation failed. |
| 9900001 | Caller information verification failed for a transient task. |
| 9900002 | Transient task verification failed. |
| 9900001 | Caller information verification failed. |
| 9900002 | Background task verification failed. |
**示例**
......@@ -155,10 +155,10 @@ getRemainingDelayTime(requestId: number): Promise<number>
| ---- | --------------------- |
| 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. |
| 9800003 | IPC failed. | |
| 9800003 | Inner transact failed. | |
| 9800004 | System service operation failed. |
| 9900001 | Caller information verification failed for a transient task. |
| 9900002 | Transient task verification failed. |
| 9900001 | Caller information verification failed. |
| 9900002 | Background task verification failed. |
**示例**
......@@ -200,10 +200,10 @@ cancelSuspendDelay(requestId: number): void
| ---- | --------------------- |
| 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. |
| 9800003 | IPC failed. | |
| 9800003 | Inner transact failed. | |
| 9800004 | System service operation failed. |
| 9900001 | Caller information verification failed for a transient task. |
| 9900002 | Transient task verification failed. |
| 9900001 | Caller information verification failed. |
| 9900002 | Background task verification failed. |
**示例**
......@@ -246,9 +246,9 @@ startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: Want
| ---- | --------------------- |
| 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. |
| 9800003 | IPC failed. | |
| 9800003 | Inner transact failed. | |
| 9800004 | System service operation failed. |
| 9800005 | Continuous task verification failed. |
| 9800005 | Background task verification failed. |
| 9800006 | Notification verification failed. |
| 9800007 | Task storage failed. |
......@@ -329,9 +329,9 @@ startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: Want
| ---- | --------------------- |
| 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. |
| 9800003 | IPC failed. | |
| 9800003 | Inner transact failed. | |
| 9800004 | System service operation failed. |
| 9800005 | Continuous task verification failed. |
| 9800005 | Background task verification failed. |
| 9800006 | Notification verification failed. |
| 9800007 | Task storage failed. |
......@@ -399,9 +399,9 @@ stopBackgroundRunning(context: Context, callback: AsyncCallback<void>): vo
| ---- | --------------------- |
| 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. |
| 9800003 | IPC failed. | |
| 9800003 | Inner transact failed. | |
| 9800004 | System service operation failed. |
| 9800005 | Continuous task verification failed. |
| 9800005 | Background task verification failed. |
| 9800006 | Notification verification failed. |
| 9800007 | Task storage failed. |
......@@ -460,9 +460,9 @@ stopBackgroundRunning(context: Context): Promise<void>
| ---- | --------------------- |
| 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. |
| 9800003 | IPC failed. | |
| 9800003 | Inner transact failed. | |
| 9800004 | System service operation failed. |
| 9800005 | Continuous task verification failed. |
| 9800005 | Background task verification failed. |
| 9800006 | Notification verification failed. |
| 9800007 | Task storage failed. |
......@@ -513,9 +513,9 @@ applyEfficiencyResources(request: [EfficiencyResourcesRequest](#efficiencyresour
| ---- | --------------------- |
| 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. |
| 9800003 | IPC failed. | |
| 9800003 | Inner transact failed. | |
| 9800004 | System service operation failed. |
| 18700001 | Caller information verification failed when applying for efficiency resources. |
| 18700001 | Caller information verification failed. |
**示例**
......@@ -556,9 +556,9 @@ resetAllEfficiencyResources(): void
| ---- | --------------------- |
| 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. |
| 9800003 | IPC failed. | |
| 9800003 | Inner transact failed. | |
| 9800004 | System service operation failed. |
| 18700001 | Caller information verification failed when applying for efficiency resources. |
| 18700001 | Caller information verification failed. |
**示例**
......
......@@ -39,7 +39,7 @@ startWork(work: WorkInfo): void
| 9700001 | Memory operation failed. |
| 9700002 | Parcel operation failed. |
| 9700003 | System service operation failed. |
| 9700004 | Checking workInfo failed. |
| 9700004 | Check workInfo failed. |
| 9700005 | StartWork failed. |
......@@ -91,7 +91,7 @@ stopWork(work: WorkInfo, needCancel?: boolean): void
| 9700001 | Memory operation failed. |
| 9700002 | Parcel operation failed. |
| 9700003 | System service operation failed. |
| 9700004 | Checking workInfo failed. |
| 9700004 | Check workInfo failed. |
**示例**
......@@ -118,7 +118,7 @@ stopWork(work: WorkInfo, needCancel?: boolean): void
}
```
## workScheduler.getWorkStatus:callback
## workScheduler.getWorkStatus
getWorkStatus(workId: number, callback : AsyncCallback\<WorkInfo>): void
获取工作的最新状态,使用Callback形式返回。
......@@ -141,7 +141,7 @@ getWorkStatus(workId: number, callback : AsyncCallback\<WorkInfo>): void
| 9700001 | Memory operation failed. |
| 9700002 | Parcel operation failed. |
| 9700003 | System service operation failed. |
| 9700004 | Checking workInfo failed. |
| 9700004 | Check workInfo failed. |
**示例**
......@@ -161,7 +161,7 @@ getWorkStatus(workId: number, callback : AsyncCallback\<WorkInfo>): void
}
```
## workScheduler.getWorkStatus:promise
## workScheduler.getWorkStatus
getWorkStatus(workId: number): Promise\<WorkInfo>
获取工作的最新状态,使用Promise形式返回。
......@@ -189,7 +189,7 @@ getWorkStatus(workId: number): Promise\<WorkInfo>
| 9700001 | Memory operation failed. |
| 9700002 | Parcel operation failed. |
| 9700003 | System service operation failed. |
| 9700004 | Checking workInfo failed. |
| 9700004 | Check workInfo failed. |
**示例**
......@@ -207,7 +207,7 @@ getWorkStatus(workId: number): Promise\<WorkInfo>
}
```
## workScheduler.obtainAllWorks:callback
## workScheduler.obtainAllWorks
obtainAllWorks(callback : AsyncCallback\<void>): Array\<WorkInfo>
获取与当前应用程序关联的所有工作,使用Callback形式返回。
......@@ -252,8 +252,8 @@ obtainAllWorks(callback : AsyncCallback\<void>): Array\<WorkInfo>
}
```
## workScheduler.obtainAllWorks:promise
obtainAllWorks(): Promise<Array\<WorkInfo>>
## workScheduler.obtainAllWorks
obtainAllWorks(): Promise\<Array\<WorkInfo>>
获取与当前应用程序关联的所有工作,使用Promise形式返回。
......@@ -317,7 +317,7 @@ stopAndClearWorks(): void
}
```
## workScheduler.isLastWorkTimeOut:callback
## workScheduler.isLastWorkTimeOut
isLastWorkTimeOut(workId: number, callback : AsyncCallback\<void>): boolean
检查指定工作的最后一次执行是否为超时操作,使用Callback形式返回。
......@@ -346,7 +346,7 @@ isLastWorkTimeOut(workId: number, callback : AsyncCallback\<void>): boolean
| 9700001 | Memory operation failed. |
| 9700002 | Parcel operation failed. |
| 9700003 | System service operation failed. |
| 9700004 | Checking workInfo failed. |
| 9700004 | Check workInfo failed. |
**示例**
......@@ -364,7 +364,7 @@ isLastWorkTimeOut(workId: number, callback : AsyncCallback\<void>): boolean
}
```
## workScheduler.isLastWorkTimeOut:promise
## workScheduler.isLastWorkTimeOut
isLastWorkTimeOut(workId: number): Promise\<boolean>
检查指定工作的最后一次执行是否为超时操作,使用Promise形式返回。
......@@ -392,7 +392,7 @@ isLastWorkTimeOut(workId: number): Promise\<boolean>
| 9700001 | Memory operation failed. |
| 9700002 | Parcel operation failed. |
| 9700003 | System service operation failed. |
| 9700004 | Checking workInfo failed. |
| 9700004 | Check workInfo failed. |
**示例**
......
......@@ -38,7 +38,7 @@ Parcel operation failed.
**错误信息**
IPC failed.
Inner transact failed.
**可能原因**
......@@ -67,7 +67,7 @@ System service operation failed.
**错误信息**
Continuous task verification failed.
Background task verification failed.
**可能原因**
......@@ -120,7 +120,7 @@ Task storage failed.
**错误信息**
Caller information verification failed for a transient task.
Caller information verification failed.
**可能原因**
......@@ -138,7 +138,7 @@ Caller information verification failed for a transient task.
**错误信息**
Transient task verification failed.
Background task verification failed.
**可能原因**
......@@ -157,7 +157,7 @@ Transient task verification failed.
**错误信息**
Caller information verification failed when applying for efficiency resources.
Caller information verification failed.
**可能原因**
......
......@@ -53,7 +53,7 @@ System service operation failed.
**错误信息**
Checking workInfo failed.
Check workInfo failed.
**可能原因**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册