UriMatchResult

open class UriMatchResult<T : Any>(key: T, val arguments: Map<String, List<String>>) : DeepLinkMatcher.MatchResult<T>

The class that is returned when a UriDeepLinkMatcher matches with a DeepLinkRequest

Match Order When comparing two UriMatchResults, the following criteria are used to determine the winner:

  1. MatchResult type: This result wins if the other MatchResult is not a UriMatchResult

  2. Exact Path: A match with an exact path wins over a match with path wildcard or path arguments.

  3. Path Argument Count: A match with more extracted path arguments wins.

  4. Presence of Arguments: A match that contains arguments wins over one that has none.

  5. Total Argument Count: A match with more total arguments (path + query + fragment) wins.

Parameters

key

the navigation key representing the deep link target

arguments

the map of arguments extracted from the DeepLinkRequest

Constructors

Link copied to clipboard
constructor(key: T, arguments: Map<String, List<String>>)

Properties

Link copied to clipboard
Link copied to clipboard
val key: T

Functions

Link copied to clipboard
open operator override fun compareTo(other: DeepLinkMatcher.MatchResult<T>): Int

Compares this matcher with the other for sorting order.