未验证 提交 ee6fd315 编写于 作者: N ningning 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md.

Signed-off-by: Nningning <wangningning14@huawei.com>
上级 b9df20f1
...@@ -211,7 +211,6 @@ cancelSuspendDelay(requestId: number): void ...@@ -211,7 +211,6 @@ cancelSuspendDelay(requestId: number): void
} }
``` ```
## backgroundTaskManager.startBackgroundRunning ## backgroundTaskManager.startBackgroundRunning
startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent, callback: AsyncCallback&lt;void&gt;): void startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent, callback: AsyncCallback&lt;void&gt;): void
...@@ -228,7 +227,7 @@ startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: Want ...@@ -228,7 +227,7 @@ startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: Want
| --------- | ---------------------------------- | ---- | ---------------------------------------- | | --------- | ---------------------------------- | ---- | ---------------------------------------- |
| context | Context | 是 | 应用运行的上下文。<br>FA模型的应用Context定义见[Context](js-apis-inner-app-context.md)<br>Stage模型的应用Context定义见[Context](js-apis-inner-application-context.md)。 | | context | Context | 是 | 应用运行的上下文。<br>FA模型的应用Context定义见[Context](js-apis-inner-app-context.md)<br>Stage模型的应用Context定义见[Context](js-apis-inner-application-context.md)。 |
| bgMode | [BackgroundMode](#backgroundmode) | 是 | 长时任务模式。 | | bgMode | [BackgroundMode](#backgroundmode) | 是 | 长时任务模式。 |
| wantAgent | [WantAgent](js-apis-app-ability-wantAgent.md) | 是 | 通知参数,用于指定点击长时任务通知点击后跳转的界面。 //// | | wantAgent | [WantAgent](js-apis-app-ability-wantAgent.md) | 是 | 通知参数,用于指定点击长时任务通知后跳转的界面。 |
| callback | AsyncCallback&lt;void&gt; | 是 | 回调函数,申请长时任务成功时,err为undefined,否则为错误对象。 | | callback | AsyncCallback&lt;void&gt; | 是 | 回调函数,申请长时任务成功时,err为undefined,否则为错误对象。 |
**错误码** **错误码**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册