Skip to content

Most visited

Recently visited

navigation

ActivityLifecycleCallback

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.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.