public void PositionError(object sender, Plugin.Geolocator.Abstractions.PositionErrorEventArgs e) { //await StopListeningLocation(true,false); Debug.WriteLine(e.Error + "\n"); //Handle event here for errors //await StartListeningLocation(); }
private void Locator_PositionError(object sender, Plugin.Geolocator.Abstractions.PositionErrorEventArgs e) { // warn user that GPS has stopped working builder.SetContentTitle("GPS error: "); builder.SetContentText(e.Error.ToString() + ": " + DateTime.Now.ToShortTimeString()); notification = builder.Build(); notificationManager.Notify(notificationID, notification); // create a timer to re-check and re-warn if necesssary TimerState s = new TimerState(); TimerCallback timerDelegate = new TimerCallback(CheckLocationStatus); Timer timer = new Timer(timerDelegate, s, 60000, 60000); s.tmr = timer; }
void CrossGeolocator_Current_PositionError(object sender, Plugin.Geolocator.Abstractions.PositionErrorEventArgs e) { labelGPSTrack.Text = "Error en la localización: " + e.Error.ToString(); }
void Current_PositionError(object sender, Plugin.Geolocator.Abstractions.PositionErrorEventArgs e) { this.lastUpdated.Text = "Error loading position"; this.latitude.Text = ""; this.longitude.Text = ""; }