VisitMonitor
public class VisitMonitor : BaseMonitor
A VisitMonitor
instance monitors for locations that the user stops at for
a “noteworthy” amount of time. This is considered to be a visit.
Note
An authorization status ofauthorizedAlways
is required.
-
Encapsulates changes to the device’s current location that constitute a visit.
See moreDeclaration
Swift
public enum Event
-
Encapsulates information associated with a visit monitor event.
See moreDeclaration
Swift
public enum Info
-
Initializes a new
VisitMonitor
.Declaration
Swift
public init(queue: OperationQueue, handler: @escaping (Event) -> Void)
Parameters
queue
The operation queue on which the handler executes.
handler
The handler to call when a visit is determined or updated.
-
Declaration
Swift
override public func cleanupMonitor()
-
Declaration
Swift
override public func configureMonitor()