NavDeepLinkDslBuilder


@NavDeepLinkDsl
public final class NavDeepLinkDslBuilder


DSL for constructing a new NavDeepLink

Summary

Public constructors

Public methods

final String

Intent action for the deep link

final String

MimeType for the deep link

final String

The uri pattern of the deep link

final void
setAction(String action)

Intent action for the deep link

final void
setMimeType(String mimeType)

MimeType for the deep link

final void
setUriPattern(String uriPattern)

The uri pattern of the deep link

Public constructors

Added in 2.3.0
public NavDeepLinkDslBuilder()

Public methods

getAction

Added in 2.3.0
public final String getAction()

Intent action for the deep link

Throws
kotlin.IllegalArgumentException

if attempting to set to empty.

getMimeType

Added in 2.3.0
public final String getMimeType()

MimeType for the deep link

getUriPattern

Added in 2.3.0
public final String getUriPattern()

The uri pattern of the deep link

If used with safe args, this will override the uriPattern from KClass that was set during NavDestinationBuilder initialization.

setAction

Added in 2.3.0
public final void setAction(String action)

Intent action for the deep link

Throws
kotlin.IllegalArgumentException

if attempting to set to empty.

setMimeType

Added in 2.3.0
public final void setMimeType(String mimeType)

MimeType for the deep link

setUriPattern

Added in 2.3.0
public final void setUriPattern(String uriPattern)

The uri pattern of the deep link

If used with safe args, this will override the uriPattern from KClass that was set during NavDestinationBuilder initialization.