Contentsquare class abstract

A class exposing Contentsquare SDK's API through its members.

Constructors

Contentsquare()
Returns the Contentsquare implementation active instance if the active platform is supported. Returns thing637 otherwise
factory

Properties

currentSessionReplayUrl Future<Uri?>
Returns a Uri that allows to visualize the current SessionReplay on the CS platform, provided that the SessionReplay session has been stored.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

collectError({required Object error, required StackTrace stackTrace}) Future<void>
Send a report of a caught error.
collectFlutterError(FlutterErrorDetails details, {bool presentErrorDetails = true}) Future<void>
Send a report of an error caught by the Flutter framework. presentErrorDetails is used to print the error details in the console, defaults to true.
forgetMe() Future<void>
Stops tracking current runtime and wipes user data.
getUserId() Future<String?>
The anonymous id used by Contentsquare's SDK to track the current user.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onSessionReplayLinkChange(void onLinkChanged(Uri url)?) → void
Get the current session replay URL and listen to changes.
optIn() Future<void>
Opts the current user's device into being tracked.
optOut() Future<void>
Opts the current user's device out from being tracked.
resumeTracking() Future<void>
Resumes tracking.
send(String screenName, {List<CustomVar>? customVars}) Future<void>
Tracks a screen view with the given name. You should use this method to track every screen viewed by a user.
sendDynamicVar(String key, {String? stringValue, int? intValue}) Future<void>
Tracks a dynamic var.
sendTransaction(double price, String currency, [String? transactionId]) Future<void>
Tracks the given transaction. Use this method to track purchases made by a user.
sendUserIdentifier(String userIdentifier) Future<void>
Sends a User Identifier to Contentsquare tracking services. This identifier is immediately hashed so no PII can ever be accessed.
setURLMaskingPatterns({required List<String> patterns}) Future<void>
Set the URL masking patterns
stopTracking() Future<void>
Stops any further tracking for the current runtime.
toString() String
A string representation of this object.
inherited

Operators

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