获取设备信息
参数名 | 类型 | 是否可选 | 默认值 | 含义 |
---|---|---|---|---|
options |
Object |
可选 | 选项 |
参数名 | 类型 | 是否一定返回 | 含义 |
---|---|---|---|
result |
Object |
响应对象 | |
result.code |
String |
错误码 | |
result.msg |
String |
错误信息 | |
result.data |
Object |
响应数据 | |
result.data.model |
String |
设备型号 | |
result.data.manufacturer |
String |
设备厂商 | |
result.data.simulator |
Boolean |
是否为模拟器 |
let result = QN.device.getInfoSync(); console.log(result.data);