Google is committed to advancing racial equity for Black communities. See how.

NavDeepLink

class NavDeepLink
kotlin.Any
   ↳ 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

A builder for constructing NavDeepLink instances.

Public methods

String?

Get the action from the NavDeepLink.

String?

Get the mimeType from the NavDeepLink.

String?

Get the uri pattern from the NavDeepLink.

Public methods

getAction

@Nullable fun getAction(): String?

Get the action from the NavDeepLink.

Return
String? the action for the deep link.

getMimeType

@Nullable fun getMimeType(): String?

Get the mimeType from the NavDeepLink.

Return
String? the mimeType of the deep link.

getUriPattern

@Nullable fun getUriPattern(): String?

Get the uri pattern from the NavDeepLink.

Return
String? the uri pattern for the deep link.