DeepLinkRequest.Companion


Summary

Public functions

DeepLinkRequest
fromAction(action: String, uri: DeepLinkUri?, mimeType: String?)

Creates a [DeepLinkRequest with an action.

Cmn
DeepLinkRequest
fromMimeType(mimeType: String, uri: DeepLinkUri?, action: String?)

Creates a DeepLinkRequest with a mimeType.

Cmn
DeepLinkRequest
fromUri(uri: DeepLinkUri, mimeType: String?, action: String?)

Creates a DeepLinkRequest with a DeepLinkUri.

Cmn
DeepLinkRequest
fromUriString(uri: String, mimeType: String?, action: String?)

Creates a DeepLinkRequest with a string uri.

Cmn

Extension functions

DeepLinkRequest

Creates a DeepLinkRequest with an Intent.

android

Public functions

fromAction

fun fromAction(action: String, uri: DeepLinkUri? = null, mimeType: String? = null): DeepLinkRequest

Creates a [DeepLinkRequest with an action.

Parameters
action: String

The action for the deep link.

uri: DeepLinkUri? = null

The URI for the deep link.

mimeType: String? = null

The mime type for the deep link.

Returns
DeepLinkRequest

a DeepLinkRequest instance

Throws
IllegalArgumentException

if the action is empty.

fromMimeType

fun fromMimeType(mimeType: String, uri: DeepLinkUri? = null, action: String? = null): DeepLinkRequest

Creates a DeepLinkRequest with a mimeType.

Parameters
mimeType: String

The mime type for the deep link.

uri: DeepLinkUri? = null

The URI for the deep link.

action: String? = null

The action for the deep link.

Returns
DeepLinkRequest

a DeepLinkRequest instance

Throws
IllegalArgumentException

if the mimeType is empty.

fromUri

fun fromUri(uri: DeepLinkUri, mimeType: String? = null, action: String? = null): DeepLinkRequest

Creates a DeepLinkRequest with a DeepLinkUri.

Parameters
uri: DeepLinkUri

The URI for the deep link.

mimeType: String? = null

The mime type for the deep link.

action: String? = null

The action for the deep link.

Returns
DeepLinkRequest

a DeepLinkRequest instance

fromUriString

fun fromUriString(uri: String, mimeType: String? = null, action: String? = null): DeepLinkRequest

Creates a DeepLinkRequest with a string uri.

Parameters
uri: String

The URI for the deep link.

mimeType: String? = null

The mime type for the deep link.

action: String? = null

The action for the deep link.

Returns
DeepLinkRequest

a DeepLinkRequest instance

Extension functions

DeepLinkRequest.Companion.fromIntent

fun DeepLinkRequest.Companion.fromIntent(intent: Intent): DeepLinkRequest

Creates a DeepLinkRequest with an Intent.

Parameters
intent: Intent

The Intent with the metadata to add to the DeepLinkRequest

Returns
DeepLinkRequest

a DeepLinkRequest instance