VirtualDisplayConfig.IBrightnessListener.OnBrightnessChanged(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.
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.
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.