DynamicActivityNavigator

@Navigator.Name(value = "activity") public final class DynamicActivityNavigator extends Navigator, ActivityNavigator

Object
   ↳ Navigator
     ↳ ActivityNavigator
       ↳ DynamicActivityNavigator

Dynamic feature navigator for Activity destinations.

Summary

Public constructors

DynamicActivityNavigator(
    Context context,
    DynamicInstallManager installManager
)

Public methods

@NonNull DynamicActivityNavigator.Destination

Construct a new NavDestination associated with this Navigator.

void
navigate(
    List<NavBackStackEntry> entries,
    NavOptions navOptions,
    Navigator.Extras navigatorExtras
)

Navigate to a destination.

Inherited methods

From class ActivityNavigator
NavDestination
navigate(
    ActivityNavigator.Destination destination,
    Bundle args,
    NavOptions navOptions,
    Navigator.Extras navigatorExtras
)

Navigate to a destination.

boolean

Attempt to pop this navigator's back stack, performing the appropriate navigation.

From class Navigator
@CallSuper void

Indicator that this Navigator is actively being used by a NavController.

void

Informational callback indicating that the given backStackEntry has been affected by a NavOptions.shouldLaunchSingleTop operation.

void
onRestoreState(Bundle savedState)

Restore any state previously saved in onSaveState.

Bundle

Called to ask for a Bundle representing the Navigator's state.

void
popBackStack(NavBackStackEntry popUpTo, boolean savedState)

Attempt to pop this navigator's back stack, performing the appropriate navigation.

Public constructors

DynamicActivityNavigator

public final DynamicActivityNavigator(
    Context context,
    DynamicInstallManager installManager
)

Public methods

createDestination

public @NonNull DynamicActivityNavigator.Destination createDestination()

Construct a new NavDestination associated with this Navigator.

Any initialization of the destination should be done in the destination's constructor as it is not guaranteed that every destination will be created through this method.

Returns
@NonNull DynamicActivityNavigator.Destination

a new NavDestination

public void navigate(
    List<NavBackStackEntry> entries,
    NavOptions navOptions,
    Navigator.Extras navigatorExtras
)

Navigate to a destination.

Requests navigation to a given destination associated with this navigator in the navigation graph. This method generally should not be called directly; NavController will delegate to it when appropriate.

Parameters
List<NavBackStackEntry> entries

destination(s) to navigate to

NavOptions navOptions

additional options for navigation

Navigator.Extras navigatorExtras

extras unique to your Navigator.