Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

NavHost

public interface NavHost

androidx.navigation.NavHost


A host is a single context or container for navigation via a NavController.

Navigation hosts must:

Summary

Public methods

abstract NavController getNavController()

Returns the navigation controller for this navigation host.

Public methods

getNavController

public abstract NavController getNavController ()

Returns the navigation controller for this navigation host.

Returns
NavController this host's navigation controller