FragmentNavigator.Destination


@<Error class: unknown class>
public class FragmentNavigator.Destination

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 constructors

Construct a new fragment destination.

Public methods

boolean
equals(Object other)
final @NonNull String

The Fragment's class name associated with this destination

int
void
final @NonNull FragmentNavigator.Destination

Set the Fragment class name associated with this destination

@NonNull String

Public constructors

public Destination(
    @NonNull <Error class: unknown class><@NonNull FragmentNavigator.Destination> fragmentNavigator
)
Parameters
@NonNull <Error class: unknown class><@NonNull FragmentNavigator.Destination> fragmentNavigator

The FragmentNavigator which this destination will be associated with. Generally retrieved via a NavController's NavigatorProvider.getNavigator method.

public Destination(@NonNull <Error class: unknown class> navigatorProvider)

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

Parameters
@NonNull <Error class: unknown class> navigatorProvider

The NavController which this destination will be associated with.

Public methods

equals

public boolean equals(Object other)

getClassName

Added in 1.0.0
public final @NonNull String getClassName()

The Fragment's class name associated with this destination

Throws
kotlin.IllegalStateException

when no Fragment class was set.

hashCode

public int hashCode()

onInflate

@CallSuper
public void onInflate(@NonNull Context context, @NonNull AttributeSet attrs)

setClassName

Added in 1.0.0
public final @NonNull FragmentNavigator.Destination setClassName(@NonNull String className)

Set the Fragment class name associated with this destination

Parameters
@NonNull String className

The class name of the Fragment to show when you navigate to this destination

toString

public @NonNull String toString()