Skip to content

Commit

Permalink
add explanation for setRedactionOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhaintz committed Oct 29, 2024
1 parent 3606202 commit 35ebb0b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions flutter/lib/src/sentry_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,14 @@ mixin SentryFlutter {
options.sdk = sdk;
}

/// Screen redaction was previously introduced with the SessionReplay feature.
/// Screen redaction is enabled by default for SessionReplay.
/// As we also to use this feature for Screenshot, which previously was not
/// capable of redacting the screenshot, we need to disable redaction for Screenshot by default
/// so we don`t break the existing behavior.
/// As we have only one central place to configure the redaction,
/// we need to set the redaction options to full fill the above default settings.
/// The plan is to unify this behaviour with the next major release.
static void _setRedactionOptions(SentryFlutterOptions options) {
if (options.experimental.privacy != null) {
return;
Expand Down

0 comments on commit 35ebb0b

Please sign in to comment.