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

!8799 翻译完成:8699 【轻量级 PR】:update...

!8799 翻译完成:8699 【轻量级 PR】:update zh-cn/application-dev/reference/apis/js-apis-distributedMissionManager.md.
Merge pull request !8799 from wusongqing/TR8699
...@@ -113,9 +113,9 @@ Registers a mission status listener. This API uses a promise to return the resul ...@@ -113,9 +113,9 @@ Registers a mission status listener. This API uses a promise to return the resul
``` ```
## distributedMissionManager.unregisterMissionListener ## distributedMissionManager.unRegisterMissionListener
unregisterMissionListener(parameter: MissionDeviceInfo, callback: AsyncCallback<void>): void; unRegisterMissionListener(parameter: MissionDeviceInfo, callback: AsyncCallback<void>): void;
Deregisters a mission status listener. This API uses an asynchronous callback to return the result. Deregisters a mission status listener. This API uses an asynchronous callback to return the result.
...@@ -136,15 +136,15 @@ Deregisters a mission status listener. This API uses an asynchronous callback to ...@@ -136,15 +136,15 @@ Deregisters a mission status listener. This API uses an asynchronous callback to
var parameter = { var parameter = {
deviceId: remoteDeviceId deviceId: remoteDeviceId
}; };
distributedMissionManager.unregisterMissionListener(parameter, (error) => { distributedMissionManager.unRegisterMissionListener(parameter, (error) => {
console.log("error.code = " + error.code) console.log("error.code = " + error.code)
}) })
``` ```
## distributedMissionManager.unregisterMissionListener ## distributedMissionManager.unRegisterMissionListener
unregisterMissionListener(parameter: MissionDeviceInfo): Promise<void> unRegisterMissionListener(parameter: MissionDeviceInfo): Promise<void>
Deregisters a mission status listener. This API uses a promise to return the result. Deregisters a mission status listener. This API uses a promise to return the result.
...@@ -170,7 +170,7 @@ Deregisters a mission status listener. This API uses a promise to return the res ...@@ -170,7 +170,7 @@ Deregisters a mission status listener. This API uses a promise to return the res
var parameter = { var parameter = {
deviceId: remoteDeviceId deviceId: remoteDeviceId
}; };
distributedMissionManager.unregisterMissionListener(parameter) distributedMissionManager.unRegisterMissionListener(parameter)
.then(data => { .then(data => {
console.info('success data is ' + data); console.info('success data is ' + data);
}).catch(error => { }).catch(error => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册