diff --git a/docs/platforms/android/session-replay/privacy/index.mdx b/docs/platforms/android/session-replay/privacy/index.mdx index 350d972a74dfc9..6f1c9f4cc7fa19 100644 --- a/docs/platforms/android/session-replay/privacy/index.mdx +++ b/docs/platforms/android/session-replay/privacy/index.mdx @@ -17,11 +17,8 @@ By default, our Session Replay SDK masks all text content, images, webviews, and To disable the default masking behavior (not to be used on applications with sensitive data): ```kotlin -options.experimental.sessionReplay.maskAllText = false -options.experimental.sessionReplay.maskAllImages = false -// if you're on version < 7.15.0 -// options.experimental.sessionReplay.redactAllText = false -// options.experimental.sessionReplay.redactAllImages = false +options.sessionReplay.maskAllText = false +options.sessionReplay.maskAllImages = false ``` ```XML {filename:AndroidManifest.xml} @@ -34,7 +31,7 @@ options.experimental.sessionReplay.maskAllImages = false |![session replay unmasked](./img/session-replay.jpg) |![session replay masked](./img/session-replay-redacted.jpg) | -_Make sure your Sentry Android SDK version is at least 7.15.0._ +_Make sure your Sentry Android SDK version is at least 7.20.0._ ## Mask by View Class @@ -47,8 +44,8 @@ Let's say you have: You can set the options like this: ```kotlin -options.experimental.sessionReplay.addMaskViewClass("com.example.MyCustomView") -options.experimental.sessionReplay.addUnmaskViewClass("com.example.MyCustomTextView") +options.sessionReplay.addMaskViewClass("com.example.MyCustomView") +options.sessionReplay.addUnmaskViewClass("com.example.MyCustomTextView") ``` @@ -62,8 +59,8 @@ If you're using a code obfuscation tool (R8/ProGuard), adjust your proguard rule The masking behavior applies to classes and their subclasses. This means if you add a view via `addMaskViewClass` (for example, `TextView`, which is the default behavior), its respective subclasses (`RadioButton`, `CheckBox`, `EditText`, and so on) will also be masked. For example, you can do the following: ```kotlin -options.experimental.sessionReplay.addMaskViewClass("android.widget.TextView") // mask TextView and all its subclasses -options.experimental.sessionReplay.addUnmaskViewClass("android.widget.RadioButton") // but unmask RadioButton and all its subclasses +options.sessionReplay.addMaskViewClass("android.widget.TextView") // mask TextView and all its subclasses +options.sessionReplay.addUnmaskViewClass("android.widget.RadioButton") // but unmask RadioButton and all its subclasses ``` ## Mask by View Instance