Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/platforms/dotnet/guides/android/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ public class MainActivity : Activity
// Enable Native Android SDK ANR detection
options.Native.AnrEnabled = true;

// If your app doesn't have sensitive data, you can attach screenshots automatically when a Java/native
// error is captured.
// Note: this only applies to Java-based errors; .NET managed exceptions are not currently supported.
// https://docs.sentry.io/platforms/android/enriching-events/screenshots/
options.Native.AttachScreenshot = true;

// Session Replay is currently available via the ExperimentalOptions
options.Native.ExperimentalOptions.SessionReplay.OnErrorSampleRate = 1.0;
options.Native.ExperimentalOptions.SessionReplay.SessionSampleRate = 1.0;
Expand Down
4 changes: 4 additions & 0 deletions docs/platforms/dotnet/guides/apple/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ public class AppDelegate : UIApplicationDelegate
// Enable Native iOS SDK App Hangs detection
options.Native.EnableAppHangTracking = true;

// If your app doesn't have sensitive data, you can get screenshots on error events automatically
// https://docs.sentry.io/platforms/apple/guides/ios/configuration/options/#attach-screenshot
options.Native.AttachScreenshot = true;

options.SetBeforeSend(evt =>
{
if (evt.Exception?.Message.Contains("Something you don't care want logged?") ?? false)
Expand Down
3 changes: 3 additions & 0 deletions docs/platforms/dotnet/guides/maui/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ public static MauiApp CreateMauiApp()
options.TracesSampleRate = 1.0;
// ___PRODUCT_OPTION_END___ performance

// If your app doesn't have sensitive data, you can get screenshots on error events automatically
options.AttachScreenshot = true;

// Other Sentry options can be set here.
})

Expand Down
Loading