Language

VirtualDisplayConfig.Builder.SetDimBrightness(Single) Method

Definition

Sets the dim brightness of the display.

[Android.Runtime.Register("setDimBrightness", "(F)Landroid/hardware/display/VirtualDisplayConfig$Builder;", "", ApiSince=36)]
public Android.Hardware.Display.VirtualDisplayConfig.Builder SetDimBrightness(float brightness);
[<Android.Runtime.Register("setDimBrightness", "(F)Landroid/hardware/display/VirtualDisplayConfig$Builder;", "", ApiSince=36)>]
member this.SetDimBrightness : single -> Android.Hardware.Display.VirtualDisplayConfig.Builder

Parameters

brightness
Single

Value is between 0.0f and 1.0f inclusive

Returns

Attributes

Remarks

Sets the dim brightness of the display.

The system will use this brightness value whenever the display should be dim, i.e. it is powered on and dimmed 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 set, the default brightness must also be set to a value greater or equal to the dim brightness. If unset, defaults to the system default.

Android reference for android.hardware.display.VirtualDisplayConfig.Builder.setDimBrightness.

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