Close Method (DeviceLocationService)
Closes the current device location source connection.
This method must be called on the MCT. Use QueuedTask.Run.
Close the Current Device Location Source
//Is there a current device source?
var src = DeviceLocationService.Instance.GetSource();
if (src == null)
return;//no current source
await QueuedTask.Run(() =>
{
DeviceLocationService.Instance.Close();
});
Target Platforms: Windows 11, Windows 10, Windows 8.1
ArcGIS Pro version: 2.7 or higher.