Contentsquare class

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

Inheritance
  • Object
  • PlatformInterface
  • Contentsquare

Constructors

Contentsquare()

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

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
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) 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.
sendTouchEvent({required ContentsquareGesture type, required int version, required TouchEventData data}) Future<void>
Consume touch event.
sendTransaction(double price, String currency, [String? transactionId]) Future<void>
Tracks the given transaction. Use this method to track purchases made by a user.
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

Static Properties

channel MethodChannel
Creates the Contentsquare method channel to communicate with the native
getter/setter pair