AnalyticsManager class
Analytics manager
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
addProvider(
AnalyticsProvider provider) → void - Add analytics provider
-
clearEventHistory(
) → void - Clear event history
-
getEventHistory(
) → List< AnalyticsEvent> - Get event history
-
logEvent(
String name, {Map< String, dynamic> ? parameters}) → Future<void> - Log event to all providers
-
logScreenView(
String screenName, {String? screenClass}) → Future< void> - Log screen view
-
removeProvider(
AnalyticsProvider provider) → void - Remove analytics provider
-
setEnabled(
bool enabled) → void - Enable/disable analytics
-
setUserId(
String userId) → Future< void> - Set user ID
-
setUserProperty(
String name, String value) → Future< void> - Set user property