-
-
Notifications
You must be signed in to change notification settings - Fork 226
Only register MauiSessionReplayMaskControlsOfTypeBinder when relevant #4445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 11 commits
b8bd70c
8202c1d
af50236
34474d3
871174a
5700d1c
cc9a3c7
54cda92
f19a466
4bd60e6
dd4590b
e62e8ec
0538289
439947d
51351b6
7c0ecea
0599c9c
4953592
02cf175
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -67,11 +67,18 @@ public static MauiAppBuilder UseSentry(this MauiAppBuilder builder, | |||||||||||||||||||||
| services.AddSingleton<IMauiElementEventBinder, MauiButtonEventsBinder>(); | ||||||||||||||||||||||
| services.AddSingleton<IMauiElementEventBinder, MauiImageButtonEventsBinder>(); | ||||||||||||||||||||||
| services.AddSingleton<IMauiElementEventBinder, MauiGestureRecognizerEventsBinder>(); | ||||||||||||||||||||||
| services.AddSingleton<IMauiElementEventBinder, MauiVisualElementEventsBinder>(); | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| // Resolve the configured options and register any event binders that have been injected by integrations | ||||||||||||||||||||||
| // Resolve the configured options and register any event binders that have been enabled via configuration or | ||||||||||||||||||||||
| // injected by integrations | ||||||||||||||||||||||
| var options = new SentryMauiOptions(); | ||||||||||||||||||||||
| configureOptions?.Invoke(options); | ||||||||||||||||||||||
| #if __ANDROID__ | ||||||||||||||||||||||
| var replayOptions = options.Native.ExperimentalOptions.SessionReplay; | ||||||||||||||||||||||
| if (replayOptions is { IsSessionReplayEnabled: true, IsTypeMaskingUsed: true }) | ||||||||||||||||||||||
jamescrosswell marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||||||||||||
| { | ||||||||||||||||||||||
| services.AddSingleton<IMauiElementEventBinder, MauiSessionReplayMaskControlsOfTypeBinder>(); | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| #endif | ||||||||||||||||||||||
|
||||||||||||||||||||||
| /// <summary> | |
| /// Mask can be used to either unmask or mask a view. | |
| /// </summary> | |
| public static readonly BindableProperty MaskProperty = | |
| BindableProperty.CreateAttached( | |
| "Mask", | |
| typeof(SessionReplayMaskMode), | |
| typeof(SessionReplay), | |
| defaultValue: SessionReplayMaskMode.Mask, | |
| propertyChanged: OnMaskChanged); |
Under the hood we use these to set the native android tags that are used by the Java SDK in the OnUnmaskedElementHandlerChanged and OnMaskedElementHandlerChanged handlers.
Uh oh!
There was an error while loading. Please reload this page.