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

Set the action for the NavDeepLinkRequest.

final @NonNull NavDeepLinkRequest.Builder

Set the mimeType for the NavDeepLinkRequest.

final @NonNull NavDeepLinkRequest.Builder

Set the uri for the NavDeepLinkRequest.

Public methods

build

@NonNull
public final NavDeepLinkRequest build()

Build the NavDeepLinkRequest specified by this builder.

Returns
NavDeepLinkRequest

the newly constructed NavDeepLinkRequest

setAction

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

Set the action for the NavDeepLinkRequest.

Parameters
@NonNull String action

the intent action for the NavDeepLinkRequest

Returns
NavDeepLinkRequest.Builder

This builder.

Throws
kotlin.IllegalArgumentException

if the action is empty.

setMimeType

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

Set the mimeType for the NavDeepLinkRequest.

Parameters
@NonNull String mimeType

the mimeType for the NavDeepLinkRequest

Returns
NavDeepLinkRequest.Builder

This builder.

Throws
kotlin.IllegalArgumentException

if the given mimeType does not match th3e required "type/subtype" format.

setUri

@NonNull
public final NavDeepLinkRequest.Builder setUri(@NonNull Uri uri)

Set the uri for the NavDeepLinkRequest.

Parameters
@NonNull Uri uri

The uri to add to the NavDeepLinkRequest

Returns
NavDeepLinkRequest.Builder

This builder.