Dymatrix class

Implementation of the Dymatrix API.

Constructors

Dymatrix(DymatrixApi _dymatrixApi)
Creates a new Dymatrix instance with a custom API implementation. This constructor is only used for testing.

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

addPageView(PageViewEvent pageView) Future<void>
Adds a page view event to the session. It is either submitted immediately or stored for later submission (depends on settings).
appendDataToPreviousPageView(PageViewEvent pageView) Future<void>
Appends data to already submitted page view event.
getSessionId() Future<String?>
Returns the current session ID.
getVisitorId() Future<String?>
Returns the current visitor ID.
init({required String clientKey, PrivacySettings defaultPrivacySettingsNewUser = PrivacySettings.full, bool isSecureTransmit = true, String? customHostName, int? batchAutoTransmitTimeout, int samplingRate = 1}) Future<void>
Initializes the Dymatrix SDK with the provided parameters and creates a new tracking session.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setBatchAutoTransmitTimeout(int? timeout) Future<void>
Sets the timeout in seconds after which all collected data will be submitted..
setLoggingEnabled(bool enabled) Future<void>
Enables or disables logging.
setPrivacySettings(PrivacySettings? settings) Future<void>
Sets the privacy settings to be used.
startNextSession() Future<void>
Starts a new tracking session. You can use this to indicate that the user has restarted the application.
submitBatch() Future<void>
Transmit all collected data.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance Dymatrix
Singleton instance of the Dymatrix API.
final