NavInflater

class NavInflater
kotlin.Any
   ↳ androidx.navigation.NavInflater

Class which translates a navigation XML file into a NavGraph

Summary

Public constructors

<init>(@NonNull context: Context, @NonNull navigatorProvider: NavigatorProvider)

Public methods

NavGraph
inflate(@NavigationRes graphResId: Int)

Inflate a NavGraph from the given XML resource id.

Public constructors

<init>

NavInflater(@NonNull context: Context, @NonNull navigatorProvider: NavigatorProvider)

Public methods

inflate

@NonNull fun inflate(@NavigationRes graphResId: Int): NavGraph

Inflate a NavGraph from the given XML resource id.

Parameters
graphResId Int:
Return
NavGraph: