get-device-info.md 740 字节
Newer Older
D
DCloud_LXH 已提交
1 2 3 4
## uni.getDeviceInfo(options?) @getdeviceinfo

<!-- UTSAPIJSON.getDeviceInfo.description -->

D
DCloud_LXH 已提交
5 6
<!-- UTSAPIJSON.getDeviceInfo.compatibility -->

D
DCloud_LXH 已提交
7 8 9 10
<!-- UTSAPIJSON.getDeviceInfo.param -->

<!-- UTSAPIJSON.getDeviceInfo.returnValue -->

D
DCloud_LXH 已提交
11 12 13 14
::: warning 注意事项
- 获取OAID、AndroidID等其他设备信息,[见插件市场](https://ext.dcloud.net.cn/search?q=oaid&orderBy=Relevance&uni-appx=1)
- romName值域候选 [详见](./get-system-info.md#romName)
- app平台devicePixelRatio属性,HBuilderX4.22及以下版本类型为string,HBuilderX4.23版本调整为number
15
:::
W
wanganxp 已提交
16

D
DCloud_LXH 已提交
17 18 19 20 21 22
<!-- UTSAPIJSON.getDeviceInfo.example -->

<!-- UTSAPIJSON.getDeviceInfo.tutorial -->

<!-- UTSAPIJSON.general_type.name -->

D
DCloud_LXH 已提交
23
<!-- UTSAPIJSON.general_type.param -->