DynamicActivityNavigator.Destination


public final class DynamicActivityNavigator.Destination extends ActivityNavigator.Destination


Destination for DynamicActivityNavigator.

Summary

Public constructors

Create a new Destination with an ActivityNavigator.Destination.

Create a new Destination with a NavigatorProvider.

Public methods

boolean
equals(Object other)
final String

The module name of this Destination's dynamic feature module.

int
void

Called when inflating a destination from a resource.

final void
setModuleName(String moduleName)

The module name of this Destination's dynamic feature module.

Inherited methods

From androidx.navigation.ActivityNavigator.Destination
final String

The action used to start the Activity, if any

final ComponentName

The explicit ComponentName associated with this destination, if any

final Uri

The data URI used to start the Activity, if any

final String

The dynamic data URI pattern, if any

final Intent

The Intent associated with this destination.

final String

The explicit application package name associated with this destination, if any

final @NonNull ActivityNavigator.Destination
setAction(String action)

Sets the action sent when navigating to this destination.

final @NonNull ActivityNavigator.Destination

Set an explicit ComponentName to navigate to.

final @NonNull ActivityNavigator.Destination
setData(Uri data)

Sets a static data URI that is sent when navigating to this destination.

final @NonNull ActivityNavigator.Destination
setDataPattern(String dataPattern)

Sets a dynamic data URI pattern that is sent when navigating to this destination.

final @NonNull ActivityNavigator.Destination
setIntent(Intent intent)

Set the Intent to start when navigating to this destination.

final @NonNull ActivityNavigator.Destination
setTargetPackage(String packageName)

Set an explicit application package name that limits the components this destination will navigate to.

@NonNull String
From androidx.navigation.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 String
fillInLabel(@NonNull Context context, Bundle bundle)

Parses a dynamic label containing arguments into a String.

final NavAction
getAction(@IdRes int id)

Returns the NavAction for the given action ID.

final @NonNull Map<@NonNull String, @NonNull NavArgument>

The arguments supported by this destination.

final @IdRes int

The destination's unique ID.

final CharSequence

The descriptive label of this destination.

final @NonNull String

The name associated with this destination's Navigator.

final NavGraph

Gets the NavGraph that contains this destination.

final String

The destination's unique route.

boolean

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

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 .

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.

final void
setId(int id)

The destination's unique ID.

final void

The descriptive label of this destination.

final void

The destination's unique route.

Public constructors

Destination

Added in 2.3.0
public Destination(
    @NonNull Navigator<@NonNull ActivityNavigator.Destination> activityNavigator
)

Create a new Destination with an ActivityNavigator.Destination.

Parameters
@NonNull Navigator<@NonNull ActivityNavigator.Destination> activityNavigator

The Navigator to use for this Destination.

Destination

Added in 2.3.0
public Destination(@NonNull NavigatorProvider navigatorProvider)

Create a new Destination with a NavigatorProvider.

Public methods

equals

public boolean equals(Object other)

getModuleName

Added in 2.3.0
public final String getModuleName()

The module name of this Destination's dynamic feature module. This has to be the same as defined in the dynamic feature module's AndroidManifest.xml file.

hashCode

public int hashCode()

onInflate

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

Called when inflating a destination from a resource.

Parameters
@NonNull Context context

local context performing inflation

@NonNull AttributeSet attrs

attrs to parse during inflation

setModuleName

Added in 2.3.0
public final void setModuleName(String moduleName)

The module name of this Destination's dynamic feature module. This has to be the same as defined in the dynamic feature module's AndroidManifest.xml file.