SWRLVisitManager Class Reference

Inherits from SWRLManager : NSObject
Declared in SWRLVisitManager.h
SWRLVisitManager.m

Overview

A component which consumes the various Enter/Exit/Dwell events from the signal detectors and tracks enter and exit times, accumulates dwell and elapsed times by location and placement, and generates logical Visit objects and delegate callbacks Visit start, dwell and end.

– recentVisit

Gets current or most recent visit whether active or inactive.

- (SWRLVisit *)recentVisit

Return Value

most recent visit

Declared In

SWRLVisitManager.h

– activeLocationVisits

Gets all active (started and not ended) Location Visits sorted by signal and distance from most-specific and nearest to least-specific and farthest. The sort order is Beacon, Wifi, Region and by distance where possible within each type.

- (NSArray<SWRLVisit*> *)activeLocationVisits

Return Value

Array of Location Visits that are not ended

Declared In

SWRLVisitManager.h

– activePlacementVisits

Gets all active (started and not ended) Placement Visits sorted by signal and distance from most-specific and nearest to least-specific and farthest. The sort order is Beacon, Wifi, Region and by distance where possible within each type.

- (NSArray<SWRLVisit*> *)activePlacementVisits

Return Value

Array of Placement Visits that are not ended

Declared In

SWRLVisitManager.h

– allVisitsForLocation:

Gets all visit records (active or otherwise) for a given location.

- (NSArray<SWRLVisit*> *)allVisitsForLocation:(SWRLLocation *)location

Parameters

location

The location for which to collect visit records

Return Value

Array of Visits for the location

Declared In

SWRLVisitManager.h