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