DynamicNavHostFragment.Companion

object DynamicNavHostFragment.Companion


Companion object for DynamicNavHostFragment

Summary

Public functions

DynamicNavHostFragment
create(@NavigationRes graphResId: Int, startDestinationArgs: Bundle?)

Create a new DynamicNavHostFragment instance with an inflated {@link NavGraph} resource.

Public functions

create

fun create(@NavigationRes graphResId: Int, startDestinationArgs: Bundle? = null): DynamicNavHostFragment

Create a new DynamicNavHostFragment instance with an inflated {@link NavGraph} resource.

Parameters
@NavigationRes graphResId: Int

Resource id of the navigation graph to inflate.

startDestinationArgs: Bundle? = null

Arguments to send to the start destination of the graph.

Returns
DynamicNavHostFragment

A new DynamicNavHostFragment instance.