`if (device_get_brightness(0, &platformBrightness) != 0) {`