Android SDK Version


public class AppLinkData
Class to encapsulate an app link, and provide methods for constructing the data from various sources
Nested Class Summary
Modifier and TypeClassDescription
public interfaceAppLinkData.CompletionHandler
Interface to asynchronously receive AppLinkData after it has been fetched.
Field Summary
Modifier and TypeFieldDescription
public final static StringARGUMENTS_TAPTIME_KEY
public final static StringARGUMENTS_REFERER_DATA_KEY
public final static StringARGUMENTS_EXTRAS_KEY
public final static StringARGUMENTS_NATIVE_CLASS_KEY
public final static StringARGUMENTS_NATIVE_URL
private Stringref
private UritargetUri
private BundleargumentBundle
private StringpromotionCode
Method Summary
Modifier and TypeMethodDescription
StringgetRef() Returns the ref for this App Link.
UrigetTargetUri() Returns the target uri for this App Link.
BundlegetArgumentBundle() The full set of arguments for this app link.
StringgetPromotionCode() Returns the promotion code for this App Link.
static voidfetchDeferredAppLinkData(Context context, AppLinkData.CompletionHandler completionHandler) Asynchronously fetches app link information that might have been stored for use afterinstallation of the app
static voidfetchDeferredAppLinkData(Context context, String applicationId, AppLinkData.CompletionHandler completionHandler) Asynchronously fetches app link information that might have been stored for use afterinstallation of the app
static AppLinkDatacreateFromActivity(Activity activity) Parses out any app link data from the Intent of the Activity passed in.
static AppLinkDatacreateFromAlApplinkData(Intent intent) Parses out any app link data from the Intent passed in.
booleanisAutoAppLink()
BundlegetRefererData() The referer data associated with the app link.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

getRef

@Nullable() StringgetRef()
Returns the ref for this App Link.

getTargetUri

@Nullable() UrigetTargetUri()
Returns the target uri for this App Link.

getArgumentBundle

@Nullable() BundlegetArgumentBundle()
The full set of arguments for this app link. Properties like target uri & ref are typicallypicked out of this set of arguments.

getPromotionCode

@Nullable() StringgetPromotionCode()
Returns the promotion code for this App Link.

fetchDeferredAppLinkData

 static void fetchDeferredAppLinkData(Context context, AppLinkData.CompletionHandler completionHandler)
Asynchronously fetches app link information that might have been stored for use afterinstallation of the app
Parameters:
context - The context
completionHandler - CompletionHandler to be notified with the AppLinkData object or nullif none is available.

fetchDeferredAppLinkData

 static void fetchDeferredAppLinkData(Context context, String applicationId, AppLinkData.CompletionHandler completionHandler)
Asynchronously fetches app link information that might have been stored for use afterinstallation of the app
Parameters:
context - The context
applicationId - Facebook application Id.
completionHandler - CompletionHandler to be notified with the AppLinkData object or nullif none is available.

createFromActivity

@Nullable() static AppLinkDatacreateFromActivity(Activity activity)
Parses out any app link data from the Intent of the Activity passed in.
Parameters:
activity - Activity that was started because of an app link

createFromAlApplinkData

@Nullable() static AppLinkDatacreateFromAlApplinkData(Intent intent)
Parses out any app link data from the Intent passed in.
Parameters:
intent - Intent from the Activity that started because of an app link

isAutoAppLink

 boolean isAutoAppLink()

getRefererData

@Nullable() BundlegetRefererData()
The referer data associated with the app link. This will contain Facebook specific informationlike fb_access_token, fb_expires_in, and fb_ref.