PositionAccuracy enumeration
Collapse the table of content
Expand the table of content

PositionAccuracy enumeration

Indicates the requested accuracy level for the location data that the application uses.

Syntax


public enum PositionAccuracy

Members

The PositionAccuracy enumeration has these members.

MemberValueDescription
Default | default0

Optimize for power, performance, and other cost considerations.

High | high1

Deliver the most accurate report possible. This includes using services that might charge money, or consuming higher levels of battery power or connection bandwidth. An accuracy level of High may degrade system performance and should be used only when necessary.

Remarks

Setting the DesiredAccuracy property of the Geolocator object is not guaranteed to have an effect on the accuracy of data.

When neither DesiredAccuracyInMeters or DesiredAccuracy are set, your app will use an accuracy setting of 500 meters (which corresponds to the default DesiredAccuracy setting). Setting DesiredAccuracy to Default or High indirectly sets DesiredAccuracyInMeters to 500 or 10 meters, respectively. When your app sets both DesiredAccuracy and DesiredAccuracyInMeters, your app will use the accuracy value that was set last.

Note  Some hardware may not support high accuracy location data. If your app attempts to set accuracy to a value that’s not supported, accuracy will be set to the limit that the hardware supports.
 

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Devices.Geolocation
Windows::Devices::Geolocation [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Capabilities

location

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

Windows.Devices.Geolocation
Windows::Devices::Geolocation [C++]

Metadata

Windows.winmd

Capabilities

location
ID_CAP_LOCATION [Windows Phone]

Attributes

[Version(0x06020000)]

 

 

Show:
© 2016 Microsoft