Example #1
0
        private async void OnCoordinateDetectionCurrentButtonClicked(object sender, EventArgs e)
        {
            Debug.WriteLine("Testing coordinate current detection.");
            Location location = await LocationDetails.GetCurrentLocation();

            if (location == null)
            {
                return;
            }
            await CoordinateDetection(location);
        }
Example #2
0
        async void OnGetCurrentLocationButtonClicked(object sender, EventArgs e)
        {
            UpdateGettingLocation(true);

            Location currentLocation = await LocationDetails.GetCurrentLocation();

            if (currentLocation != null)
            {
                latitudeEntry.Text  = currentLocation.Latitude.ToString();
                longitudeEntry.Text = currentLocation.Longitude.ToString();
            }

            UpdateGettingLocation(false);
        }