GeolocationRequest Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
- 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
- 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.