public class DeviceLocationProperties
Public Class DeviceLocationProperties
public class DeviceLocationProperties
Public Class DeviceLocationProperties
bool isConnected = DeviceLocationService.Instance.IsDeviceConnected(); var src = DeviceLocationService.Instance.GetSource(); if (src is SerialPortDeviceLocationSource serialPortSrc) { var port = serialPortSrc.ComPort; var antennaHeight = serialPortSrc.AntennaHeight; var dataBits = serialPortSrc.DataBits; var baudRate = serialPortSrc.BaudRate; var parity = serialPortSrc.Parity; var stopBits = serialPortSrc.StopBits; // retrieving spatial reference needs the MCT var sr = await QueuedTask.Run(() => { return serialPortSrc.GetSpatialReference(); }); } var dlProps = DeviceLocationService.Instance.GetProperties(); var accuracy = dlProps.AccuracyThreshold;
await QueuedTask.Run(() => { var dlProps = DeviceLocationService.Instance.GetProperties(); //Change the accuracy threshold dlProps.AccuracyThreshold = 22.5; // meters DeviceLocationService.Instance.UpdateProperties(dlProps); });
System.Object
ArcGIS.Desktop.Core.DeviceLocation.DeviceLocationProperties
Target Platforms: Windows 11, Windows 10