-
public interface StreamLifecycleListenerCallbacks mirroring host lifecycle events emitted by StreamLifecycleMonitor.
Implementers typically register via
StreamLifecycleMonitor.subscribe(listener)and override the relevant callbacks to react to lifecycle transitions.
-
-
Method Summary
Modifier and Type Method Description UnitonForeground()Called when the app moves to the foreground. UnitonBackground()Called when the app moves to the background. -
-
Method Detail
-
onForeground
Unit onForeground()
Called when the app moves to the foreground.
override fun onForeground() { logger.i { "App moved to foreground" } }
-
onBackground
Unit onBackground()
Called when the app moves to the background.
override fun onBackground() { logger.i { "App moved to background" } }
-
-
-
-