FragmentNavigator.Destination

@NavDestination.ClassType(value = Fragment) public class FragmentNavigator.Destination extends NavDestination

Known direct subclasses
DynamicFragmentNavigator.Destination

Destination for dynamic feature navigator.


NavDestination specific to FragmentNavigator

Construct a new fragment destination. This destination is not valid until you set the Fragment via setClassName.

Summary

Public fields

final @NonNull String

The Fragment's class name associated with this destination

Public constructors

Destination(NavigatorProvider navigatorProvider)

Construct a new fragment destination.

Public methods

boolean
equals(Object other)
int
@CallSuper void
onInflate(Context context, AttributeSet attrs)

Called when inflating a destination from a resource.

final @NonNull FragmentNavigator.Destination
setClassName(String className)

Set the Fragment class name associated with this destination

@NonNull String

Inherited methods

From class NavDestination
final void
addArgument(String argumentName, NavArgument argument)

Sets an argument type for an argument name

final void
addDeepLink(NavDeepLink navDeepLink)

Add a deep link to this destination.

final void
addDeepLink(String uriPattern)

Add a deep link to this destination.