BootstrapBlazor.WebAPI 8.0.3

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

Blazor WebAPI 组件 (浏览器信息/电池信息/网络信息/截屏/录像/上传/Cookie/LocalStorage/WebSerial/语音识别和合成)

  1. 电池信息类
  2. 网络信息类
  3. 浏览器信息类
  4. 截屏录像类
  5. 上传
  6. Cookie/LocalStorage

示例:

https://blazor.app1.es/WebAPI

https://blazor.app1.es/screencapture

https://blazor.app1.es/Storages

https://blazor.app1.es/UploadToBase64s

https://blazor.app1.es/WebSerials

https://blazor.app1.es/Speechs

使用方法:

1.nuget包

BootstrapBlazor.WebAPI

2._Imports.razor 文件 或者页面添加 添加组件库引用

@using BootstrapBlazor.Components

3.razor页面

<WebApi OnBatteryResult="@OnBatteryResult" OnNetworkInfoResult="@OnNetworkInfoResult" OnUserAgentResult="OnUserAgentResult" OnError="@OnError" ShowInfo />

<Capture OnCaptureResult="@OnCaptureResult" OnError="@OnError" Camera="false" />


@code{

    private Task OnBatteryResult(BatteryStatus item)
    {
        xx = item;
        StateHasChanged();
        return Task.CompletedTask;
    }

    private Task OnNetworkInfoResult(NetworkInfoStatus item)
    {
        xx = item;
        StateHasChanged();
        return Task.CompletedTask;
    }

    private Task OnUserAgentResult(UAInfo item)
    {
        xx = item;
        StateHasChanged();
        return Task.CompletedTask;
    }

    private Task OnError(string message)
    {
        this.message = message;
        StateHasChanged();
        return Task.CompletedTask;
    }

    //OCR库
    private OCR? OCR { get; set; } 

    private async Task OnCaptureResult(Stream item)
    {
        if (OCR!=null) await OCR.OCRFromStream(item);
        StateHasChanged();
    }

} 

更新历史

v8.0.1

  • 优化Capture调用已保存摄像头设备ID性能

v7.5.2

  • UploadToBase64 添加外层用户自定义样式

v7.5.1

  • Capture 添加 1.保存最后使用设备ID下次自动调用, 2.指定摄像头设备ID

v7.5.0

  • WebVoice 优化

v7.4.5

  • 添加查询语音合成发音状态

v7.4.2

  • WebSerial 自动检查状态

v7.4.2

  • WebSerial 添加信号数据处理

v7.4.0

  • WebSpeech 语音识别优化

v7.3.6

  • WebSerial 添加 自动连接设备/自动断帧方式/Break/DTR/RTS/按钮文本自定义

v7.3.5

  • WebSerial 添加 连接状态/HEX发送/HEX接收/自动断帧/断帧字符

v7.2.7 - 7.3.4

  • 添加 WebSpeech 语音识别/合成组件

v7.2.4

  • 添加 串口读写 WebSerial组件

v7.2.2

  • Capture 组件添加指定高宽,可保存高质量图片

v7.2

  • 添加 Cookie / LocalStorage 服务
  • 添加 上传图片 UploadToBase64 组件
  • Capture 组件优化

Blazor 组件

条码扫描 ZXingBlazor nuget stats

图片浏览器 Viewer

手写签名 SignaturePad

定位/持续定位 Geolocation

屏幕键盘 OnScreenKeyboard

百度地图 BaiduMap

谷歌地图 GoogleMap

蓝牙和打印 Bluetooth

PDF阅读器 PdfReader

文件系统访问 FileSystem

光学字符识别 OCR

电池信息/网络信息 WebAPI

文件预览 FileViewer

视频播放器 VideoPlayer

图像裁剪 ImageCropper

视频播放器 BarcodeGenerator

AlexChow

今日头条 | 博客园 | 知乎 | Gitee | GitHub

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 is compatible.  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 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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 (4)

Showing the top 4 NuGet packages that depend on BootstrapBlazor.WebAPI:

Package Downloads
BlazorShared

BlazorMaui , 整合Blazor,BootstrapBlazor UI组件库,Maui的共享跨平台工程示例共享库

BootstrapBlazor.Densen.All

Blazor 组件懒人包

BlazorHybrid.Maui.Permissions

用于 Maui Blazor 框架的跨平台库权限包

BootstrapBlazor.OpenAI

Bootstrap UI OpenAI components experience

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on BootstrapBlazor.WebAPI:

Repository Stars
densen2014/BlazorMaui
用 c # 和 Razor 创建本机移动应用和桌面应用。使用 Blazor.BB.Maui,可以快速开发共享代码库运行于 Windows (Winforms/WPF/UWP)、Android、iOS、macOS 的应用。
densen2014/BlazorHybrid
关于BlazorHybrid的一切研究. 用 c # 和 Razor 创建本机移动应用和桌面应用。快速开发共享代码库运行于 Windows (Winforms/WPF/UWP)、Android、iOS、macOS、Linux 的应用。
Version Downloads Last Updated
9.0.0 597 1/21/2025
8.0.5 3,652 4/26/2024
8.0.4 2,122 12/12/2023
8.0.3 264 12/9/2023
8.0.2 336 12/2/2023
8.0.1 219 12/2/2023
8.0.0 704 11/15/2023
7.5.3 1,068 11/2/2023
7.5.2 234 11/2/2023
7.5.1 231 11/1/2023
7.5.0 1,429 9/24/2023
7.4.6 226 9/21/2023
7.4.5 215 9/20/2023
7.4.4 547 9/10/2023
7.4.3 293 9/10/2023 7.4.3 is deprecated because it is no longer maintained.
7.4.2 298 9/10/2023 7.4.2 is deprecated because it is no longer maintained.
7.4.1 445 9/8/2023
7.4.0 268 9/7/2023
7.3.6 298 9/7/2023
7.3.5 279 9/6/2023
7.3.4 257 9/6/2023
7.3.3 242 9/6/2023
7.3.2 260 9/6/2023
7.3.1 270 9/5/2023
7.3.0 261 9/5/2023
7.2.6 312 9/2/2023
7.2.5 909 7/28/2023
7.2.4 306 7/28/2023
7.2.3 339 7/8/2023
7.2.2 296 7/6/2023
7.2.1 280 7/6/2023
7.1.2 364 6/9/2023
7.1.1 315 6/9/2023
7.1.0 293 6/7/2023
7.0.10 319 6/7/2023
7.0.9 288 6/7/2023
7.0.7 309 6/6/2023
7.0.6 324 6/6/2023
7.0.5 1,042 3/15/2023
7.0.4 368 3/15/2023
7.0.3 450 2/28/2023
7.0.2 1,178 1/24/2023
7.0.1 918 12/7/2022
7.0.0 1,117 11/9/2022
6.2.1 710 10/12/2022
6.2.0 536 10/12/2022