Blazor.BrowserAPI
0.7.0
See the version list below for details.
dotnet add package Blazor.BrowserAPI --version 0.7.0
NuGet\Install-Package Blazor.BrowserAPI -Version 0.7.0
<PackageReference Include="Blazor.BrowserAPI" Version="0.7.0" />
paket add Blazor.BrowserAPI --version 0.7.0
#r "nuget: Blazor.BrowserAPI, 0.7.0"
// Install Blazor.BrowserAPI as a Cake Addin #addin nuget:?package=Blazor.BrowserAPI&version=0.7.0 // Install Blazor.BrowserAPI as a Cake Tool #tool nuget:?package=Blazor.BrowserAPI&version=0.7.0
Blazor.BrowserAPI
A Blazor library that provides easy access to browser APIs without the need to use any JavaScript.
Since JavaScript functionality for Blazor is primarly used for accessing BrowserAPIs, for most applications there will be no need to write any additional JavaScript.
It supports asynchronous communication as well as synchronous (JSRuntime and JSInProcessRuntime).
For documentation or sourcecode see github.com/BlackWhiteYoshi/Blazor.BrowserAPI.
You can find the test page at blazor-browserapi.firerocket.de.
Available Browser APIs
- Clipboard
- Console
- CookieStorage
- Dialog
- Download
- Geolocation
- HTMLElement
- HTMLMediaElement (audio/video)
- Language
- LocalStorage
- MediaDevices (microphone/camera)
- SensorAPI
- ServiceWorker
- SessionStorage
Get Started
- Add PackageReference to your .csproj file
<ItemGroup>
<PackageReference Include="Blazor.BrowserAPI" Version="{latest version}" />
</ItemGroup>
- Register BrowserAPI in your dependency container
using BrowserAPI;
services.AddBrowserAPI();
For documentation or sourcecode see github.com/BlackWhiteYoshi/Blazor.BrowserAPI.
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 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. |
-
net6.0
- Microsoft.AspNetCore.Components.Web (>= 6.0.33)
-
net7.0
- Microsoft.AspNetCore.Components.Web (>= 7.0.20)
-
net8.0
- Microsoft.AspNetCore.Components.Web (>= 8.0.8)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.