AnalyticsCategory class

Inheritance

Constructors

AnalyticsCategory()

Properties

category Category
no setteroverride
categoryDependencies Set<Category>
The categories this category depends on.
no setteroverride
defaultPlugin → AnalyticsPluginInterface
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
plugins List<AnalyticsPluginInterface>
The plugins registered for this category.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addPlugin(AnalyticsPluginInterface plugin, {required AmplifyAuthProviderRepository authProviderRepo}) Future<void>
Adds a plugin to the category.
inherited
disable() Future<void>
Stop all automatic event tracking of this plugin
enable() Future<void>
Start all automatic event tracking of this plugin
flushEvents() Future<void>
Immediately send all saved events to the analytics service
identifyUser({required String userId, UserProfile? userProfile}) Future<void>
Store a userId with userProfile to be associated with current device
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordEvent({required AnalyticsEvent event}) Future<void>
Save an event to be sent in the next batch to the analytics service
registerGlobalProperties({required CustomProperties globalProperties}) Future<void>
Register fields of globalProperties to be sent with all future events.
reset() Future<void>
Resets the category, clearing all registered plugins.
inherited
toString() String
A string representation of this object.
inherited
unregisterGlobalProperties({List<String> propertyNames = const <String>[]}) Future<void>
Remove fields by their propertyNames to stop being sent with all future events

Operators

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