DialogFragmentNavigator.Destination

public static class DialogFragmentNavigator.Destination
extends NavDestination

java.lang.Object
   ↳ androidx.navigation.NavDestination
     ↳ androidx.navigation.fragment.DialogFragmentNavigator.Destination


NavDestination specific to DialogFragmentNavigator.

Summary

Public constructors

DialogFragmentNavigator.Destination(NavigatorProvider navigatorProvider)

Construct a new fragment destination.

DialogFragmentNavigator.Destination(Navigator<? extends DialogFragmentNavigator.Destination> fragmentNavigator)

Construct a new fragment destination.

Public methods

final String getClassName()

Gets the DialogFragment's class name associated with this destination

void onInflate(Context context, AttributeSet attrs)

Called when inflating a destination from a resource.

final DialogFragmentNavigator.Destination setClassName(String className)

Set the DialogFragment class name associated with this destination

Inherited methods

Public constructors

DialogFragmentNavigator.Destination

public DialogFragmentNavigator.Destination (NavigatorProvider navigatorProvider)

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

Parameters
navigatorProvider NavigatorProvider: The NavController which this destination will be associated with.

DialogFragmentNavigator.Destination

public DialogFragmentNavigator.Destination (Navigator<? extends DialogFragmentNavigator.Destination> fragmentNavigator)

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

Parameters
fragmentNavigator Navigator: The DialogFragmentNavigator which this destination will be associated with. Generally retrieved via a NavController's NavigatorProvider.getNavigator(Class) method.

Public methods

getClassName

public final String getClassName ()

Gets the DialogFragment's class name associated with this destination

Returns
String

Throws
IllegalStateException when no DialogFragment class was set.

onInflate

public void onInflate (Context context, 
                AttributeSet attrs)

Called when inflating a destination from a resource.

Parameters
context Context: local context performing inflation

attrs AttributeSet: attrs to parse during inflation

setClassName

public final DialogFragmentNavigator.Destination setClassName (String className)

Set the DialogFragment class name associated with this destination

Parameters
className String: The class name of the DialogFragment to show when you navigate to this destination

Returns
DialogFragmentNavigator.Destination this DialogFragmentNavigator.Destination