Skip to content

Commit 1eeb743

Browse files
authored
MAUI - Add documentation for SetBeforeScreenshotCapture option
1 parent 85cc6c6 commit 1eeb743

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

platform-includes/enriching-events/attach-screenshots/dotnet.maui.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,15 @@ var builder = MauiApp.CreateBuilder()
55
{
66
options.Dsn = "___PUBLIC_DSN___";
77
options.AttachScreenshot = true;
8+
9+
// Set a Before Screenshot capture callback to execute some code before the screenshot is taken
10+
options.SetBeforeScreenshotCapture((@event, hint) =>
11+
{
12+
//
13+
// Your code here
14+
15+
// Return true to capture or false to prevent the capture
16+
return true;
17+
});
818
})
919
```

0 commit comments

Comments
 (0)