Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
//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