LaunchDarkly.SessionReplay
0.2.0
Prefix Reserved
dotnet add package LaunchDarkly.SessionReplay --version 0.2.0
NuGet\Install-Package LaunchDarkly.SessionReplay -Version 0.2.0
<PackageReference Include="LaunchDarkly.SessionReplay" Version="0.2.0" />
<PackageVersion Include="LaunchDarkly.SessionReplay" Version="0.2.0" />
<PackageReference Include="LaunchDarkly.SessionReplay" />
paket add LaunchDarkly.SessionReplay --version 0.2.0
#r "nuget: LaunchDarkly.SessionReplay, 0.2.0"
#:package LaunchDarkly.SessionReplay@0.2.0
#addin nuget:?package=LaunchDarkly.SessionReplay&version=0.2.0
#tool nuget:?package=LaunchDarkly.SessionReplay&version=0.2.0
LaunchDarkly Session Replay for .NET MAUI
The LaunchDarkly Session Replay SDK for .NET MAUI allows you to capture user interactions and screen recordings to understand how users interact with your application.
Prerequisites
- .NET 9.0 or higher is required.
- MAUI support for iOS and Android.
Getting Started
To enable Session Replay, you need to configure both the ObservabilityOptions and SessionReplayOptions when starting the SDK.
Configure Session Replay
In your MauiProgram.cs (or wherever you initialize your application), use the LDNative.Start method:
using LaunchDarkly.SessionReplay;
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
// ... other configuration ...
var mobileKey = "your-mobile-key";
var ldNative = LDNative.Start(
mobileKey: mobileKey,
observability: new(
serviceName: "maui-sample-app"
),
replay: new(
isEnabled: true,
privacy: new(
maskTextInputs: true,
maskWebViews: false,
maskLabels: false,
maskImages: false
)
)
);
return builder.Build();
}
}
Privacy Options
You can control what information is captured during a session using PrivacyOptions:
MaskTextInputs: (Default:true) Masks all text input fields.MaskWebViews: (Default:false) Masks all web view content.MaskLabels: (Default:false) Masks all text labels.MaskImages: (Default:false) Masks all images.
Manual Masking
You can manually mask or unmask specific UI components using the provided extension methods on any MAUI View.
using LaunchDarkly.SessionReplay;
// Mask a specific view
mySensitiveView.LDMask();
// Unmask a specific view
myPublicView.LDUnmask();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0-android35.0 is compatible. net9.0-ios18.0 is compatible. net10.0-android was computed. net10.0-ios was computed. |
-
net9.0-android35.0
- Microsoft.Maui.Controls (>= 8.0.3 && < 10.0.0)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.3 && < 10.0.0)
- Org.Jetbrains.Kotlinx.KotlinxSerializationJson (>= 1.9.0)
- Xamarin.AndroidX.Activity (>= 1.10.1.3 && < 2.0.0)
- Xamarin.AndroidX.Activity.Ktx (>= 1.10.1.3 && < 2.0.0)
- Xamarin.AndroidX.AppCompat (>= 1.7.1.1 && < 2.0.0)
- Xamarin.AndroidX.Collection.Jvm (>= 1.5.0.3 && < 2.0.0)
- Xamarin.AndroidX.Compose.UI (>= 1.8.3.1 && < 2.0.0)
- Xamarin.AndroidX.ConstraintLayout (>= 2.2.0.1 && < 3.0.0)
- Xamarin.AndroidX.CoordinatorLayout (>= 1.3.0.1 && < 2.0.0)
- Xamarin.AndroidX.Core (>= 1.16.0.3 && < 2.0.0)
- Xamarin.AndroidX.DrawerLayout (>= 1.2.0.18 && < 2.0.0)
- Xamarin.AndroidX.Fragment (>= 1.8.8.1 && < 2.0.0)
- Xamarin.AndroidX.Fragment.Ktx (>= 1.8.8.1 && < 2.0.0)
- Xamarin.AndroidX.Lifecycle.Common (>= 2.9.2.1 && < 3.0.0)
- Xamarin.AndroidX.Lifecycle.LiveData (>= 2.9.2.1 && < 3.0.0)
- Xamarin.AndroidX.Lifecycle.LiveData.Core (>= 2.9.2.1 && < 3.0.0)
- Xamarin.AndroidX.Lifecycle.LiveData.Core.Ktx (>= 2.9.2.1 && < 3.0.0)
- Xamarin.AndroidX.Lifecycle.Process (>= 2.9.2.1 && < 3.0.0)
- Xamarin.AndroidX.Lifecycle.Runtime (>= 2.9.2.1 && < 3.0.0)
- Xamarin.AndroidX.Lifecycle.Runtime.Ktx (>= 2.9.2.1 && < 3.0.0)
- Xamarin.AndroidX.Lifecycle.ViewModel (>= 2.9.2.1 && < 3.0.0)
- Xamarin.AndroidX.Lifecycle.ViewModelSavedState (>= 2.9.2.1 && < 3.0.0)
- Xamarin.AndroidX.Navigation.Fragment (>= 2.8.0.1 && < 3.0.0)
- Xamarin.AndroidX.Navigation.Runtime (>= 2.8.0.1 && < 3.0.0)
- Xamarin.AndroidX.Preference (>= 1.2.1.15 && < 2.0.0)
- Xamarin.AndroidX.ProfileInstaller.ProfileInstaller (>= 1.4.1.5 && < 2.0.0)
- Xamarin.AndroidX.RecyclerView (>= 1.4.0.3 && < 2.0.0)
- Xamarin.AndroidX.SavedState (>= 1.3.1.1 && < 2.0.0)
- Xamarin.AndroidX.SavedState.SavedState.Ktx (>= 1.3.1.1 && < 2.0.0)
- Xamarin.AndroidX.Startup.StartupRuntime (>= 1.2.0.5 && < 2.0.0)
- Xamarin.AndroidX.SwipeRefreshLayout (>= 1.1.0.27 && < 2.0.0)
- Xamarin.AndroidX.Tracing.Tracing (>= 1.3.0.1 && < 2.0.0)
- Xamarin.AndroidX.Transition (>= 1.6.0.1 && < 2.0.0)
- Xamarin.AndroidX.VectorDrawable (>= 1.2.0.8 && < 2.0.0)
- Xamarin.AndroidX.ViewPager (>= 1.1.0.4 && < 2.0.0)
- Xamarin.AndroidX.Window (>= 1.4.0.1 && < 2.0.0)
-
net9.0-ios18.0
- Microsoft.Maui.Controls (>= 8.0.3 && < 10.0.0)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.3 && < 10.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.