Пример #1
0
 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();
 }
Пример #2
0
        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;
        }
Пример #3
0
 void CrossGeolocator_Current_PositionError(object sender, Plugin.Geolocator.Abstractions.PositionErrorEventArgs e)
 {
     labelGPSTrack.Text = "Error en la localización: " + e.Error.ToString();
 }
Пример #4
0
 void Current_PositionError(object sender, Plugin.Geolocator.Abstractions.PositionErrorEventArgs e)
 {
     this.lastUpdated.Text = "Error loading position";
     this.latitude.Text    = "";
     this.longitude.Text   = "";
 }