-
public class AppLinkData
Class 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 interface
AppLinkData.CompletionHandler
Interface to asynchronously receive AppLinkData after it has been fetched.
-
Field Summary
Fields Modifier and Type Field Description public final static String
ARGUMENTS_TAPTIME_KEY
public final static String
ARGUMENTS_REFERER_DATA_KEY
public final static String
ARGUMENTS_EXTRAS_KEY
public final static String
ARGUMENTS_NATIVE_CLASS_KEY
public final static String
ARGUMENTS_NATIVE_URL
private String
ref
private Uri
targetUri
private Bundle
argumentBundle
private String
promotionCode
-
Method Summary
Modifier and Type Method Description String
getRef()
Returns the ref for this App Link. Uri
getTargetUri()
Returns the target uri for this App Link. Bundle
getArgumentBundle()
The full set of arguments for this app link. String
getPromotionCode()
Returns the promotion code for this App Link. static void
fetchDeferredAppLinkData(Context context, AppLinkData.CompletionHandler completionHandler)
Asynchronously fetches app link information that might have been stored for use afterinstallation of the app 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 static AppLinkData
createFromActivity(Activity activity)
Parses out any app link data from the Intent of the Activity passed in. static AppLinkData
createFromAlApplinkData(Intent intent)
Parses out any app link data from the Intent passed in. boolean
isAutoAppLink()
Bundle
getRefererData()
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.
-
-
-
-