ActivityScenario | Android Developers
文章推薦指數: 80 %
ActivityScenario provides APIs to start and drive an Activity's lifecycle state for testing. It works with arbitrary activities and works consistently ... Platform AndroidStudio Googl
延伸文章資訊
- 1android-test/ActivityScenario.java at master - GitHub
destroy(); // Moves the activity state to State.DESTROYED. *. * After: * try(ActivityScenario<My...
- 2ActivityScenario.ActivityAction | Android 开发者 | Android ...
Example: ActivityScenario<MyActivity> scenario = ActivityScenario.launch(MyActivity.class); scen...
- 3Better tests with AndroidX's ActivityScenario in Kotlin — Part 1 ...
ActivityScenario provides APIs to start and drive an Activity's lifecycle state for testing. It w...
- 4androidx.test.core.app.ActivityScenario.launch java code ...
public ActivityController(Class clazz) { scenario = ActivityScenario.launch(clazz);
- 5androidx.test.core.app.ActivityScenario.launch java code ...
public ActivityController(Class clazz) { scenario = ActivityScenario.launch(clazz);