SessionReplayOptions class

Configuration for the LaunchDarkly session replay plugin. Mirrors LaunchDarkly.SessionReplay.SessionReplayOptions in the .NET bridge.

Platform-agnostic: the native wire conversion lives in platform/io/native_options_codec.dart.

Constructors

SessionReplayOptions({bool isEnabled = true, String serviceName = 'sessionreplay-flutter', double sampleRate = 1.0, double frameRate = 1.0, double? scale = 1.0, double imageQuality = 0.3, PrivacyOptions privacy = const PrivacyOptions()})
Creates Session Replay options. The defaults record every session at one frame per second with text inputs masked.
const

Properties

frameRate → double
Target capture rate in frames per second. Mirrors Android/iOS frameRate. Native-only. Defaults to 1.0.
final
hashCode → int
The hash code for this object.
no setterinherited
imageQuality → double
JPEG encoding quality of exported frames, from 0.0 (lowest quality, smallest payload) to 1.0 (highest quality, largest payload). Values outside that range are clamped by the native SDK. Mirrors Android ReplayOptions.imageQuality and iOS SessionReplayOptions.imageQuality. Native-only. Defaults to 0.3.
final
isEnabled → bool
Whether Session Replay records on iOS and Android. Defaults to true. Session Replay is not supported on web, where this has no effect.
final
privacy → PrivacyOptions
What is masked in recorded frames and click events.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sampleRate → double
Probability from 0.0 to 1.0 that Session Replay starts when enabled. Values at or below zero never record; values at or above one always record. The native SDK makes a new decision each time replay is enabled.
final
scale → double?
Replay capture scale. Controls the resolution frames are captured and exported at: 1.0 = 1x (160 DPI), 2.0 = 2x, etc. Higher values capture more detail at the cost of larger frames. Mirrors Android ReplayOptions.scale and iOS SessionReplayOptions.scale. null is treated as 1.0. Defaults to 1.0.
final
serviceName → String
The service.name reported with Session Replay's own telemetry. Defaults to sessionreplay-flutter.
final

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