Soenneker.Blazor.Thumbmarkjs 4.0.211

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Blazor.Thumbmarkjs --version 4.0.211
                    
NuGet\Install-Package Soenneker.Blazor.Thumbmarkjs -Version 4.0.211
                    
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="Soenneker.Blazor.Thumbmarkjs" Version="4.0.211" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Blazor.Thumbmarkjs" Version="4.0.211" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Blazor.Thumbmarkjs" />
                    
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 Soenneker.Blazor.Thumbmarkjs --version 4.0.211
                    
#r "nuget: Soenneker.Blazor.Thumbmarkjs, 4.0.211"
                    
#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 Soenneker.Blazor.Thumbmarkjs@4.0.211
                    
#: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=Soenneker.Blazor.Thumbmarkjs&version=4.0.211
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Thumbmarkjs&version=4.0.211
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Blazor.Thumbmarkjs

A Blazor interop library for the javascript fingerprinting library, thumbmarkjs

Demo

Installation

dotnet add package Soenneker.Blazor.Thumbmarkjs

Usage

Basic Setup

  1. Register the service in your Program.cs:
builder.Services.AddThumbmarkjsInteropAsScoped();
  1. Add the component to your page or component:
<Thumbmarkjs @ref="_thumbmarkjs" OnGenerated="OnGenerated"></Thumbmarkjs>

Getting a Thumbmark (Fingerprint)

private Thumbmarkjs _thumbmarkjs;

private async Task Get()
{
    string fingerprint = await _thumbmarkjs.Get();
}

public void OnGenerated(string thumbmark)
{
    // Handle the fingerprint when it's generated
}

public void OnFingerprintDataGenerated(JsonElement data)
{
    // Handle the fingerprint when it's generated
}

Getting Detailed Data

private async Task GetData()
{
    JsonElement? data = await _thumbmarkjs.GetData();
    string jsonData = data?.ToString();
    // Use the detailed data...
}

Configuring Options

private async Task ConfigureOptions()
{
    var options = new ThumbmarkjsOptions
    {
        Exclude = ["webgl", "audio"], // Components to exclude
        Timeout = 1000, // Timeout in milliseconds
    };

    await _thumbmarkjs.SetOptions(options);
}
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows 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
4.0.216 55 4/15/2026
4.0.215 56 4/15/2026
4.0.214 70 4/15/2026
4.0.213 80 4/15/2026
4.0.212 73 4/14/2026
4.0.211 82 4/14/2026
4.0.210 87 4/13/2026
4.0.209 81 4/13/2026
4.0.208 85 4/13/2026
4.0.207 85 4/10/2026
4.0.206 81 4/9/2026
4.0.204 85 4/8/2026
4.0.203 79 4/8/2026
4.0.202 86 4/8/2026
4.0.201 93 4/7/2026
4.0.200 79 4/7/2026
4.0.199 86 4/7/2026
4.0.198 84 4/6/2026
4.0.197 88 4/6/2026
4.0.196 92 4/5/2026
Loading failed

Update dependency Soenneker.Quark.Components.Core.Cancellable to 4.0.65 (#495)