预追踪,当用户进入感兴趣的区域时启动精细监控的位置管理器,并根据当前上下文做出决策。目前,默认情况下仅实现了距离功能。
监控区域的纬度、经度、半径
距离
精度
示例
setupParameters(distance: Double, latitude: Double, longitude: Double, radius: Double, accuracy: CLLocationAccuracy)
addLocation(distance: Double, latitude: Double, longitude: Double, radius: Double, name: String)
removeLocation(name: String)
notifyPeople()
要运行示例项目,请克隆仓库,然后首先从 Example 目录中运行 pod install
Pretracking 可以通过 CocoaPods 获取。要安装它,只需将以下行添加到您的 Podfile 中
pod "Pretracking"
notifyPeople()
中添加本地通知Pretracking 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。