-
public interface ProcessLifecycleMonitor.CallbackReceives process-level lifecycle events from ProcessLifecycleMonitor. Each method is called at most once per foreground/background transition, regardless of how many activities are involved.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonStarted()Called when the app process enters the foreground (first activity started). abstract UnitonResumed()Called when the app process is fully resumed (first activity resumed). abstract UnitonStopped()Called when the app process leaves the foreground (last activity stopped). abstract UnitonPaused()Called when the app process is fully paused (last activity paused). -
-
Method Detail
-
onStarted
abstract Unit onStarted()
Called when the app process enters the foreground (first activity started).
-
onResumed
abstract Unit onResumed()
Called when the app process is fully resumed (first activity resumed).
-
onStopped
abstract Unit onStopped()
Called when the app process leaves the foreground (last activity stopped).
-
-
-
-