IosLocationProvider
A LocationProvider built on CLLocationManager.
LocationProvider.permission and LocationProvider.requestPermission delegate to an IosLocationPermissionRequester.
Each collection creates a CLLocationManager on the main dispatcher, applies the request's accuracy and distance preferences, and stops the manager when collection ends.
LocationAccuracy.BestForNavigation maps to kCLLocationAccuracyBestForNavigation, LocationAccuracy.High maps to kCLLocationAccuracyBest, LocationAccuracy.Balanced maps to kCLLocationAccuracyHundredMeters, LocationAccuracy.Low maps to kCLLocationAccuracyKilometer, and LocationAccuracy.Lowest maps to kCLLocationAccuracyReduced.
kCLErrorDenied maps to LocationUnavailableReason.ServicesDisabled when location services are disabled and to LocationUnavailableReason.PermissionDenied otherwise. kCLErrorPromptDeclined also maps to LocationUnavailableReason.PermissionDenied. kCLErrorLocationUnknown and kCLErrorNetwork map to LocationUnavailableReason.TemporarilyUnavailable. Other Core Location errors map to LocationUnavailableReason.UnexpectedFailure.
Properties
Whether this provider has a usable platform implementation.
Current foreground location permission.
Functions
Starts a foreground permission request and returns immediately.
Returns a cold stream of foreground location updates.