GeolocationRequest
Namespace: Wisej.Hybrid.Shared.Geolocation
Assembly: Wisej.Hybrid
Represents the criteria for a location request.
- C#
- VB.NET
public class GeolocationRequest
Public Class GeolocationRequest
Constructors
GeolocationRequest()
Initializes a new instance of the GeolocationRequest class with default options.
GeolocationRequest(accuracy)
Initializes a new instance of the GeolocationRequest class with the specified accuracy.
| Name | Type | Description |
|---|---|---|
| accuracy | GeolocationAccuracy | The desired accuracy for determining the location. |
GeolocationRequest(accuracy, timeout)
Initializes a new instance of the GeolocationRequest class with the specified accuracy and timeout.
| Name | Type | Description |
|---|---|---|
| accuracy | GeolocationAccuracy | The desired accuracy for determining the location. |
| timeout | TimeSpan | A timeout value after which the location determination will be cancelled. |
Properties
DesiredAccuracy
GeolocationAccuracy: Gets or sets the desired accuracy of the resulting location.
RequestFullAccuracy
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.
Timeout
TimeSpan: Gets or sets the location request timeout.