Android SDK Version


public final 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.
Field Summary
Modifier and TypeFieldDescription
private final StringpackageName
private final StringclassName
private final Uriurl
private final StringappName
Constructor Summary
ConstructorDescription
AppLink.Target(String packageName, String className, Uri url, String appName)
Method Summary
Modifier and TypeMethodDescription
final StringgetPackageName() the package name of the app.
final StringgetClassName() the class name to be used when creating an explicit intent from this target.
final UrigetUrl() the URL that will be used as the data in an intent constructed from this target.
final StringgetAppName() the app name.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

AppLink.Target

AppLink.Target(String packageName, String className, Uri url, String appName)
Method Detail

getPackageName

 final StringgetPackageName()
the package name of the app.

getClassName

 final StringgetClassName()
the class name to be used when creating an explicit intent from this target.

getUrl

 final UrigetUrl()
the URL that will be used as the data in an intent constructed from this target. If no url is specified, the intent will use the URL that was the source of this metadata.

getAppName

 final StringgetAppName()
the app name.