NavInflater

public final class NavInflater


Class which translates a navigation XML file into a NavGraph

Summary

Nested types

NavInflater.Companion

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

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

Public methods

inflate

@NonNull
public final NavGraph inflate(@NavigationRes int graphResId)

Inflate a NavGraph from the given XML resource id.

Parameters
@NavigationRes int graphResId
Returns
NavGraph