ActivityLifecycleCallbacks
interface ActivityLifecycleCallbacks
android.app.Application.ActivityLifecycleCallbacks |
Summary
Public methods | |
---|---|
abstract Unit |
onActivityCreated(activity: Activity, savedInstanceState: Bundle?) Called when the Activity calls android. |
abstract Unit |
onActivityDestroyed(activity: Activity) Called when the Activity calls |
abstract Unit |
onActivityPaused(activity: Activity) Called when the Activity calls |
open Unit |
onActivityPostCreated(activity: Activity, savedInstanceState: Bundle?) Called as the last step of the Activity being created. |
open Unit |
onActivityPostDestroyed(activity: Activity) Called as the last step of the Activity being destroyed. |
open Unit |
onActivityPostPaused(activity: Activity) Called as the last step of the Activity being paused. |
open Unit |
onActivityPostResumed(activity: Activity) Called as the last step of the Activity being resumed. |
open Unit |
onActivityPostSaveInstanceState(activity: Activity, outState: Bundle) Called as the last step of the Activity saving its instance state. |
open Unit |
onActivityPostStarted(activity: Activity) Called as the last step of the Activity being started. |
open Unit |
onActivityPostStopped(activity: Activity) Called as the last step of the Activity being stopped. |
open Unit |
onActivityPreCreated(activity: Activity, savedInstanceState: Bundle?) Called as the first step of the Activity being created. |
open Unit |
onActivityPreDestroyed(activity: Activity) Called as the first step of the Activity being destroyed. |
open Unit |
onActivityPrePaused(activity: Activity) Called as the first step of the Activity being paused. |
open Unit |
onActivityPreResumed(activity: Activity) Called as the first step of the Activity being resumed. |
open Unit |
onActivityPreSaveInstanceState(activity: Activity, outState: Bundle) Called as the first step of the Activity saving its instance state. |
open Unit |
onActivityPreStarted(activity: Activity) Called as the first step of the Activity being started. |
open Unit |
onActivityPreStopped(activity: Activity) Called as the first step of the Activity being stopped. |
abstract Unit |
onActivityResumed(activity: Activity) Called when the Activity calls |
abstract Unit |
onActivitySaveInstanceState(activity: Activity, outState: Bundle) Called when the Activity calls android. |
abstract Unit |
onActivityStarted(activity: Activity) Called when the Activity calls |
abstract Unit |
onActivityStopped(activity: Activity) Called when the Activity calls |
Public methods
onActivityCreated
abstract fun onActivityCreated(
activity: Activity,
savedInstanceState: Bundle?
): Unit
Called when the Activity calls android.app.Activity#onCreate.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |
savedInstanceState |
Bundle?: This value may be null . |
onActivityDestroyed
abstract fun onActivityDestroyed(activity: Activity): Unit
Called when the Activity calls super.onDestroy()
.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |
onActivityPaused
abstract fun onActivityPaused(activity: Activity): Unit
Called when the Activity calls super.onPause()
.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |
onActivityPostCreated
open fun onActivityPostCreated(
activity: Activity,
savedInstanceState: Bundle?
): Unit
Called as the last step of the Activity being created. This is always called after android.app.Activity#onCreate.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |
savedInstanceState |
Bundle?: This value may be null . |
onActivityPostDestroyed
open fun onActivityPostDestroyed(activity: Activity): Unit
Called as the last step of the Activity being destroyed. This is always called after Activity#onDestroy
.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |
onActivityPostPaused
open fun onActivityPostPaused(activity: Activity): Unit
Called as the last step of the Activity being paused. This is always called after Activity#onPause
.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |
onActivityPostResumed
open fun onActivityPostResumed(activity: Activity): Unit
Called as the last step of the Activity being resumed. This is always called after Activity#onResume
and Activity#onPostResume
.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |
onActivityPostSaveInstanceState
open fun onActivityPostSaveInstanceState(
activity: Activity,
outState: Bundle
): Unit
Called as the last step of the Activity saving its instance state. This is always called afterandroid.app.Activity#onSaveInstanceState.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |
outState |
Bundle: This value cannot be null . |
onActivityPostStarted
open fun onActivityPostStarted(activity: Activity): Unit
Called as the last step of the Activity being started. This is always called after Activity#onStart
.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |
onActivityPostStopped
open fun onActivityPostStopped(activity: Activity): Unit
Called as the last step of the Activity being stopped. This is always called after Activity#onStop
.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |
onActivityPreCreated
open fun onActivityPreCreated(
activity: Activity,
savedInstanceState: Bundle?
): Unit
Called as the first step of the Activity being created. This is always called before android.app.Activity#onCreate.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |
savedInstanceState |
Bundle?: This value may be null . |
onActivityPreDestroyed
open fun onActivityPreDestroyed(activity: Activity): Unit
Called as the first step of the Activity being destroyed. This is always called before Activity#onDestroy
.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |
onActivityPrePaused
open fun onActivityPrePaused(activity: Activity): Unit
Called as the first step of the Activity being paused. This is always called before Activity#onPause
.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |
onActivityPreResumed
open fun onActivityPreResumed(activity: Activity): Unit
Called as the first step of the Activity being resumed. This is always called before Activity#onResume
.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |
onActivityPreSaveInstanceState
open fun onActivityPreSaveInstanceState(
activity: Activity,
outState: Bundle
): Unit
Called as the first step of the Activity saving its instance state. This is always called before android.app.Activity#onSaveInstanceState.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |
outState |
Bundle: This value cannot be null . |
onActivityPreStarted
open fun onActivityPreStarted(activity: Activity): Unit
Called as the first step of the Activity being started. This is always called before Activity#onStart
.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |
onActivityPreStopped
open fun onActivityPreStopped(activity: Activity): Unit
Called as the first step of the Activity being stopped. This is always called before Activity#onStop
.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |
onActivityResumed
abstract fun onActivityResumed(activity: Activity): Unit
Called when the Activity calls super.onResume()
.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |
onActivitySaveInstanceState
abstract fun onActivitySaveInstanceState(
activity: Activity,
outState: Bundle
): Unit
Called when the Activity calls android.app.Activity#onSaveInstanceState.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |
outState |
Bundle: This value cannot be null . |
onActivityStarted
abstract fun onActivityStarted(activity: Activity): Unit
Called when the Activity calls super.onStart()
.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |
onActivityStopped
abstract fun onActivityStopped(activity: Activity): Unit
Called when the Activity calls super.onStop()
.
Parameters | |
---|---|
activity |
Activity: This value cannot be null . |