public class LocalActivityInvoker
extends java.lang.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(android.app.Activity activity) |
android.content.Intent |
getIntentForActivity(java.lang.Class<? extends android.app.Activity> activityClass) |
void |
pauseActivity(android.app.Activity activity) |
void |
recreateActivity(android.app.Activity activity) |
void |
resumeActivity(android.app.Activity activity) |
void |
startActivity(android.content.Intent intent) |
void |
stopActivity(android.app.Activity activity) |
public void startActivity(android.content.Intent intent)
startActivity
in interface androidx.test.internal.platform.app.ActivityInvoker
public void resumeActivity(android.app.Activity activity)
resumeActivity
in interface androidx.test.internal.platform.app.ActivityInvoker
public void pauseActivity(android.app.Activity activity)
pauseActivity
in interface androidx.test.internal.platform.app.ActivityInvoker
public void stopActivity(android.app.Activity activity)
stopActivity
in interface androidx.test.internal.platform.app.ActivityInvoker
public void recreateActivity(android.app.Activity activity)
recreateActivity
in interface androidx.test.internal.platform.app.ActivityInvoker
public void finishActivity(android.app.Activity activity)
finishActivity
in interface androidx.test.internal.platform.app.ActivityInvoker
public android.content.Intent getIntentForActivity(java.lang.Class<? extends android.app.Activity> activityClass)
getIntentForActivity
in interface androidx.test.internal.platform.app.ActivityInvoker