You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
600 B
29 lines
600 B
/**
|
|
* 可调节亮度接口
|
|
* 定义了设备的亮度调节功能
|
|
*/
|
|
public interface BrightnessAdjustable {
|
|
/**
|
|
* 增加亮度
|
|
* @param level 增加的亮度级别
|
|
*/
|
|
void increaseBrightness(int level);
|
|
|
|
/**
|
|
* 降低亮度
|
|
* @param level 降低的亮度级别
|
|
*/
|
|
void decreaseBrightness(int level);
|
|
|
|
/**
|
|
* 设置亮度
|
|
* @param brightness 目标亮度级别(0-100)
|
|
*/
|
|
void setBrightness(int brightness);
|
|
|
|
/**
|
|
* 获取当前亮度
|
|
* @return 当前亮度级别
|
|
*/
|
|
int getCurrentBrightness();
|
|
} |