繁体   English   中英

CLLocationManager distanceFilter如何工作? 您是否不需要更新才能知道手机在哪里?

[英]How does CLLocationManager distanceFilter work? Don't you need an update to know where the phone is?

我想知道CLLocationManager的distanceFilter如何工作。 根据文档,

 The minimum distance (measured in meters) a device must move laterally before an update event is generated.

所以电话已经收集到了位置,但是distanceFilter只是阻止我的回叫得到通知?

我不知道使用distanceFilter如何节省电池寿命,好像是Catch-22。

我相信quantumpotato的评论接近。 通过Apple自己的测试,无论如何,他们已经确定必须在天线上使用哪种功率水平才能获得一定精度的读数。

作为使用过此API的人,我同意您的看法,它并不完美,而且会产生误导。 将这些标志视为“所需级别”,并根据要制作的应用程序类型,只需要选择一个即可。

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM