Share via


VisitStateChange Enum

Definition

Contains values that describe a Visit-related state change.

public enum class VisitStateChange
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
enum class VisitStateChange
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
public enum VisitStateChange
var value = Windows.Devices.Geolocation.VisitStateChange.trackingLost
Public Enum VisitStateChange
Inheritance
VisitStateChange
Attributes

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)
App capabilities
location

Fields

Name Value Description
TrackingLost 0

The device is unable to track location at this time.

Arrived 1

The user arrived at a Visit.

Departed 2

The user departed from a Visit.

OtherMovement 3

The user moved significantly since the last Visit.

Remarks

When a state change is logged with the value Arrived, developers can assume that the device remains in that area until either a Departed or TrackingLost change is logged.

Applies to

See also

  • <xref:Windows.Devices.Geolocation.Geovisit%0a%5bGuidelines+for+using+Visits+tracking%5d(%2fwindows%2fuwp%2fmaps-and-location%2fguidelines-for-visits)>