Skip to content
Merged
Prev Previous commit
Next Next commit
Merge branch 'main' into hackweek/replay-android
  • Loading branch information
jamescrosswell authored Oct 28, 2024
commit a989495ed5fb830efc3cbfa6aec8a153c8819e70
11 changes: 9 additions & 2 deletions samples/Sentry.Samples.Maui/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,19 @@ public static MauiApp CreateMauiApp()

options.Debug = true;
options.SampleRate = 1.0F;
#if ANDROID

options.Native.ExperimentalOptions.SessionReplay.OnErrorSampleRate = 1.0;
options.Native.ExperimentalOptions.SessionReplay.SessionSampleRate = 1.0;
options.Native.ExperimentalOptions.SessionReplay.RedactAllImages = false;
options.Native.ExperimentalOptions.SessionReplay.RedactAllText = false;
#endif

options.SetBeforeScreenshotCapture((@event, hint) =>
{
Console.WriteLine("screenshot about to be captured.");

// Return true to capture or false to prevent the capture
return true;
});
})
.ConfigureFonts(fonts =>
{
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.