mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-30 10:53:31 +00:00
输入networkId获取设备信息
Signed-off-by: 史晓晓 <shixiaoxiao.30044129@huawei.com>
This commit is contained in:
parent
fa4e57d8a3
commit
1fc3f7c941
@ -463,7 +463,7 @@ declare namespace deviceManager {
|
||||
* @param { string } networkId - device network id.
|
||||
* @param { AsyncCallback<DeviceInfo> } callback - Indicates the callback to be invoked upon getDeviceInfo.
|
||||
* @throws { BusinessError } 401 - Input parameter error.
|
||||
* @return Returns local device info.
|
||||
* @returns Returns local device info.
|
||||
* @systemapi this method can be used only by system applications.
|
||||
*/
|
||||
getDeviceInfo(networkId: string, callback: AsyncCallback<DeviceInfo>): void;
|
||||
@ -474,7 +474,7 @@ declare namespace deviceManager {
|
||||
* @since 10
|
||||
* @param { string } networkId - device network id.
|
||||
* @throws { BusinessError } 401 - Input parameter error.
|
||||
* @return Returns local device info.
|
||||
* @returns Returns local device info.
|
||||
* @systemapi this method can be used only by system applications.
|
||||
*/
|
||||
getDeviceInfo(networkId: string): Promise<DeviceInfo>;
|
||||
|
Loading…
Reference in New Issue
Block a user