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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LaunchDarkly.SessionReplay" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LaunchDarkly.SessionReplay" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="LaunchDarkly.SessionReplay" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LaunchDarkly.SessionReplay --version 0.2.0
                    
#r "nuget: LaunchDarkly.SessionReplay, 0.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package LaunchDarkly.SessionReplay@0.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LaunchDarkly.SessionReplay&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=LaunchDarkly.SessionReplay&version=0.2.0
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0 80 1/30/2026
0.1.0 84 1/30/2026