scheduleWhileCharging method
void
scheduleWhileCharging()
Schedules eviction to run when the device is charging.
This requires integration with a platform-specific charging detection mechanism.
Implementation
void scheduleWhileCharging() {
if (_isRunning) {
_log.warning('Scheduler is already running. Stop it first.');
return;
}
_conditions.add(EvictionTiming.whileCharging);
// This would typically involve setting up a listener for charging events
// For now, we'll just log a message
_log.info('Scheduled eviction when device is charging (not implemented)');
_isRunning = true;
}