ImpressionManager class
Manager for tracking banner impressions (persisted across app restarts)
Constructors
- ImpressionManager()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearSessionImpressions(
) → Future< void> - Clear all persisted impression counts and session state
-
getSessionImpressionCount(
String impressionKey) → Future< int> - Get impression count (persisted). Loads from storage on first call.
-
hasSeenInSession(
String impressionKey) → Future< bool> - Check if campaign was viewed
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
trackSessionImpression(
String impressionKey) → Future< bool> - Track impression: max 1 per banner per session (app open→close). Persisted across sessions. Returns true if counted (first view this session), false if already impressed this session.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited