mirror of
https://github.com/farcasclaudiu/BlazorDeviceInterop.git
synced 2026-06-22 05:01:01 +03:00
26 lines
970 B
C#
26 lines
970 B
C#
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
|
|
}
|
|
} |