Share via


Map.LastUserLocation Property

Definition

Gets the last known user location from the map, or null if not available.

public:
 property Microsoft::Maui::Devices::Sensors::Location ^ LastUserLocation { Microsoft::Maui::Devices::Sensors::Location ^ get(); };
public Microsoft.Maui.Devices.Sensors.Location? LastUserLocation { get; }
member this.LastUserLocation : Microsoft.Maui.Devices.Sensors.Location
Public ReadOnly Property LastUserLocation As Location

Property Value

Remarks

This property requires IsShowingUser to be set to true and location permissions to be granted. The location is updated as the user moves and the map receives location updates.

Applies to