Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.29 KB

PACKAGE.md

File metadata and controls

49 lines (34 loc) · 1.29 KB

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

  1. Add PackageReference to your .csproj file
<ItemGroup>
  <PackageReference Include="Blazor.BrowserAPI" Version="{latest version}" />
</ItemGroup>
  1. Register BrowserAPI in your dependency container
using BrowserAPI;

services.AddBrowserAPI();

For documentation or sourcecode see github.com/BlackWhiteYoshi/Blazor.BrowserAPI.