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?

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>

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

Returns the encoded string representation of this URI.

Cmn
android

Public constructors

DeepLinkUri

DeepLinkUri()

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 '#'.

getPathSegments

abstract fun getPathSegments(): List<String>

Gets the decoded path segments.

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.

Returns
Set<String>

a set of decoded names

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.

getScheme

abstract fun getScheme(): String?

Gets the scheme of this URI. Example: "http"

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.

toString

abstract fun toString(): String

Returns the encoded string representation of this URI. Example: "http://google.com/"