Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

NavDeepLinkRequest.Builder

public static final class NavDeepLinkRequest.Builder
extends Object

java.lang.Object
   ↳ androidx.navigation.NavDeepLinkRequest.Builder


A builder for constructing NavDeepLinkRequest instances.

Summary

Public methods

NavDeepLinkRequest build()

Build the NavDeepLinkRequest specified by this builder.

static NavDeepLinkRequest.Builder fromAction(String action)

Creates a NavDeepLinkRequest.Builder with a set action.

static NavDeepLinkRequest.Builder fromMimeType(String mimeType)

Creates a NavDeepLinkRequest.Builder with a set mimeType.

static NavDeepLinkRequest.Builder fromUri(Uri uri)

Creates a NavDeepLinkRequest.Builder with a set uri.

NavDeepLinkRequest.Builder setAction(String action)

Set the action for the NavDeepLinkRequest.

NavDeepLinkRequest.Builder setMimeType(String mimeType)

Set the mimeType for the NavDeepLinkRequest.

NavDeepLinkRequest.Builder setUri(Uri uri)

Set the uri for the NavDeepLinkRequest.

Inherited methods

Public methods

build

public NavDeepLinkRequest build ()

Build the NavDeepLinkRequest specified by this builder.

Returns
NavDeepLinkRequest the newly constructed NavDeepLinkRequest

fromAction

public static NavDeepLinkRequest.Builder fromAction (String action)

Creates a NavDeepLinkRequest.Builder with a set action.

Parameters
action String: the intent action for the NavDeepLinkRequest

Returns
NavDeepLinkRequest.Builder a NavDeepLinkRequest.Builder instance

Throws
IllegalArgumentException if the action is empty.

fromMimeType

public static NavDeepLinkRequest.Builder fromMimeType (String mimeType)

Creates a NavDeepLinkRequest.Builder with a set mimeType.

Parameters
mimeType String: the mimeType for the NavDeepLinkRequest

Returns
NavDeepLinkRequest.Builder a NavDeepLinkRequest.Builder instance

fromUri

public static NavDeepLinkRequest.Builder fromUri (Uri uri)

Creates a NavDeepLinkRequest.Builder with a set uri.

Parameters
uri Uri: The uri to add to the NavDeepLinkRequest

Returns
NavDeepLinkRequest.Builder a NavDeepLinkRequest.Builder instance

setAction

public NavDeepLinkRequest.Builder setAction (String action)

Set the action for the NavDeepLinkRequest.

Parameters
action String: the intent action for the NavDeepLinkRequest

Returns
NavDeepLinkRequest.Builder This builder.

Throws
IllegalArgumentException if the action is empty.

setMimeType

public NavDeepLinkRequest.Builder setMimeType (String mimeType)

Set the mimeType for the NavDeepLinkRequest.

Parameters
mimeType String: the mimeType for the NavDeepLinkRequest

Returns
NavDeepLinkRequest.Builder This builder.

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

setUri

public NavDeepLinkRequest.Builder setUri (Uri uri)

Set the uri for the NavDeepLinkRequest.

Parameters
uri Uri: The uri to add to the NavDeepLinkRequest

Returns
NavDeepLinkRequest.Builder This builder.