Stay organized with collections Save and categorize content based on your preferences.

NavInflater

public final class NavInflater


Class which translates a navigation XML file into a NavGraph

Summary

Nested types

public static class 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 NavInflater(
    @NonNull Context context,
    @NonNull NavigatorProvider navigatorProvider
)

Public methods

inflate

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

Inflate a NavGraph from the given XML resource id.

Parameters
@NavigationRes int graphResId
Returns
@NonNull NavGraph