DialogFragmentNavigator.Destination

@NavDestination.ClassType(value = DialogFragment) public class DialogFragmentNavigator.Destination extends NavDestination implements FloatingWindow


NavDestination specific to DialogFragmentNavigator.

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

Summary

Public fields

final @NonNull String

The DialogFragment's class name associated with this destination

Public constructors

Construct a new fragment destination.

Public methods

boolean
int
@CallSuper void

Called when inflating a destination from a resource.

final @NonNull DialogFragmentNavigator.Destination

Set the DialogFragment class name associated with this destination

Inherited methods

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

Sets an argument type for an argument name

final void

Add a deep link to this destination.

final void
addDeepLink(@NonNull String uriPattern)

Add a deep link to this destination.

final @Nullable NavAction
getAction(@IdRes int id)

Returns the NavAction for the given action ID.

boolean
hasDeepLink(@NonNull Uri deepLink)

Checks the given deep link Uri, and determines whether it matches a Uri pattern added to the destination by a call to addDeepLink .

boolean

Checks the given NavDeepLinkRequest, and determines whether it matches a NavDeepLink added to the destination by a call to addDeepLink.

final void
putAction(@IdRes int actionId, @NonNull NavAction action)

Sets the NavAction destination for an action ID.

final void
putAction(@IdRes int actionId, @IdRes int destId)

Creates a NavAction for the given destId and associates it with the actionId.

final void
removeAction(@IdRes int actionId)

Unsets the NavAction for an action ID.

final void
removeArgument(@NonNull String argumentName)

Unsets the argument type for an argument name.

@NonNull String

Public fields

className

@NonNull
public final @NonNull String className

The DialogFragment's class name associated with this destination

Throws
kotlin.IllegalStateException

when no DialogFragment class was set.

Public constructors

Destination

public final Destination(@NonNull NavigatorProvider navigatorProvider)

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

Parameters
@NonNull NavigatorProvider navigatorProvider

The NavController which this destination will be associated with.

Destination

public final Destination(
    @NonNull Navigator<@NonNull DialogFragmentNavigator.Destination> fragmentNavigator
)
Parameters
@NonNull Navigator<@NonNull DialogFragmentNavigator.Destination> fragmentNavigator

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

Public methods

equals

@NonNull
public boolean equals(@Nullable Object other)

hashCode

@NonNull
public int hashCode()