UriComponents

class UriComponents(    val scheme: String,     val host: String,     path: Array<String>,     search: Array<Param>,     hash: String) : PshComponents

Cross-platform URI representation

See also

Parameters

path

Path component - where to go

search

Search component - what to do

hash

Hash component - what to display

Constructors

Link copied to clipboard
fun UriComponents(    scheme: String,     host: String,     actionComponents: PshComponents)

Constructor with PshComponents

Link copied to clipboard
fun UriComponents(    scheme: String,     host: String,     path: Array<String>,     search: Array<Param>,     hash: String)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun getHash(): String

Hash component - what to display. Represents extra action to do in activity.

Link copied to clipboard
open override fun getPath(): Array<String>

Path component - where to go. Represents a path to activity in an application: screen, action, etc. Parameters exactly identifying the activity may be represented as path.

Link copied to clipboard
open override fun getSearch(): Array<Param>

Search component - what to do. Represents parameters to activity specified by path which instruct activity what to do.

Link copied to clipboard
open override fun hashCode(): Int

Properties

Link copied to clipboard
val host: String

Host part of URI including port value. Like motorro.com or motorro.com:123

Link copied to clipboard
val scheme: String

URI scheme. May be http(s) or a custom application scheme

Extensions

Link copied to clipboard
expect fun UriComponents.build(): String

Builds string URI from UriComponents

actual fun UriComponents.build(): String

Builds string URI from UriComponents (iOS implementation)

actual fun UriComponents.build(): String

Builds string URI from UriComponents (JS implementation)

actual fun UriComponents.build(): String

Builds string URI from UriComponents (JVM implementation)