1e41f4b71Sopenharmony_ci# @ohos.backgroundTaskManager (Background Task Management) (System API)
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ciThe **BackgroundTaskManager** module provides APIs to manage background tasks.
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ciIf 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 to delay the suspension or a continuous task to prevent the suspension.
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ciIf 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.
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ciIf 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.
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ciIf a privileged system application needs to use certain system resources (for example, it wants to receive common events when suspended), it can request efficiency resources.
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci>  **NOTE**
14e41f4b71Sopenharmony_ci>
15e41f4b71Sopenharmony_ci> - This module is deprecated since API version 9. You are advised to use [@ohos.resourceschedule.backgroundTaskManager (Background Task Management)](js-apis-resourceschedule-backgroundTaskManager-sys.md)instead.
16e41f4b71Sopenharmony_ci>
17e41f4b71Sopenharmony_ci> - 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.
18e41f4b71Sopenharmony_ci>
19e41f4b71Sopenharmony_ci> - This topic describes only system APIs provided by the module. For details about its public APIs, see [@ohos.backgroundTaskManager (Background Task Management)](js-apis-backgroundTaskManager.md).
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci
22e41f4b71Sopenharmony_ci## Modules to Import
23e41f4b71Sopenharmony_ci
24e41f4b71Sopenharmony_ci```ts
25e41f4b71Sopenharmony_ciimport backgroundTaskManager from '@ohos.backgroundTaskManager';  
26e41f4b71Sopenharmony_ci```
27e41f4b71Sopenharmony_ci
28e41f4b71Sopenharmony_ci## BackgroundMode<sup>8+</sup>
29e41f4b71Sopenharmony_ci
30e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask
31e41f4b71Sopenharmony_ci
32e41f4b71Sopenharmony_ci| Name                    | Value | Description                   |
33e41f4b71Sopenharmony_ci| ----------------------- | ---- | --------------------- |
34e41f4b71Sopenharmony_ci| WIFI_INTERACTION        | 7    | WLAN-related.<br>This is a system API.|
35e41f4b71Sopenharmony_ci| VOIP                    | 8    | Audio and video calls.<br>This is a system API. |
36