简体   繁体   English

在核心位置框架中打开/关闭硬件模块

[英]Turn On/Off Hardware modules in Core Location framework

As we all know Core Location framework uses all available in iPhone onboard hardware, including Accelerometer, Magnetometer, Gyroscope, Barometer, GPS, and Bluetooth for iBeacon. 众所周知, Core Location框架使用了iPhone板上所有可用的硬件,包括加速度计,磁力计,陀螺仪,气压计,GPS和iBeacon的蓝牙。

// Here are CL classes that use iPhone's hardware

var coordinate: CLLocationCoordinate2D { get }
var altitude: CLLocationDistance { get }
var horizontalAccuracy: CLLocationAccuracy { get }
var speed: CLLocationSpeed { get }

Is it possible to turn each of these hardware modules on/off programmatically via Swift? 是否可以通过Swift以编程方式打开/关闭每个硬件模块?

据我所知,不可能直接控制各个硬件模块。

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

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