fuchsia.ui.brightness

PROTOCOLS

Control

Defined in fuchsia.ui.brightness/brightness.fidl

Control provides an interface to manage the brightness component.

SetAutoBrightness

Turns the auto-brightness mode on. SetManualBrightness will turn it off.

Request

NameType

WatchAutoBrightness

Requests the current auto-brightness mode. This call implements the Hanging Get protocol as detailed in https://fuchsia.googlesource.com/fuchsia/+/master/docs/development/api/fidl.md#delay-responses-using-hanging-gets

Request

NameType

Response

NameType
enabled bool

SetManualBrightness

Turns auto-brightness mode off. Used by e.g. Settings to set manual brightness using a slider Value is in the range 0.0 to 1.0 representing min to max.

Request

NameType
value float32

WatchCurrentBrightness

Gets the current brightness in the range 0.0 to 1.0. This result is valid for both manual and auto-brightness modes and is typically used to show the current brightness on a slider. This call implements the Hanging Get protocol as detailed in https://fuchsia.googlesource.com/fuchsia/+/master/docs/development/api/fidl.md#delay-responses-using-hanging-gets

Request

NameType

Response

NameType
value float32

SetBrightnessTable

Sets the brightness curve as a set of points. This will override the built-in brightness curve.

Request

NameType
table BrightnessTable

STRUCTS

BrightnessPoint

Defined in fuchsia.ui.brightness/brightness.fidl

A tuple representing a point on the auto-brightness curve

NameTypeDescriptionDefault
ambient_lux float32 No default
display_nits float32 No default

BrightnessTable

Defined in fuchsia.ui.brightness/brightness.fidl

A set of points defining the auto-brightness curve. They should be ordered in increasing ambient_lux

NameTypeDescriptionDefault
points vector<BrightnessPoint>[50] No default