public class AppLink
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AppLink.Target
Represents a target defined in App Link metadata, consisting of at least a package name,
and optionally a URL, class name (for explicit intent handling), and an app name.
|
| Constructor and Description |
|---|
AppLink(android.net.Uri sourceUrl,
java.util.List<AppLink.Target> targets,
android.net.Uri webUrl)
Creates an AppLink with the given metadata.
|
| Modifier and Type | Method and Description |
|---|---|
android.net.Uri |
getSourceUrl() |
java.util.List<AppLink.Target> |
getTargets() |
android.net.Uri |
getWebUrl() |
public AppLink(android.net.Uri sourceUrl,
java.util.List<AppLink.Target> targets,
android.net.Uri webUrl)
sourceUrl - the URL from which this App Link was derived.targets - an ordered list of Targets for this platform that will be used when navigating
with this App Link.webUrl - the fallback web URL, if any, for this App Link.public android.net.Uri getSourceUrl()
public java.util.List<AppLink.Target> getTargets()
public android.net.Uri getWebUrl()