private void HandleRecordingSuspended(object sender, LocationErrorEventArgs e) {
     switch(e.Error) {
     case LocationErrorType.RemainedStationary:
         _bottomInfoDisplayer.Show(InformationMessage.GpsSuspendedStationary, MessageSnackbarDisplayer.LongDuration);
         break;
     case LocationErrorType.SpeedTooLow:
         _bottomInfoDisplayer.Show(InformationMessage.GpsSuspendedSpeed, MessageSnackbarDisplayer.LongDuration);
         break;
     }
 }
        private void HandleRecordingSuspended(object sender, LocationErrorEventArgs e)
        {
            switch (e.Error)
            {
            case LocationErrorType.RemainedStationary:
                this.Show(InformationMessage.GpsSuspendedStationary, AlertViewController.LongDuration);
                break;

            case LocationErrorType.SpeedTooLow:
                this.Show(InformationMessage.GpsSuspendedSpeed, AlertViewController.LongDuration);
                break;
            }
        }
Example #3
0
        private void HandleLocationSensorError(object sender, LocationErrorEventArgs e)
        {
            switch (e.Error)
            {
            case LocationErrorType.RemainedStationary:
                Log.Debug("GPS stationary for too long: stopping recording");
                UserLog.Add(UserLog.Icon.Warning, LogStrings.RecordingSuspendedStationary);
                break;

            case LocationErrorType.SpeedTooLow:
                Log.Debug("User moving too slowly: stopping recording");
                UserLog.Add(UserLog.Icon.Warning, LogStrings.RecordingSuspendedSpeed);
                break;
            }

            RecordingSuspended.Raise(this, e);

            StopRecordingCommand.Execute(null);
        }