protected void SendError(MvxLocationError error)
        {
            var errorCallback = _errorCallback;

            if (errorCallback != null)
            {
                errorCallback(error);
            }
        }
Пример #2
0
        private void OnError(MvxLocationError error)
        {
            switch (error.Code) {
                case MvxLocationErrorCode.PermissionDenied : StatusMessage = "Access to location service denied"; break;
                case MvxLocationErrorCode.PositionUnavailable: StatusMessage = "Current position is unavailable"; break;
                case MvxLocationErrorCode.ServiceUnavailable: StatusMessage = "Location service is unavailable"; break;
                case MvxLocationErrorCode.Timeout: StatusMessage = "Location service has a timeout"; break;
            }

            Latitude = "";
            Longitude = "";
        }
        private async void OnError(MvxLocationError error)
        {
            try
            {
                string Lat, Lng;
                Mvx.Error("Seen location error {0}", error.Code);
            }
            catch (Exception e)
            {

            }
        }
 private void OnError(MvxLocationError error)
 {
     Error = error.Code.ToString();
 }
Пример #5
0
 private void OnLocationError(MvxLocationError obj)
 {
 }
Пример #6
0
		void OnError(MvxLocationError error)
		{
			Mvx.Error("Failed location retrieval. {0}", error);
		}
 protected void SendError(MvxLocationError error)
 {
     var errorCallback = _errorCallback;
     if (errorCallback != null)
         errorCallback(error);
 }
Пример #8
0
 private void UpdateError(MvxLocationError error)
 {
     _errorText.Text = error == null ? "" : error.Code.ToString();
 }
Пример #9
0
 private void OnError(MvxLocationError error)
 {
     RunOnUiThread(() => UpdateError(error));
 }
Пример #10
0
 public void OnError(MvxLocationError obj)
 {
     Mvx.Trace(MvxTraceLevel.Error, "Failed to get location: {0}", obj.Code);
 }
 private void OnError(MvxLocationError error)
 {
     Mvx.Error("Seen location error {0}", error.Code);
 }
 private void OnError(MvxLocationError error)
 {
     // TODO - shuold handle the error better than this really!
     LastError = error.Code.ToString();
 }
 /// <summary>
 /// Called when [error].
 /// </summary>
 /// <param name="error">The error.</param>
 private void OnError(MvxLocationError error)
 {
     Mvx.Warning("Error seen during location {0}", error.Code);
 }
 private void OnError(MvxLocationError obj)
 {
     // ignored!
 }