未验证 提交 2bd664a9 编写于 作者: Q ql 提交者: Gitee

update zh-cn/application-dev/ability/stage-call.md.

Signed-off-by: Nql <qianli16@huawei.com>
上级 579ddadc
......@@ -160,6 +160,8 @@ context.startAbilityByCall({
```
从DeviceManager获取指定设备的deviceId,具体示例代码如下:
```ts
import deviceManager from '@ohos.distributedHardware.deviceManager';
var dmClass;
function getRemoteDeviceId() {
if (typeof dmClass === 'object' && dmClass != null) {
var list = dmClass.getTrustedDeviceListSync();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册