Geolocation Class

Definition

Provides a way to get the current location of the device.

C#
public static class Geolocation
Inheritance
System.Object
Geolocation

Methods

GetLastKnownLocationAsync()

Returns the last known location of the device.

GetLocationAsync()

Returns the current location of the device.

GetLocationAsync(GeolocationRequest, CancellationToken)

Returns the current location of the device using the specified criteria.

GetLocationAsync(GeolocationRequest)

Returns the current location of the device using the specified criteria.

Applies to

Product Versions
Xamarin Essentials Android Latest
Xamarin Essentials iOS Latest
Xamarin Essentials Shared Latest
Xamarin Essentials TVOS Latest
Xamarin Essentials UWP Latest
Xamarin Essentials WatchOS Latest