//Extensions for Dagger Hilt/it.czerwinski.android.hilt.fragment.testing/HiltFragmentScenario/Companion/launch

launch

[androidJvm]
Content
fun <F : Fragment> launch(fragmentClass: Class<F>, fragmentArgs: Bundle? = null, @StyleRes()themeResId: Int = defaultTheme, factory: FragmentFactory? = null): HiltFragmentScenario<F, HiltFragmentScenario.EmptyFragmentActivity>
fun <F : Fragment, A : FragmentActivity> launch(activityClass: Class<A>, fragmentClass: Class<F>, fragmentArgs: Bundle? = null, @StyleRes()themeResId: Int = defaultTheme, factory: FragmentFactory? = null): HiltFragmentScenario<F, A>
More info

Launches a Fragment with given arguments hosted by an empty FragmentActivity themed by themeResId, using the given FragmentFactory and waits for it to reach the resumed state.

This method cannot be called from the main thread.