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 |
static
NavDeepLink.Builder
|
fromAction(String action)
Creates a |
static
NavDeepLink.Builder
|
fromMimeType(String mimeType)
Creates a |
static
NavDeepLink.Builder
|
fromUriPattern(String uriPattern)
Creates a |
NavDeepLink.Builder
|
setAction(String action)
Set the action for the |
NavDeepLink.Builder
|
setMimeType(String mimeType)
Set the mimeType for the |
NavDeepLink.Builder
|
setUriPattern(String uriPattern)
Set the uri pattern for the |
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. |