Class NestedNavigatorHostDelegate
-
- All Implemented Interfaces:
public final class NestedNavigatorHostDelegateA simplified delegate that can be used when a NavigatorHost is nested within a Fragment. This can be useful when you want a portion of the screen to have sub-navigation destinations within the current Fragment.
Example: A search screen with a search bar at the top that stays fixed, but search results load in a section of the view below the search bar.
-
-
Field Summary
Fields Modifier and Type Field Description private final NavigatorHostnavigatorHostprivate final Navigatornavigatorprivate final Fragmentfragment
-
Constructor Summary
Constructors Constructor Description NestedNavigatorHostDelegate(Fragment fragment, Integer navigatorHostId)
-
Method Summary
Modifier and Type Method Description final NavigatorHostgetNavigatorHost()final NavigatorgetNavigator()final FragmentgetFragment()The Fragment to bind this delegate to. -
-
Constructor Detail
-
NestedNavigatorHostDelegate
NestedNavigatorHostDelegate(Fragment fragment, Integer navigatorHostId)
- Parameters:
navigatorHostId- The resource ID of the NavigatorHost instance hosted in your Fragment's layout resource.
-
-
Method Detail
-
getNavigatorHost
final NavigatorHost getNavigatorHost()
-
getNavigator
final Navigator getNavigator()
-
getFragment
final Fragment getFragment()
The Fragment to bind this delegate to.
-
-
-
-