From 35bc87fc18c50ec2659dae0390363a64a6de36fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E4=BC=9F?= Date: Tue, 7 May 2024 06:59:34 +0000 Subject: [PATCH 1/2] update api/@ohos.resourceschedule.backgroundTaskManager.d.ts. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 胡伟 --- ...esourceschedule.backgroundTaskManager.d.ts | 28 ++++++++++++------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/api/@ohos.resourceschedule.backgroundTaskManager.d.ts b/api/@ohos.resourceschedule.backgroundTaskManager.d.ts index 3cb20b27b..083ff32a7 100644 --- a/api/@ohos.resourceschedule.backgroundTaskManager.d.ts +++ b/api/@ohos.resourceschedule.backgroundTaskManager.d.ts @@ -92,7 +92,8 @@ declare namespace backgroundTaskManager { * Cancels delayed transition to the suspended state. * * @param { number } requestId - The identifier of the delay request. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + *
2. Incorrect parameters types; 3. Parameter verification failed. * @throws { BusinessError } 9800001 - Memory operation failed. * @throws { BusinessError } 9800002 - Parcel operation failed. * @throws { BusinessError } 9800003 - Inner transact failed. @@ -126,7 +127,8 @@ declare namespace backgroundTaskManager { * * @param { number } requestId - The identifier of the delay request. * @returns { Promise } The promise returns the remaining delay time. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + *
2. Incorrect parameters types; 3. Parameter verification failed. * @throws { BusinessError } 9800001 - Memory operation failed. * @throws { BusinessError } 9800002 - Parcel operation failed. * @throws { BusinessError } 9800003 - Inner transact failed. @@ -144,7 +146,8 @@ declare namespace backgroundTaskManager { * @param { string } reason - Indicates the reason for delayed transition to the suspended state. * @param { Callback } callback - The callback delay time expired. * @returns { DelaySuspendInfo } Info of delay request. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + *
2. Incorrect parameters types. * @throws { BusinessError } 9800001 - Memory operation failed. * @throws { BusinessError } 9800002 - Parcel operation failed. * @throws { BusinessError } 9800003 - Inner transact failed. @@ -167,7 +170,8 @@ declare namespace backgroundTaskManager { * @param { AsyncCallback } callback - The callback of the function. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not System App. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + *
2. Incorrect parameters types; 3. Parameter verification failed. * @throws { BusinessError } 9800001 - Memory operation failed. * @throws { BusinessError } 9800002 - Parcel operation failed. * @throws { BusinessError } 9800003 - Inner transact failed. @@ -191,7 +195,8 @@ declare namespace backgroundTaskManager { * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not System App. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + *
2. Incorrect parameters types; 3. Parameter verification failed. * @throws { BusinessError } 9800001 - Memory operation failed. * @throws { BusinessError } 9800002 - Parcel operation failed. * @throws { BusinessError } 9800003 - Inner transact failed. @@ -214,7 +219,8 @@ declare namespace backgroundTaskManager { * @param { WantAgent } wantAgent - Indicates which ability to start when user click the notification bar. * @returns { Promise } The The continuous task notification. * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + *
2. Incorrect parameters types; 3. Parameter verification failed. * @throws { BusinessError } 9800001 - Memory operation failed. * @throws { BusinessError } 9800002 - Parcel operation failed. * @throws { BusinessError } 9800003 - Inner transact failed. @@ -235,7 +241,8 @@ declare namespace backgroundTaskManager { * @param { string[] } bgModes - Indicates which background mode to request. * @returns { Promise } The continuous task notification. * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + *
2. Incorrect parameters types; 3. Parameter verification failed. * @throws { BusinessError } 9800001 - Memory operation failed. * @throws { BusinessError } 9800002 - Parcel operation failed. * @throws { BusinessError } 9800003 - Inner transact failed. @@ -254,7 +261,7 @@ declare namespace backgroundTaskManager { * @param { Context } context - App running context. * @param { AsyncCallback } callback - The callback of the function. * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; * @throws { BusinessError } 9800001 - Memory operation failed. * @throws { BusinessError } 9800002 - Parcel operation failed. * @throws { BusinessError } 9800003 - Inner transact failed. @@ -273,7 +280,7 @@ declare namespace backgroundTaskManager { * @param { Context } context - App running context. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; * @throws { BusinessError } 9800001 - Memory operation failed. * @throws { BusinessError } 9800002 - Parcel operation failed. * @throws { BusinessError } 9800003 - Inner transact failed. @@ -292,7 +299,8 @@ declare namespace backgroundTaskManager { * @param { EfficiencyResourcesRequest } request - The request of apply or unapply efficiency resources. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not System App. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + *
2. Incorrect parameters types; 3. Parameter verification failed. * @throws { BusinessError } 9800001 - Memory operation failed. * @throws { BusinessError } 9800002 - Parcel operation failed. * @throws { BusinessError } 9800003 - Inner transact failed. From 55c246cbdc74b0f13adbf72f09b7a54b83c1defe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E4=BC=9F?= Date: Tue, 7 May 2024 07:06:36 +0000 Subject: [PATCH 2/2] update api/@ohos.resourceschedule.backgroundTaskManager.d.ts. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 胡伟 --- api/@ohos.resourceschedule.backgroundTaskManager.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.resourceschedule.backgroundTaskManager.d.ts b/api/@ohos.resourceschedule.backgroundTaskManager.d.ts index 083ff32a7..989089cc1 100644 --- a/api/@ohos.resourceschedule.backgroundTaskManager.d.ts +++ b/api/@ohos.resourceschedule.backgroundTaskManager.d.ts @@ -317,7 +317,7 @@ declare namespace backgroundTaskManager { * * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not System App. - * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Parameter verification failed. * @throws { BusinessError } 9800001 - Memory operation failed. * @throws { BusinessError } 9800002 - Parcel operation failed. * @throws { BusinessError } 9800003 - Inner transact failed.