VirtualDisplayConfig.Builder.SetDefaultBrightness(Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the default brightness of the display.
[Android.Runtime.Register("setDefaultBrightness", "(F)Landroid/hardware/display/VirtualDisplayConfig$Builder;", "", ApiSince=36)]
public Android.Hardware.Display.VirtualDisplayConfig.Builder SetDefaultBrightness(float brightness);
[<Android.Runtime.Register("setDefaultBrightness", "(F)Landroid/hardware/display/VirtualDisplayConfig$Builder;", "", ApiSince=36)>]
member this.SetDefaultBrightness : single -> Android.Hardware.Display.VirtualDisplayConfig.Builder
Parameters
- brightness
- Single
Value is between 0.0f and 1.0f inclusive
Returns
- Attributes
Remarks
Sets the default brightness of the display.
The system will use this brightness value whenever the display should be bright, i.e. it is powered on and not modified due to user activity or app activity.
Value of 0.0 indicates the minimum supported brightness and value of 1.0 indicates the maximum supported brightness.
If unset, defaults to 0.0
Android reference for android.hardware.display.VirtualDisplayConfig.Builder.setDefaultBrightness.
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.