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 |
static
NavDeepLinkRequest.Builder
|
fromAction(String action)
Creates a |
static
NavDeepLinkRequest.Builder
|
fromMimeType(String mimeType)
Creates a |
static
NavDeepLinkRequest.Builder
|
fromUri(Uri uri)
Creates a |
NavDeepLinkRequest.Builder
|
setAction(String action)
Set the action for the |
NavDeepLinkRequest.Builder
|
setMimeType(String mimeType)
Set the mimeType for the |
NavDeepLinkRequest.Builder
|
setUri(Uri uri)
Set the uri for the |
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. |