class ForegroundActivityHolder : ActivityLifecycleCallbacks
Implementation of the android.app.Application.ActivityLifecycleCallbacks that holds the Activity which is currently in the foreground (if any).
Author
Christopher Frieler
ForegroundActivityHolder()
Implementation of the android.app.Application.ActivityLifecycleCallbacks that holds the Activity which is currently in the foreground (if any). |
var currentActivity: Activity? |
fun onActivityCreated(activity: Activity, bundle: Bundle?): Unit |
|
fun onActivityDestroyed(activity: Activity): Unit |
|
fun onActivityPaused(activity: Activity): Unit |
|
fun onActivityResumed(activity: Activity): Unit |
|
fun onActivitySaveInstanceState(activity: Activity, bundle: Bundle): Unit |
|
fun onActivityStarted(activity: Activity): Unit |
|
fun onActivityStopped(activity: Activity): Unit |