private async Task LocatorThread()
        {
            while (shouldRun)
            {
                position = await locator.GetPositionAsync();

                gotLocation = true;

                await Task.Delay(TimeSpan.FromSeconds(30));
            }
        }
Beispiel #2
0
        private async Task <Plugin.Geolocator.Abstractions.Position> FetchLocation()
        {
            _lastPosition = await _geolocator.GetPositionAsync(timeoutMilliseconds : 10000);

            return(_lastPosition);
        }