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
AnActivityInvoker
that drivesActivity
lifecycles manually.All the methods in this class are blocking API.
-
-
Constructor Summary
Constructors Constructor Description LocalActivityInvoker()
-
Method Summary
All Methods Instance Methods Concrete Methods 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)
-
-
-
Method Detail
-
startActivity
public void startActivity(Intent intent, @Nullable Bundle activityOptions)
- Specified by:
startActivity
in interfaceandroidx.test.internal.platform.app.ActivityInvoker
-
startActivity
public void startActivity(Intent intent)
- Specified by:
startActivity
in interfaceandroidx.test.internal.platform.app.ActivityInvoker
-
getActivityResult
public Instrumentation.ActivityResult getActivityResult()
- Specified by:
getActivityResult
in interfaceandroidx.test.internal.platform.app.ActivityInvoker
-
resumeActivity
public void resumeActivity(Activity activity)
- Specified by:
resumeActivity
in interfaceandroidx.test.internal.platform.app.ActivityInvoker
-
pauseActivity
public void pauseActivity(Activity activity)
- Specified by:
pauseActivity
in interfaceandroidx.test.internal.platform.app.ActivityInvoker
-
stopActivity
public void stopActivity(Activity activity)
- Specified by:
stopActivity
in interfaceandroidx.test.internal.platform.app.ActivityInvoker
-
recreateActivity
public void recreateActivity(Activity activity)
- Specified by:
recreateActivity
in interfaceandroidx.test.internal.platform.app.ActivityInvoker
-
finishActivity
public void finishActivity(Activity activity)
- Specified by:
finishActivity
in interfaceandroidx.test.internal.platform.app.ActivityInvoker
-
-