Skip to content

Commit de234b1

Browse files
committed
Update Changelog
1 parent fbfe48b commit de234b1

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

CHANGELOG.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,21 @@
1414
- Add experimental Sentry Android Distribution module for integrating with Sentry Build Distribution to check for and install updates ([#4804](https://github.com/getsentry/sentry-java/pull/4804))
1515
- Allow passing a different `Handler` to `SystemEventsBreadcrumbsIntegration` and `AndroidConnectionStatusProvider` so their callbacks are deliver to that handler ([#4808](https://github.com/getsentry/sentry-java/pull/4808))
1616
- Session Replay: Add new _experimental_ Canvas Capture Strategy ([#4777](https://github.com/getsentry/sentry-java/pull/4777))
17-
- A new screenshot capture strategy that uses Android's Canvas API for more accurate text masking
17+
- A new screenshot capture strategy that uses Android's Canvas API for more accurate and reliable text and image masking
1818
- Any `.drawText()` or `.drawBitmap()` calls are replaced by rectangles, ensuring no text or images are present in the resulting output
19-
```kotlin
20-
SentryAndroid.init(context) { options ->
21-
options.sessionReplay.screenshotStrategy = ScreenshotStrategyType.CANVAS
22-
}
23-
```
19+
- Note: If this strategy is used, all text and images will be masked, regardless of any masking configuration
20+
- To enable this feature, set the `screenshotStrategy`, either via code:
21+
```kotlin
22+
SentryAndroid.init(context) { options ->
23+
options.sessionReplay.screenshotStrategy = ScreenshotStrategyType.CANVAS
24+
}
25+
```
26+
or AndroidManifest.xml:
27+
```xml
28+
<application>
29+
<meta-data android:name="io.sentry.session-replay.screenshot-strategy" android:value="canvas" />
30+
</application>
31+
```
2432

2533
### Fixes
2634

0 commit comments

Comments
 (0)