Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!

NavInflater

public 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