Google 致力于为黑人社区推动种族平等。查看具体举措

NavDeepLink

public final class NavDeepLink
extends Object

java.lang.Object
   ↳ androidx.navigation.NavDeepLink


NavDeepLink encapsulates the parsing and matching of a navigation deep link. This should be added to a NavDestination using NavDestination.addDeepLink(NavDeepLink).

Summary

Nested classes

class NavDeepLink.Builder

A builder for constructing NavDeepLink instances. 

Public methods

String getAction()

Get the action from the NavDeepLink.

String getMimeType()

Get the mimeType from the NavDeepLink.

String getUriPattern()

Get the uri pattern from the NavDeepLink.

Inherited methods

Public methods

getAction

public String getAction ()

Get the action from the NavDeepLink.

Returns
String the action for the deep link.

getMimeType

public String getMimeType ()

Get the mimeType from the NavDeepLink.

Returns
String the mimeType of the deep link.

getUriPattern

public String getUriPattern ()

Get the uri pattern from the NavDeepLink.

Returns
String the uri pattern for the deep link.