diff --git a/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md b/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md index dc625eb53063646d4699d6d63b1561dae94f28fa..cce4d155613b00254bf815aa0a2ac3f535486123 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md @@ -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. | **示例**: diff --git a/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-workScheduler.md b/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-workScheduler.md index 8dac6cbfa866ed92b02e7a13cca7c198d7ff2d5e..d43f9649ab53b2e28e956c1c65d4a5635bdacaec 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-workScheduler.md +++ b/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-workScheduler.md @@ -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\): void 获取工作的最新状态,使用Callback形式返回。 @@ -141,7 +141,7 @@ getWorkStatus(workId: number, callback : AsyncCallback\): 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\): void } ``` -## workScheduler.getWorkStatus:promise +## workScheduler.getWorkStatus getWorkStatus(workId: number): Promise\ 获取工作的最新状态,使用Promise形式返回。 @@ -189,7 +189,7 @@ getWorkStatus(workId: number): Promise\ | 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\ } ``` -## workScheduler.obtainAllWorks:callback +## workScheduler.obtainAllWorks obtainAllWorks(callback : AsyncCallback\): Array\ 获取与当前应用程序关联的所有工作,使用Callback形式返回。 @@ -252,8 +252,8 @@ obtainAllWorks(callback : AsyncCallback\): Array\ } ``` -## workScheduler.obtainAllWorks:promise -obtainAllWorks(): Promise> +## workScheduler.obtainAllWorks +obtainAllWorks(): Promise\> 获取与当前应用程序关联的所有工作,使用Promise形式返回。 @@ -317,7 +317,7 @@ stopAndClearWorks(): void } ``` -## workScheduler.isLastWorkTimeOut:callback +## workScheduler.isLastWorkTimeOut isLastWorkTimeOut(workId: number, callback : AsyncCallback\): boolean 检查指定工作的最后一次执行是否为超时操作,使用Callback形式返回。 @@ -346,7 +346,7 @@ isLastWorkTimeOut(workId: number, callback : AsyncCallback\): 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\): boolean } ``` -## workScheduler.isLastWorkTimeOut:promise +## workScheduler.isLastWorkTimeOut isLastWorkTimeOut(workId: number): Promise\ 检查指定工作的最后一次执行是否为超时操作,使用Promise形式返回。 @@ -392,7 +392,7 @@ isLastWorkTimeOut(workId: number): Promise\ | 9700001 | Memory operation failed. | | 9700002 | Parcel operation failed. | | 9700003 | System service operation failed. | -| 9700004 | Checking workInfo failed. | +| 9700004 | Check workInfo failed. | **示例**: diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-backgroundTaskMgr.md b/zh-cn/application-dev/reference/errorcodes/errorcode-backgroundTaskMgr.md index 687227b21bd5066b9072928924c3de70f26f2c09..e3b5aea33315cec53df6a94575b04bb8648f3357 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-backgroundTaskMgr.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-backgroundTaskMgr.md @@ -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. **可能原因** diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-workScheduler.md b/zh-cn/application-dev/reference/errorcodes/errorcode-workScheduler.md index 4d40e59ea0e42933143358bb8ddf169c81249930..c54b860de628f5c2b4e208af31d196533d7e0b0f 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-workScheduler.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-workScheduler.md @@ -53,7 +53,7 @@ System service operation failed. **错误信息** -Checking workInfo failed. +Check workInfo failed. **可能原因**