public class LocalActivityInvoker extends Object implements androidx.test.internal.platform.app.ActivityInvoker
An ActivityInvoker
that drives Activity
lifecycles manually.
All the methods in this class are blocking API.
Constructor and Description |
---|
LocalActivityInvoker() |
Modifier and Type | Method and Description |
---|---|
void |
finishActivity(Activity activity) |
Instrumentation.ActivityResult |
getActivityResult() |
Intent |
getIntentForActivity(Class<? extends Activity> activityClass) |
void |
pauseActivity(Activity activity) |
void |
recreateActivity(Activity activity) |
void |
resumeActivity(Activity activity) |
void |
startActivity(Intent intent) |
void |
stopActivity(Activity activity) |
public void startActivity(Intent intent)
startActivity
in interface androidx.test.internal.platform.app.ActivityInvoker
public Instrumentation.ActivityResult getActivityResult()
getActivityResult
in interface androidx.test.internal.platform.app.ActivityInvoker
public void resumeActivity(Activity activity)
resumeActivity
in interface androidx.test.internal.platform.app.ActivityInvoker
public void pauseActivity(Activity activity)
pauseActivity
in interface androidx.test.internal.platform.app.ActivityInvoker
public void stopActivity(Activity activity)
stopActivity
in interface androidx.test.internal.platform.app.ActivityInvoker
public void recreateActivity(Activity activity)
recreateActivity
in interface androidx.test.internal.platform.app.ActivityInvoker
public void finishActivity(Activity activity)
finishActivity
in interface androidx.test.internal.platform.app.ActivityInvoker