An open API service indexing awesome lists of open source software.

https://github.com/kristofferstrube/blazor.deviceorientation

A Blazor wrapper for the browser Device Orientation API.
https://github.com/kristofferstrube/blazor.deviceorientation

Last synced: about 1 year ago
JSON representation

A Blazor wrapper for the browser Device Orientation API.

Awesome Lists containing this project

README

          

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](/LICENSE.md)
[![GitHub issues](https://img.shields.io/github/issues/KristofferStrube/Blazor.DeviceOrientation)](https://github.com/KristofferStrube/Blazor.DeviceOrientation/issues)
[![GitHub forks](https://img.shields.io/github/forks/KristofferStrube/Blazor.DeviceOrientation)](https://github.com/KristofferStrube/Blazor.DeviceOrientation/network/members)
[![GitHub stars](https://img.shields.io/github/stars/KristofferStrube/Blazor.DeviceOrientation)](https://github.com/KristofferStrube/Blazor.DeviceOrientation/stargazers)

[![NuGet Downloads (official NuGet)](https://img.shields.io/nuget/dt/KristofferStrube.Blazor.DeviceOrientation?label=NuGet%20Downloads)](https://www.nuget.org/packages/KristofferStrube.Blazor.DeviceOrientation/)

# Introduction
A Blazor wrapper for the browser [DeviceOrientation API](https://www.w3.org/TR/orientation-event/)

The API provides several events that provide information about acceleration and orientation of a physical device through the browser. This wrapper supplies a way to listen for these events and ask for permissions in different ways depending on the browser.

# Demo
The sample project can be demoed at https://kristofferstrube.github.io/Blazor.DeviceOrientation/

On each page you can find the corresponding code for the example in the top right corner.

On the *API Coverage Status* page you can get an overview over what parts of the API we support currently.