未验证 提交 e7271b48 编写于 作者: O openharmony_ci 提交者: Gitee

!8699 【轻量级 PR】:update zh-cn/application-dev/reference/apis/js-apis-distributedMissionManager.md.

Merge pull request !8699 from ql/N/A
......@@ -113,9 +113,9 @@ registerMissionListener(parameter: MissionDeviceInfo, options: MissionCallback):
```
## distributedMissionManager.unregisterMissionListener
## distributedMissionManager.unRegisterMissionListener
unregisterMissionListener(parameter: MissionDeviceInfo, callback: AsyncCallback<void>): void;
unRegisterMissionListener(parameter: MissionDeviceInfo, callback: AsyncCallback<void>): void;
取消任务状态监听, 以回调函数的方式返回。
......@@ -136,15 +136,15 @@ unregisterMissionListener(parameter: MissionDeviceInfo, callback: AsyncCallback&
var parameter = {
deviceId: remoteDeviceId
};
distributedMissionManager.unregisterMissionListener(parameter, (error) => {
distributedMissionManager.unRegisterMissionListener(parameter, (error) => {
console.log("error.code = " + error.code)
})
```
## distributedMissionManager.unregisterMissionListener
## distributedMissionManager.unRegisterMissionListener
unregisterMissionListener(parameter: MissionDeviceInfo): Promise<void>
unRegisterMissionListener(parameter: MissionDeviceInfo): Promise<void>
取消任务状态监听,以promise方式返回执行结果。
......@@ -170,7 +170,7 @@ unregisterMissionListener(parameter: MissionDeviceInfo): Promise<void>
var parameter = {
deviceId: remoteDeviceId
};
distributedMissionManager.unregisterMissionListener(parameter)
distributedMissionManager.unRegisterMissionListener(parameter)
.then(data => {
console.info('success data is ' + data);
}).catch(error => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册