| wantAgent | [WantAgent](js-apis-notification.md#WantAgent)| Yes| Notification parameter, which is used to specify the target page that is redirected to when a continuous task notification is clicked.|
| wantAgent | [WantAgent](js-apis-wantAgent.md)| Yes| Notification parameter, which is used to specify the target page that is redirected to when a continuous task notification is clicked.|
| callback | AsyncCallback<void> | Yes| Callback used to return the result.|
| callback | AsyncCallback<void> | Yes| Callback used to return the result.|
**Example**
**Example**
```js
```js
...
@@ -178,13 +179,13 @@ Requests a continuous task from the system. This API uses a promise to return th
...
@@ -178,13 +179,13 @@ Requests a continuous task from the system. This API uses a promise to return th
| 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-wantAgent.md)| Yes| Notification parameter, which is used to specify the target page when a continuous task notification is clicked.|
**Return value**
**Return value**
| Type | Description |
| Type | Description |
| -------------- | ------------------------- |
| -------------- | ------------------------- |
...
@@ -225,8 +226,6 @@ stopBackgroundRunning(context: Context, callback: AsyncCallback<void>): vo
...
@@ -225,8 +226,6 @@ stopBackgroundRunning(context: Context, callback: AsyncCallback<void>): vo
Requests to cancel a continuous task. This API uses an asynchronous callback to return the result.
Requests to cancel a continuous task. This API uses an asynchronous callback to return the result.