public final class

NavDeepLink.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.navigation.NavDeepLink.Builder

Overview

A builder for constructing NavDeepLink instances.

Summary

Methods
public NavDeepLinkbuild()

Build the NavDeepLink specified by this builder.

public static NavDeepLink.BuilderfromAction(java.lang.String action)

Creates a NavDeepLink.Builder with a set action.

public static NavDeepLink.BuilderfromMimeType(java.lang.String mimeType)

Creates a NavDeepLink.Builder with a set mimeType.

public static NavDeepLink.BuilderfromUriPattern(java.lang.String uriPattern)

Creates a NavDeepLink.Builder with a set uri pattern.

public NavDeepLink.BuildersetAction(java.lang.String action)

Set the action for the NavDeepLink.

public NavDeepLink.BuildersetMimeType(java.lang.String mimeType)

Set the mimeType for the NavDeepLink.

public NavDeepLink.BuildersetUriPattern(java.lang.String uriPattern)

Set the uri pattern for the NavDeepLink.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public static NavDeepLink.Builder fromUriPattern(java.lang.String uriPattern)

Creates a NavDeepLink.Builder with a set uri pattern.

Parameters:

uriPattern: The uri pattern to add to the NavDeepLink

Returns:

a NavDeepLink.Builder instance

public static NavDeepLink.Builder fromAction(java.lang.String action)

Creates a NavDeepLink.Builder with a set action.

Parameters:

action: the intent action for the NavDeepLink

Returns:

a NavDeepLink.Builder instance

public static NavDeepLink.Builder fromMimeType(java.lang.String mimeType)

Creates a NavDeepLink.Builder with a set mimeType.

Parameters:

mimeType: the mimeType for the NavDeepLink

Returns:

a NavDeepLink.Builder instance

public NavDeepLink.Builder setUriPattern(java.lang.String uriPattern)

Set the uri pattern for the NavDeepLink.

Parameters:

uriPattern: The uri pattern to add to the NavDeepLink

Returns:

This builder.

public NavDeepLink.Builder setAction(java.lang.String action)

Set the action for the NavDeepLink.

Parameters:

action: the intent action for the NavDeepLink

Returns:

This builder.

public NavDeepLink.Builder setMimeType(java.lang.String mimeType)

Set the mimeType for the NavDeepLink.

Parameters:

mimeType: the mimeType for the NavDeepLink

Returns:

This builder.

public NavDeepLink build()

Build the NavDeepLink specified by this builder.

Returns:

the newly constructed NavDeepLink.