NavDeepLink

public final class NavDeepLink


NavDeepLink encapsulates the parsing and matching of a navigation deep link.

This should be added to a NavDestination using NavDestination.addDeepLink.

Summary

Nested types

NavDeepLink.Builder

A builder for constructing NavDeepLink instances.

Public fields

final @Nullable String

The action from the NavDeepLink.

final boolean
final @Nullable String

The mimeType from the NavDeepLink.

final @Nullable String

The uri pattern from the NavDeepLink.

Public constructors

Public methods

final @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) @Nullable Bundle
getMatchingArguments(
    @NonNull Uri deepLink,
    @NonNull Map<@NonNull String, @NonNull NavArgument> arguments
)
final @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) int

Public fields

action

@Nullable
public final @Nullable String action

The action from the NavDeepLink.

See also
action

isExactDeepLink

@NonNull
public final boolean isExactDeepLink

mimeType

@Nullable
public final @Nullable String mimeType

The mimeType from the NavDeepLink.

See also
mimeType

uriPattern

@Nullable
public final @Nullable String uriPattern

The uri pattern from the NavDeepLink.

See also
uri

Public constructors

@RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP])
@NonNull
public final NavDeepLink(@NonNull String uri)

Public methods

getMatchingArguments

@RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP])
@Nullable
public final @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) Bundle getMatchingArguments(
    @NonNull Uri deepLink,
    @NonNull Map<@NonNull String, @NonNull NavArgument> arguments
)

getMimeTypeMatchRating

@RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP])
@NonNull
public final @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) int getMimeTypeMatchRating(@NonNull String mimeType)