Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!

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.