Skip to main content

GeolocationRequest

Namespace: Wisej.Hybrid.Shared.Geolocation

Assembly: Wisej.Hybrid

Represents the criteria for a location request.

public class GeolocationRequest

Constructors

Instance memberGeolocationRequest()

Initializes a new instance of the GeolocationRequest class with default options.

Instance memberGeolocationRequest(accuracy)

Initializes a new instance of the GeolocationRequest class with the specified accuracy.

NameTypeDescription
accuracyGeolocationAccuracyThe desired accuracy for determining the location.

Instance memberGeolocationRequest(accuracy, timeout)

Initializes a new instance of the GeolocationRequest class with the specified accuracy and timeout.

NameTypeDescription
accuracyGeolocationAccuracyThe desired accuracy for determining the location.
timeoutTimeSpanA timeout value after which the location determination will be cancelled.

Properties

Instance memberDesiredAccuracy

GeolocationAccuracy: Gets or sets the desired accuracy of the resulting location.

Instance memberRequestFullAccuracy

Boolean: Gets or sets whether to request full permission to temporarily use location services with full accuracy.

This value is only used on iOS 14+. Using this functionality requires the NSLocationTemporaryUsageDescriptionDictionary key to be present in the info.plist file.

Instance memberTimeout

TimeSpan: Gets or sets the location request timeout.