Skip to main content

Display

The Display API provides methods to control and monitor display brightness across all connected displays in the Luniris OS system. This API allows for both reading current brightness levels and adjusting them programmatically.


Protocol Buffer Definition

syntax = "proto3";
import "google/protobuf/empty.proto";

service DisplayService {
// Retrieves the current brightness level (0-100)
rpc GetBrightnessLevel (google.protobuf.Empty) returns (BrightnessMessage);

// Sets a new brightness level (0-100)
rpc SendBrightnessLevel (BrightnessMessage) returns (google.protobuf.Empty);
}

// Brightness level message
message BrightnessMessage {
int32 brightness_level = 1; // Integer value between 0 (low brightness) and 100 (max brightness)
}