Share via


GeovisitMonitor.VisitStateChanged Event

Definition

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

// Register
event_token VisitStateChanged(TypedEventHandler<GeovisitMonitor, GeovisitStateChangedEventArgs const&> const& handler) const;

// Revoke with event_token
void VisitStateChanged(event_token const* cookie) const;

// Revoke with event_revoker
GeovisitMonitor::VisitStateChanged_revoker VisitStateChanged(auto_revoke_t, TypedEventHandler<GeovisitMonitor, GeovisitStateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<GeovisitMonitor,GeovisitStateChangedEventArgs> VisitStateChanged;
function onVisitStateChanged(eventArgs) { /* Your code */ }
geovisitMonitor.addEventListener("visitstatechanged", onVisitStateChanged);
geovisitMonitor.removeEventListener("visitstatechanged", onVisitStateChanged);
- or -
geovisitMonitor.onvisitstatechanged = onVisitStateChanged;
Public Custom Event VisitStateChanged As TypedEventHandler(Of GeovisitMonitor, GeovisitStateChangedEventArgs) 

Event Type

Windows requirements

App capabilities
location

Applies to