Dil

DisplayBrightnessUnit Enum

Definition

public enum DisplayBrightnessUnit
type DisplayBrightnessUnit = 
Inheritance
DisplayBrightnessUnit

Fields

Name Value Description
Percentage 1

Brightness value type where the value is in the range [0, 100] and when set, the brightness UI slider will show the same value. It gets converted from the user-perception scale to the power scale and mapped to the current brightness range. The current brightness range may change over time depending on the device state (such as the brightness of the ambient environment). When this type is used, 0 and 100 map to the current brightness minimum and maximum respectively.

Android reference for android.hardware.display.DisplayManager.BRIGHTNESS_UNIT_PERCENTAGE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Raw 3

Brightness value type where the value is in the system range [0.0f, 1.0f]. The specific implementation of this unit might be device-dependent and it might differ from the brightness percentage seen by the user on the brightness slider.

Android reference for android.hardware.display.DisplayManager.BRIGHTNESS_UNIT_RAW.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to