I have been noticing that on some devices, namely Surface Pro 8, when auto-brightness by ambient light sensor is enabled, the actual adjusted brightness cannot be obtained by the functions currently available for desktop app (UWP is not included in desktop app).
I found that it can be obtained by BrightnessOverride.GetLevelForScenario method as shown below.
// using Windows.Graphics.Display;
BrightnessOverride bo = BrightnessOverride.GetForCurrentView();
double brightness = bo.GetLevelForScenario(DisplayBrightnessScenario.DefaultBrightness);
However, it requires GetForCurrentView method and it is clearly documented that it is not supported for desktop app and no alternative API is available.
Therefore, I don't think this issue can be solved in near future. Of cource, I would appreciate if anyone could provide a workable solution or workaround for this.
I have been noticing that on some devices, namely Surface Pro 8, when auto-brightness by ambient light sensor is enabled, the actual adjusted brightness cannot be obtained by the functions currently available for desktop app (UWP is not included in desktop app).
I found that it can be obtained by BrightnessOverride.GetLevelForScenario method as shown below.
However, it requires GetForCurrentView method and it is clearly documented that it is not supported for desktop app and no alternative API is available.
Therefore, I don't think this issue can be solved in near future. Of cource, I would appreciate if anyone could provide a workable solution or workaround for this.