DumBlazor.QrCodeScanner 1.0.2

dotnet add package DumBlazor.QrCodeScanner --version 1.0.2
NuGet\Install-Package DumBlazor.QrCodeScanner -Version 1.0.2
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="DumBlazor.QrCodeScanner" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DumBlazor.QrCodeScanner --version 1.0.2
#r "nuget: DumBlazor.QrCodeScanner, 1.0.2"
#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.
// Install DumBlazor.QrCodeScanner as a Cake Addin
#addin nuget:?package=DumBlazor.QrCodeScanner&version=1.0.2

// Install DumBlazor.QrCodeScanner as a Cake Tool
#tool nuget:?package=DumBlazor.QrCodeScanner&version=1.0.2

DumBlazor.QrCodeScanner

This nuget wraps jsQR in form of a simple component. No additional configuration, scripts or injects needed. Just place the component and provide a OnCodeScanned handler method.

Requirements

No additional requirements are needed

Installation

Install nuget package : DumBlazor.QrCodeScanner

dotnet cli: dotnet add package DumBlazor.QrCodeScanner
Package Manager: Install-Package DumBlazor.QrCodeScanner

Usage

Place <QrCodeScanner /> Blazor component wherever needed.

@using DumBlazor.QrCodeScanner

<QrCodeScanner OnCodeScanned="HANDLER" />

OnCodeScanned is an [EditorRequired] parameter and the component expects it to be provided.

All Configuration Parameters

Parameter Type Required Description
OnCodeScanned Action<string> Yes Method to invoke on code scan
OnError Action<string> No Method to invoke on initialization or code scan error
OnReady Action No Method to invoke on successful initialization
Width string No Set the fixed width of canvas in pixels
Interval TimeSpan No Minimal interval between successful scans. Default: TimeSpan.Zero
HighlightColor string no Highlight color of a found QR Code on canvas. Default: #FF3B58

Notes

This wrapper uses jsQR to handle code scans. The wrapper was inspired by YannVasseur35's implementation

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.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
1.0.2 463 10/18/2023
1.0.1 392 3/5/2023
1.0.0 156 3/5/2023