Tracker Protocol Reference
public protocol Tracker : AnyObject
An object that receives a Dispatch, enriches it and sends it to be dispatched.
-
Takes a trackable and a source, collects additional data from Collectors, and dispatches the result to the Dispatchers.
Note
When this
onTrackResultcallback is called, even when accepted, theDispatchis safely stored to disk but not yet dispatched to the Dispatchers.Declaration
Swift
func track(_ trackable: Dispatch, source: DispatchContext.Source, onTrackResult: TrackResultCompletion?) -
track(_:Extension methodsource: ) Tracks a dispatch without a completion handler.
Declaration
Swift
func track(_ trackable: Dispatch, source: DispatchContext.Source)Parameter Description trackableThe dispatch to track.
sourceThe source that created the dispatch.