NavInflater


public final class NavInflater


Class which translates a navigation XML file into a NavGraph

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

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Dec 18, 2024

Follow best practices, eliminate boilerplate code, and reduce fragmentation

Updated Dec 11, 2024

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Dec 18, 2024