DumBlazor.QrCodeScanner
1.0.1
See the version list below for details.
dotnet add package DumBlazor.QrCodeScanner --version 1.0.1
NuGet\Install-Package DumBlazor.QrCodeScanner -Version 1.0.1
<PackageReference Include="DumBlazor.QrCodeScanner" Version="1.0.1" />
paket add DumBlazor.QrCodeScanner --version 1.0.1
#r "nuget: DumBlazor.QrCodeScanner, 1.0.1"
// Install DumBlazor.QrCodeScanner as a Cake Addin
#addin nuget:?package=DumBlazor.QrCodeScanner&version=1.0.1
// Install DumBlazor.QrCodeScanner as a Cake Tool
#tool nuget:?package=DumBlazor.QrCodeScanner&version=1.0.1
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 | Versions 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. |
-
net6.0
- Microsoft.AspNetCore.Components.Web (>= 6.0.14)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.