Indicates the ability of the Geolocator object to provide location data.
Syntax
var value = Windows.Devices.Geolocation.PositionStatus.ready;
Attributes
- VersionAttribute(NTDDI_WIN8)
Members
The PositionStatus enumeration has these members.
| Member | Value | Description |
|---|---|---|
| Ready | ready | 0 |
Location data is available. |
| Initializing | initializing | 1 |
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 | noData | 2 |
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 | disabled | 3 |
The location provider is disabled. This status indicates that the user has not granted the application permission to access location. |
| NotInitialized | notInitialized | 4 |
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 | notAvailable | 5 |
The Windows Sensor and Location Platform is not available on this version of Windows. |
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Minimum supported phone | Windows Phone 8 |
|
Namespace |
|
|
Metadata |
|
|
Capabilities |
|
Build date: 2/25/2013