Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jfversluis/Plugin.Maui.ScreenBrightness
Plugin.Maui.ScreenBrightness provides the ability to get or set the screen brightness inside a .NET MAUI application.
https://github.com/jfversluis/Plugin.Maui.ScreenBrightness
android brightness dotnet dotnet-maui ios maui
Last synced: 3 months ago
JSON representation
Plugin.Maui.ScreenBrightness provides the ability to get or set the screen brightness inside a .NET MAUI application.
- Host: GitHub
- URL: https://github.com/jfversluis/Plugin.Maui.ScreenBrightness
- Owner: jfversluis
- License: mit
- Created: 2023-03-13T19:57:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-01T19:23:58.000Z (about 1 year ago)
- Last Synced: 2024-05-01T15:42:07.837Z (6 months ago)
- Topics: android, brightness, dotnet, dotnet-maui, ios, maui
- Language: C#
- Homepage:
- Size: 8.2 MB
- Stars: 44
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-dotnet-maui - Plugin.Maui.ScreenBrightness - square)](https://github.com/jfversluis/Plugin.Maui.ScreenBrightness/stargazers)|[![GitHub last-commit](https://img.shields.io/github/last-commit/jfversluis/Plugin.Maui.ScreenBrightness?style=flat-square)](https://github.com/jfversluis/Plugin.Maui.ScreenBrightness/commits) (Plugins)
README
![](nuget.png)
# Plugin.Maui.ScreenBrightness
`Plugin.Maui.ScreenBrightness` provides the ability to get or set the screen brightness inside a .NET MAUI application.
## Install Plugin
[![NuGet](https://img.shields.io/nuget/v/Plugin.Maui.ScreenBrightness.svg?label=NuGet)](https://www.nuget.org/packages/Plugin.Maui.ScreenBrightness/)
Available on [NuGet](http://www.nuget.org/packages/Plugin.Maui.ScreenBrightness).
Install with the dotnet CLI: `dotnet add package Plugin.Maui.ScreenBrightness`, or through the NuGet Package Manager in Visual Studio.
## API Usage
`Plugin.Maui.ScreenBrightness` provides the `ScreenBrightness` class that has a single property `Brightness` that you can get or set.
You can either use it as a static class, e.g.: `ScreenBrightness.Default.Brightness = 1` or with dependency injection: `builder.Services.AddSingleton(ScreenBrightness.Default);`