DynamicIncludeGraphNavigator.DynamicIncludeNavGraph

public final class DynamicIncludeGraphNavigator.DynamicIncludeNavGraph extends NavDestination


The graph for dynamic-include.

This class contains information to navigate to a DynamicNavGraph which is contained within a dynamic feature module.

Summary

Public fields

final @Nullable String

The graph's package.

final @Nullable String

Resource name of the graph.

final @Nullable String

Name of the module containing the included graph, if set.

Public methods

boolean
int
void

Called when inflating a destination from a resource.

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

graphPackage

@Nullable
public final @Nullable String graphPackage

The graph's package.

graphResourceName

@Nullable
public final @Nullable String graphResourceName

Resource name of the graph.

moduleName

@Nullable
public final @Nullable String moduleName

Name of the module containing the included graph, if set.

Public methods

equals

@NonNull
public boolean equals(@Nullable Object other)

hashCode

@NonNull
public int hashCode()

onInflate

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

Called when inflating a destination from a resource.

Parameters
@NonNull Context context

local context pe