Android SDK Version
  • java.lang.Object
    • com.facebook.bolts.AppLink.Target
Enclosing class:

public static class AppLink.Target
extends java.lang.Object
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 Summary
Constructor and Description
Target(java.lang.String packageName, java.lang.String className, Uri url, java.lang.String appName)
Creates a Target with the given metadata.
Method Summary
Modifier and TypeMethod and Description
java.lang.StringgetAppName() 
java.lang.StringgetClassName() 
java.lang.StringgetPackageName() 
UrigetUrl() 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

Target

public Target(java.lang.String packageName,
              java.lang.String className,
              Uri url,
              java.lang.String appName)
Creates a Target with the given metadata.
Parameters:
packageName - the package name for the target.
className - the class name to be used when creating an explicit intent.
url - the URL to be used as the data in the constructed intent.
appName - the name of the app.
Method Detail

getUrl

public Uri getUrl()
Returns:
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

public java.lang.String getAppName()
Returns:
the app name.

getClassName

public java.lang.String getClassName()
Returns:
the class name to be used when creating an explicit intent from this target.

getPackageName

public java.lang.String getPackageName()
Returns:
the package name of the app.