DialogFragmentNavigator.Destination


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


NavDestination specific to DialogFragmentNavigator.

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 DialogFragment's class name associated with this destination

int
void
final @NonNull DialogFragmentNavigator.Destination

Set the DialogFragment class name associated with this destination

Public constructors

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

The DialogFragmentNavigator 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 2.1.0
public final @NonNull String getClassName()

The DialogFragment's class name associated with this destination

Throws
kotlin.IllegalStateException

when no DialogFragment class was set.

hashCode

public int hashCode()

onInflate

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

setClassName

Added in 2.1.0
public final @NonNull DialogFragmentNavigator.Destination setClassName(@NonNull String className)

Set the DialogFragment class name associated with this destination

Parameters
@NonNull String className

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