[UWP]无法读取System.GPS.Status值 [英] [UWP]Unable to read System.GPS.Status value

查看:60
本文介绍了[UWP]无法读取System.GPS.Status值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


在Universal App Windows 10上我遇到了一些问题。


我想检查GPS是开还是关在我的设备上,所以我试图从

" System.GPS.Status"中读取值,但我没有得到如何阅读GPS相关数据。


请帮助我!!!


提前致谢。


问候,


Vikash Singh




vikash singh

解决方案

您好Vikash,


您是如何从System.GPS.Status中读取值的?据我所知
Geolocator类
将通过可用资源自动读取数据,不仅来自GPS,还来自wifi等。



- 詹姆斯


Hello,

On Universal App Windows 10 I have some issue.

I want to check whether GPS is On or Off on my device, so I am trying to read value from

"System.GPS.Status",  but I didn't get how to read GPS related data.

Please help me!!!

Thanks in advance.

Regards,

Vikash Singh


vikash singh

解决方案

Hi Vikash,

How did you read the value from System.GPS.Status? As I know Geolocator class will read the data automatically by available resource, not only from GPS, but also from wifi and etc..

--James


这篇关于[UWP]无法读取System.GPS.Status值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆