mirror of
https://github.com/farcasclaudiu/BlazorDeviceInterop.git
synced 2026-06-22 07:01:03 +03:00
Reorganise project structure and namespaces. Remove Leaflet project and replace with Darnton.Blazor.Leaflet package.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
namespace Darnton.Blazor.DeviceInterop.Geolocation
|
||||
{
|
||||
/// <summary>
|
||||
/// An enumeration of error codes used by <see cref="GeolocationPositionError"/>.
|
||||
/// <see href="https://developer.mozilla.org/en-US/docs/Web/API/GeolocationPositionError/code"/>.
|
||||
/// </summary>
|
||||
public enum GeolocationPositionErrorCode
|
||||
{
|
||||
/// <summary>
|
||||
/// Geolocation failoed because the device does not support geolocation. Not part of W3C spec.
|
||||
/// </summary>
|
||||
DEVICE_NOT_SUPPORTED = 0,
|
||||
/// <summary>
|
||||
/// Geolocation failed because permission to access location was denied.
|
||||
/// </summary>
|
||||
PERMISSION_DENIED = 1,
|
||||
/// <summary>
|
||||
/// Geolocation failed because of an internal error on the device.
|
||||
/// </summary>
|
||||
POSITION_UNAVAILABLE = 2,
|
||||
/// <summary>
|
||||
/// Geolocation failed because no position was returned in time.
|
||||
/// </summary>
|
||||
TIMEOUT = 3
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user