GeovisitMonitor GeovisitMonitor GeovisitMonitor GeovisitMonitor Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Handles the monitoring of a user's Visits without the use of background tasks.

public : sealed class GeovisitMonitor : IGeovisitMonitorpublic sealed class GeovisitMonitor : IGeovisitMonitorPublic NotInheritable Class GeovisitMonitor Implements IGeovisitMonitor// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Constructors

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

Prerelease. Initializes an instance of GeovisitMonitor.

public : GeovisitMonitor()public GeovisitMonitor()Public Sub New()// You can use this method in JavaScript.

Properties

MonitoringScope MonitoringScope MonitoringScope MonitoringScope

Prerelease. Gets and the scope of Visits to monitor.

public : VisitMonitoringScope MonitoringScope { get; }public VisitMonitoringScope MonitoringScope { get; }Public ReadOnly Property MonitoringScope As VisitMonitoringScope// You can use this property in JavaScript.
Value
VisitMonitoringScope VisitMonitoringScope VisitMonitoringScope VisitMonitoringScope

A VisitMonitoringScope value representing the scope of location monitoring.

Methods

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

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

public : static IAsyncOperation<Geovisit> GetLastReportAsync()public static IAsyncOperation<Geovisit> GetLastReportAsync()Public Static Function GetLastReportAsync() As IAsyncOperation( Of Geovisit )// You can use this method in JavaScript.
Returns

An asynchronous operation with a Geovisit instance representing the user's latest Visit.

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

Prerelease. Begins monitoring for Visit-related events.

public : void Start(VisitMonitoringScope value)public void Start(VisitMonitoringScope value)Public Function Start(value As VisitMonitoringScope) As void// You can use this method in JavaScript.
Parameters
value
VisitMonitoringScope VisitMonitoringScope VisitMonitoringScope VisitMonitoringScope

A VisitMonitoringScope value representing the intended scope of location monitoring.

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

Prerelease. Stops monitoring for Visit-related events.

public : void Stop()public void Stop()Public Function Stop() As void// You can use this method in JavaScript.

Events

VisitStateChanged VisitStateChanged VisitStateChanged VisitStateChanged

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

public : event TypedEventHandler VisitStateChanged<GeovisitMonitor,  GeovisitStateChangedEventArgs>public event TypedEventHandler VisitStateChanged<GeovisitMonitor,  GeovisitStateChangedEventArgs>Public Event VisitStateChanged<GeovisitMonitor,  GeovisitStateChangedEventArgs>// You can use this event in JavaScript.