public class AppLinkData
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
AppLinkData.CompletionHandler
Interface to asynchronously receive AppLinkData after it has been fetched.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARGUMENTS_EXTRAS_KEY
Key that should be used to get the "extras" field for this app link.
|
static java.lang.String |
ARGUMENTS_NATIVE_CLASS_KEY
Key that should be used to pull out the native class that would have been used if the applink
was deferred.
|
static java.lang.String |
ARGUMENTS_NATIVE_URL
Key that should be used to pull out the native url that would have been used if the applink
was deferred.
|
static java.lang.String |
ARGUMENTS_REFERER_DATA_KEY
Key that should be used to get the "referer_data" field for this app link.
|
static java.lang.String |
ARGUMENTS_TAPTIME_KEY
Key that should be used to pull out the UTC Unix tap-time from the arguments for this app
link.
|
Modifier and Type | Method and Description |
---|---|
static AppLinkData |
createFromActivity(android.app.Activity activity)
Parses out any app link data from the Intent of the Activity passed in.
|
static AppLinkData |
createFromAlApplinkData(android.content.Intent intent)
Parses out any app link data from the Intent passed in.
|
static void |
fetchDeferredAppLinkData(android.content.Context context,
AppLinkData.CompletionHandler completionHandler)
Asynchronously fetches app link information that might have been stored for use after
installation of the app
|
static void |
fetchDeferredAppLinkData(android.content.Context context,
java.lang.String applicationId,
AppLinkData.CompletionHandler completionHandler)
Asynchronously fetches app link information that might have been stored for use after
installation of the app
|
android.os.Bundle |
getArgumentBundle()
The full set of arguments for this app link.
|
java.lang.String |
getPromotionCode()
Returns the promotion code for this App Link.
|
java.lang.String |
getRef()
Returns the ref for this App Link.
|
android.os.Bundle |
getRefererData()
The referer data associated with the app link.
|
android.net.Uri |
getTargetUri()
Returns the target uri for this App Link.
|
public static final java.lang.String ARGUMENTS_TAPTIME_KEY
public static final java.lang.String ARGUMENTS_REFERER_DATA_KEY
public static final java.lang.String ARGUMENTS_EXTRAS_KEY
public static final java.lang.String ARGUMENTS_NATIVE_CLASS_KEY
public static final java.lang.String ARGUMENTS_NATIVE_URL
public static void fetchDeferredAppLinkData(android.content.Context context, AppLinkData.CompletionHandler completionHandler)
context
- The contextcompletionHandler
- CompletionHandler to be notified with the AppLinkData object or null
if none is available. Must not be null.public static void fetchDeferredAppLinkData(android.content.Context context, java.lang.String applicationId, AppLinkData.CompletionHandler completionHandler)
context
- The contextapplicationId
- Facebook application Id. If null, it is taken from the manifestcompletionHandler
- CompletionHandler to be notified with the AppLinkData object or null
if none is available. Must not be null.public static AppLinkData createFromActivity(android.app.Activity activity)
activity
- Activity that was started because of an app linkpublic static AppLinkData createFromAlApplinkData(android.content.Intent intent)
intent
- Intent from the Activity that started because of an app linkpublic android.net.Uri getTargetUri()
public java.lang.String getRef()
public java.lang.String getPromotionCode()
public android.os.Bundle getArgumentBundle()
public android.os.Bundle getRefererData()