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

launchInContainer

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

Launches a Fragment in the Activity’s root view container android.R.id.content, 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.