ActivityNavigator.Destination

@NavDestination.ClassType(value = Activity) public class ActivityNavigator.Destination extends NavDestination


NavDestination for activity navigation

Construct a new activity destination. This destination is not valid until you set the Intent via setIntent or one or more of the other set method.

Summary

Public fields

final @Nullable String

The action used to start the Activity, if any

final @Nullable ComponentName

The explicit ComponentName associated with this destination, if any

final @Nullable Uri

The data URI used to start the Activity, if any

final @Nullable String

The dynamic data URI pattern, if any

final @Nullable Intent

The Intent associated with this destination.

final @Nullable String

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

Public constructors

Construct a new activity destination.

Public methods

boolean
int
@CallSuper void

Called when inflating a destination from a resource.

final @NonNull ActivityNavigator.Destination

Sets the action sent when navigating to this destination.

final @NonNull ActivityNavigator.Destination

Set an explicit ComponentName to navigate to.

final @NonNull ActivityNavigator.Destination

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

final @NonNull ActivityNavigator.Destination

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

final @NonNull ActivityNavigator.Destination

Set the Intent to start when navigating to this destination.

final @NonNull ActivityNavigator.Destination

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

@NonNull String

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