public LocationException(LocationErrorType error) : base("A geolocation error occured: " + error) { if (!Enum.IsDefined(typeof(LocationErrorType), error)) { throw new ArgumentException("error is not a valid GelocationError member", nameof(error)); } Error = error; }
public PositionErrorEventArgs(LocationErrorType error) { Error = error; }
protected virtual void OnLocationSensorError(LocationErrorType error) { ResetGpsLocation(); LocationSensorError?.Invoke(this, new LocationErrorEventArgs(error)); }