Package org.robolectric.android.internal
Class LocalActivityInvoker
java.lang.Object
org.robolectric.android.internal.LocalActivityInvoker
- All Implemented Interfaces:
androidx.test.internal.platform.app.ActivityInvoker
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 Summary
Constructors Constructor Description LocalActivityInvoker()
-
Method Summary
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)
-
Constructor Details
-
LocalActivityInvoker
public LocalActivityInvoker()
-
-
Method Details
-
startActivity
- Specified by:
startActivity
in interfaceandroidx.test.internal.platform.app.ActivityInvoker
-
startActivity
- Specified by:
startActivity
in interfaceandroidx.test.internal.platform.app.ActivityInvoker
-
getActivityResult
- Specified by:
getActivityResult
in interfaceandroidx.test.internal.platform.app.ActivityInvoker
-
resumeActivity
- Specified by:
resumeActivity
in interfaceandroidx.test.internal.platform.app.ActivityInvoker
-
pauseActivity
- Specified by:
pauseActivity
in interfaceandroidx.test.internal.platform.app.ActivityInvoker
-
stopActivity
- Specified by:
stopActivity
in interfaceandroidx.test.internal.platform.app.ActivityInvoker
-
recreateActivity
- Specified by:
recreateActivity
in interfaceandroidx.test.internal.platform.app.ActivityInvoker
-
finishActivity
- Specified by:
finishActivity
in interfaceandroidx.test.internal.platform.app.ActivityInvoker
-
getIntentForActivity
- Specified by:
getIntentForActivity
in interfaceandroidx.test.internal.platform.app.ActivityInvoker
-