SessionReplayMasking class

Constructors

SessionReplayMasking()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

clickFramePendingForTesting bool
no setter
maskAllImagesForTesting bool
no setter
maskAllTextsForTesting bool
no setter
textsToMaskForTesting List<RegExp>
no setter

Static Methods

applyOptions({bool maskAllTexts = false, bool maskAllImages = false, double captureScale = 1.0, List<String>? textsToMask}) Future<void>
Applies masking configuration. Called internally by CxFlutterPlugin.initializeSessionReplay from CXSessionReplayOptions — you normally do not call this directly. Set masking on the options object instead, so there is exactly one place that controls it.
collectAllMaskRectsSync() List<Rect>
Returns all currently-active mask rects in logical pixels.
collectImageRegionsForTesting() List<Map<String, dynamic>>
collectTextRegionsForTesting({List<RegExp>? patterns}) List<Map<String, dynamic>>
initialize() → void
Registers the Dart masking handler so the native SDK can request pre-masked frames. Call once at app startup (e.g. in main()).
Exposes the navigation-transition guard for testing.
noteUserInteraction() → void
Tracks time since the last rendered frame (for the scroll-skip heuristic). Registered once; persistent frame callbacks fire on every produced frame, so when the UI is idle the stopwatch grows and when it's animating it stays near zero. Flags that a user tap just happened so the click frame the native SDK requests next is captured fresh rather than dropped by the scroll/animation skip. Called by CxInteractionTracker on tap.
resetForTesting() → void
shouldSkipCaptureForTesting({required int inFlight, required int msSinceLastFrame}) bool
Exposes the capture-pacing decision for testing.

Constants

methodChannel → const MethodChannel