Share via


GeolocationRequest Constructors

Definition

Overloads

GeolocationRequest()

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

GeolocationRequest(GeolocationAccuracy)

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

GeolocationRequest(GeolocationAccuracy, TimeSpan)

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

GeolocationRequest()

Source:
GeolocationRequest.shared.cs
Source:
GeolocationRequest.shared.cs

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

public:
 GeolocationRequest();
public GeolocationRequest ();
Public Sub New ()

Applies to

GeolocationRequest(GeolocationAccuracy)

Source:
GeolocationRequest.shared.cs
Source:
GeolocationRequest.shared.cs

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

public:
 GeolocationRequest(Microsoft::Maui::Devices::Sensors::GeolocationAccuracy accuracy);
public GeolocationRequest (Microsoft.Maui.Devices.Sensors.GeolocationAccuracy accuracy);
new Microsoft.Maui.Devices.Sensors.GeolocationRequest : Microsoft.Maui.Devices.Sensors.GeolocationAccuracy -> Microsoft.Maui.Devices.Sensors.GeolocationRequest
Public Sub New (accuracy As GeolocationAccuracy)

Parameters

accuracy
GeolocationAccuracy

The desired accuracy for determining the location.

Applies to

GeolocationRequest(GeolocationAccuracy, TimeSpan)

Source:
GeolocationRequest.shared.cs
Source:
GeolocationRequest.shared.cs

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

public:
 GeolocationRequest(Microsoft::Maui::Devices::Sensors::GeolocationAccuracy accuracy, TimeSpan timeout);
public GeolocationRequest (Microsoft.Maui.Devices.Sensors.GeolocationAccuracy accuracy, TimeSpan timeout);
new Microsoft.Maui.Devices.Sensors.GeolocationRequest : Microsoft.Maui.Devices.Sensors.GeolocationAccuracy * TimeSpan -> Microsoft.Maui.Devices.Sensors.GeolocationRequest
Public Sub New (accuracy As GeolocationAccuracy, timeout As TimeSpan)

Parameters

accuracy
GeolocationAccuracy

The desired accuracy for determining the location.

timeout
TimeSpan

A timeout value after which the location determination will be cancelled.

Applies to