PrivacyOptions class

Privacy controls for session replay. Mirrors SessionReplayOptions.PrivacyOptions in the .NET bridge.

Constructors

PrivacyOptions({bool maskTextInputs = true, bool maskWebViews = false, bool maskLabels = false, bool maskImages = false, double minimumAlpha = 0.02, Set<Type> maskWidgetTypes = const {}, Set<Key> maskWidgetKeys = const {}, Set<Type> unmaskWidgetTypes = const {}, Set<Key> unmaskWidgetKeys = const {}, Set<Type> ignoreWidgetTypes = const {}, Set<Key> ignoreWidgetKeys = const {}, bool maskClickText = false})
Creates privacy options. By default only text inputs are masked.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
ignoreWidgetKeys → Set<Key>
Widget Keys to ignore (cover). Dart-side only.
final
ignoreWidgetTypes → Set<Type>
Widget runtime Types to ignore. In Flutter this covers the region (the single-raster capture can't drop pixels). Dart-side only.
final
maskClickText → bool
Redacts the visible text of tapped widgets, so clicks report the widget type and identifier but no label.
final
maskImages → bool
Covers images in recorded frames. Defaults to false.
final
maskLabels → bool
Covers non-editable text in recorded frames. Defaults to false.
final
maskTextInputs → bool
Covers editable text fields in recorded frames. Defaults to true.
final
maskWebViews → bool
Covers web views in recorded frames. Defaults to false.
final
maskWidgetKeys → Set<Key>
Widget Keys to mask (cover) wherever they appear. Dart-side only.
final
maskWidgetTypes → Set<Type>
Widget runtime Types to mask (cover) wherever they appear, e.g. {MyCardWidget}. Resolved on the Flutter side only — not sent to native.
final
minimumAlpha → double
Opacity below which a view is treated as invisible and not masked, from 0.0 to 1.0. Defaults to 0.02.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unmaskWidgetKeys → Set<Key>
Widget Keys to reveal from global masking. Dart-side only.
final
unmaskWidgetTypes → Set<Type>
Widget runtime Types to reveal from global masking. Does not override an enclosing explicit mask/ignore. Dart-side only.
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