/// <summary> /// Handles the <see cref="E:PositionError" /> event. /// </summary> /// <param name="e">The <see cref="PositionErrorEventArgs" /> instance containing the event data.</param> private void OnPositionError(PositionErrorEventArgs e) { var error = PositionError; if (error != null) { error(this, e); } }
/// <summary> /// Handles the <see cref="E:PositionError" /> event. /// </summary> /// <param name="e">The <see cref="PositionErrorEventArgs"/> instance containing the event data.</param> private void OnPositionError(PositionErrorEventArgs e) { StopListening(); var error = PositionError; if (error != null) { error(this, e); } }
/// <summary> /// Handles the <see cref="E:ListenerPositionError" /> event. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="PositionErrorEventArgs" /> instance containing the event data.</param> private void OnListenerPositionError(object sender, PositionErrorEventArgs e) { StopListening(); var error = PositionError; if (error != null) { error(this, e); } }
private async void OnListeningError(object sender, PositionErrorEventArgs e) { if (DEBUG) { var notificator = DependencyService.Get<IToastNotificator> (); var tapped = await notificator.Notify (ToastNotificationType.Info, "GeoLocator", "OnListeningError: "+e.Error.ToString(), TimeSpan.FromSeconds (3)); } }
/// <summary> /// Handles the <see cref="E:ListeningError" /> event. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="PositionErrorEventArgs"/> instance containing the event data.</param> private void OnListeningError(object sender, PositionErrorEventArgs e) { Device.BeginInvokeOnMainThread (() => { position.Text = e.Error.ToString (); }); }
/// <summary> /// Handles the <see cref="E:PositionError" /> event. /// </summary> /// <param name="e">The <see cref="PositionErrorEventArgs"/> instance containing the event data.</param> private void OnPositionError(PositionErrorEventArgs e) { StopListening(); var error = PositionError; if (error != null) { error(this, e); } }
/// <summary> /// Handles the <see cref="E:ListenerPositionError" /> event. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="PositionErrorEventArgs" /> instance containing the event data.</param> private void OnListenerPositionError(object sender, PositionErrorEventArgs e) { StopListening(); var error = PositionError; if (error != null) { error(this, e); } }
void OnPositionError (object sender, PositionErrorEventArgs e) { string message = string.Format ("Error: {0}", e.Error); Debug.WriteLine (message); }
/// <summary> /// Handles the <see cref="E:PositionError" /> event. /// </summary> /// <param name="e">The <see cref="PositionErrorEventArgs" /> instance containing the event data.</param> private void OnPositionError(PositionErrorEventArgs e) { var error = PositionError; if (error != null) { error(this, e); } }
/// <summary> /// Handles the <see cref="E:ListeningError" /> event. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="PositionErrorEventArgs"/> instance containing the event data.</param> private async void OnListeningError(object sender, PositionErrorEventArgs e) { var msg = e.Error.ToString () == "PositionError" ? "No GPS" : e.Error.ToString (); await App.Notificator.Notify (ToastNotificationType.Info, "XToggl", msg, TimeSpan.FromSeconds (1.0), null); }
/// <summary> /// Method that gets called when an error event is triggered in the locator /// </summary> private void PositionError(object sender, PositionErrorEventArgs e) { GpsNotAvailable(); }