未验证 提交 579ddadc 编写于 作者: Q ql 提交者: Gitee

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

Signed-off-by: Nql <qianli16@huawei.com>
上级 be6cca8f
......@@ -180,6 +180,7 @@ context.startAbility(want).then((data) => {
```
从DeviceManager获取指定设备的deviceId,具体示例代码如下:
```ts
import deviceManager from '@ohos.distributedHardware.deviceManager';
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.
先完成此消息的编辑!
想要评论请 注册