如何查询设备的SDK版本等信息

如何查询设备的SDK版本等信息

HarmonyOS
2024-01-21 14:03:51
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
commonli

使用deviceInfo模块获取SDK版本等信息。

import { deviceInfo } from '@kit.BasicServicesKit'; 
let distributionOSApiVersion: number = deviceInfo.distributionOSApiVersion; 
console.info('the value of the deviceinfo distributionOSApiVersion is :' + distributionOSApiVersion);

参考链接

deviceInfo (设备信息)

分享
微博
QQ
微信
回复
2024-01-22 16:50:46
相关问题
如何获取App版本号,版本信息
772浏览 • 1回复 待解决
如何获取应用版本信息
242浏览 • 1回复 待解决
如何获取设备CPU信息
157浏览 • 1回复 待解决
如何获取app配置版本信息
246浏览 • 1回复 待解决
如何获取设备相关信息
251浏览 • 1回复 待解决
如何获取设备信息,你会吗?
350浏览 • 1回复 待解决
如何通过命令行查询窗口信息
243浏览 • 1回复 待解决
SignalInformation怎么获取LAC CID信息
5723浏览 • 1回复 待解决
如何在Native侧获取APP版本信息
231浏览 • 1回复 待解决
stage模型怎么获取app版本信息
55浏览 • 0回复 待解决
如何编译鸿蒙版本WebRTC?
723浏览 • 1回复 待解决