The Android Developer Challenge is back! Submit your idea before December 2.

NavInflater

public final class NavInflater
extends Object

java.lang.Object
   ↳ androidx.navigation.NavInflater


Class which translates a navigation XML file into a NavGraph

Summary

Public constructors

NavInflater(Context context, NavigatorProvider navigatorProvider)

Public methods

NavGraph inflate(int graphResId)

Inflate a NavGraph from the given XML resource id.

Inherited methods

Public constructors

public NavInflater (Context context, 
                NavigatorProvider navigatorProvider)

Parameters
context Context

navigatorProvider NavigatorProvider

Public methods

inflate

public NavGraph inflate (int graphResId)

Inflate a NavGraph from the given XML resource id.

Returns
NavGraph