From b8ad267785dcfc4a62e2bb556e27b0522fa3c5cd Mon Sep 17 00:00:00 2001 From: wusongqing Date: Mon, 27 Jun 2022 14:47:51 +0800 Subject: [PATCH] fixed 96c8ff1 from https://gitee.com/wusongqing/docs/pulls/5936 update docs against 5648 Signed-off-by: wusongqing --- .../reference/apis/js-apis-backgroundTaskManager.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md b/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md index 68b16ef535..7ffa13920f 100644 --- a/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md +++ b/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md @@ -1,6 +1,15 @@ -# Background Task Management +# BackgroundTaskManager + +This module provides background task management. + +If a service needs to be continued when the application or service module is running in the background (not visible to users), the application or service module can request a transient task or continuous task for delayed suspension based on the service type. + +If an application has a task that needs to be continued when the application is switched to the background and can be completed within a short period of time, the application can request a transient task. For example, if a user chooses to clear junk files in the **Files** application and exits the application, the application can request a transient task to complete the cleanup. + +If an application has a service that can be intuitively perceived by users and needs to run in the background for a long period of time (for example, music playback in the background), the application can request a continuous task. > **NOTE** +> > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. -- GitLab