NavDeepLinkRequest.Builder

public final class NavDeepLinkRequest.Builder


A builder for constructing NavDeepLinkRequest instances.

Summary

Public methods

final @NonNull NavDeepLinkRequest

Build the NavDeepLinkRequest specified by this builder.

final @NonNull NavDeepLinkRequest.Builder
setAction(String action)

Set the action for the NavDeepLinkRequest.

final @NonNull NavDeepLinkRequest.Builder
setMimeType(String mimeType)

Set the mimeType for the NavDeepLinkRequest.

final @NonNull NavDeepLinkRequest.Builder
setUri(Uri uri)

Set the uri for the NavDeepLinkRequest.

Public methods

build

public final @NonNull NavDeepLinkRequest build()

Build the NavDeepLinkRequest specified by this builder.

Returns
@NonNull NavDeepLinkRequest

the newly constructed NavDeepLinkRequest

setAction

public final @NonNull NavDeepLinkRequest.Builder setAction(String action)

Set the action for the NavDeepLinkRequest.

Parameters
String action

the intent action for the NavDeepLinkRequest

Returns
@NonNull NavDeepLinkRequest.Builder

This builder.

Throws
kotlin.IllegalArgumentException

if the action is empty.

setMimeType

public final @NonNull NavDeepLinkRequest.Builder setMimeType(String mimeType)

Set the mimeType for the NavDeepLinkRequest.

Parameters
String mimeType