navigation/fragment/src/main/java/androidx/navigation/fragment/NavHostFragment.java
public static NavHostFragment create(@NavigationRes int graphResId) {
        Bundle b = null;
        if (graphResId != 0) {
            b = new Bundle();
            b.putInt(KEY_GRAPH_ID, graphResId);
        }

        final NavHostFragment result = new NavHostFragment();
        if (b != null) {
            result.setArguments(b);
        }
        return result;
    }
/**
     * Create a new NavHostFragment instance with an inflated {@link NavGraph} resource.
     *
     * @param graphResId resource id of the navigation graph to inflate
     * @return a new NavHostFragment instance
     */
Create a new NavHostFragment instance with an inflated  NavGraph resource.
@param graphResId resource id of the navigation graph to inflate
@return a new NavHostFragment instance
Create a new NavHostFragment instance with an inflated NavGraph resource . @param graphResId resource id of the navigation graph to inflate @return a new NavHostFragment instance
public static NavHostFragment create(@NavigationRes int graphResId) {
        Bundle b = null;
        if (graphResId != 0) {
            b = new Bundle();
            b.putInt(KEY_GRAPH_ID, graphResId);
        }
        final NavHostFragment result = new NavHostFragment();
        if (b != null) {
            result.setArguments(b);
        }
        return result;
    }
public static NavHostFragment create ( @ NavigationRes int graphResId ) { Bundle b = null ; if ( graphResId != 0 ) { b = new Bundle ( ) ; b . putInt ( KEY_GRAPH_ID , graphResId ) ; } final NavHostFragment result = new NavHostFragment ( ) ; if ( b != null ) { result . setArguments ( b ) ; } return result ; }
Create a new NavHostFragment instance with an inflated {@link NavGraph} resource.
Create a new NavHostFragment instance with an inflated { @link NavGraph } resource .