AppLinkData
يتوفر إصدار أحدث لهذه الفئة. يرجى التحقق أحدث إصدار.

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)
المعلمةالوصف
contextThe context
completionHandlerCompletionHandler 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)
المعلمةالوصف
contextThe context
applicationIdFacebook application Id. If null, it is taken from the manifest
completionHandlerCompletionHandler 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)
المعلمةالوصف
activityActivity that was started because of an app link
Returns
AppLinkData if found. null if not.
طرق المثيلات
getTargetUri()

TargetUri for this App Link

public Uri getTargetUri()
Returns
TargetUri
getRef()

Ref for this App Link

public String getRef()
Returns
Ref
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()
Returns
JSONObject property bag.
القيم الثابتة
ARGUMENTS_TAPTIME_KEY
Key that should be used to pull out the UTC Unix tap-time from the arguments for this app link.
public static final String ARGUMENTS_TAPTIME_KEY