コード例 #1
0
 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;
 }
コード例 #2
0
 public PositionErrorEventArgs(LocationErrorType error)
 {
     Error = error;
 }
コード例 #3
0
        protected virtual void OnLocationSensorError(LocationErrorType error)
        {
            ResetGpsLocation();

            LocationSensorError?.Invoke(this, new LocationErrorEventArgs(error));
        }