void UpdateProperties( DeviceLocationProperties props )
Sub UpdateProperties( _ ByVal props As DeviceLocationProperties _ )
Parameters
- props
void UpdateProperties( DeviceLocationProperties props )
Sub UpdateProperties( _ ByVal props As DeviceLocationProperties _ )
| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run |
{
await QueuedTask.Run(() =>
{
// Get the current device location properties
var dlProps = DeviceLocationService.Instance.GetProperties();
//Change the accuracy threshold
dlProps.AccuracyThreshold = 22.5; // meters
// Update the properties on the device location source
DeviceLocationService.Instance.UpdateProperties(dlProps);
});
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)