Android SDK Version
- AccessToken
- AccessToken.AccessTokenCreationCallback
- AccessToken.AccessTokenRefreshCallback
- AccessTokenManager
- AccessTokenSource
- AccessTokenTracker
- AddressFilterManager
- All
- AppEvent
- AppEventsConstants
- AppEventsLogger
- AppEventsLogger.FlushBehavior
- AppEventsLogger.ProductAvailability
- AppEventsLogger.ProductCondition
- AppEventsManager
- AppGroupCreationContent
- AppGroupCreationContent.AppGroupPrivacy
- AppGroupCreationContent.Builder
- AppInviteContent
- AppInviteContent.Builder
- AppInviteContent.Builder.Destination
- AppInviteDialog
- AppInviteDialog.Result
- AppLinkData
- AppLinkData.CompletionHandler
- AppLinks
- CallbackManager
- CallbackManager.Factory
- CameraEffectArguments
- CameraEffectArguments.Builder
- CameraEffectTextures
- CameraEffectTextures.Builder
- CodelessLoggingEventListener
- CodelessLoggingEventListener.AutoLoggingOnClickListener
- CodelessLoggingEventListener.AutoLoggingOnItemClickListener
- CodelessManager
- Common
- Core
- CreateAppGroupDialog
- CreateAppGroupDialog.Result
- CurrentAccessTokenExpirationBroadcastReceiver
- CurrentPlaceFeedbackRequestParams
- CurrentPlaceFeedbackRequestParams.Builder
- CurrentPlaceRequestParams
- CurrentPlaceRequestParams.Builder
- CurrentPlaceRequestParams.ConfidenceLevel
- CurrentPlaceRequestParams.ScanMode
- CustomTabActivity
- CustomTabLoginMethodHandler
- CustomTabMainActivity
- DefaultAudience
- DeviceAuthDialog
- DeviceLoginButton
- DeviceLoginManager
- DeviceShareButton
- DeviceShareDialog
- DeviceShareDialog.Result
- EventDeactivationManager
- FacebookActivity
- FacebookAppLinkResolver
- FacebookAuthorizationException
- FacebookBroadcastReceiver
- FacebookButtonBase
- FacebookCallback
- FacebookContentProvider
- FacebookDialog
- FacebookDialogException
- FacebookException
- FacebookGraphResponseException
- FacebookOperationCanceledException
- FacebookRequestError
- FacebookRequestError.Category
- FacebookSdk
- FacebookSdk.InitializeCallback
- FacebookSdkNotInitializedException
- FacebookServiceException
- FlushResult
- GameRequestContent
- GameRequestContent.ActionType
- GameRequestContent.Builder
- GameRequestContent.Filters
- GameRequestDialog
- GameRequestDialog.Result
- GraphRequest
- GraphRequest.Callback
- GraphRequest.GraphJSONArrayCallback
- GraphRequest.GraphJSONObjectCallback
- GraphRequest.OnProgressCallback
- GraphRequest.ParcelableResourceWithMimeType
- GraphRequestAsyncTask
- GraphRequestBatch
- GraphRequestBatch.Callback
- GraphRequestBatch.OnProgressCallback
- GraphResponse
- GraphResponse.PagingDirection
- HttpMethod
- InternalAppEventsLogger
- JoinAppGroupDialog
- JoinAppGroupDialog.Result
- LikeView
- LikeView.AuxiliaryViewPosition
- LikeView.HorizontalAlignment
- LikeView.ObjectType
- LikeView.OnErrorListener
- LikeView.Style
- LoggingBehavior
- Login
- LoginBehavior
- LoginButton
- LoginButton.ToolTipMode
- LoginFragment
- LoginManager
- LoginResult
- LoginStatusCallback
- MessageDialog
- Messenger
- MessengerThreadParams
- MessengerThreadParams.Origin
- MessengerUtils
- MetadataIndexer
- Model
- ModelManager
- PlaceFields
- PlaceInfoRequestParams
- PlaceInfoRequestParams.Builder
- PlaceManager
- PlaceManager.LocationError
- PlaceManager.OnRequestReadyCallback
- Places
- PlaceSearchRequestParams
- PlaceSearchRequestParams.Builder
- Profile
- ProfileManager
- ProfilePictureView
- ProfilePictureView.OnErrorListener
- ProfileTracker
- RCTCodelessLoggingEventListener
- RCTCodelessLoggingEventListener.AutoLoggingOnTouchListener
- RestrictiveDataManager
- SendButton
- Share
- ShareApi
- ShareBuilder
- ShareButton
- ShareButtonBase
- ShareCameraEffectContent
- ShareCameraEffectContent.Builder
- ShareContent
- ShareContent.Builder
- ShareDialog
- ShareDialog.Mode
- ShareGraphRequest
- ShareHashtag
- ShareHashtag.Builder
- ShareLinkContent
- ShareLinkContent.Builder
- ShareMedia
- ShareMedia.Builder
- ShareMedia.Type
- ShareMediaContent
- ShareMediaContent.Builder
- ShareMessengerActionButton
- ShareMessengerActionButton.Builder
- ShareMessengerGenericTemplateContent
- ShareMessengerGenericTemplateContent.Builder
- ShareMessengerGenericTemplateContent.ImageAspectRatio
- ShareMessengerGenericTemplateElement
- ShareMessengerGenericTemplateElement.Builder
- ShareMessengerMediaTemplateContent
- ShareMessengerMediaTemplateContent.Builder
- ShareMessengerMediaTemplateContent.MediaType
- ShareMessengerOpenGraphMusicTemplateContent
- ShareMessengerOpenGraphMusicTemplateContent.Builder
- ShareMessengerURLActionButton
- ShareMessengerURLActionButton.Builder
- ShareMessengerURLActionButton.WebviewHeightRatio
- ShareModel
- ShareModelBuilder
- ShareOpenGraphAction
- ShareOpenGraphAction.Builder
- ShareOpenGraphContent
- ShareOpenGraphContent.Builder
- ShareOpenGraphObject
- ShareOpenGraphObject.Builder
- ShareOpenGraphValueContainer
- ShareOpenGraphValueContainer.Builder
- SharePhoto
- SharePhoto.Builder
- SharePhotoContent
- SharePhotoContent.Builder
- Sharer
- Sharer.Result
- ShareStoryContent
- ShareStoryContent.Builder
- ShareToMessengerParams
- ShareToMessengerParamsBuilder
- ShareVideo
- ShareVideo.Builder
- ShareVideoContent
- ShareVideoContent.Builder
- SuggestedEventsManager
- ToolTipPopup
- ToolTipPopup.Style
- UserDataStore
- Utils
- ViewIndexer
- ViewOnClickListener
- WebDialog
- java.lang.Object
- com.facebook.applinks.AppLinkData
public class AppLinkData
extends java.lang.Object
Class to encapsulate an app link, and provide methods for constructing the data from various sources
Nested Class Summary
Modifier and Type | Class and Description |
---|---|
static interface | AppLinkData.CompletionHandler Interface to asynchronously receive AppLinkData after it has been fetched. |
Field Summary
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. |
Method Summary
Modifier and Type | Method and Description |
---|---|
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. |
static void | fetchDeferredAppLinkData(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(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 |
JSONObject | getAppLinkData() Returns the data of al_applink_data which is defined in https://developers.facebook.com/docs/applinks/navigation-protocol |
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. |
Bundle | getRefererData() The referer data associated with the app link. |
Uri | getTargetUri() Returns the target uri for this App Link. |
boolean | isAutoAppLink() |
Field Detail
ARGUMENTS_TAPTIME_KEY
public static final 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.
See Also:
ARGUMENTS_REFERER_DATA_KEY
public static final java.lang.String ARGUMENTS_REFERER_DATA_KEY
Key that should be used to get the "referer_data" field for this app link.
See Also:
ARGUMENTS_EXTRAS_KEY
public static final java.lang.String ARGUMENTS_EXTRAS_KEY
Key that should be used to get the "extras" field for this app link.
See Also:
ARGUMENTS_NATIVE_CLASS_KEY
public static final 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.
See Also:
ARGUMENTS_NATIVE_URL
public static final 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.
See Also:
Method Detail
fetchDeferredAppLinkData
public static void fetchDeferredAppLinkData(Context context, AppLinkData.CompletionHandler completionHandler)
Asynchronously fetches app link information that might have been stored for use after installation of the app
Parameters:
context
- The contextcompletionHandler
- CompletionHandler to be notified with the AppLinkData object or null if none is available. Must not be null.fetchDeferredAppLinkData
public static void fetchDeferredAppLinkData(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
Parameters:
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.createFromActivity
public 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 linkReturns:
AppLinkData if found. null if not.
createFromAlApplinkData
public 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 linkReturns:
AppLinkData if found. null if not.
isAutoAppLink
public boolean isAutoAppLink()
getTargetUri
public Uri getTargetUri()
Returns the target uri for this App Link.
Returns:
target uri
getRef
public java.lang.String getRef()
Returns the ref for this App Link.
Returns:
ref
getPromotionCode
public java.lang.String getPromotionCode()
Returns the promotion code for this App Link.
Returns:
promotion code
getArgumentBundle
public Bundle getArgumentBundle()
The full set of arguments for this app link. Properties like target uri & ref are typically picked out of this set of arguments.
Returns:
App link related arguments as a bundle.
getRefererData
public Bundle getRefererData()
The referer data associated with the app link. This will contain Facebook specific information like fb_access_token, fb_expires_in, and fb_ref.
Returns:
the referer data.
getAppLinkData
public JSONObject getAppLinkData()
Returns the data of al_applink_data which is defined in https://developers.facebook.com/docs/applinks/navigation-protocol
Returns:
App Link data. Empty if not found.