Skip to content

CLASS

IPSLocationVisitStatistics

public final class IPSLocationVisitStatistics

A summary of a single completed location visit, delivered to IPSLocationVisit.onLocationVisited when the user leaves the monitored location.

Instances of this class are created by the SDK and are not intended to be constructed by consumers.

  • Since: 9.9.0

Properties

travelDistance

public let travelDistance: Double

Total distance travelled by the user while inside the monitored location, in meters.

  • Since: 9.9.0

timeSpent

public let timeSpent: Double

Total wall-clock duration spent inside the monitored location, in seconds (equivalent to exitTimestamp.timeIntervalSince(enterTimestamp)).

  • Since: 9.9.0

enterTimestamp

public let enterTimestamp: Date

Timestamp at which the user entered the monitored location.

  • Since: 9.9.0

exitTimestamp

public let exitTimestamp: Date

Timestamp at which the user exited the monitored location and the visit ended.

  • Since: 9.9.0

timeDwell

public let timeDwell: Double

Portion of timeSpent during which the user was effectively stationary inside the monitored location, in seconds. Useful for distinguishing an actual dwell from a pass-through.

  • Since: 9.9.0