Get Brightness
Function table
__IDO_FUNCTABLE__.funcTable30Model.getScreenBrightness
Brightness model description
- IDOSetScreenBrightnessInfoBluetoothModel
Parameter | Description | Notes |
---|---|---|
levelValue | screen brightness level | 1-100 |
isManual | Whether user adjusted | bool |
mode | screen brightness level | 0x00 Turn off automatic adjustment, 0x01 Use ambient light sensor, 0x02, Automatically adjust brightness at night, 0x03 Use set time to reduce brightness at night |
autoAdjustNight | Automatic brightness adjustment at night | 0x00, invalid, defined by firmware, 0x01 off, 0x02, automatically adjust the brightness at night, 0x03 use the set time to reduce the brightness at night |
startHour | start (hour) | int |
startMinute | start (minute) | int |
endHour | end (hour) | int |
endMinute | end (minute) | int |
nightLevel | Brightness at night | 1-100 |
showInterval | Display interval | int unit second |
Command code
Objc:
[IDOFoundationCommand getScreenBrightnessCommand:^(int errorCode, IDOSetScreenBrightnessInfoBluetoothModel * _Nullable data) {
if (errorCode == 0) {
//get success
}else if (errorCode == 6) {
//device not supported
}else {
//get failed
}
}];
Swift:
IDOFoundationCommand.getScreenBrightnessCommand { (errorCode, model) in
if errorCode == 0 {
//get success
}else if errorCode == 6 {
//device not supported
}else {
//get failed.
}
};