public class AppLinkNavigation
extends java.lang.Object
navigateInBackground(android.content.Context, android.net.Uri)
to open a URL, but
developers can build custom requests with additional navigation and app data attached to them
by creating AppLinkNavigations themselves.Modifier and Type | Class and Description |
---|---|
static class |
AppLinkNavigation.NavigationResult
The result of calling
navigate(android.content.Context) on an
AppLinkNavigation . |
Constructor and Description |
---|
AppLinkNavigation(AppLink appLink,
android.os.Bundle extras,
android.os.Bundle appLinkData)
Creates an AppLinkNavigation with the given link, extras, and App Link data.
|
Modifier and Type | Method and Description |
---|---|
AppLink |
getAppLink() |
android.os.Bundle |
getAppLinkData()
Gets the al_applink_data for the AppLinkNavigation.
|
static AppLinkResolver |
getDefaultResolver()
Gets the default resolver to be used for App Link resolution.
|
android.os.Bundle |
getExtras()
The extras for the AppLinkNavigation.
|
AppLinkNavigation.NavigationResult |
navigate(android.content.Context context)
Performs the navigation.
|
static AppLinkNavigation.NavigationResult |
navigate(android.content.Context context,
AppLink appLink)
Navigates to an
AppLink . |
static Task<AppLinkNavigation.NavigationResult> |
navigateInBackground(android.content.Context context,
java.lang.String destinationUrl)
Navigates to an
AppLink for the given destination using the default
App Link resolution strategy. |
static Task<AppLinkNavigation.NavigationResult> |
navigateInBackground(android.content.Context context,
java.lang.String destinationUrl,
AppLinkResolver resolver)
Navigates to an
AppLink for the given destination using the App Link resolution
strategy specified. |
static Task<AppLinkNavigation.NavigationResult> |
navigateInBackground(android.content.Context context,
android.net.Uri destination)
Navigates to an
AppLink for the given destination using the default
App Link resolution strategy. |
static Task<AppLinkNavigation.NavigationResult> |
navigateInBackground(android.content.Context context,
android.net.Uri destination,
AppLinkResolver resolver)
Navigates to an
AppLink for the given destination using the App Link resolution
strategy specified. |
static Task<AppLinkNavigation.NavigationResult> |
navigateInBackground(android.content.Context context,
java.net.URL destination)
Navigates to an
AppLink for the given destination using the default
App Link resolution strategy. |
static Task<AppLinkNavigation.NavigationResult> |
navigateInBackground(android.content.Context context,
java.net.URL destination,
AppLinkResolver resolver)
Navigates to an
AppLink for the given destination using the App Link resolution
strategy specified. |
static void |
setDefaultResolver(AppLinkResolver resolver)
Sets the default resolver to be used for App Link resolution.
|
public AppLinkNavigation(AppLink appLink, android.os.Bundle extras, android.os.Bundle appLinkData)
appLink
- the AppLink being navigated to.extras
- the extras to include in the App Link navigation.appLinkData
- additional App Link data for the navigation.public AppLink getAppLink()
public android.os.Bundle getAppLinkData()
public android.os.Bundle getExtras()
public AppLinkNavigation.NavigationResult navigate(android.content.Context context)
context
- the Context from which the navigation should be performed.AppLinkNavigation.NavigationResult
performed by navigating.public static void setDefaultResolver(AppLinkResolver resolver)
navigateInBackground(android.content.Context, android.net.Uri)
methods to use the
basic, built-in resolver provided by Bolts.resolver
- the resolver to use by default.public static AppLinkResolver getDefaultResolver()
null
, but the basic, built-in resolver provided by
Bolts will be used.null
if none is set.public static AppLinkNavigation.NavigationResult navigate(android.content.Context context, AppLink appLink)
AppLink
.context
- the Context from which the navigation should be performed.appLink
- the AppLink being navigated to.AppLinkNavigation.NavigationResult
performed by navigating.public static Task<AppLinkNavigation.NavigationResult> navigateInBackground(android.content.Context context, android.net.Uri destination, AppLinkResolver resolver)
AppLink
for the given destination using the App Link resolution
strategy specified.context
- the Context from which the navigation should be performed.destination
- the destination URL for the App Link.resolver
- the resolver to use for fetching App Link metadata.AppLinkNavigation.NavigationResult
performed by navigating.public static Task<AppLinkNavigation.NavigationResult> navigateInBackground(android.content.Context context, java.net.URL destination, AppLinkResolver resolver)
AppLink
for the given destination using the App Link resolution
strategy specified.context
- the Context from which the navigation should be performed.destination
- the destination URL for the App Link.resolver
- the resolver to use for fetching App Link metadata.AppLinkNavigation.NavigationResult
performed by navigating.public static Task<AppLinkNavigation.NavigationResult> navigateInBackground(android.content.Context context, java.lang.String destinationUrl, AppLinkResolver resolver)
AppLink
for the given destination using the App Link resolution
strategy specified.context
- the Context from which the navigation should be performed.destinationUrl
- the destination URL for the App Link.resolver
- the resolver to use for fetching App Link metadata.AppLinkNavigation.NavigationResult
performed by navigating.public static Task<AppLinkNavigation.NavigationResult> navigateInBackground(android.content.Context context, android.net.Uri destination)
AppLink
for the given destination using the default
App Link resolution strategy.context
- the Context from which the navigation should be performed.destination
- the destination URL for the App Link.AppLinkNavigation.NavigationResult
performed by navigating.public static Task<AppLinkNavigation.NavigationResult> navigateInBackground(android.content.Context context, java.net.URL destination)
AppLink
for the given destination using the default
App Link resolution strategy.context
- the Context from which the navigation should be performed.destination
- the destination URL for the App Link.AppLinkNavigation.NavigationResult
performed by navigating.public static Task<AppLinkNavigation.NavigationResult> navigateInBackground(android.content.Context context, java.lang.String destinationUrl)
AppLink
for the given destination using the default
App Link resolution strategy.context
- the Context from which the navigation should be performed.destinationUrl
- the destination URL for the App Link.AppLinkNavigation.NavigationResult
performed by navigating.