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.
- Host: GitHub
- URL: https://github.com/kristofferstrube/blazor.deviceorientation
- Owner: KristofferStrube
- License: mit
- Created: 2022-11-04T12:33:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-04T09:58:28.000Z (almost 2 years ago)
- Last Synced: 2025-05-07T03:04:32.187Z (about 1 year ago)
- Language: C#
- Size: 7.8 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](/LICENSE.md)
[](https://github.com/KristofferStrube/Blazor.DeviceOrientation/issues)
[](https://github.com/KristofferStrube/Blazor.DeviceOrientation/network/members)
[](https://github.com/KristofferStrube/Blazor.DeviceOrientation/stargazers)
[](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.