PositionOptions Class
The options of a request of a position (https://w3c.github.io/geolocation/#position_options_interface).
public sealed class PositionOptionsConstructors
| Name | Description |
|---|---|
| PositionOptions() |
PositionOptions()
Geolocation.cspublic PositionOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| EnableHighAccuracy | Gets whether the document asks for the most accurate position. |
| MaximumAge | Gets the maximum age of a cached position that can be returned, in milliseconds (0 by default: a new position is acquired). |
| Timeout | Gets the maximum time to acquire the position, in milliseconds (no limit by default). |
EnableHighAccuracy
Geolocation.csGets whether the document asks for the most accurate position.
public bool EnableHighAccuracy { get; init; }MaximumAge
Geolocation.csGets the maximum age of a cached position that can be returned, in milliseconds (0 by default: a new position is acquired).
public uint MaximumAge { get; init; }Timeout
Geolocation.csGets the maximum time to acquire the position, in milliseconds (no limit by default).
public uint Timeout { get; init; }