DynamicNavHostFragment.Companion

object DynamicNavHostFragment.Companion


Companion object for DynamicNavHostFragment

Summary

Public methods

final @NonNull DynamicNavHostFragment
create(
    @NavigationRes int graphResId,
    @Nullable Bundle startDestinationArgs
)

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

Public methods

create

@NonNull
public final DynamicNavHostFragment create(
    @NavigationRes int graphResId,
    @Nullable Bundle startDestinationArgs
)

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

Parameters
@NavigationRes int graphResId

Resource id of the navigation graph to inflate.

@Nullable Bundle startDestinationArgs

Arguments to send to the start destination of the graph.

Returns
DynamicNavHostFragment

A new DynamicNavHostFragment instance.