Skip to content
Merged
Prev Previous commit
Next Next commit
Conditionally reference android specific options in sample
  • Loading branch information
jamescrosswell committed Nov 4, 2024
commit 8fb353a003ebabdf3dd5121ea13c9cf47072356c
7 changes: 5 additions & 2 deletions samples/Sentry.Samples.Maui/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ public static MauiApp CreateMauiApp()
options.Debug = true;
options.SampleRate = 1.0F;

#if ANDROID
// Currently experimental support is only available on 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;
options.Native.ExperimentalOptions.SessionReplay.MaskAllImages = false;
options.Native.ExperimentalOptions.SessionReplay.MaskAllText = false;
#endif

options.SetBeforeScreenshotCapture((@event, hint) =>
{
Expand Down
Loading