NexusReplay class
Session replay. Captures the app as rrweb-compatible screenshot frames +
pointer events via NexusReplayController (Flutter-side, all platforms) and
ships them to /partner/replay, correlated to the session. Also accepts
batches from a native recorder if one is present (future native SDKs).
Constructors
- NexusReplay(NexusOutbox _outbox, NexusIdentity _id, NexusConfig _cfg)
Properties
- controller → NexusReplayController
-
The Flutter capture engine — used by NexusScope to install the
RepaintBoundary and forward pointer events. Internal.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRecording → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
flush(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
observeRouter(
Listenable router, String currentPath()) → void - Track navigation from a Listenable router + a current-path getter — e.g. GoRouter (catches shell/nested routes a root observer misses):
-
pause(
) → void - Pause/resume capture (called around app background/foreground).
-
recordNetwork(
{required String url, required String method, required int status, required int durationMs, int? size}) → void - Record a network request for the player's Network tab — feed this from your HTTP client's interceptor (e.g. a Dio interceptor). No-op unless recording.
-
resume(
) → void -
start(
) → Future< void> - Start capturing the session.
-
stop(
) → Future< void> - Stop capturing and flush any buffered events.
-
toString(
) → String -
A string representation of this object.
inherited
-
trackScreen(
String name) → void - Record a page/route change (populates the player's Pages tab). Usually wired automatically via NexusNavigatorObserver; call manually for custom navigation. No-op when replay is disabled.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited