namespace Darnton.Blazor.DeviceInterop.Geolocation { /// /// Option properties to be passed to Geolocation functions, based on https://developer.mozilla.org/en-US/docs/Web/API/PositionOptions. /// public class PositionOptions { /// /// Enable high accuracy mode for best possible results. /// May be slower or increase power consumption. Defaults to false. /// public bool EnableHighAccuracy { get; set; } = false; /// /// Maximum length of time allowed to return a position (in milliseconds). /// Set to null for no timeout. Defaults to null. /// public long? Timeout { get; set; } = null; /// /// Maximum allowed age for a cached result. /// Set to null to disregard the age of cached results. /// Set to 0 to skip the cache and attempt a fresh result every time. Defaults to 0. /// public long? MaximumAge { get; set; } = 0; } }