lightbulb_outline Please take our October 2018 developer survey. Start survey

ApplicationLifecycleCallback

public interface ApplicationLifecycleCallback

androidx.test.runner.lifecycle.ApplicationLifecycleCallback


Callback for monitoring application lifecycle events.

Summary

Public methods

abstract void onApplicationLifecycleChanged(Application app, ApplicationStage stage)

Called on after an application has processed its lifecycle change event (for example onCreate) These callbacks may occur on main thread so implementers should limit the amount of processing performed

Public methods

onApplicationLifecycleChanged

void onApplicationLifecycleChanged (Application app, 
                ApplicationStage stage)

Called on after an application has processed its lifecycle change event (for example onCreate) These callbacks may occur on main thread so implementers should limit the amount of processing performed

Parameters
app Application: the Application

stage ApplicationStage: its current stage.