PositionStatus enumeration

Applies to Windows and Windows Phone

Indicates the ability of the Geolocator object to provide location data.

Syntax


var value = Windows.Devices.Geolocation.PositionStatus.ready;

Attributes

[Version(0x06020000)]

Members

The PositionStatus enumeration has these members.

MemberValueDescription
Ready | ready0

Location data is available.

Initializing | initializing1

The location provider is initializing. This is the status if a GPS is the source of location data and the GPS receiver does not yet have the required number of satellites in view to obtain an accurate position.

NoData | noData2

No location data is available from any location provider.

LocationStatus will have this value if the application calls GetGeopositionAsync or registers an event handler for the PositionChanged event, before data is available from a location sensor. Once data is available LocationStatus transitions to the Ready state.

Disabled | disabled3

The location provider is disabled. This status indicates that the user has not granted the application permission to access location.

NotInitialized | notInitialized4

An operation to retrieve location has not yet been initialized. LocationStatus will have this value if the application has not yet called GetGeopositionAsync or registered an event handler for the PositionChanged event.

NotAvailable | notAvailable5

The Windows Sensor and Location Platform is not available on this version of Windows.

Requirements

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]

 

 

Show:
© 2014 Microsoft