LocationCollector
public class LocationCollector : NSObject, DeviceCollector
LocationCollector is responsible for collecting location information of the device using CLLocationManager.
Note
LocationCollector requests location information by using ‘CLLocationManager.requestLocation()’ which only retrieves the location once at the time of request. Accuracy of location is ‘kCLLocationAccuracyBest’ by default, and can be changed throughFRProximity.setLocationAccuracy(accuracy:)
-
Name of current collector
Declaration
Swift
public var name: String
-
Collects location information using CLLocationManager
Declaration
Swift
public func collect(completion: @escaping DeviceCollectorCallback)
Parameters
completion
completion block