isBatteryOptimizationDisabled abstract method
Checks whether battery optimization is disabled for the app.
Returns true if the app is excluded from battery optimization (e.g., the system is ignoring optimizations),
and false if the app is still subject to Doze mode and other battery-saving behaviors.
Only meaningful on Android 6.0+ (API level 23+). Other platforms should return false or handle appropriately.
Implementation
Future<bool> isBatteryOptimizationDisabled();