From b489d6631a0f5b4d61b8e5470265f3b6b07d5ded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E5=BA=B7=E5=BA=B7?= Date: Tue, 8 Feb 2022 10:08:31 +0800 Subject: [PATCH 1/4] delete @devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖康康 --- api/@ohos.backgroundTaskManager.d.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/api/@ohos.backgroundTaskManager.d.ts b/api/@ohos.backgroundTaskManager.d.ts index 85bd32ad33..35672c5441 100644 --- a/api/@ohos.backgroundTaskManager.d.ts +++ b/api/@ohos.backgroundTaskManager.d.ts @@ -20,7 +20,6 @@ import { AsyncCallback , Callback} from './basic'; * * @since 7 * @sysCap SystemCapability.Ressched.BackgroundTaskMgr - * @devices phone, tv, wearable, tablet, car */ declare namespace backgroundTaskManager { /** @@ -29,7 +28,6 @@ declare namespace backgroundTaskManager { * @name DelaySuspendInfo * @since 7 * @sysCap SystemCapability.Ressched.BackgroundTaskMgr - * @devices phone, tv, wearable, tablet, car */ interface DelaySuspendInfo { /** @@ -47,7 +45,6 @@ declare namespace backgroundTaskManager { * * @since 7 * @sysCap SystemCapability.Ressched.BackgroundTaskMgr - * @devices phone, tv, wearable, tablet, car * @param requestId Indicates the identifier of the delay request. */ function cancelSuspendDelay(requestId: number): void; @@ -57,7 +54,6 @@ declare namespace backgroundTaskManager { * * @since 7 * @sysCap SystemCapability.Ressched.BackgroundTaskMgr - * @devices phone, tv, wearable, tablet, car * @param requestId Indicates the identifier of the delay request. * @return The remaining delay time */ @@ -69,7 +65,6 @@ declare namespace backgroundTaskManager { * * @since 7 * @sysCap SystemCapability.Ressched.BackgroundTaskMgr - * @devices phone, tv, wearable, tablet, car * @param reason Indicates the reason for delayed transition to the suspended state. * @param callback The callback delay time expired. * @return Info of delay request @@ -77,4 +72,4 @@ declare namespace backgroundTaskManager { function requestSuspendDelay(reason: string, callback: Callback): DelaySuspendInfo; } -export default backgroundTaskManager; \ No newline at end of file +export default backgroundTaskManager; -- Gitee From f8e8fef42e243c3b2745f47c1c72a74c9192d32e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E5=BA=B7=E5=BA=B7?= Date: Thu, 10 Feb 2022 09:51:42 +0800 Subject: [PATCH 2/4] modify syscap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖康康 --- api/@ohos.backgroundTaskManager.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/@ohos.backgroundTaskManager.d.ts b/api/@ohos.backgroundTaskManager.d.ts index 35672c5441..2d7daf12b4 100644 --- a/api/@ohos.backgroundTaskManager.d.ts +++ b/api/@ohos.backgroundTaskManager.d.ts @@ -19,7 +19,7 @@ import { AsyncCallback , Callback} from './basic'; * Manages background tasks. * * @since 7 - * @sysCap SystemCapability.Ressched.BackgroundTaskMgr + * @sysCap SystemCapability.ResourceSchedule.BackgroundTaskMgr.TransientTask */ declare namespace backgroundTaskManager { /** @@ -27,7 +27,7 @@ declare namespace backgroundTaskManager { * * @name DelaySuspendInfo * @since 7 - * @sysCap SystemCapability.Ressched.BackgroundTaskMgr + * @sysCap SystemCapability.ResourceSchedule.BackgroundTaskMgr.TransientTask */ interface DelaySuspendInfo { /** @@ -44,7 +44,7 @@ declare namespace backgroundTaskManager { * Cancels delayed transition to the suspended state. * * @since 7 - * @sysCap SystemCapability.Ressched.BackgroundTaskMgr + * @sysCap SystemCapability.ResourceSchedule.BackgroundTaskMgr.TransientTask * @param requestId Indicates the identifier of the delay request. */ function cancelSuspendDelay(requestId: number): void; @@ -53,7 +53,7 @@ declare namespace backgroundTaskManager { * Obtains the remaining time before an application enters the suspended state. * * @since 7 - * @sysCap SystemCapability.Ressched.BackgroundTaskMgr + * @sysCap SystemCapability.ResourceSchedule.BackgroundTaskMgr.TransientTask * @param requestId Indicates the identifier of the delay request. * @return The remaining delay time */ @@ -64,7 +64,7 @@ declare namespace backgroundTaskManager { * Requests delayed transition to the suspended state. * * @since 7 - * @sysCap SystemCapability.Ressched.BackgroundTaskMgr + * @sysCap SystemCapability.ResourceSchedule.BackgroundTaskMgr.TransientTask * @param reason Indicates the reason for delayed transition to the suspended state. * @param callback The callback delay time expired. * @return Info of delay request -- Gitee From 870752b52694b0879a5c04a873b808df55569b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E5=BA=B7=E5=BA=B7?= Date: Thu, 10 Feb 2022 10:30:34 +0800 Subject: [PATCH 3/4] modify syscap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖康康 --- api/@ohos.backgroundTaskManager.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/@ohos.backgroundTaskManager.d.ts b/api/@ohos.backgroundTaskManager.d.ts index 2d7daf12b4..955f2fd053 100644 --- a/api/@ohos.backgroundTaskManager.d.ts +++ b/api/@ohos.backgroundTaskManager.d.ts @@ -19,7 +19,7 @@ import { AsyncCallback , Callback} from './basic'; * Manages background tasks. * * @since 7 - * @sysCap SystemCapability.ResourceSchedule.BackgroundTaskMgr.TransientTask + * @sysCap SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask */ declare namespace backgroundTaskManager { /** @@ -27,7 +27,7 @@ declare namespace backgroundTaskManager { * * @name DelaySuspendInfo * @since 7 - * @sysCap SystemCapability.ResourceSchedule.BackgroundTaskMgr.TransientTask + * @sysCap SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask */ interface DelaySuspendInfo { /** @@ -44,7 +44,7 @@ declare namespace backgroundTaskManager { * Cancels delayed transition to the suspended state. * * @since 7 - * @sysCap SystemCapability.ResourceSchedule.BackgroundTaskMgr.TransientTask + * @sysCap SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask * @param requestId Indicates the identifier of the delay request. */ function cancelSuspendDelay(requestId: number): void; @@ -53,7 +53,7 @@ declare namespace backgroundTaskManager { * Obtains the remaining time before an application enters the suspended state. * * @since 7 - * @sysCap SystemCapability.ResourceSchedule.BackgroundTaskMgr.TransientTask + * @sysCap SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask * @param requestId Indicates the identifier of the delay request. * @return The remaining delay time */ @@ -64,7 +64,7 @@ declare namespace backgroundTaskManager { * Requests delayed transition to the suspended state. * * @since 7 - * @sysCap SystemCapability.ResourceSchedule.BackgroundTaskMgr.TransientTask + * @sysCap SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask * @param reason Indicates the reason for delayed transition to the suspended state. * @param callback The callback delay time expired. * @return Info of delay request -- Gitee From b874b6b950deda7e2ca1d68cbaf6435d4b76771d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E5=BA=B7=E5=BA=B7?= Date: Thu, 10 Feb 2022 14:20:15 +0800 Subject: [PATCH 4/4] modify syscap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖康康 --- api/@ohos.backgroundTaskManager.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/@ohos.backgroundTaskManager.d.ts b/api/@ohos.backgroundTaskManager.d.ts index 955f2fd053..cbe6ae70b6 100644 --- a/api/@ohos.backgroundTaskManager.d.ts +++ b/api/@ohos.backgroundTaskManager.d.ts @@ -19,7 +19,7 @@ import { AsyncCallback , Callback} from './basic'; * Manages background tasks. * * @since 7 - * @sysCap SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask + * @syscap SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask */ declare namespace backgroundTaskManager { /** @@ -27,7 +27,7 @@ declare namespace backgroundTaskManager { * * @name DelaySuspendInfo * @since 7 - * @sysCap SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask + * @syscap SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask */ interface DelaySuspendInfo { /** @@ -44,7 +44,7 @@ declare namespace backgroundTaskManager { * Cancels delayed transition to the suspended state. * * @since 7 - * @sysCap SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask + * @syscap SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask * @param requestId Indicates the identifier of the delay request. */ function cancelSuspendDelay(requestId: number): void; @@ -53,7 +53,7 @@ declare namespace backgroundTaskManager { * Obtains the remaining time before an application enters the suspended state. * * @since 7 - * @sysCap SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask + * @syscap SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask * @param requestId Indicates the identifier of the delay request. * @return The remaining delay time */ @@ -64,7 +64,7 @@ declare namespace backgroundTaskManager { * Requests delayed transition to the suspended state. * * @since 7 - * @sysCap SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask + * @syscap SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask * @param reason Indicates the reason for delayed transition to the suspended state. * @param callback The callback delay time expired. * @return Info of delay request -- Gitee