-
public class AppLinkDataClass to encapsulate an app link, and provide methods for constructing the data from various sources
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceAppLinkData.CompletionHandlerInterface to asynchronously receive AppLinkData after it has been fetched.
-
Field Summary
Fields Modifier and Type Field Description public final static StringARGUMENTS_TAPTIME_KEYpublic final static StringARGUMENTS_REFERER_DATA_KEYpublic final static StringARGUMENTS_EXTRAS_KEYpublic final static StringARGUMENTS_NATIVE_CLASS_KEYpublic final static StringARGUMENTS_NATIVE_URLprivate Stringrefprivate UritargetUriprivate BundleargumentBundleprivate StringpromotionCode
-
Method Summary
Modifier and Type Method Description 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. -
-
Method Detail
-
getTargetUri
@Nullable() Uri getTargetUri()
Returns the target uri for this App Link.
-
getArgumentBundle
@Nullable() Bundle getArgumentBundle()
The full set of arguments for this app link. Properties like target uri & ref are typicallypicked out of this set of arguments.
-
getPromotionCode
@Nullable() String getPromotionCode()
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 contextcompletionHandler- 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 contextapplicationId- Facebook application Id.completionHandler- CompletionHandler to be notified with the AppLinkData object or nullif none is available.
-
createFromActivity
@Nullable() static AppLinkData createFromActivity(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 AppLinkData createFromAlApplinkData(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() Bundle getRefererData()
The referer data associated with the app link. This will contain Facebook specific informationlike fb_access_token, fb_expires_in, and fb_ref.
-
-
-
-