MBAutomationTrackingManager class

Singleton to manage the tracking of events and views. Views and events are saved in a local DB and synced with the APIs every n seconds as specified by the timerTime property.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timerTime int
Set the timer time to a new value and restarts the timer.
no getter
timerTimer int
Returns the current timer time.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startTimer() → void
Starts a periodic timer with a duration of _timerTime seconds.
stopTimer() → void
Stops the timer.
toString() String
A string representation of this object.
inherited
trackEvent(MBAutomationEvent event) Future<void>
Tracks an event, this function saves the event in the DB, it'll be sent when _checkQueue() is invoked by the timer. @param event The event to track.
trackView(MBAutomationView view) Future<void>
Tracks a view, this function saves the view in the DB, it'll be sent when _checkQueue() is invoked by the timer. @param view The view to track.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

shared MBAutomationTrackingManager
Singleton that manages all the tracking aspects of MBAutomation.
final