MethodChannelClickstreamAnalyticsPlus class

An implementation of ClickstreamAnalyticsPlusPlatform that uses MethodChannel to communicate with the native platform. Platform implementation of Clickstream Analytics Plus using MethodChannel.

This class communicates with the native platform using Flutter's method channels.

Inheritance

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

enableLogging(bool enabled) Future<void>
Enables or disables logging for the analytics SDK.
override
flushEvents() Future<void>
Flushes all queued analytics events to the backend.
override
getSdkVersion() Future<String?>
Gets the SDK version from the native platform.
override
initialize({required String appId, required String endpoint, bool? logEvents, bool? compressEvents, int? sessionTimeoutMs, int? sendEventIntervalMs, Map<String, dynamic>? initialGlobalAttributes}) Future<bool>
Initializes the Clickstream Analytics SDK on the native platform.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pauseSession() Future<void>
Pauses the current analytics session.
override
recordEvent(String name, {Map<String, dynamic>? attributes}) Future<void>
Records an analytics event with the given name and optional attributes.
override
removeGlobalAttribute(String key) Future<void>
Removes a global attribute by key.
override
resumeSession() Future<void>
Resumes the current analytics session.
override
setGlobalAttributes(Map<String, dynamic> attributes) Future<void>
Sets global attributes for all analytics events.
override
setUserAttributes(Map<String, dynamic> attributes) Future<void>
Sets user attributes for analytics tracking.
override
setUserId(String userId) Future<void>
Sets the user ID for analytics tracking.
override
toString() String
A string representation of this object.
inherited

Operators

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