microsoft/TypeAgent
Publicmirrored fromhttps://github.com/microsoft/TypeAgentAvailable
dotnet/autoShell/Services/IBrightnessService.cs
20lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | namespace autoShell.Services; |
| 5 | |
| 6 | /// <summary> |
| 7 | /// Abstracts display brightness operations for testability. |
| 8 | /// </summary> |
| 9 | internal interface IBrightnessService |
| 10 | { |
| 11 | /// <summary> |
| 12 | /// Gets the current display brightness (0–100). |
| 13 | /// </summary> |
| 14 | byte GetCurrentBrightness(); |
| 15 | |
| 16 | /// <summary> |
| 17 | /// Sets the display brightness (0–100). |
| 18 | /// </summary> |
| 19 | void SetBrightness(byte brightness); |
| 20 | } |
| 21 | |