1 #ifndef HARDWARE_TEST_BATTERY_TEST_CONTROLLER_H 2 #define HARDWARE_TEST_BATTERY_TEST_CONTROLLER_H 21 constexpr
static int k_maxNumberOfCharacters = 20;
24 void layoutSubviews()
override;
25 int numberOfSubviews()
const override;
26 View * subviewAtIndex(
int index)
override;
27 constexpr
static int k_margin = 4;
32 constexpr
static float k_batteryThreshold = 3.7f;
33 constexpr
static const char * k_batteryOKText =
"BATTERY: OK";
34 constexpr
static const char * k_batteryNeedChargingText =
"BATTERY: NEED RECHARGE";
35 void updateBatteryState(
float batteryLevel,
bool batteryCharging);
Responder * parentResponder() const
bool handleEvent(Ion::Events::Event event) override
BatteryTestController(Responder *parentResponder)
void viewWillAppear() override