We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SetBeforeScreenshotCapture
1 parent c5bf112 commit 1172126Copy full SHA for 1172126
platform-includes/enriching-events/attach-screenshots/dotnet.maui.mdx
@@ -5,5 +5,16 @@ var builder = MauiApp.CreateBuilder()
5
{
6
options.Dsn = "___PUBLIC_DSN___";
7
options.AttachScreenshot = true;
8
+
9
+ // Set a Before Screenshot capture callback to execute some code before the screenshot is taken
10
+ // This option is optional. if not set, the screenshots will be captured and sent.
11
+ options.SetBeforeScreenshotCapture((@event, hint) =>
12
+ {
13
+ //
14
+ // Your code here
15
16
+ // Return true to capture or false to prevent the capture
17
+ return true;
18
+ });
19
})
20
```
0 commit comments