onLowPowerModeChanged abstract method

void onLowPowerModeChanged(
  1. bool isLowPowerModeEnabled
)

Called when the device's Low Power Mode state changes

isLowPowerModeEnabled - true if Low Power Mode is enabled, false otherwise

This is called:

  • Once on initialization with the current state
  • Whenever the user toggles Low Power Mode in Settings or Control Center

Implementation

void onLowPowerModeChanged(bool isLowPowerModeEnabled);