From f0e1fc37f188e74824b8900dd7710095bb3fe8a2 Mon Sep 17 00:00:00 2001 From: wusongqing Date: Wed, 16 Mar 2022 19:55:45 +0800 Subject: [PATCH] Added English docs Signed-off-by: wusongqing --- .../apis/js-apis-backgroundTaskManager.md | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md b/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md index 59fda684ef..0af0d28745 100644 --- a/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md +++ b/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md @@ -191,12 +191,13 @@ Requests a continuous task from the system. This API uses a promise to return th **System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask - **Parameters** + | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | context | Context | Yes| Application context.| | bgMode | BackgroundMode | Yes| Background mode requested.| - | wantAgent | [WantAgent](js-apis-notification.md#WantAgent)| Yes| Notification parameter, which is used to specify the target page when a continuous task notification is clicked.| - +| wantAgent | [WantAgent](js-apis-notification.md#WantAgent)| Yes| Notification parameter, which is used to specify the target page when a continuous task notification is clicked.| + - **Return value** | Type | Description | | -------------- | ------------------------- | @@ -295,14 +296,16 @@ backgroundTaskManager.stopBackgroundRunning(featureAbility.getContext()).then(() ## BackgroundMode8+ +**System capability:** SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask + | Name | Value| Description| | ----------------------- | -------- | -------- | -| DATA_TRANSFER | 1 | Data transfer.
**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask| -| AUDIO_PLAYBACK | 2 | Audio playback.
**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask| -| AUDIO_RECORDING | 3 | Audio recording.
**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask| -| LOCATION | 4 | Positioning and navigation.
**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask| -| BLUETOOTH_INTERACTION | 5 | Bluetooth-related task.
**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask| -| MULTI_DEVICE_CONNECTION | 6 | Multi-device connection.
**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask| -| WIFI_INTERACTION | 7 | WLAN-related (reserved).
**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask| -| VOIP | 8 | Voice and video call (reserved).
**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask| -| TASK_KEEPING | 9 | Computing task (for PC only).
**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask| +| DATA_TRANSFER | 1 | Data transfer.| +| AUDIO_PLAYBACK | 2 | Audio playback.| +| AUDIO_RECORDING | 3 | Audio recording.| +| LOCATION | 4 | Positioning and navigation.| +| BLUETOOTH_INTERACTION | 5 | Bluetooth-related task.| +| MULTI_DEVICE_CONNECTION | 6 | Multi-device connection.| +| WIFI_INTERACTION | 7 | WLAN-related (reserved).| +| VOIP | 8 | Voice and video call (reserved).| +| TASK_KEEPING | 9 | Computing task (for PC only).| -- GitLab