| java.lang.Object | |
| ↳ | lineageos.profiles.BrightnessSettings |
The BrightnessSettings class allows for overriding and setting the brightness level
of the display. The range for brightness is between 0 -> 255.
Example for setting the brightness to ~25% (255 * .25):
BrightnessSettings twentyFivePercent = new BrightnessSettings(63, true) profile.setBrightness(twentyFivePercent);
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Unwrap
BrightnessSettings from a parcel.
| |||||||||||
Construct a
BrightnessSettings with a default value of 0.
| |||||||||||
Construct a
BrightnessSettings with a default value and whether or not it should
override user settings.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Get the default value for the
BrightnessSettings
| |||||||||||
Check whether or not the
BrightnessSettings overrides user settings.
| |||||||||||
Set whether or not the
BrightnessSettings should override default user values
| |||||||||||
Set the default value for the
BrightnessSettings
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||
|
| |||||||||||
Unwrap BrightnessSettings from a parcel.
Construct a BrightnessSettings with a default value of 0.
Construct a BrightnessSettings with a default value and whether or not it should
override user settings.
| Parameters | |
|---|---|
value |
int: ex: 255 (MAX) |
override |
boolean: whether or not the setting should override user settings
|
Get the default value for the BrightnessSettings
| Returns | |
|---|---|
int |
integer value corresponding with its brightness value |
Check whether or not the BrightnessSettings overrides user settings.
| Returns | |
|---|---|
boolean |
true if override |
Set whether or not the BrightnessSettings should override default user values
| Parameters | |
|---|---|
override |
boolean: boolean override
|
Set the default value for the BrightnessSettings
| Parameters | |
|---|---|
value |
int: ex: 255 (MAX)
|