DeepLinkUri
-
Cmn
abstract class DeepLinkUri
-
android
actual typealias DeepLinkUri = Uri
see android.net.Uri
Summary
Public constructors |
|
|---|---|
|
android
|
Public functions |
||
|---|---|---|
abstract String? |
Gets the decoded authority part of this URI. |
Cmn
android
|
abstract String? |
Gets the decoded fragment part of this URI, everything after the '#'. |
Cmn
android
|
abstract List<String> |
Gets the decoded path segments. |
Cmn
android
|
abstract String? |
getQuery()Gets the decoded query component from this URI. |
Cmn
android
|
Set<String> |
Returns a set of the unique names of all query parameters. |
Cmn
android
|
List<String> |
getQueryParameters(key: String)Searches the query string for parameter values with the given key. |
Cmn
android
|
abstract String? |
Gets the scheme of this URI. |
Cmn
android
|
abstract Boolean |
Returns true if this URI is hierarchical like "http://google.com". |
Cmn
android
|
abstract String |
toString()Returns the encoded string representation of this URI. |
Cmn
android
|
Public constructors
Public functions
getAuthority
abstract fun getAuthority(): String?
Gets the decoded authority part of this URI. For server addresses, the authority is structured as follows: userinfo '@' host ':' port
Examples: "google.com", "bob@google.com:80"
getFragment
abstract fun getFragment(): String?
Gets the decoded fragment part of this URI, everything after the '#'.
getQuery
abstract fun getQuery(): String?
Gets the decoded query component from this URI. The query comes after the query separator ('?') and before the fragment separator ('#'). This method would return "q=android" for "http://www.google.com/search?q=android".
getQueryParameterNames
fun getQueryParameterNames(): Set<String>
Returns a set of the unique names of all query parameters. Iterating over the set will return the names in order of their first occurrence.
| Throws | |
|---|---|
UnsupportedOperationException |
– if this isn't a hierarchical URI |
getQueryParameters
fun getQueryParameters(key: String): List<String>
Searches the query string for parameter values with the given key.
isHierarchical
abstract fun isHierarchical(): Boolean
Returns true if this URI is hierarchical like "http://google.com". Absolute URIs are hierarchical if the scheme-specific part starts with a '/'. Relative URIs are always hierarchical.