BrightnessOverride.SetBrightnessScenario Method

Definition

Sets the brightness level, by specifying a scenario that has a well-known brightness level, and the override options of the brightness override.

C#
public void SetBrightnessScenario(DisplayBrightnessScenario scenario, DisplayBrightnessOverrideOptions options);

Parameters

scenario
DisplayBrightnessScenario

A scenario that has a well-known brightness level.

options
DisplayBrightnessOverrideOptions

Options that modify the brightness level of the screen during the brightness override session.

Examples

C#
/* Set the display brightness to a level that is optimum for reading barcodes. If the device is on low battery during overriding, allow the display to dim*/

bo.SetBrightnessScenario(DisplayBrightnessScenario.BarcodeReadingBrightness, DisplayBrightnessOverrideOptions.UseDimmedPolicyWhenBatteryIsLow); 

Applies to

Product Versions
WinRT Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100