Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

NavDeepLink.Builder

public static final class NavDeepLink.Builder
extends Object

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


A builder for constructing NavDeepLink instances.

Summary

Public methods

NavDeepLink build()

Build the NavDeepLink specified by this builder.

static NavDeepLink.Builder fromAction(String action)

Creates a NavDeepLink.Builder with a set action.

static NavDeepLink.Builder fromMimeType(String mimeType)

Creates a NavDeepLink.Builder with a set mimeType.

static NavDeepLink.Builder fromUriPattern(String uriPattern)

Creates a NavDeepLink.Builder with a set uri pattern.

NavDeepLink.Builder setAction(String action)

Set the action for the NavDeepLink.

NavDeepLink.Builder setMimeType(String mimeType)

Set the mimeType for the NavDeepLink.

NavDeepLink.Builder setUriPattern(String uriPattern)

Set the uri pattern for the NavDeepLink.

Inherited methods

Public methods

build

public NavDeepLink build ()

Build the NavDeepLink specified by this builder.

Returns
NavDeepLink the newly constructed NavDeepLink.

fromAction

public static NavDeepLink.Builder fromAction (String action)

Creates a NavDeepLink.Builder with a set action.

Parameters
action String: the intent action for the NavDeepLink

Returns
NavDeepLink.Builder a NavDeepLink.Builder instance

Throws
IllegalArgumentException if the action is empty.

fromMimeType

public static NavDeepLink.Builder fromMimeType (String mimeType)

Creates a NavDeepLink.Builder with a set mimeType.

Parameters
mimeType String: the mimeType for the NavDeepLink

Returns
NavDeepLink.Builder a NavDeepLink.Builder instance

fromUriPattern

public static NavDeepLink.Builder fromUriPattern (String uriPattern)

Creates a NavDeepLink.Builder with a set uri pattern.

Parameters
uriPattern String: The uri pattern to add to the NavDeepLink

Returns
NavDeepLink.Builder a NavDeepLink.Builder instance

setAction

public NavDeepLink.Builder setAction (String action)

Set the action for the NavDeepLink.

Parameters
action String: the intent action for the NavDeepLink

Returns
NavDeepLink.Builder This builder.

Throws
IllegalArgumentException if the action is empty.

setMimeType

public NavDeepLink.Builder setMimeType (String mimeType)

Set the mimeType for the NavDeepLink.

Parameters
mimeType String: the mimeType for the NavDeepLink

Returns
NavDeepLink.Builder This builder.

setUriPattern

public NavDeepLink.Builder setUriPattern (String uriPattern)

Set the uri pattern for the NavDeepLink.

Parameters
uriPattern String: The uri pattern to add to the NavDeepLink

Returns
NavDeepLink.Builder This builder.