{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
interface ActivityLifecycleCallback
Callback for monitoring activity lifecycle events. These callbacks are invoked on the main thread, so any long operations or violating the strict mode policies should be avoided.
Public functions |
|
|---|---|
Unit |
onActivityLifecycleChanged(activity: Activity!, stage: Stage!)Called on the main thread after an activity has processed its lifecycle change event (for example onResume or onStart) |
fun onActivityLifecycleChanged(activity: Activity!, stage: Stage!): Unit
Called on the main thread after an activity has processed its lifecycle change event (for example onResume or onStart)
| Parameters | |
|---|---|
activity: Activity! |
The activity |
stage: Stage! |
its current stage. |