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); }
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); }