如何知道GeoCoordinateWatcher的来源? [英] How to know GeoCoordinateWatcher source?
问题描述
大家好,
我开发了一个使用GeoCoordinateWatcher来显示设备位置的应用程序。
I've developed an application that uses GeoCoordinateWatcher to show the device position.
我知道GeoCoordinateWatcher使用不同的来源获取位置(GPS,WiFI,...),但有没有办法知道它使用的是哪个来源?
I know that GeoCoordinateWatcher uses different sources to get the position (GPS, WiFI, ...) but is there a way to know which source it uses?
谢谢
推荐答案
您好AC_85,
Hi AC_85,
欢迎
到开发通用Windows应用论坛! 请使用 标记 当
发布到这个论坛时,谢谢!
我看到 GeoCoordinateWatcher 类版本信息是.NET Framework和Windows Phone Silverlight,你想开发一个app吗?
是Windows Phone Silverlight的目标?据我所知,没有Api可以在Windows Phone Silverlight中获取源代码。
I see that GeoCoordinateWatcher class Version Information is .NET Framework and Windows Phone Silverlight, do you want to develop an app which is target for Windows Phone Silverlight? As far as I know, there is no Api to get the source in the Windows Phone Silverlight.
但在UWP中,你可以使用< PositionSource Enum 来指示用于以下内容的来源获得
Geocoordinate 。如果你想要实现该功能,我建议将您的应用移植到UWP。请参阅将应用移植到Windows 10 。
But in UWP, you can use the PositionSource Enum to indicates the source used to obtain a Geocoordinate. If you want to implement the function, I recommend to port your app to UWP. See Porting apps to Windows 10.
祝你好运,
Breeze
这篇关于如何知道GeoCoordinateWatcher的来源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!