| // Copyright 2019 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| library fuchsia.settings; |
| |
| /// Settings related to display |
| [Discoverable] |
| protocol Display { |
| /// Gets the current [DisplaySettings]. Returns immediately on first call; |
| /// subsequent calls return when the value changes. |
| Watch() -> (DisplaySettings settings) error Error; |
| |
| /// Sets display settings. Any field not explicitly set in the table performs a |
| /// no-op, and will not make any changes. |
| Set(DisplaySettings settings) -> () error Error; |
| }; |
| |
| table DisplaySettings { |
| 1: bool auto_brightness; |
| 2: float32 brightness_value; |
| }; |