PositionOptions Class

The options of a request of a position (https://w3c.github.io/geolocation/#position_options_interface).

public sealed class PositionOptions

Constructors

NameDescription
PositionOptions()

PositionOptions()

Geolocation.cs
public PositionOptions()

No documentation is available.

Properties

NameDescription
EnableHighAccuracyGets whether the document asks for the most accurate position.
MaximumAgeGets the maximum age of a cached position that can be returned, in milliseconds (0 by default: a new position is acquired).
TimeoutGets the maximum time to acquire the position, in milliseconds (no limit by default).

EnableHighAccuracy

Geolocation.cs

Gets whether the document asks for the most accurate position.

public bool EnableHighAccuracy { get; init; }

MaximumAge

Geolocation.cs

Gets 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; }

Gets the maximum time to acquire the position, in milliseconds (no limit by default).

public uint Timeout { get; init; }