You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -52,35 +55,37 @@ If you're using a code obfuscation tool (R8/ProGuard), adjust your proguard rule
52
55
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:
53
56
54
57
```kotlin
55
-
options.experimental.sessionReplay.addMaskViewClass("android.widget.TextView") // mask TextView and all its subclasses
56
-
options.experimental.sessionReplay.addUnmaskViewClass("android.widget.RadioButton") // but unmask RadioButton and all its subclasses
58
+
options.experimental.sessionReplay.addMaskViewClass("android.widget.TextView") // mask TextView and all its subclasses
59
+
options.experimental.sessionReplay.addUnmaskViewClass("android.widget.RadioButton") // but unmask RadioButton and all its subclasses
57
60
```
58
61
59
62
## Mask by View Instance
60
63
61
64
You can also choose to mask or unmask a specific view instance by using tags like this:
62
65
63
66
```xml
64
-
<View
65
-
android:id="@+id/my_view"
66
-
android:layout_width="wrap_content"
67
-
android:layout_height="wrap_content"
68
-
android:tag="sentry-mask|sentry-unmask"/>
67
+
<View
68
+
android:id="@+id/my_view"
69
+
android:layout_width="wrap_content"
70
+
android:layout_height="wrap_content"
71
+
android:tag="sentry-mask|sentry-unmask"
72
+
/>
69
73
```
70
74
71
75
```kotlin
72
-
view.tag ="sentry-mask|sentry-unmask"
76
+
view.tag ="sentry-mask|sentry-unmask"
73
77
```
74
78
75
79
If your view already has a tag assigned, you can set the masking tag by a sentry-specific id:
0 commit comments