public final class NavInflater


Class which translates a navigation XML file into a NavGraph

Summary

Public constructors

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

Public methods

final @NonNull NavGraph
inflate(@NavigationRes int graphResId)

Inflate a NavGraph from the given XML resource id.

Public constructors

Added in 1.0.0
public NavInflater(
    @NonNull Context context,
    @NonNull NavigatorProvider navigatorProvider
)

Public methods

inflate

Added in 1.0.0
public final @NonNull NavGraph inflate(@NavigationRes int graphResId)

Inflate a NavGraph from the given XML resource id.

Parameters
@NavigationRes int graphResId
Returns
@NonNull NavGraph