NavDeepLink.Builder

public final class NavDeepLink.Builder


A builder for constructing NavDeepLink instances.

Summary

Public methods

final @NonNull NavDeepLink

Build the NavDeepLink specified by this builder.

final @NonNull NavDeepLink.Builder

Set the action for the NavDeepLink.

final @NonNull NavDeepLink.Builder

Set the mimeType for the NavDeepLink.

final @NonNull NavDeepLink.Builder

Set the uri pattern for the NavDeepLink.

Public methods

build

Added in 2.3.0
public final @NonNull NavDeepLink build()

Build the NavDeepLink specified by this builder.

Returns
@NonNull NavDeepLink

the newly constructed NavDeepLink.

setAction

Added in 2.3.0
public final @NonNull NavDeepLink.Builder setAction(@NonNull String action)

Set the action for the NavDeepLink.

Parameters
@NonNull String action

the intent action for the NavDeepLink

Returns
@NonNull NavDeepLink.Builder

This builder.

Throws
kotlin.IllegalArgumentException

if the action is empty.

setMimeType

Added in 2.3.0
public final @NonNull NavDeepLink.Builder setMimeType(@NonNull String mimeType)

Set the mimeType for the NavDeepLink.

Parameters
@NonNull String mimeType

the mimeType for the NavDeepLink

Returns
@NonNull NavDeepLink.Builder

This builder.

setUriPattern

Added in 2.3.0
public final @NonNull NavDeepLink.Builder setUriPattern(@NonNull String uriPattern)

Set the uri pattern for the NavDeepLink.

Parameters
@NonNull String uriPattern

The uri pattern to add to the NavDeepLink

Returns
@NonNull NavDeepLink.Builder

This builder.