MBAudienceSessionManager class

Class that manages MBAudience sessions and session dates. It uses the shared_preferences package to save informations.

Constructors

MBAudienceSessionManager()

Properties

currentSession Future<int>
Getter for the current session index.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalSessionTime Future<int>
Getter for the total session time, in seconds.
no setter

Methods

endSession() Future<void>
Ends the current session.
increaseSession() Future<void>
Increases a session for MBAudience.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startSession() Future<void>
Starts a new session.
startSessionDateForSession(int session) Future<DateTime?>
The date of start of a session. @param session The index of the session. @return The date when the session with the index has started, if no session is found this function returns null.
toString() String
A string representation of this object.
inherited

Operators

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