public async Task <ILocation> GetLocationAsync(IGeolocationRequest request, CancellationToken cancelToken) { return(new Location(await Xamarin.Essentials.Geolocation.GetLocationAsync(BuildRequest(request), cancelToken))); }
private static GeolocationRequest BuildRequest(IGeolocationRequest request) { return(new GeolocationRequest((GeolocationAccuracy)request.DesiredAccuracy, request.Timeout)); }
public async Task <ILocation> GetLocationAsync(IGeolocationRequest request) { return(new Location(await Xamarin.Essentials.Geolocation.GetLocationAsync(BuildRequest(request)))); }