Location Collector
Collector to collect Last Known Location information, this collector will first try to use FusedLocationProviderClient to collect last location data, if FusedLocationProviderClient class not found or failed to retrieve the location, it fallbacks to Android framework Location API to retrieve the last known location. You may need to override this LocationCollector to collect more recent location.
Functions
Link copied to clipboard
open fun collect(context: Context, listener: FRListener<JSONObject>, container: JSONObject, collectors: List<DeviceCollector>)
Collect the device data with the provided DeviceCollector
Collect the device data.
Link copied to clipboard
Fallback to use LocationManager
Link copied to clipboard
Intercept the chain
Link copied to clipboard
Convert Location to JSONObject