Companion
object Companion
Functions
Link copied to clipboard
fun <F : Fragment> launchInContainer(fragmentClass: Class<F>, fragmentArgs: Bundle? = null, @StyleRes themeResId: Int = EmptyHiltActivity.DEFAULT_THEME, initialState: Lifecycle.State = Lifecycle.State.RESUMED): HiltFragmentScenario<F>
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, and waits for it to reach initialState.
fun <F : Fragment, A : EmptyHiltActivity> launchInContainer(fragmentClass: Class<F>, activityClass: Class<A>, fragmentArgs: Bundle? = null, @StyleRes themeResId: Int = EmptyHiltActivity.DEFAULT_THEME, initialState: Lifecycle.State = Lifecycle.State.RESUMED): HiltFragmentScenario<F>
Launches a Fragment in the Activity's root view container android.R.id.content
, with given arguments hosted by an empty EmptyHiltActivity themed by themeResId, and waits for it to reach initialState.