Class to encapsulate an app link, and provide methods for constructing the data from various sources
延伸: | Object |
套件: | facebook |
fetchDeferredAppLinkData(Context, CompletionHandler)
Asynchronously fetches app link information that might have been stored for use after installation of the app
public static void fetchDeferredAppLinkData(Context context, CompletionHandler completionHandler)
參數 | 說明 |
---|---|
context | The context |
completionHandler | CompletionHandler to be notified with the AppLinkData object or null if none is available. Must not be null. |
fetchDeferredAppLinkData(Context, String, CompletionHandler)
Asynchronously fetches app link information that might have been stored for use after installation of the app
public static void fetchDeferredAppLinkData(Context context, String applicationId, CompletionHandler completionHandler)
參數 | 說明 |
---|---|
context | The context |
applicationId | Facebook application Id. If null, it is taken from the manifest |
completionHandler | CompletionHandler to be notified with the AppLinkData object or null if none is available. Must not be null. |
createFromActivity(Activity)
Parses out any app link data from the Intent of the Activity passed in.
public static AppLinkData createFromActivity(Activity activity)
參數 | 說明 |
---|---|
activity | Activity that was started because of an app link |
getTargetUri()
Returns the target uri for this App Link.
public Uri getTargetUri()
getRef()
Returns the ref for this App Link.
public String getRef()
getArguments()
This method has been deprecated. Please use AppLinkData.getArgumentBundle() instead.
public JSONObject getArguments()
getArgumentBundle()
The full set of arguments for this app link. Properties like target uri & ref are typically picked out of this set of arguments.
public Bundle getArgumentBundle()
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.
public Bundle getRefererData()
ARGUMENTS_TAPTIME_KEY
public static final String ARGUMENTS_TAPTIME_KEY
ARGUMENTS_REFERER_DATA_KEY
public static final String ARGUMENTS_REFERER_DATA_KEY
ARGUMENTS_NATIVE_CLASS_KEY
public static final String ARGUMENTS_NATIVE_CLASS_KEY
ARGUMENTS_NATIVE_URL
public static final String ARGUMENTS_NATIVE_URL