lightbulb_outline Please take our October 2018 developer survey. Start survey

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