Map.LastUserLocation Property
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.
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.