androidx.test.internal.platform.app.ActivityInvoker
public class LocalActivityInvoker extends Object implements androidx.test.internal.platform.app.ActivityInvoker
ActivityInvoker
that drives Activity
lifecycles manually.
All the methods in this class are blocking API.
Constructor | Description |
---|---|
LocalActivityInvoker() |
Modifier and Type | Method | 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 |
startActivity(Intent intent,
Bundle activityOptions) |
|
void |
stopActivity(Activity activity) |
public void startActivity(Intent intent, @Nullable Bundle activityOptions)
startActivity
in interface androidx.test.internal.platform.app.ActivityInvoker
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