Class to encapsulate an app link, and provide methods for constructing the data from various sources
Mở rộng: | Object |
Gói: | 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)
Thông số | Mô tả |
---|---|
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)
Thông số | Mô tả |
---|---|
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)
Thông số | Mô tả |
---|---|
activity | Activity that was started because of an app link |
getTargetUri()
TargetUri for this App Link
public Uri getTargetUri()
getRef()
Ref for this App Link
public String getRef()
getArguments()
The full set of arguments for this app link. Properties like TargetUri & Ref are typically picked out of this set of arguments.
public JSONObject getArguments()
ARGUMENTS_TAPTIME_KEY
public static final String ARGUMENTS_TAPTIME_KEY