VirtualDisplayConfig.IBrightnessListener.OnBrightnessChanged(Single) Method

Definition

Called when the display's brightness has changed.

[Android.Runtime.Register("onBrightnessChanged", "(F)V", "GetOnBrightnessChanged_FHandler:Android.Hardware.Display.VirtualDisplayConfig/IBrightnessListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)]
public void OnBrightnessChanged(float brightness);
[<Android.Runtime.Register("onBrightnessChanged", "(F)V", "GetOnBrightnessChanged_FHandler:Android.Hardware.Display.VirtualDisplayConfig/IBrightnessListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)>]
abstract member OnBrightnessChanged : single -> unit

Parameters

brightness
Single

the new brightness of the display. Value of 0.0 indicates the minimum supported brightness and value of 1.0 indicates the maximum supported brightness.

Attributes

Remarks

Called when the display's brightness has changed.

Java documentation for android.hardware.display.VirtualDisplayConfig.BrightnessListener.onBrightnessChanged(float).

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