final class InactivityTimer extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
InactivityTimer.DaemonThreadFactory |
private class |
InactivityTimer.PowerStatusReceiver |
Modifier and Type | Field and Description |
---|---|
private Activity |
activity |
private static int |
INACTIVITY_DELAY_SECONDS |
private ScheduledFuture<?> |
inactivityFuture |
private ScheduledExecutorService |
inactivityTimer |
private BroadcastReceiver |
powerStatusReceiver |
Constructor and Description |
---|
InactivityTimer(Activity activity) |
Modifier and Type | Method and Description |
---|---|
private void |
cancel() |
(package private) void |
onActivity() |
void |
onPause() |
void |
onResume() |
(package private) void |
shutdown() |
private static final int INACTIVITY_DELAY_SECONDS
private final ScheduledExecutorService inactivityTimer
private final Activity activity
private ScheduledFuture<?> inactivityFuture
private final BroadcastReceiver powerStatusReceiver
InactivityTimer(Activity activity)