在 Core Location 框架中打开 On/Off 个硬件模块
Turn On/Off Hardware modules in Core Location framework
众所周知 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 }
是否可以通过 Swift 以编程方式打开这些硬件模块中的每一个 on/off?
据我所知,无法直接控制各个硬件模块。
众所周知 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 }
是否可以通过 Swift 以编程方式打开这些硬件模块中的每一个 on/off?
据我所知,无法直接控制各个硬件模块。