1# @ohos.backgroundTaskManager (Background Task Management) (System API) 2 3The **BackgroundTaskManager** module provides APIs to manage background tasks. 4 5If 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. 6 7If 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. 8 9If 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. 10 11If 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. 12 13> **NOTE** 14> 15> - 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. 16> 17> - 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. 18> 19> - 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). 20 21 22## Modules to Import 23 24```ts 25import backgroundTaskManager from '@ohos.backgroundTaskManager'; 26``` 27 28## BackgroundMode<sup>8+</sup> 29 30**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask 31 32| Name | Value | Description | 33| ----------------------- | ---- | --------------------- | 34| WIFI_INTERACTION | 7 | WLAN-related.<br>This is a system API.| 35| VOIP | 8 | Audio and video calls.<br>This is a system API. | 36