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...
- 2androidx.test.core.app.ActivityScenario.launch java code ...
public ActivityController(Class clazz) { scenario = ActivityScenario.launch(clazz);
- 3androidx.test.core.app.ActivityScenario.onActivity java code ...
Use {@link ActivityScenario to launch and get access to the activity. * {@link ActivityScenario#o...
- 4Java Code Examples for androidx.test.core.app.ActivityScenario
... try (ActivityScenario<MainActivity> ignored = ActivityScenario.launch(MainActivity.class)) { ...
- 5Java Code Examples for androidx.test.core.app.ActivityScenario
... try (ActivityScenario<MainActivity> ignored = ActivityScenario.launch(MainActivity.class)) {...