FlutterClarityPlugin class

Provides action to integrate and initialize Microsoft Clarity

Constructors

FlutterClarityPlugin.new()
No work is done when instantiating the plugin. It's safe to call this repeatedly or in performance-sensitive blocks.

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

getCurrentSessionId() Future<String?>
Returns the active session id. This can be used to correlate the Clarity session with other analytics tools that the developer may be using. @returns a promise that resolves to the current session id.
initialize({required String projectId, String? userId, String? logLevel = "None", bool? allowMeteredNetworkUsage = false, bool? enableWebViewCapture = true, List<String>? allowedDomains = const ["*"]}) Future<void>
Initializes the Clarity plugin with the provided parameters.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCustomUserId(String customUserId) → void
Sets a custom user id that can be used to identify the user. It has less restrictions than the userId parameter. You can pass any string and you can filter on it on the dashboard side. If you need the most efficient filtering on the dashboard, use the userId parameter if possible.
toString() String
A string representation of this object.
inherited

Operators

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