4.0.0-beta.7
Pre-release
Pre-release
Breaking Changes
SetBeforeCaptureScreenshotsignature changed fromFunc<bool>toFunc<SentryEvent, bool>, now receiving the event that
triggered the screenshot capture. This allows context-aware decisions before capture begins. (#2428)SetBeforeCaptureViewHierarchysignature changed fromFunc<bool>toFunc<SentryEvent, bool>, now receiving the event that
triggered the view hierarchy capture. This allows context-aware decisions before capture begins. (#2429)
Fixes
- When targeting Windows or Linux with Mono as the scripting backend, to prevent crashes, the native SDK's debug logger integration is disabled. (#2445)
Features
- Added PlayStation Native Support. The SDK now automatically syncs the scope - tags, breadcrumbs, context - to the native layer, so native crashes have the same rich context as managed events. (#2433)
- On Windows, and with screenshot capture enabled, the SDK will now also capture and attach a screenshot to native crashes (#2434)
- Added
SetBeforeSendScreenshot(Func<Texture2D, SentryEvent, Texture2D?>)callback that provides the captured screenshot as a
Texture2Dbefore JPEG compression. (#2428)
This enables:- Modifying the screenshot in-place (e.g., blurring sensitive UI areas, redacting PII)
- Replacing the screenshot with a different
Texture2D - Discarding the screenshot by returning
null - Access to the event context for conditional processing
- Added
SetBeforeSendViewHierarchy(Func<ViewHierarchy, SentryEvent, ViewHierarchy?>)callback that provides the captured
ViewHierarchyto be modified before compression. (#2429)