- Collect location
- Support custom rules
- Use on application in background
- Use on application in suppend
import LLLocation
let rule = Rule.init(with: [(loging: 5 , stoping: 5),(loging: 10 , stoping: 10)]);
locationManager = LLLocationManager.init(rule: rule)
locationManager.useInBackgroundTask = true
locationManager.saveLocationInShareModel = false
locationManager.start()
let model = LocationShareModel.shareModel
model.locations.setAppendBlock { (location) in
let location = location as! CLLocation
//do something with location
}
Email: 277014717@qq.com
LLLocation is released under the MIT License. See LICENSE for details.