windows-8 - 通用 Windows 平台是否会取代 Windows 8 和 Windows Phone 应用程序的 WinRT?

标签 windows-8 windows-runtime windows-8.1 win-universal-app windows-10

通用 Windows 平台是否会取代 Windows 8 和 Windows Phone 应用程序的 WinRT? 我的意思是,有一个 WinRT 平台专门为 Windows 8 开发 Metro 应用程序。现在,它被 UWP 取代了,不是吗?

最佳答案

这是正确的,UWP 是 future 所有 Windows 设备 (Win 10+) 的新平台。然而,WinRT 并没有被 UWP 取代,而是在其之上的扩展,使 UWP 成为一组更广泛的 API,可以在更多设备上使用。正如微软自己所说:

With this evolution, apps that target the UWP can call not only the WinRT APIs that are common to all devices, but also APIs (including Win32 and .NET APIs) that are specific to the device family the app is running on.

UWP 平台支持“通用设备系列”API 类,所有 Windows 平台(Xbox、手机、桌面等)均支持该 API。您可以使用一些扩展系列来限制应用程序的覆盖范围,例如“移动设备系列”。

但是,可以在运行时优雅地检查和使用这些特定的设备系列 API。例如,您可以在手机上使用 GPS 显示您自己的位置,但不能在 Xbox 上启用该功能。

希望这个答案对您有所帮助,如果您对此还有其他疑问,我建议您阅读这篇有关 UWP 平台的文章:

来源:https://msdn.microsoft.com/library/windows/apps/dn894631.aspx

祝你有美好的一天!

关于windows-8 - 通用 Windows 平台是否会取代 Windows 8 和 Windows Phone 应用程序的 WinRT?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31981237/

相关文章:

javascript - 数据绑定(bind)到 className winjs

c# - WinRT - SnapsToDevicePixels?

windows - 是否有用于在 Windows 8.1 上启用/禁用蓝牙的 API?

c# - 如何在 Windows 8 c# 中将图像 url 保存到本地文件

c# - 是否可以在 winrt 中完全处理用户控件?

c# - .NET Windows 应用商店应用程序中 CultureInfo.GetCultures 的替代品

c# - HttpClient - 下载前下载文件的大小

c# - Windows 8.1中的http客户端取消请求

c# - 你如何导航到 Metro 应用程序中的新页面?

visual-studio - VS11 模板是否应该通过 WinRT 应用程序认证工具包?