ActivityLifecycleCallback
This package is part of the
Android support library which
is no longer maintained.
The support library has been superseded by AndroidX
which is part of Jetpack .
We recommend using the AndroidX libraries in all new projects. You should also consider
migrating existing projects to AndroidX.
To find the AndroidX class that maps to this deprecated class, see the AndroidX
support library class
mappings .
public
interface
ActivityLifecycleCallback
android.support.test.runner.lifecycle.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.
Summary
Public methods
abstract
void
onActivityLifecycleChanged (Activity activity, Stage stage)
Called on the main thread after an activity has processed its lifecycle change event (for
example onResume or onStart)
Public methods
onActivityLifecycleChanged
void onActivityLifecycleChanged (Activity activity,
Stage stage)
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.
Content and code samples on this page are subject to the licenses described in the Content License . Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.
[null,null,["Last updated 2024-04-11 UTC."],[],[]]