GeovisitMonitor GeovisitMonitor GeovisitMonitor GeovisitMonitor GeovisitMonitor Class

Definition

Handles the monitoring of a user's Visits when the app is in use (not in the background).

public : sealed class GeovisitMonitor : IGeovisitMonitor
struct winrt::Windows::Devices::Geolocation::GeovisitMonitor : IGeovisitMonitor
public sealed class GeovisitMonitor : IGeovisitMonitor
Public NotInheritable Class GeovisitMonitor Implements IGeovisitMonitor
var geovisitMonitor = new geovisitMonitor();
Attributes
Windows 10 requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
location

Constructors

GeovisitMonitor() GeovisitMonitor() GeovisitMonitor() GeovisitMonitor() GeovisitMonitor()

Initializes an instance of GeovisitMonitor.

Properties

MonitoringScope MonitoringScope MonitoringScope MonitoringScope MonitoringScope

Gets and the scope of Visits to monitor.

Methods

GetLastReportAsync() GetLastReportAsync() GetLastReportAsync() GetLastReportAsync() GetLastReportAsync()

Retrieves the latest Visit-related event the user has completed.

Start(VisitMonitoringScope) Start(VisitMonitoringScope) Start(VisitMonitoringScope) Start(VisitMonitoringScope) Start(VisitMonitoringScope)

Begins monitoring for Visit-related events.

Stop() Stop() Stop() Stop() Stop()

Stops monitoring for Visit-related events.

Events

VisitStateChanged VisitStateChanged VisitStateChanged VisitStateChanged VisitStateChanged

Raised when the user's current Visit state has changed, provided this GeovisitMonitor is currently monitoring.

See Also

  • Windows.Devices.Geolocation.Geovisit [Guidelines for using Visits tracking](https://docs.microsoft.com/windows/uwp/maps-and-location/guidelines-for-visits)