PositionStatus Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates the ability of the Geolocator object to provide ___location data.
public enum class PositionStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class PositionStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum PositionStatus
var value = Windows.Devices.Geolocation.PositionStatus.ready
Public Enum PositionStatus
- Inheritance
-
PositionStatus
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
App capabilities |
___location
|
Fields
Name | Value | Description |
---|---|---|
Ready | 0 | Location data can be retrieved. |
Initializing | 1 | Attempting to obtain an initial ___location fix. Reported when a Geolocator object is first created or when its desired accuracy is changed. |
NoData | 2 | No ___location data is available from any source.
|
Disabled | 3 | Location settings are turned off. This status indicates that the user has not granted the application permission to access ___location. |
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 | 5 | Location is not supported on this version of Windows. |
Remarks
PositionStatus values indicate whether ___location can be retrieved and whether the app has permission. Monitor changes using the StatusChanged event.
Applies to
See also
- Geolocator
- <xref:Windows.Devices.Geolocation.StatusChangedEventArgs%0a%0a%23%23%23+Version+history%0a%0a%7c+Windows+version+%7c+SDK+version+%7c+Value+added+%7c%0a%7c+--+%7c+--+%7c+--+%7c%0a%7c+1507+%7c+10240+%7c+NotInitialized+%7c>