简体   繁体   English

如何在Windows Runtime JavaScript App中获取操作系统和设备信息?

[英]How get os and device info in Windows Runtime JavaScript App?

I'm using analytics to better understand user profile. 我正在使用分析功能更好地了解用户个人资料。 I need some information like OS version and device info (not sensors info but manufacturer, phone model etc). 我需要一些信息,例如操作系统版本和设备信息(不是传感器信息,而是制造商,手机型号等)。

I did not find anything obvious in the documentation . 我在文档中没有发现任何明显的内容

My app is a Universal Windows Platform (UWP) JavaScript Application 我的应用是通用Windows平台(UWP)JavaScript应用

Most of the information you're looking for is in the Windows.System.Profile.AnalyticsInfo class. 您正在寻找的大多数信息都在Windows.System.Profile.AnalyticsInfo类中。

More information is available through the Windows.System.Profile namespace. 可通过Windows.System.Profile命名空间获得更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从 Sentry Javascript 显示/获取运行时、操作系统、设备上下文 - Show/Get runtime, os, device contexts from Sentry Javascript 使用Javascript在Windows 8应用程序中获取设备信息 - Get the Device information in Windows 8 app using Javascript 如何在 OS X 上安装 Javascript 运行时解释器? - How do I get a Javascript runtime interpreter installed on OS X? JavaScript:如何在OS Windows中访问系统窗口 - JavaScript: How get an access to the system windows in OS Windows 如何从JavaScript应用程序调用Windows运行时的SQLite函数 - How to call functions of SQLite for Windows Runtime from JavaScript App JavaScript 运行时错误:“$”在 Windows 应用程序开发中未定义 - JavaScript runtime error: '$' is undefined in Windows App Development 如何在Firefox OS设备上调试JavaScript文件 - How to debug javascript file on Firefox OS device jQuery Mobile Windows Store应用程序:JavaScript运行时错误:无法获取未定义或空引用的属性'indexOf' - jQuery Mobile Windows Store App: JavaScript runtime error: Unable to get property 'indexOf' of undefined or null reference JavaScript运行时错误:无法在Windows 8应用程序中添加动态内容 - JavaScript runtime error: Unable to add dynamic content in Windows 8 app 如何获取Windows 8应用程序的dpix和dpiy值(JavaScript) - How To get dpix and dpiy value for Windows 8 app (Javascript)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM