Compartilhar via


GeolocationRequest Construtores

Definição

Sobrecargas

GeolocationRequest()

Inicializa uma nova instância da classe GeolocationRequest com opções padrão.

GeolocationRequest(GeolocationAccuracy)

Inicializa uma nova instância da GeolocationRequest classe com a precisão especificada.

GeolocationRequest(GeolocationAccuracy, TimeSpan)

Inicializa uma nova instância da GeolocationRequest classe com a precisão e o tempo limite especificados.

GeolocationRequest()

Origem:
GeolocationRequest.shared.cs
Origem:
GeolocationRequest.shared.cs

Inicializa uma nova instância da classe GeolocationRequest com opções padrão.

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

Aplica-se a

GeolocationRequest(GeolocationAccuracy)

Origem:
GeolocationRequest.shared.cs
Origem:
GeolocationRequest.shared.cs

Inicializa uma nova instância da GeolocationRequest classe com a precisão especificada.

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)

Parâmetros

accuracy
GeolocationAccuracy

A precisão desejada para determinar o local.

Aplica-se a

GeolocationRequest(GeolocationAccuracy, TimeSpan)

Origem:
GeolocationRequest.shared.cs
Origem:
GeolocationRequest.shared.cs

Inicializa uma nova instância da GeolocationRequest classe com a precisão e o tempo limite especificados.

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)

Parâmetros

accuracy
GeolocationAccuracy

A precisão desejada para determinar o local.

timeout
TimeSpan

Um valor de tempo limite após o qual a determinação do local será cancelada.

Aplica-se a