CFClientEvents class
Handles all event tracking operations for CFClient
Constructors
- CFClientEvents.new({required CFConfig config, required CFUser user, required EventTracker eventTracker, required String sessionId})
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
-
addUserProperty(
String key, dynamic value) → CFClientEvents - Add user property for event enrichment
-
enableMethodChaining(
) → CFClientEvents - Method chaining support - returns this instance for fluent API
-
flushEvents(
) → Future< CFResult< bool> > - Flush all pending events immediately
-
getPendingEventCount(
) → int - Get the count of pending events in the queue
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
trackConversion(
String conversionName, Map< String, dynamic> properties) → Future<CFResult< bool> > - Track a conversion event
-
trackEvent(
String eventName) → Future< CFResult< bool> > - Track a simple event with just a name
-
trackEventWithProperties(
String eventName, Map< String, dynamic> properties) → Future<CFResult< bool> > - Track an event with custom properties
-
trackLifecycleEvent(
String lifecycleEvent, Map< String, dynamic> context) → Future<CFResult< bool> > - Track app lifecycle events
-
trackUserPropertyChange(
String propertyName, Map< String, dynamic> changeDetails) → Future<CFResult< bool> > - Track user property changes
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited